Port state detection circuit and port state detection system

By introducing a switching mechanism between switching circuit and voltage conversion circuit in the port state detection circuit, port status and fault detection are realized, which solves the problem of low detection reliability in the prior art, and improves the accuracy of detection and vehicle safety.

CN223051433UActive Publication Date: 2025-07-01FREETECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421853061.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2025-07-01
Estimated Expiration
2034-08-01

AI Technical Summary

Technical Problem

In the prior art, the port status detection circuit cannot realize its own fault detection, resulting in low reliability of the detection results and poses a risk of vehicle safety.

Method used

A port state detection circuit is designed, including a detection circuit and a signal conversion circuit. Through the on-off state switching of the first switching circuit and the second switching circuit, the port state detection mode and the fault detection mode are switched, and the voltage conversion circuit and the voltage divider circuit are used to generate an accurate voltage signal, and the state signal is generated in combination with the comparison circuit to ensure the reliability of detection.

Benefits of technology

It improves the reliability of the port state detection circuit, avoids erroneous instructions caused by inability to self-detection, and enhances the safety and reliability of the entire vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN223051433U_ABST
    Figure CN223051433U_ABST
Patent Text Reader

Abstract

The utility model relates to a port state detection circuit and a port state detection system. The port state detection circuit comprises a detection circuit and a signal conversion circuit. The signal conversion circuit comprises a first switch circuit, a second switch circuit and a voltage conversion circuit. The first end of the first switching circuit is used for receiving a first control signal for switching a state detection mode and switching on or off the first switching circuit; and the first end of the second switching circuit is used for receiving a second control signal for switching the state detection mode and switching on or switching off the second switching circuit. On the basis of the on-off states of the first switch circuit and the second switch circuit, switching between the port state detection mode and the fault detection mode of the port state detection circuit can be realized, so that the problem of poor reliability of the port state detection result caused by the fact that the port state detection circuit cannot realize self fault detection can be avoided, and the reliability of the port state detection result is improved. And the reliability of the port state detection circuit is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of detection circuits, and particularly to a port status detection circuit and a port status detection system. Background Art

[0002] Currently, in automotive applications, the vehicle needs to identify the port status of many components to distinguish the locations of the components, such as automotive corner radars, automotive headlights, etc.; the components have the same circuit design, and only by connecting different states through the connector ports, such as floating, grounded, and powered, the controller can identify the corresponding states and determine the locations of the components, and then issue corresponding instructions; it can be seen that ensuring accurate and reliable detection of the port status of components to accurately determine their locations and send corresponding instructions is crucial for the safety of the entire vehicle.

[0003] In the prior art, the port status detection circuit usually cannot perform self-fault detection, and there is a risk of misidentifying the location of the component in actual applications, resulting in the vehicle issuing incorrect instructions and the component executing incorrect instructions, leading to low safety of the entire vehicle and safety risks; that is, the reliability of the port status detection circuit in the prior art is relatively low.

[0004] In view of the problem of relatively low reliability of the port status detection circuit in the prior art, no effective solution has been proposed yet. Summary of the Utility Model

[0005] Based on this, in view of the above technical problems, it is necessary to provide a port status detection circuit and a port status detection system.

[0006] In a first aspect, this application provides a port status detection circuit. The port status detection circuit includes a detection circuit and a signal conversion circuit. The connector port is electrically connected to the input end of the signal conversion circuit, and the output end of the signal conversion circuit is electrically connected to the input end of the detection circuit; the signal conversion circuit includes a first switch circuit, a second switch circuit, and a voltage conversion circuit, where:

[0007] The first end of the voltage conversion circuit is connected to the connector port, the second end of the voltage conversion circuit is connected to a first power supply, the third end of the voltage conversion circuit is grounded, and the fourth end of the voltage conversion circuit is connected to the input end of the detection circuit;

[0008] The first end of the first switch circuit is used to receive a first control signal for switching the state detection mode to turn on or off the first switch circuit. The second end of the first switch circuit is connected to a first power supply, and the third end of the first switch circuit is connected to the second end of the second switch circuit through the connection point between the fourth end of the voltage conversion circuit and the input end of the detection circuit;

[0009] The first terminal of the second switch circuit is configured to receive a second control signal for switching the state detection mode, to turn on or off the second switch circuit, and the third terminal of the second switch circuit is grounded.

[0010] In one embodiment, the first switch circuit includes a first switching transistor; the second switch circuit includes a second switching transistor;

[0011] The gate of the first switching transistor is connected to the first control signal, the drain of the first switching transistor is connected to a first power supply, and the source of the first switching transistor is connected to the drain of the second switching transistor through the connection point between the fourth terminal of the voltage conversion circuit and the input terminal of the detection circuit;

[0012] The gate of the second switching transistor is connected to the second control signal, and the source of the second switching transistor is grounded.

[0013] In one embodiment, the first switching transistor is an N-type MOS transistor, and the second switching transistor is an N-type MOS transistor.

[0014] In one embodiment, the voltage conversion circuit includes a first voltage dividing circuit and a port protection circuit;

[0015] The first terminal of the first voltage dividing circuit is connected to the connector port, the second terminal of the first voltage dividing circuit is connected to a first power supply, the third terminal of the first voltage dividing circuit is grounded, and the fourth terminal of the first voltage dividing circuit is connected to the input terminal of the detection circuit through the connection point between the third terminal of the first switch circuit and the second terminal of the second switch circuit;

[0016] One end of the port protection circuit is connected to the line connecting the first terminal of the first voltage dividing circuit and the connector port, and the other end of the port protection circuit is grounded.

[0017] In one embodiment, the first voltage dividing circuit includes a first resistor, a second resistor, and a third resistor;

[0018] One end of the first resistor is connected to a first power supply, and the other end of the first resistor is connected to one end of the second resistor; the other end of the second resistor is grounded;

[0019] One end of the third resistor is connected to the connection point between the first resistor and the second resistor, and the other end of the third resistor is connected to the input terminal of the detection circuit through the connection point between the third terminal of the first switch circuit and the second terminal of the second switch circuit;

[0020] The connector port is connected to the connection point between the first resistor and the second resistor.

[0021] In one embodiment, the port protection circuit includes a capacitor and a diode;

[0022] One end of the capacitor is connected to the line between the connection point of the first resistor and the second resistor and the connector port, and the other end of the capacitor is grounded;

[0023] One end of the diode is connected to the line between the connection point of the first resistor and the second resistor and the connector port, and the other end of the diode is grounded.

[0024] In one embodiment, the detection circuit includes a second voltage dividing circuit and a comparison circuit;

[0025] The first end of the second voltage dividing circuit is connected to the reference end of the comparison circuit, the second end of the second voltage dividing circuit is connected to a second power supply, and the third end of the second voltage dividing circuit is grounded;

[0026] The input end of the comparison circuit is connected to the output end of the signal conversion circuit, and the output end of the comparison circuit is used to output a status signal.

[0027] In one embodiment, the second voltage dividing circuit includes a fourth resistor, a fifth resistor, and a sixth resistor;

[0028] One end of the fourth resistor is connected to the second power supply, and the other end of the fourth resistor is connected to the fifth resistor;

[0029] The other end of the fifth resistor is connected to one end of the sixth resistor; the other end of the sixth resistor is grounded.

[0030] In one embodiment, the comparison circuit includes a first comparator and a second comparator;

[0031] The inverting input end of the first comparator is connected to the connection point of the fourth resistor and the fifth resistor, and the non-inverting input end of the first comparator is connected to the non-inverting input end of the second comparator; the output end of the first comparator is used to output a first status signal;

[0032] The inverting input end of the second comparator is connected to the connection point of the fifth resistor and the sixth resistor, and the non-inverting input end of the second comparator is connected to the output end of the signal conversion circuit; the output end of the second comparator is used to output a second status signal.

[0033] Second aspect, the present application also provides a port status detection system, which includes the port status detection circuit described in any one of the embodiments of the first aspect above, and a control component connected to the port status detection circuit; the control component is used to generate a first control signal and a second control signal for switching the status detection mode.

[0034] For the above port status detection circuit and port status detection system, by setting a first switch circuit and a second switch circuit in the signal conversion circuit, and receiving the first control signal for switching the status detection mode at the first end of the first switch circuit, and receiving the second control signal for switching the status detection mode at the first end of the second switch circuit; based on the first control signal and the second control signal for switching the status detection mode, the on-off states of the first switch circuit and the second switch circuit can be accurately controlled, and further, based on the on-off states of the first switch circuit and the second switch circuit, the switching of the working mode of the end status detection circuit can be realized, that is, when the on-off states of the first switch circuit and the second switch circuit are the same and both are in the off state, the status detection of the connector port can be realized; when the on-off states of the first switch circuit and the second switch circuit are opposite, the self-fault detection can be realized; based on this, the problem that the reliability of the port status detection result is poor due to the inability of the port status detection circuit to perform self-fault detection can be avoided, and the reliability of the port status detection circuit is effectively improved. Description of the Drawings

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0036] Figure 1 It is the overall structure diagram of the port status detection circuit in one embodiment;

[0037] Figure 2 It is the schematic diagram of the first switch circuit and the second switch circuit in one embodiment;

[0038] Figure 3 It is the overall structure diagram of the port status detection circuit in another embodiment;

[0039] Figure 4 It is the schematic diagram of the voltage conversion circuit in one embodiment;

[0040] Figure 5 It is the overall structure diagram of the port status detection circuit in another embodiment;

[0041] Figure 6It is the schematic diagram of the detection circuit in an embodiment;

[0042] Figure 7 It is the schematic diagram of the port status detection circuit in a specific embodiment.

[0043] Description of the reference numerals:

[0044] 100, detection circuit; 110, second voltage dividing circuit; 120, comparison circuit; 200, signal conversion circuit; 210, first switch circuit; 220, second switch circuit; 230, voltage conversion circuit; 231, first voltage dividing circuit; 232, port protection circuit; 300, connector port. Detailed implementation manners

[0045] For ease of understanding the present application, the present application will be described more comprehensively below with reference to the relevant drawings. Embodiments of the present application are shown in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided so that the disclosure of the present application is thorough and comprehensive.

[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used in the specification of this application herein are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0047] It can be understood that the terms "first", "second", etc. used in this application can be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of this application, the first resistor can be called the second resistor, and similarly, the second resistor can be called the first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0048] It can be understood that "connection" in the following embodiments should be understood as "electrical connection", "communication connection", etc. if there is an electrical signal or data transfer between the connected circuits, modules, units, etc.

[0049] It can be understood that "at least one" means one or more, and "a plurality" means two or more. "At least part of an element" means part or all of the element.

[0050] As used herein, the singular forms "a", "an" and "the" may also include the plural forms unless the context clearly dictates otherwise. It should also be understood that the terms "comprises / comprising" or "has / including" etc. specify the presence of the stated features, integers, steps, operations, components, parts or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the related listed items.

[0051] In one embodiment, as Figure 1 shown, Figure 1 FIG. 1 is an overall structural diagram of a port status detection circuit in an embodiment; the port status detection circuit includes a detection circuit 100 and a signal conversion circuit 200. A connector port 300 is electrically connected to the input end of the signal conversion circuit 200, and the output end of the signal conversion circuit 200 is electrically connected to the input end of the detection circuit 100; the signal conversion circuit 200 includes a first switch circuit 210, a second switch circuit 220, and a voltage conversion circuit 230, where:

[0052] The first end of the voltage conversion circuit 230 is connected to the connector port 300, the second end of the voltage conversion circuit 230 is connected to a first power supply Power1, the third end of the voltage conversion circuit 230 is grounded, and the fourth end of the voltage conversion circuit 230 is connected to the input end of the detection circuit 100;

[0053] The first end of the first switch circuit 210 is used to receive a first control signal for switching the state detection mode to turn on or off the first switch circuit 210. The second end of the first switch circuit 210 is connected to the first power supply Power1, and the third end of the first switch circuit 210 is connected to the second end of the second switch circuit 220 through a connection point between the fourth end of the voltage conversion circuit 230 and the input end of the detection circuit 100;

[0054] The first end of the second switch circuit 220 is used to receive a second control signal for switching the state detection mode to turn on or off the second switch circuit 220, and the third end of the second switch circuit 220 is grounded.

[0055] Among them, the port status of the connector port 300 includes a floating state, a grounded state, and a power-connected state.

[0056] Among them, the signal conversion circuit 200 includes a first switch circuit 210, a second switch circuit 220, and a voltage conversion circuit 230. Among them, both the first switch circuit 210 and the second switch circuit 220 have conduction characteristics. The states of the first switch circuit 210 include a conduction state and a cutoff state. The states of the second switch circuit 220 include a conduction state and a cutoff state. It should be noted that the conduction or cutoff state of the first switch circuit 210 is controlled by a first control signal for state detection mode switching. The conduction or cutoff state of the second switch circuit 220 is controlled by a second control signal for state detection mode switching. Optionally, in an exemplary embodiment, when the first control signal for state detection mode switching is a low-level signal, the first switch circuit 210 is in the cutoff state. When the first control signal for state detection mode switching is a high-level signal, the first switch circuit 210 is in the conduction state. When the second control signal for state detection mode switching is a low-level signal, the second switch circuit 220 is in the cutoff state. When the second control signal for state detection mode switching is a high-level signal, the second switch circuit 220 is in the conduction state. The voltage conversion circuit 230 is used to convert the port states of the connector port 300, namely the floating state, the grounded state, and the powered state, into corresponding voltage signals. It should be noted that the first control signal for state detection mode switching and the second control signal for state detection mode switching are generated by a control component. The first control signal for state detection mode switching is transmitted to the first switch circuit 210 through the control component port IO1. The second control signal for state detection mode switching is transmitted to the second switch circuit 220 through the control component port IO2. Among them, the control component can be but is not limited to one of an MCU (Microcontroller Unit) and an SOC (System-on-Chip).

[0057] It should be noted that based on the conduction characteristics of the first switch circuit 210 and the second switch circuit 220, the working mode of the port state detection circuit can be determined. Among them, the working modes of the port state detection circuit include the port state detection mode and the fault detection mode. Optionally, in an exemplary embodiment, when both the first switch circuit 210 and the second switch circuit 220 are in the cutoff state, the port state detection circuit is in the port state detection mode. When the first switch circuit 210 is in the cutoff state and the second switch circuit 220 is in the conduction state, or when the first switch circuit 210 is in the conduction state and the second switch circuit 220 is in the cutoff state, the port state detection circuit is in the fault detection mode.

[0058] Among them, the detection circuit 100 is used to generate a corresponding status signal according to the voltage signal output by the voltage conversion circuit 230. Among them, the status signal can be but is not limited to being represented by a combination of high and low levels. It can be understood that multiple status signals can be obtained through the combination of high and low levels. For example, the status signal can be "00", "01", "11", etc. Among them, "0" represents a low level and "1" represents a high level. Optionally, in an exemplary embodiment, taking the port status detection circuit as the port status detection mode as an example for illustration, it is assumed that the status signal "00" represents that the port status is a grounded state; the status signal "01" represents that the port status is a floating state; the status signal "11" represents that the port status is a power-connected state; based on the port status detection circuit to detect the port status of the connector port 300, if the generated status signal is "01", it can be determined that the connector port 300 is in a floating state; if the generated status signal is "00", it can be determined that the connector port 300 is in a grounded state; if the generated status signal is "11", it can be determined that the connector port 300 is in a power-connected state. It should be noted that the detection circuit 100 generates the status signal according to the voltage signal output by the voltage conversion circuit 230. The method can be that the detection circuit 100 compares the voltage signal output by the voltage conversion circuit 230 with the reference comparison voltage inside the detection circuit 100, generates a corresponding level signal according to the comparison result, and uses the generated level signal as the status signal; among them, the reference comparison voltage inside the detection circuit 100 needs to be set according to the actual detection requirements and is not specifically limited here.

[0059] It should be noted that the voltage of the first power supply Power1 needs to be set according to the actual port status detection requirements and fault detection requirements and is not specifically limited here; preferably, the voltage of the first power supply Power1 is 12V.

[0060] Exemplarily, when the first control signal is a low-level signal and the second control signal is a low-level signal, both the first switch circuit 210 and the second switch circuit 220 are in an off state, and the port status detection circuit is in the port status detection mode. At this time, the voltage conversion circuit 230 can convert the port status of the connector port 300, namely the floating state, the grounded state, and the powered state, into corresponding voltage signals and transmit them to the detection circuit 100; the detection circuit 100 generates corresponding status signals according to the received voltage signals; for example, assuming that the voltage of the first power supply Power1 is 12V, if the connector port 300 is in the floating state, through the voltage conversion circuit 230, the floating state of the connector port 300 can be converted into a 6V voltage signal. At this time, the detection circuit 100 generates a status signal of "01" according to the 6V voltage signal; if the connector port 300 is in the grounded state, through the voltage conversion circuit 230, the grounded state of the connector port 300 can be converted into a 0V voltage signal. At this time, the detection circuit 100 generates a status signal of "00" according to the 0V voltage signal; if the connector port 300 is in the powered state, through the voltage conversion circuit 230, the powered state of the connector port 300 can be converted into a 12V voltage signal. At this time, the detection circuit 100 generates a status signal of "11" according to the 12V voltage signal.

[0061] Exemplarily, when the first control signal is a low-level signal and the second control signal is a high-level signal, the first switch circuit 210 is in an off state, the second switch circuit 220 is in an on state, and the port status detection circuit is in a fault detection mode. At this time, the signal conversion circuit 200 outputs a corresponding voltage signal to the detection circuit 100, and the detection circuit 100 generates a corresponding status signal according to the voltage signal. For example, assuming that the voltage of the first power supply Power1 is 12V, when the first switch circuit 210 is in an off state and the second switch circuit 220 is in an on state, the signal conversion circuit 200 will output a 0V voltage signal to the detection circuit 100. If the status signal generated by the detection circuit 100 according to the 0V voltage signal is "00", it indicates that the low-level signal output of the detection circuit 100 is normal; otherwise, it indicates that there is a fault in the low-level signal output of the detection circuit 100. Similarly, when the first control signal is a high-level signal and the second control signal is a low-level signal, the first switch circuit 210 is in an on state, the second switch circuit 220 is in an off state, and the port status detection circuit is in a fault detection mode. At this time, the signal conversion circuit 200 outputs a corresponding voltage signal to the detection circuit 100, and the detection circuit 100 generates a corresponding status signal according to the voltage signal. For example, assuming that the voltage of the first power supply Power1 is 12V, when the first switch circuit 210 is in an on state and the second switch circuit 220 is in an off state, the signal conversion circuit 200 will output a 12V voltage signal to the detection circuit 100. If the status signal generated by the detection circuit 100 according to the 12V voltage signal is "11", it indicates that the high-level signal output of the detection circuit 100 is normal; otherwise, it indicates that there is a fault in the high-level signal output of the detection circuit 100.

[0062] In this embodiment, based on the first control signal and the second control signal for switching the state detection mode, the on-off states of the first switch circuit and the second switch circuit can be accurately controlled. Furthermore, based on the on-off states of the first switch circuit 210 and the second switch circuit 220, the working mode of the port status detection circuit can be switched. That is, when both the first switch circuit 210 and the second switch circuit 220 are in an off state, the port status detection circuit is in a port status detection mode for implementing the port status detection of the connector port 300; when the first switch circuit 210 is in an off state and the second switch circuit 220 is in an on state, or when the first switch circuit 210 is in an on state and the second switch circuit 220 is in an off state, the port status detection circuit is in a fault detection mode for implementing the fault detection of the detection circuit 100. Based on this, the problem that the reliability of the port status detection result is poor due to the inability of the port status detection circuit to perform its own fault detection can be avoided, effectively improving the reliability of the port status detection circuit.

[0063] In one embodiment, refer to Figure 2, the first switch circuit 210 includes a first switching transistor Q1; the second switch circuit 220 includes a second switching transistor Q2;

[0064] The gate of the first switching transistor Q1 is connected to a first control signal, the drain of the first switching transistor Q1 is connected to a first power supply Power1, and the source of the first switching transistor Q1 is connected to the drain of the second switching transistor Q2 through the connection point of the fourth terminal of the voltage conversion circuit 230 and the input terminal of the detection circuit 100;

[0065] The gate of the second switching transistor Q2 is connected to a second control signal, and the source of the second switching transistor Q2 is grounded.

[0066] Preferably, the first switching transistor Q1 is an N-type MOS transistor, and the second switching transistor Q2 is an N-type MOS transistor.

[0067] Among them, the first switching transistor Q1 has a conduction characteristic; the state of the first switching transistor Q1 includes a conduction state and a cut-off state; when the first switching transistor Q1 is an N-type MOS transistor, if the gate voltage of the first switching transistor Q1 is greater than the source voltage of the first switching transistor Q1, the first switching transistor Q1 is in a conduction state; otherwise, the first switching transistor Q1 is in a cut-off state. The second switching transistor Q2 has a conduction characteristic; the state of the second switching transistor Q2 includes a conduction state and a cut-off state; when the second switching transistor Q2 is an N-type MOS transistor, if the gate voltage of the second switching transistor Q2 is greater than the source voltage of the second switching transistor Q2, the second switching transistor Q2 is in a conduction state; otherwise, the second switching transistor Q2 is in a cut-off state.

[0068] Exemplarily, when the first control signal is a low-level signal and the second control signal is a low-level signal, both the first switching transistor Q1 and the second switching transistor Q2 are in a cut-off state, and the port state detection circuit is in a port state detection mode, and at this time, it is used to detect the port state of the connector port 300; when the first control signal is a low-level signal and the second control signal is a high-level signal, the first switching transistor Q1 is in a cut-off state, and the second switching transistor Q2 is in a conduction state, and the port state detection circuit is in a fault detection mode, and at this time, it is used to detect whether the low-level signal output of the detection circuit 100 is normal; when the first control signal is a high-level signal and the second control signal is a low-level signal, the first switching transistor Q1 is in a conduction state, and the second switching transistor Q2 is in a cut-off state, and the port state detection circuit is in a fault detection mode, and at this time, it is used to detect whether the high-level signal output of the detection circuit 100 is normal.

[0069] In this embodiment, based on the first control signal and the second control signal, the on-off states of the first switching transistor Q1 and the second switching transistor Q2 can be accurately controlled. Furthermore, based on the on-off states of the first switching transistor Q1 and the second switching transistor Q2, the port state detection circuit can be controlled to switch between different operating modes, so as to implement the port state detection of the connector port 300 and the fault detection of the detection circuit 100, laying a foundation for improving the reliability of the port state detection circuit.

[0070] In one embodiment, as Figure 3 shown, Figure 3 FIG. is the overall structure diagram of the port state detection circuit in another embodiment; the voltage conversion circuit 230 includes a first voltage dividing circuit 231 and a port protection circuit 232;

[0071] The first end of the first voltage dividing circuit 231 is connected to the connector port 300, the second end of the first voltage dividing circuit 231 is connected to the first power supply Power1, the third end of the first voltage dividing circuit 231 is grounded, and the fourth end of the first voltage dividing circuit 231 is connected to the input end of the detection circuit 100 through the connection point of the third end of the first switching circuit 210 and the second end of the second switching circuit 220;

[0072] One end of the port protection circuit 232 is connected to the line connecting the first end of the first voltage dividing circuit 231 and the connector port 300, and the other end of the port protection circuit 232 is grounded.

[0073] Among them, the first voltage dividing circuit 231 is used to perform voltage division processing on the first power supply Power1 according to the first power supply Power1 and the port state of the connector port 300 to generate a corresponding voltage signal. The port protection circuit 232 is used to prevent the internal devices of the port state detection circuit from being damaged by static electricity and pulse voltage, so as to ensure the safety of the port state detection circuit.

[0074] Exemplarily, when both the first control signal and the second control signal are low-level signals, both the first switch circuit 210 and the second switch circuit 220 are in the off state. At this time, when the connector port 300 is in the floating state, the first power supply Power1 flows to the ground through the first voltage-dividing circuit 231. The first voltage-dividing circuit 231 divides the voltage of the first power supply Power1 and outputs the divided voltage signal through the fourth terminal of the first voltage-dividing circuit 231; when the connector port 300 is in the grounded state, the first terminal of the first voltage-dividing circuit 231 is grounded. At this time, the voltage at the fourth terminal of the first voltage-dividing circuit 231 is equal to the voltage at the first terminal of the first voltage-dividing circuit 231, that is, the voltage at the fourth terminal of the first voltage-dividing circuit 231 is 0V; when the connector port 300 is in the power-connected state and the voltage of the connector port 300 is equal to the voltage of the first power supply Power1, the voltage at the first terminal of the first voltage-dividing circuit 231 is equal to the voltage of the first power supply Power1. At this time, the voltage at the fourth terminal of the first voltage-dividing circuit 231 is equal to the voltage at the first terminal of the first voltage-dividing circuit 231 and is equal to the voltage of the first power supply Power1.

[0075] In this embodiment, based on the first voltage-dividing circuit 231, a corresponding voltage signal can be generated according to the port state of the connector port 300, laying a foundation for accurately detecting the port state of the connector port 300; based on the port protection circuit 232, the risk of internal components of the port state detection circuit being damaged by static electricity and pulse voltage can be avoided, laying a foundation for improving the safety and reliability of the port state detection circuit.

[0076] In one embodiment, referring to Figure 4 , the first voltage-dividing circuit 231 includes a first resistor R1, a second resistor R2, and a third resistor R3;

[0077] One end of the first resistor R1 is connected to the first power supply Power1, and the other end of the first resistor R1 is connected to one end of the second resistor R2; the other end of the second resistor R2 is grounded;

[0078] One end of the third resistor R3 is connected to the connection point of the first resistor R1 and the second resistor R2, and the other end of the third resistor R3 is connected to the input end of the detection circuit 100 through the connection point of the third terminal of the first switch circuit 210 and the second terminal of the second switch circuit 220;

[0079] The connector port 300 is connected to the connection point of the first resistor R1 and the second resistor R2.

[0080] Among them, the first resistor R1 is a voltage-dividing resistor; the second resistor R2 is a voltage-dividing resistor; the third resistor R3 is a current-limiting resistor; preferably, the resistance value of the first resistor R1 is equal to the resistance value of the second resistor R2.

[0081] It should be noted that the resistance values of the first resistor R1, the second resistor R2, and the third resistor R3 need to be set according to the actual detection requirements of the port status detection circuit, and no specific limitation is made here.

[0082] Exemplarily, assume that the voltage of the first power supply Power1 is 12V, the resistance value of the first resistor R1 is equal to that of the second resistor R2. Denote the connection point of the first resistor R1 and the second resistor R2 as A, and the connection point of the third terminal of the first switch circuit 210 and the second terminal of the second switch circuit 220 as B; when both the first control signal and the second control signal are low-level signals, both the first switch transistor Q1 and the second switch transistor Q2 are in the off state, and when the port status detection circuit is in the port status detection mode, if the connector port 300 is in a floating state, the first power supply Power1 flows to the ground through the first resistor R1 and the second resistor R2. The first resistor R1 and the second resistor R2 perform voltage division on the first power supply Power1. Since the resistance value of the first resistor R1 is equal to that of the second resistor R2, the voltage at the connection point A is equal to 6V, that is, VA = 6V; and because both the first switch transistor Q1 and the second switch transistor Q2 are in the off state, there is no current flowing through the third resistor R3 at this time. Therefore, the voltage at the connection point B is equal to the voltage at the connection point A, which is 6V, that is, VB = VA = 6V. If the connector port 300 is in a grounded state, the connection point A is grounded, that is, the voltage at the connection point A is equal to 0V, and the first power supply Power1 flows to the ground through the first resistor R1; since both the first switch transistor Q1 and the second switch transistor Q2 are in the off state, there is no current flowing through the third resistor R3 at this time, so the voltage at the connection point B is equal to the voltage at the connection point A, which is 0V. If the connector port 300 is in a power-connected state and the voltage of the connector port 300 is equal to the voltage of the first power supply Power1, which is 12V, the voltage at the connection point A is equal to 12V. Since both the first switch transistor Q1 and the second switch transistor Q2 are in the off state, there is no current flowing through the third resistor R3 at this time, so the voltage at the connection point B is equal to the voltage at the connection point A, which is 12V.

[0083] In this embodiment, based on the first voltage division circuit 231, namely the first resistor R1, the second resistor R2, and the third resistor R3, it is possible to convert the port status of the connector port 300 into a corresponding voltage signal when the port status detection circuit is in the port status detection mode, laying a foundation for accurately detecting the port status of the connector port 300.

[0084] In one embodiment, refer to Figure 4 , the port protection circuit 232 includes a capacitor C1 and a diode D1;

[0085] One end of the capacitor C1 is connected to the line between the connection point of the first resistor R1 and the second resistor R2 and the connector port 300, and the other end of the capacitor C1 is grounded;

[0086] One end of the diode D1 is connected to the line connecting the connection point of the first resistor R1 and the second resistor R2 and the connector port 300, and the other end of the diode D1 is grounded.

[0087] Among them, the capacitor C1 is an electrostatic discharge capacitor; the capacitor C1 is used to prevent the electrostatic energy existing in the connector port 300 from damaging the components in the port state detection circuit; it should be noted that when there is static electricity in the connector port 300, the energy of the static electricity can flow to the ground through the capacitor C1, so the energy of the static electricity will not damage the components in the port state detection circuit.

[0088] Among them, the diode D1 is a TVS transient voltage suppression diode; the diode D1 is used to prevent the pulse voltage existing in the connector port 300 from damaging the components in the port state detection circuit; it should be noted that when the pulse voltage of the connector port 300 is higher than the clamping voltage VCL of the TVS transient voltage suppression diode, the TVS transient voltage suppression diode will clamp the voltage at the connection point of the first resistor R1 and the second resistor R2 at VCL; among them, VCL is a safe voltage for the components in the port state detection circuit.

[0089] In this embodiment, based on the capacitor C1 and the diode D1, it can effectively prevent the electrostatic energy and pulse voltage existing in the connector port 300 from damaging the components in the port state detection circuit, and further improve the reliability and safety of the port state detection circuit.

[0090] In one embodiment, as Figure 5 shown, Figure 5 is the overall structure diagram of the port state detection circuit in another embodiment; the detection circuit 100 includes a second voltage dividing circuit 110 and a comparison circuit 120;

[0091] The first end of the second voltage dividing circuit 110 is connected to the reference end of the comparison circuit 120, the second end of the second voltage dividing circuit 110 is connected to the second power supply Power2, and the third end of the second voltage dividing circuit 110 is grounded;

[0092] The input end of the comparison circuit 120 is connected to the output end of the signal conversion circuit 200, and the output end of the comparison circuit 120 is used to output a status signal.

[0093] Among them, the second voltage dividing circuit 110 is used to perform voltage division processing on the second power supply Power2 to generate a reference comparison voltage and transmit it to the reference end of the comparison circuit 120.

[0094] Among them, the comparison circuit 120 is configured to generate a corresponding status signal according to the reference comparison voltage output by the second voltage division circuit 110 and the voltage signal output by the signal conversion circuit 200. Among them, the status signal includes a first status signal and a second status signal. Among them, the first status signal and the second status signal can be but are not limited to being represented by high and low levels. For example, if the first status signal is a high-level signal, i.e., "1", and the second status signal is a low-level signal, i.e., "0", then the status signal is "10".

[0095] Among them, the voltage of the second power supply Power2 needs to be set according to the actual port status detection requirements and fault detection requirements, and no specific limitation is made here. Preferably, the voltage of the second power supply Power2 is equal to the voltage of the first power supply Power1 and is 12V.

[0096] Exemplarily, when both the first control signal and the second control signal are low-level signals, the first switch circuit 210 and the second switch circuit 220 are both in the off state, and the port status detection circuit is in the port status detection mode. At this time, the signal conversion circuit 200 can convert the port status of the connector port 300, i.e., the floating state, the grounded state, and the power-connected state, into corresponding voltage signals and transmit them to the comparison circuit 120. The comparison circuit 120 generates a corresponding status signal according to the voltage signal output by the signal conversion circuit 200 and the reference comparison voltage output by the second voltage division circuit 110. For example, assuming that the voltage of the first power supply Power1 is equal to the voltage of the second power supply Power2 and is 12V, if the connector port 300 is in the floating state, the signal conversion circuit 200 can convert the floating state of the connector port 300 into a 6V voltage signal. At this time, the comparison circuit 120 generates a status signal of "01" according to the 6V voltage signal and the reference comparison voltage. If the connector port 300 is in the grounded state, the signal conversion circuit 200 can convert the grounded state of the connector port 300 into a 0V voltage signal. At this time, the comparison circuit 120 generates a status signal of "00" according to the 0V voltage signal and the reference comparison voltage. If the connector port 300 is in the power-connected state, the signal conversion circuit 200 can convert the power-connected state of the connector port 300 into a 12V voltage signal. At this time, the comparison circuit 120 generates a status signal of "11" according to the 12V voltage signal and the reference comparison voltage. It can be understood that when the connector port 300 is in the floating state, the corresponding status signal is "01"; when the connector port 300 is in the grounded state, the corresponding status signal is "00"; when the connector port 300 is in the power-connected state, the corresponding status signal is "11".

[0097] Exemplarily, when the first control signal is a low-level signal and the second control signal is a high-level signal, the first switch circuit 210 is in an off state, the second switch circuit 220 is in an on state, and the port status detection circuit is in a fault detection mode. At this time, the signal conversion circuit 200 outputs a corresponding voltage signal to the comparison circuit 120. The comparison circuit 120 generates a corresponding status signal according to the voltage signal output by the signal conversion circuit 200 and the reference comparison voltage output by the second voltage division circuit 110. For example, assume that the voltage of the first power supply Power1 is equal to the voltage of the second power supply Power2, both being 12V. When the first switch circuit 210 is in an off state and the second switch circuit 220 is in an on state, the signal conversion circuit 200 outputs a 0V voltage signal to the comparison circuit 120. If the comparison circuit 120 generates a corresponding status signal of "00" according to the 0V voltage signal and the reference comparison voltage, it indicates that the low-level signal output of the comparison circuit 120 is normal; otherwise, it indicates that there is a fault in the low-level signal output of the comparison circuit 120. Similarly, when the first control signal is a high-level signal and the second control signal is a low-level signal, the first switch circuit 210 is in an on state, the second switch circuit 220 is in an off state, and the port status detection circuit is in a fault detection mode. At this time, the signal conversion circuit 200 outputs a corresponding voltage signal to the comparison circuit 120. The comparison circuit 120 generates a corresponding status signal according to the voltage signal output by the signal conversion circuit 200 and the reference comparison voltage output by the second voltage division circuit 110. For example, assume that the voltage of the first power supply Power1 is equal to the voltage of the second power supply Power2, both being 12V. When the first switch circuit 210 is in an on state and the second switch circuit 220 is in an off state, the signal conversion circuit 200 outputs a 12V voltage signal to the comparison circuit 120. If the comparison circuit 120 generates a corresponding status signal of "11" according to the 12V voltage signal and the reference comparison voltage, it indicates that the high-level signal output of the comparison circuit 120 is normal; otherwise, it indicates that there is a fault in the high-level signal output of the comparison circuit 120.

[0098] In this embodiment, based on the first voltage division circuit, the second power supply Power2 can be voltage-divided to generate a reference comparison voltage and transmit it to the reference terminal of the comparison circuit 120. The comparison circuit 120 can generate a corresponding status signal based on the reference comparison voltage and the voltage signal output by the signal conversion circuit 200. Based on the status signal, the port status detection of the connector port 300 and the fault detection of the comparison circuit 120 can be realized, laying a foundation for improving the reliability of the port status detection circuit.

[0099] In one embodiment, referring to Figure 6 , the second voltage division circuit 110 includes a fourth resistor R4, a fifth resistor R5, and a sixth resistor R6;

[0100] One end of the fourth resistor R4 is connected to the second power supply Power2, and the other end of the fourth resistor R4 is connected to the fifth resistor R5;

[0101] The other end of the fifth resistor R5 is connected to one end of the sixth resistor R6; the other end of the sixth resistor R6 is grounded.

[0102] Among them, the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 are all voltage-dividing resistors; preferably, the resistances of the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 are equal; it should be noted that the resistances of the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 need to be set according to the actual detection requirements of the detection circuit 100, and no specific limitation is made here.

[0103] Preferably, the comparison circuit 120 includes a first comparator U1 and a second comparator U2;

[0104] The inverting input terminal of the first comparator U1 is connected to the connection point of the fourth resistor R4 and the fifth resistor R5, and the non-inverting input terminal of the first comparator U1 is connected to the non-inverting input terminal of the second comparator U2; the output terminal of the first comparator U1 is used to output a first status signal;

[0105] The inverting input terminal of the second comparator U2 is connected to the connection point of the fifth resistor R5 and the sixth resistor R6, and the non-inverting input terminal of the second comparator U2 is connected to the output terminal of the signal conversion circuit 200; the output terminal of the second comparator U2 is used to output a second status signal.

[0106] Among them, the first comparator U1 is used to generate a corresponding first status signal according to the voltage signal output by the signal conversion circuit 200 and the voltage at the connection point of the fourth resistor R4 and the fifth resistor R5. The second comparator U2 is used to generate a corresponding second status signal according to the voltage signal output by the signal conversion circuit 200 and the voltage at the connection point of the fifth resistor R5 and the sixth resistor R6. Among them, the first status signal and the second status signal can be but are not limited to being represented by high and low levels.

[0107] It should be noted that the voltage at the connection point of the fourth resistor R4 and the fifth resistor R5 is greater than the voltage at the connection point of the fifth resistor R5 and the sixth resistor R6. The voltage at the connection point of the fourth resistor R4 and the fifth resistor R5 and the voltage at the connection point of the fifth resistor R5 and the sixth resistor R6 are both reference comparison voltages.

[0108] Exemplarily, assume that the voltage of the first power supply Power1 is equal to the voltage of the second power supply Power2, both being 12V, and the resistances of the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 are equal. It can be obtained that the voltage at the connection point of the fourth resistor R4 and the fifth resistor R5 is equal to 8V, and the voltage at the connection point of the fifth resistor R5 and the sixth resistor R6 is equal to 4V. Taking the port status detection circuit in the port status detection mode and the connector port 300 in the floating state as an example for illustration: When the connector port 300 is in the floating state, the signal conversion circuit 200 outputs a 6V voltage signal and transmits it to the non-inverting input terminals of the first comparator U1 and the second comparator U2 respectively. At this time, the voltage at the non-inverting input terminal of the first comparator U1 is equal to 6V, and the voltage at the inverting input terminal of the first comparator U1 is equal to the voltage at the connection point of the fourth resistor R4 and the fifth resistor R5, which is equal to 8V. Since the voltage at the non-inverting input terminal of the first comparator U1 is less than the voltage at the inverting input terminal, the first comparator U1 generates a first status signal as a low-level signal, that is, "0"; the voltage at the non-inverting input terminal of the second comparator U2 is equal to 6V, and the voltage at the inverting input terminal of the second comparator U2 is equal to the voltage at the connection point of the fifth resistor R5 and the sixth resistor R6, which is equal to 4V; since the voltage at the non-inverting input terminal of the second comparator U2 is greater than the voltage at the inverting input terminal, the second comparator U2 generates a second status signal as a high-level signal, that is, "1"; it should be noted that the first status signal, that is, "0", is fed back to the control component through the control component port IO3, and the second status signal, that is, "1", is fed back to the control component through the control component port IO4. Similarly, when the port status detection circuit is in the port status detection mode and the connector port 300 is in the grounded state and the powered state, the generation principles of the first status signal and the second status signal are the same as those in the above embodiments and will not be elaborated here. When the port status detection circuit is in the fault detection mode, the generation principles of the first status signal and the second status signal are the same as those in the above embodiments and will not be elaborated here.

[0109] In this embodiment, based on the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6, corresponding voltages can be provided for the inverting input terminals of the first comparator U1 and the second comparator U2 respectively. Furthermore, based on the magnitude relationship between the voltage at the inverting input terminal and the voltage at the non-inverting input terminal, corresponding status signals can be generated. Based on this, port status detection and fault detection can be achieved, improving the reliability of the port status detection circuit.

[0110] In a specific embodiment, refer to Figure 7, a port status detection circuit is provided. The port status detection circuit includes a detection circuit 100 and a signal conversion circuit 200. A connector port 300 is electrically connected to the input end of the signal conversion circuit 200, and the output end of the signal conversion circuit 200 is electrically connected to the input end of the detection circuit 100. The signal conversion circuit 200 includes a first switch circuit 210, a second switch circuit 220, and a voltage conversion circuit 230. Among them, the first switch circuit 210 includes a first switching transistor Q1; the second switch circuit 220 includes a second switching transistor Q2; the voltage conversion circuit 230 includes a first voltage dividing circuit 231 and a port protection circuit 232. Among them, the first voltage dividing circuit 231 includes a first resistor R1, a second resistor R2, and a third resistor R3; the port protection circuit 232 includes a capacitor C1 and a diode D1; the detection circuit 100 includes a second voltage dividing circuit 110 and a comparison circuit 120. Among them, the second voltage dividing circuit 110 includes a fourth resistor R4, a fifth resistor R5, and a sixth resistor R6; the comparison circuit 120 includes a first comparator U1 and a second comparator U2. The specific connections between the components in each of the above circuits can be implemented in the manner described in the above embodiments, and will not be elaborated here.

[0111] Assume that the voltage of the first power supply Power1 is equal to the voltage of the second power supply Power2, both being 12V; the resistance value of the first resistor R1 is equal to the resistance value of the second resistor R2; the resistance values of the fourth resistor R4, the fifth resistor R5, and the sixth resistor R6 are equal.

[0112] When both the first control signal and the second control signal are low-level signals, that is, both port IO1 and port IO2 are at low level, the first switching transistor Q1 and the second switching transistor Q2 are both in the off state, and the port status detection circuit is in the port status detection mode; if the connector port 300 is in the floating state, the first power supply Power1 flows to the ground through the first resistor R1 and the second resistor R2, and the voltage at the connection point A is equal to 6V, that is, VA = 6V; at this time, no current flows through the third resistor R3, so the voltage at the connection point B is equal to the voltage at the connection point A and is equal to 6V, that is, VB = VA = 6V; at this time, the voltage at the non-inverting input terminal of the first comparator U1 is equal to the voltage at the connection point B and is equal to 6V, and the voltage at the inverting input terminal of the first comparator U1 is equal to the voltage at the connection point of the fourth resistor R4 and the fifth resistor R5 and is equal to 8V. Since the voltage at the non-inverting input terminal of the first comparator U1 is less than the voltage at the inverting input terminal, the first comparator U1 generates the first status signal as a low-level signal, that is, "0"; the voltage at the non-inverting input terminal of the second comparator U2 is equal to the voltage at the connection point B and is equal to 6V; the voltage at the inverting input terminal of the second comparator U2 is equal to the voltage at the connection point of the fifth resistor R5 and the sixth resistor R6 and is equal to 4V. Since the voltage at the non-inverting input terminal of the second comparator U2 is greater than the voltage at the inverting input terminal, the second comparator U2 generates the second status signal as a high-level signal, that is, "1"; further, the first status signal, that is, "0", is fed back to the control component through the control component port IO3, and the second status signal, that is, "1", is fed back to the control component through the control component port IO4.

[0113] If the connector port 300 is in the grounded state, the connection point A is grounded, that is, the voltage at the connection point A is equal to 0V, and the first power supply Power1 flows to the ground through the first resistor R1; at this time, no current flows through the third resistor R3, so the voltage at the connection point B is equal to the voltage at the connection point A and is equal to 0V; at this time, the voltage at the non-inverting input terminal of the first comparator U1 is equal to the voltage at the connection point B and is equal to 0V, and the voltage at the inverting input terminal of the first comparator U1 is equal to the voltage at the connection point of the fourth resistor R4 and the fifth resistor R5 and is equal to 8V. Since the voltage at the non-inverting input terminal of the first comparator U1 is less than the voltage at the inverting input terminal, the first comparator U1 generates the first status signal as a low-level signal, that is, "0"; the voltage at the non-inverting input terminal of the second comparator U2 is equal to the voltage at the connection point B and is equal to 0V; the voltage at the inverting input terminal of the second comparator U2 is equal to the voltage at the connection point of the fifth resistor R5 and the sixth resistor R6 and is equal to 4V. Since the voltage at the non-inverting input terminal of the second comparator U2 is less than the voltage at the inverting input terminal, the second comparator U2 generates the second status signal as a high-level signal, that is, "0"; further, the first status signal, that is, "0", is fed back to the control component through the control component port IO3, and the second status signal, that is, "0", is fed back to the control component through the control component port IO4.

[0114] If the connector port 300 is in the power - connected state and the voltage of the connector port 300 is equal to the voltage of the first power source Power1 which is 12V, the voltage of connection point A is 12V. At this time, no current flows through the third resistor R3, so the voltage of connection point B is equal to the voltage of connection point A, which is 12V. At this time, the voltage of the non - inverting input terminal of the first comparator U1 is equal to the voltage of connection point B, which is 12V, and the voltage of the inverting input terminal of the first comparator U1 is equal to the voltage of the connection point of the fourth resistor R4 and the fifth resistor R5, which is 8V. Since the voltage of the non - inverting input terminal of the first comparator U1 is greater than the voltage of the inverting input terminal, the first comparator U1 generates a first status signal which is a low - level signal, that is, "0"; the voltage of the non - inverting input terminal of the second comparator U2 is equal to the voltage of connection point B, which is 12V; the voltage of the inverting input terminal of the second comparator U2 is equal to the voltage of the connection point of the fifth resistor R5 and the sixth resistor R6, which is 4V. Since the voltage of the non - inverting input terminal of the second comparator U2 is greater than the voltage of the inverting input terminal, the second comparator U2 generates a second status signal which is a high - level signal, that is, "1"; further, the first status signal, that is, "0", is fed back to the control component through the control component port IO3, and the second status signal, that is, "1", is fed back to the control component through the control component port IO4.

[0115] When the first control signal is a low - level signal and the second control signal is a high - level signal, that is, port IO1 is at a low level and port IO2 is at a high level, the first switching transistor Q1 is in the off state, the second switching transistor Q2 is in the on state, and the port status detection circuit is in the fault detection mode; connection point B is grounded through the second switching transistor Q2, that is, the voltage of connection point B is 0V. If the first status signal generated by the first comparator U1 is "0" and the second status signal generated by the second comparator U2 is "0", it indicates that the low - level signal output of the detection circuit 100 is normal; otherwise, it indicates that there is a fault in the low - level signal output of the detection circuit 100.

[0116] When the first control signal is a high - level signal and the second control signal is a low - level signal, that is, port IO1 is at a high level and port IO2 is at a low level, the first switching transistor Q1 is in the on state, the second switching transistor Q2 is in the off state, and the port status detection circuit is in the fault detection mode; the first power source Power1 flows through the first switching transistor Q1 to the non - inverting input terminals of the first comparator U1 and the second comparator U2. At this time, the voltages of the non - inverting input terminals of the first comparator U1 and the second comparator U2 are both 12V. If the first status signal generated by the first comparator U1 is "1" and the second status signal generated by the second comparator U2 is "1", it indicates that the high - level signal output of the detection circuit 100 is normal; otherwise, it indicates that there is a fault in the high - level signal output of the detection circuit 100.

[0117] In an exemplary embodiment, an application scenario based on the above port status detection circuit is provided. In the application of automotive corner radars, usually four states are formed by respectively leaving two connector ports of a radar product floating or grounded to represent the positions of four corner radars, namely the left front, left rear, right front, and right rear radars. Assume that both connector port 1 and connector port 2 are in the grounded state, representing the left front radar; connector port 1 is in the grounded state and connector port 2 is in the floating state, representing the left rear radar; connector port 1 is in the floating state and connector port 2 is in the grounded state, representing the right front radar; both connector port 1 and connector port 2 are in the floating state, representing the right rear radar.

[0118] Based on Figure 7 the port status detection circuit in, the port status detection of connector port 1 and connector port 2 can be respectively realized. Specifically, if both connector port 1 and connector port 2 are in the grounded state, the status signal generated by the port status detection circuit corresponding to connector port 1 is "00", and the status signal generated by the port status detection circuit corresponding to connector port 2 is "00". At this time, the status signal "00" corresponding to connector port 1 and the status signal "00" corresponding to connector port 2 are fed back to the control component, and the control component can identify that the radars connected to connector port 1 and connector port 2 are the left front radars. If connector port 1 is in the grounded state and connector port 2 is in the floating state, the status signal generated by the port status detection circuit corresponding to connector port 1 is "00", and the status signal generated by the port status detection circuit corresponding to connector port 2 is "01". The status signal "00" corresponding to connector port 1 and the status signal "01" corresponding to connector port 2 are fed back to the control component, and the control component can identify that the radars connected to connector port 1 and connector port 2 are the left rear radars; similarly, the right front radar and the right rear radar can be identified according to the above implementation method, which will not be elaborated here.

[0119] The above port status detection circuit, based on the first control signal and the second control signal for state detection mode switching, can accurately control the on / off states of the first switch circuit and the second switch circuit. Furthermore, based on the on / off states of the first switch circuit 210 and the second switch circuit 220, the working mode of the port status detection circuit can be switched. That is, when the first switch circuit 210 is in the off state and the second switch circuit 220 is in the off state, the port status detection circuit is in the port status detection mode for implementing the port status detection of the connector port 300; when the first switch circuit 210 is in the off state and the second switch circuit 220 is in the on state, or the first switch circuit 210 is in the on state and the second switch circuit 220 is in the off state, the port status detection circuit is in the fault detection mode for implementing the fault detection of the detection circuit 100. Based on this, the problem that the reliability of the port status detection result is poor due to the inability of the port status detection circuit to perform its own fault detection can be avoided, effectively improving the reliability of the port status detection circuit.

[0120] In one embodiment, the port status detection system includes the port status detection circuit in any of the above embodiments, and a control component connected to the port status detection circuit; the control component is used to generate the first control signal and the second control signal for state detection mode switching.

[0121] Among them, the control component can be, but is not limited to, one of an MCU or an SOC, and is used to generate the first control signal and the second control signal for state detection mode switching, and transmit them to the port status detection circuit, and then control the working mode of the port status detection circuit according to the first control signal and the second control signal; the control component is also used to receive the status signal output by the port status detection circuit, and then implement the port status recognition of the connector port 300 based on the status signal, or implement the fault diagnosis of the port status detection circuit.

[0122] In this embodiment, based on the port status detection system, not only can the port status detection of the connector port 300 be realized, but also the fault diagnosis of the port status detection circuit can be realized, improving the reliability of the port status detection system.

[0123] In the description of this specification, the descriptions referring to terms such as "some embodiments" and "other embodiments" mean that the specific features, structures, materials or features described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

[0124] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.

[0125] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims

1. A port status detection circuit, characterized in that: The port status detection circuit includes a detection circuit and a signal conversion circuit, the connector port is electrically connected to the input end of the signal conversion circuit, and the output end of the signal conversion circuit is electrically connected to the input end of the detection circuit; the signal conversion circuit includes a first switch circuit, a second switch circuit and a voltage conversion circuit, wherein: A first end of the voltage conversion circuit is connected to the connector port, a second end of the voltage conversion circuit is connected to a first power source, a third end of the voltage conversion circuit is grounded, and a fourth end of the voltage conversion circuit is connected to an input end of the detection circuit; The first end of the first switch circuit is used to receive a first control signal for switching the state detection mode, and turn on or off the first switch circuit, the second end of the first switch circuit is connected to a first power supply, and the third end of the first switch circuit is connected to the second end of the second switch circuit via a connection point between the fourth end of the voltage conversion circuit and the input end of the detection circuit; The first end of the second switch circuit is used to receive a second control signal for switching the state detection mode to turn on or off the second switch circuit, and the third end of the second switch circuit is grounded.

2. The port status detection circuit according to claim 1, characterized in that: The first switch circuit includes a first switch tube; the second switch circuit includes a second switch tube; The gate of the first switch tube is connected to the first control signal, the drain of the first switch tube is connected to the first power supply, and the source of the first switch tube is connected to the drain of the second switch tube via the connection point between the fourth end of the voltage conversion circuit and the input end of the detection circuit; The gate of the second switch tube is connected to the second control signal, and the source of the second switch tube is grounded.

3. The port status detection circuit according to claim 2, characterized in that: The first switch tube is an N-type MOS tube, and the second switch tube is an N-type MOS tube.

4. The port status detection circuit according to claim 1, characterized in that: The voltage conversion circuit includes a first voltage dividing circuit and a port protection circuit; A first end of the first voltage divider circuit is connected to the connector port, a second end of the first voltage divider circuit is connected to a first power supply, a third end of the first voltage divider circuit is grounded, and a fourth end of the first voltage divider circuit is connected to an input end of the detection circuit via a connection point between the third end of the first switch circuit and the second end of the second switch circuit; One end of the port protection circuit is connected to a connection line between the first end of the first voltage divider circuit and the connector port, and the other end of the port protection circuit is grounded.

5. The port status detection circuit according to claim 4, characterized in that: The first voltage divider circuit includes a first resistor, a second resistor and a third resistor; One end of the first resistor is connected to a first power supply, and the other end of the first resistor is connected to one end of the second resistor; the other end of the second resistor is grounded; One end of the third resistor is connected to a connection point between the first resistor and the second resistor, and the other end of the third resistor is connected to an input end of the detection circuit via a connection point between a third end of the first switch circuit and a second end of the second switch circuit; The connector port is connected to a connection point between the first resistor and the second resistor.

6. The port status detection circuit according to claim 5, characterized in that: The port protection circuit includes a capacitor and a diode; One end of the capacitor is connected to a line connecting a connection point between the first resistor and the second resistor and the connector port, and the other end of the capacitor is grounded; One end of the diode is connected to a connection line between a connection point between the first resistor and the second resistor and the connector port, and the other end of the diode is grounded.

7. The port status detection circuit according to claim 1, characterized in that: The detection circuit includes a second voltage divider circuit and a comparison circuit; A first end of the second voltage divider circuit is connected to a reference end of the comparison circuit, a second end of the second voltage divider circuit is connected to a second power supply, and a third end of the second voltage divider circuit is grounded; The input end of the comparison circuit is connected to the output end of the signal conversion circuit, and the output end of the comparison circuit is used to output a state signal.

8. The port status detection circuit according to claim 7, characterized in that: The second voltage-dividing circuit includes a fourth resistor, a fifth resistor and a sixth resistor; One end of the fourth resistor is connected to the second power supply, and the other end of the fourth resistor is connected to the fifth resistor; The other end of the fifth resistor is connected to one end of the sixth resistor; the other end of the sixth resistor is grounded.

9. The port status detection circuit according to claim 8, characterized in that: The comparison circuit includes a first comparator and a second comparator; The inverting input terminal of the first comparator is connected to the connection point of the fourth resistor and the fifth resistor, and the non-inverting input terminal of the first comparator is connected to the non-inverting input terminal of the second comparator; the output terminal of the first comparator is used to output a first state signal; The inverting input terminal of the second comparator is connected to the connection point of the fifth resistor and the sixth resistor, and the non-inverting input terminal of the second comparator is connected to the output terminal of the signal conversion circuit; the output terminal of the second comparator is used to output a second state signal.

10. A port status detection system, characterized in that: The system comprises the port state detection circuit according to any one of claims 1 to 9, and a control component connected to the port state detection circuit; the control component is used to generate a first control signal and a second control signal for switching a state detection mode.