Switch state detection circuit and method and automobile equipment

By introducing a protection circuit and a main control module into the relay feedback switch status detection circuit, the problem of short-circuit damage is solved, the robustness and accuracy of the detection circuit are improved, and reliable judgment of the relay status is ensured.

CN118625115APending Publication Date: 2024-09-10SUNGIANT AUTOMOTIVE ELECTRONICS CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410709953.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing relay feedback switch status detection circuit is easily damaged in the event of a short circuit and has poor robustness, resulting in inaccurate detection results.

Method used

A switch state detection circuit is designed, including a first resistor, a first state detection circuit, a first protection circuit, a power module, a main control module, a second state detection circuit and a second protection circuit. Through the first protection circuit and the third The second protection circuit implements abnormal protection to prevent short-circuit damage, and collects voltage signals through the main control module to determine the status of the relay feedback switch.

Benefits of technology

It effectively prevents damage to the switch state detection circuit under short circuit conditions, improves the accuracy and robustness of the detection results, and ensures reliable judgment of the relay feedback switch state.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118625115A
    Figure CN118625115A
Patent Text Reader

Abstract

The invention relates to a switch state detection circuit and method and automobile equipment. The switch state detection circuit comprises a first resistor, a first state detection circuit, a first protection circuit, a power supply module, a main control module, a second state detection circuit and a second protection circuit. The first end of a relay feedback switch is connected with the main control module through the first state detection circuit and the first protection circuit in sequence, and the main control module is further connected with the second end of the relay feedback switch through the second state detection circuit and the second protection circuit in sequence. Abnormal protection is realized through the first protection circuit and the second protection circuit, and the switch state detection circuit is prevented from being damaged when the switch state detection circuit is short-circuited.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electric energy control technology, and in particular to a switch state detection circuit, method, and automotive equipment. Background Art

[0002] With the rapid development of the electric vehicle, hybrid vehicle and commercial energy storage industries, relays are increasingly being used in high-voltage control. As an important electrical device in high-voltage circuits, relays need to monitor the on-off status of relays in high-voltage (DC voltage over 60V) electrical devices to confirm whether the relay status is consistent with the actual required status. If the status is inconsistent, a warning signal is issued to inform the driver to prevent safety accidents.

[0003] The traditional method of judging the state of a relay is to measure the voltage at both ends of the relay in different switch states. If the voltage difference between the two ends is large, it is considered to be in an open state. If the voltage at both ends is basically the same, it is considered to be in a closed state. The detected state is then compared with the actual state to determine whether the detected state of the relay is consistent with the actual required state. However, in electric vehicles, due to the presence of the motor, there is a large electrolytic capacitor in the high-voltage system. The residual charge in the electrolytic capacitor will be detected as voltage, thereby affecting the recognition of the relay state. In response to this problem, relay manufacturers have also launched relays with state feedback devices. The feedback switch and the relay itself form a mutually exclusive electrical structure through a mechanical structure, that is, when the relay is closed, the feedback switch is in an open state; when the relay is disconnected, the feedback switch is in a closed state. The confidence in identifying the state of the relay by detecting the state of the feedback switch and combining it with the voltage at both ends of the relay will be higher.

[0004] At present, the common practice is to connect one end of the feedback switch to the reference ground of the detection circuit, and the other end to the power supply of the detection circuit through a resistor and a diode. Although this method is simple, it has poor robustness. When the diode fails, the external short circuit to the power supply will cause damage to the detection circuit. Summary of the invention

[0005] The present application provides a switch state detection circuit, method, and automotive equipment to solve the problem that the detection circuit is damaged when a short circuit occurs in the existing feedback switch state detection circuit.

[0006] In a first aspect, the present application provides a switch state detection circuit, the switch state detection circuit comprising a first resistor, a first state detection circuit, a first protection circuit, a power module, a main control module, a second state detection circuit, and a second protection circuit;

[0007] The first resistor is connected in parallel between the first end and the second end of the relay feedback switch. The first end of the relay feedback switch is connected to the main control module via the first state detection circuit and the first protection circuit in sequence. The first end of the relay feedback switch is also connected to the main control module via the first state detection circuit. The power supply module is respectively connected to the first protection circuit and the main control module. The main control module is also connected to the second end of the relay feedback switch via the second state detection circuit and the second protection circuit in sequence.

[0008] Optionally, the first protection circuit includes a voltage backflow prevention circuit and a first current limiting protection circuit connected in series, the first end of the voltage backflow prevention circuit is connected to the first state detection circuit, and the second end of the voltage backflow prevention circuit is connected to the power supply module and the main control module respectively through the first current limiting protection circuit.

[0009] Optionally, the anti-voltage backflow circuit includes a first diode, the first state detection circuit includes a second resistor and a third resistor, the second resistor and the third resistor are connected in series, the first end of the second resistor is also connected to the cathode of the first diode, the first end of the third resistor is respectively connected to the second end of the second resistor and the main control module, the second end of the third resistor is grounded together with the first current limiting protection circuit, and the anode of the first diode is also connected to the first current limiting protection circuit.

[0010] Optionally, the first current limiting protection circuit includes a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a first triode, a second triode, and a third triode. The base of the first triode is respectively connected to the emitter of the fourth resistor, the fifth resistor, and the second triode, the collector of the first triode is respectively connected to the base of the fifth resistor, the sixth resistor, and the second triode, the emitter of the first triode is connected to the emitter of the second triode through the fourth resistor, the emitter of the first triode is also connected to the positive electrode of the power module, the base of the second triode is also connected to the collector of the third triode through the sixth resistor, the base of the third triode is respectively connected to the first end of the seventh resistor and the first end of the eighth resistor, the second end of the seventh resistor is connected to the main control module, and the second end of the eighth resistor is respectively grounded with the emitter of the third triode and the negative electrode of the power module.

[0011] Optionally, the second protection circuit includes an anti-reverse connection circuit, an overvoltage protection circuit and a second current limiting protection circuit connected in series in sequence, the first end of the anti-reverse connection circuit is connected to the relay feedback switch and the first resistor respectively, and the second end of the anti-reverse connection circuit is connected to the second state detection module in sequence through the overvoltage protection circuit and the second current limiting protection circuit.

[0012] Optionally, the anti-reverse connection circuit includes a second diode, and the overvoltage protection circuit includes a ninth resistor, a tenth resistor, a voltage regulator, and a fourth transistor. The positive electrode of the second diode is respectively connected to the first resistor and the second end of the relay feedback switch, the negative electrode of the second diode is respectively connected to the first end of the ninth resistor, the emitter of the fourth transistor, and the second current limiting protection circuit, the second end of the ninth resistor is respectively connected to the first end of the tenth resistor and the negative electrode of the voltage regulator, the second end of the tenth resistor is connected to the base of the fourth transistor, the positive electrode of the voltage regulator and the second current limiting protection circuit are commonly grounded, and the collector of the fourth transistor is connected to the second current limiting protection circuit.

[0013] Optionally, the second current limiting protection circuit includes an eleventh resistor, a twelfth resistor, a fifth transistor, and a sixth transistor. The first end of the eleventh resistor is respectively connected to the emitter of the fifth transistor, the emitter of the fourth transistor, the first end of the ninth resistor, and the cathode of the second diode. The second end of the eleventh resistor is respectively connected to the emitter of the sixth transistor, the collector of the fourth transistor, and the base of the fifth transistor. The base of the sixth transistor is respectively connected to the collector of the fifth transistor and the first end of the twelfth resistor. The second end of the twelfth resistor is respectively grounded with the second state detection circuit and the voltage regulator.

[0014] Optionally, the second state detection circuit includes a thirteenth resistor, a first end of the thirteenth resistor is respectively connected to the main control module and the collector of the sixth transistor, and a second end of the thirteenth resistor is grounded together with the twelfth resistor.

[0015] In a second aspect, a switch state detection method is provided. The switch state detection method is applied to the above-mentioned switch state detection circuit. The switch state detection method includes:

[0016] When the switch state detection circuit is in a stable state, collecting a first voltage output by a first state detection circuit in the switch state detection circuit through a main control module in the switch state detection circuit;

[0017] The main control module determines the abnormal state of the switch state detection circuit according to the first voltage;

[0018] In the case where the abnormal state is normal, the main control module outputs an enable signal for the first current limiting protection circuit in the switch state detection circuit, and determines the first terminal voltage of the relay feedback switch connected to the switch state detection circuit after waiting for a preset time;

[0019] When the voltage at the first terminal of the relay feedback switch is within the first preset voltage range, the main control module collects a second voltage output by the second state detection circuit in the switch state detection circuit;

[0020] The switching state of the relay feedback switch connected to the switch state detection circuit is determined according to a comparison result between the second voltage and a second preset voltage range.

[0021] Optionally, the main control module determines the abnormal state of the switch state detection circuit according to the first voltage, including:

[0022] When the first voltage is within a third preset voltage range, determining that the abnormal state of the switch state detection circuit is normal;

[0023] When the first voltage is outside the third preset voltage range, it is determined that the abnormal state of the switching state detection circuit is abnormal.

[0024] Optionally, after determining that the abnormal state of the switching state detection circuit is abnormal, the method further includes:

[0025] Determining a first terminal voltage of the relay feedback switch according to the first voltage, and comparing the first terminal voltage of the relay feedback switch with a vehicle power supply voltage;

[0026] If the voltage at the first end of the relay feedback switch is equal to the vehicle power supply voltage, it is determined that the first end of the relay feedback switch is short-circuited abnormally.

[0027] Optionally, after determining the first terminal voltage of the relay feedback switch according to the first voltage, and comparing the first terminal voltage of the relay feedback switch with the vehicle power supply voltage, the method further includes:

[0028] If the voltage at the first end of the relay feedback switch is not equal to the vehicle power supply voltage, determining the voltage at the second end of the relay feedback switch, and comparing the voltage at the second end of the relay feedback switch with the voltage at the first end of the relay feedback switch;

[0029] If the voltage at the second end of the relay feedback switch is equal to the voltage at the first end of the relay feedback switch, it is determined that the second end of the relay feedback switch is short-circuited abnormally;

[0030] If the second terminal voltage of the relay feedback switch is not equal to the first terminal voltage of the relay feedback switch, the step of collecting the first voltage output by the first state detection circuit in the switch state detection circuit through the main control module in the switch state detection circuit is executed cyclically.

[0031] Optionally, determining the switch state of a relay feedback switch connected to the switch state detection circuit according to a comparison result between the second voltage and a second preset voltage range includes:

[0032] When the second voltage is within the second preset voltage range, determining that the switch state of the relay feedback switch is closed;

[0033] When the second voltage is outside the second preset voltage range, it is determined that the switch state of the relay feedback switch is disconnected.

[0034] In a third aspect, an automobile device is provided, the automobile device comprising an electrically connected relay, a relay feedback switch and the above-mentioned switch state detection circuit.

[0035] The above-mentioned technical solution provided by the embodiment of the present application has the following advantages compared with the prior art: the switch state detection circuit provided by the embodiment of the present application, the switch state detection circuit includes a first resistor, a first state detection circuit, a first protection circuit, a power supply module, a main control module, a second state detection circuit and a second protection circuit; the first resistor is connected in parallel between the first end and the second end of the relay feedback switch, the first end of the relay feedback switch is connected to the main control module through the first state detection circuit, the first protection circuit and the main control module in sequence, the first end of the relay feedback switch is also connected to the main control module through the first state detection circuit, the power supply module is respectively connected to the first limit protection circuit and the main control module, and the main control module is also connected to the second end of the relay feedback switch through the second state detection circuit and the second protection circuit in sequence.

[0036] Based on the above circuit structure, the first end of the relay feedback switch is connected to the main control module through the first state detection circuit, the first protection circuit in sequence, and the main control module is also connected to the second end of the relay feedback switch through the second state detection circuit and the second protection circuit in sequence, thereby ensuring that the voltage signal is collected between the two ends of the relay feedback switch through the state detection circuit, and abnormal protection is achieved through the first protection circuit and the second protection circuit, so that the switch state detection circuit will not be damaged when a short circuit occurs. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0039] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0040] Figure 1 A schematic diagram of the structure of a switch state detection circuit provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of the structure of a switch state detection circuit provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of the structure of a switch state detection circuit provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of a flow chart of a switch state detection method provided in an embodiment of the present application;

[0044] Figure 5 A schematic flow chart of a switch status detection method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0046] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0047] like Figure 1 As shown, the switch state detection circuit includes a first resistor, a first state detection circuit 210, a voltage backflow prevention circuit 2201, a first protection circuit 220, a power module 230, a main control module 240, a second state detection circuit 250 and a second protection circuit 260;

[0048] The first resistor is connected in parallel between the first end and the second end of the relay feedback switch 110. The first end of the relay feedback switch 110 is connected to the main control module 240 through the first state detection circuit 210, the first protection circuit 220 and the main control module 240 in sequence. The first end of the relay feedback switch 110 is also connected to the main control module 240 through the first state detection circuit 210. The power supply module 230 is respectively connected to the first protection circuit 220 and the main control module 240. The main control module 240 is also connected to the second end of the relay feedback switch 110 through the second state detection circuit 250 and the second protection circuit 260 in sequence.

[0049] Specifically, the first resistor is R1, and the first resistor is connected between the first end and the second end of the relay feedback switch 110, which is used to limit the current and reduce electromagnetic interference. It also has the function of stabilizing the current and preventing the voltage peak, which can reduce the arc phenomenon when the relay feedback switch 110 is turned on and off, thereby extending the service life of the relay feedback switch 110. The first protection circuit 220 and the second protection circuit 260 are used to perform abnormal protection processing on the current at different points in the switch state detection circuit. The power supply module 230 is used to supply power to the first protection circuit 220 and the main control module 240. The main control module 240 is used to collect the voltage output by the first state detection circuit 210 and the second state detection circuit 250, and then judge the switch state of the relay feedback switch 110. The main control module 240 is implemented by a micro control unit (MCU) or a central processing unit (CPU).

[0050] Based on the above circuit structure, the first end of the relay feedback switch 110 is connected to the main control module 240 through the first state detection circuit 210, the first protection circuit 220 in sequence, and the main control module 240 is also connected to the second end of the relay feedback switch 110 through the second state detection circuit 250 and the second protection circuit 260 in sequence, thereby ensuring that the voltage signal is collected between the two ends of the relay feedback switch 110 through the state detection circuit, and abnormal protection is achieved through the first protection circuit 220 and the second protection circuit 260, so that the switch state detection circuit will not be damaged when a short circuit occurs, and the main control module 240 will not lose power and fail to work when the ground terminal is short-circuited.

[0051] In one embodiment, Figure 2 As shown, the first protection circuit includes a voltage backflow prevention circuit 2201 and a first current limiting protection circuit 2202 connected in series, the first end of the voltage backflow prevention circuit 2201 is connected to the first state detection circuit 210, and the second end of the voltage backflow prevention circuit 2201 is connected to the power supply module 230 and the main control module 240 respectively through the first current limiting protection circuit 2202.

[0052] Specifically, the voltage backflow prevention circuit 2201 is used to prevent voltage backflow in the switch state detection circuit from damaging electronic devices. The first current limiting protection circuit 2202 is used to provide current limiting protection for the switch state detection circuit to avoid short circuit effects on other components in the switch state detection circuit when a short circuit occurs.

[0053] In one embodiment, the anti-backflow voltage circuit 2201 includes a first diode, the first state detection circuit 210 includes a second resistor and a third resistor, the second resistor and the third resistor are connected in series, the first end of the second resistor is also connected to the cathode of the first diode, the first end of the third resistor is respectively connected to the second end of the second resistor and the main control module 240, the second end of the third resistor is connected to the first current limiting protection circuit 2202, and the anode of the first diode is also connected to the first current limiting protection circuit 2202.

[0054] Specifically, Figure 3 As shown, D1 indicates a first diode, R1 indicates a first resistor, R2 indicates a second resistor, R3 indicates a third resistor, A port indicates a first end of the relay feedback switch 110, and B port indicates a second end of the relay feedback switch 110. The voltage backflow prevention circuit 2201 is implemented by a first diode, the cathode of the first diode is connected to the first end of the relay feedback switch 110, so as to prevent the relay feedback switch 110 from backflowing voltage to the anode side of the first diode, and protect the electronic device connected after the anode of the first diode from being damaged by the backflow voltage.

[0055] The first state detection circuit 210 is implemented by two resistors, and the connection point between the two resistors is connected to the main control module 240 to output a first voltage to the main control module 240, that is, the first voltage is a voltage divided by the second resistor and the third resistor, and is recorded as voltage1measurement.

[0056] In one embodiment, the first current limiting protection circuit 2202 includes a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a first triode, a second triode, and a third triode. The base of the first triode is respectively connected to the emitter of the fourth resistor, the fifth resistor, and the second triode, the collector of the first triode is respectively connected to the base of the fifth resistor, the sixth resistor, and the second triode, the emitter of the first triode is connected to the emitter of the second triode through the fourth resistor, the emitter of the first triode is also connected to the positive electrode of the power module 230, the base of the second triode is also connected to the collector of the third triode through the sixth resistor, the base of the third triode is respectively connected to the first end of the seventh resistor and the first end of the eighth resistor, the second end of the seventh resistor is connected to the main control module 240, and the second end of the eighth resistor is respectively grounded to the emitter of the third triode and the negative electrode of the power module 230.

[0057] Specifically, Figure 3 As shown, Q1 indicates the first transistor, Q2 indicates the second transistor, Q3 indicates the third transistor, R4 indicates the fourth resistor, R5 indicates the fifth resistor, R6 indicates the sixth resistor, R7 indicates the seventh resistor, and R8 indicates the eighth resistor, and enable signal is the enable signal provided by the main control module 240 to the first current limiting protection circuit 2202. The first current limiting protection circuit 2202 is composed of five resistors and three transistors, and the current limiting protection threshold of the first current limiting protection circuit 2202 is the voltage of the PN junction of the emitter of the first transistor divided by the value of the resistance of the fourth resistor, that is, when the current flowing through the first current limiting protection circuit 2202 reaches its corresponding current limiting protection threshold, the protection is triggered to disconnect the connection between the first current limiting protection circuit 2202 and the main control module 240 and the first state detection circuit 210, respectively, to avoid the main control module 240 or the first state detection circuit 210 from being damaged by the large current when overcurrent or short circuit occurs.

[0058] In one embodiment, Figure 2As shown, the second protection circuit 260 includes an anti-reverse connection circuit 2603, an overvoltage protection circuit 2602 and a second current limiting protection circuit 2601 connected in series in sequence, the first end of the anti-reverse connection circuit 2603 is respectively connected to the relay feedback switch 110 and the first resistor, and the second end of the anti-reverse connection circuit 2603 is connected to the second state detection module 250 through the overvoltage protection circuit 2602 and the second current limiting protection circuit 2601 in sequence.

[0059] Specifically, the overvoltage protection circuit 2602 is used to provide overvoltage protection in the switch state detection circuit. The anti-reverse connection circuit 2603 is used to prevent reverse connection (i.e., voltage backflow) in the switch state detection circuit from damaging electronic devices. The second current limiting protection circuit 2601 is used for current limiting protection.

[0060] Based on the above circuit structure, not only can the problem of poor robustness of the existing electrical feedback switch detection circuit be solved, and the power supply of the output harness short-circuited causing the entire electronic control unit to lose power and fail to work be solved, but the surge resistance of the switch state detection circuit can also be improved through the anti-reverse connection circuit 2603 and the anti-voltage backflow circuit 2201. When the resistance value of the small resistor drifts and the parameter deviation of the semiconductor device is large at high and low temperatures, the overvoltage protection circuit 2602 and the current limiting protection circuit are triggered to avoid feedback switch state detection errors, and at the same time, the confidence of the detection result of the switch state detection circuit can be improved.

[0061] In one embodiment, the anti-reverse connection circuit 2603 includes a second diode, and the overvoltage protection circuit 2602 includes a ninth resistor, a tenth resistor, a voltage regulator, and a fourth transistor. The positive electrode of the second diode is respectively connected to the first resistor and the second end of the relay feedback switch 110, and the negative electrode of the second diode is respectively connected to the first end of the ninth resistor, the emitter of the fourth transistor, and the second current limiting protection circuit 2601. The second end of the ninth resistor is respectively connected to the first end of the tenth resistor and the negative electrode of the voltage regulator, and the second end of the tenth resistor is connected to the base of the fourth transistor. The positive electrode of the voltage regulator and the second current limiting protection circuit 2601 are grounded together, and the collector of the fourth transistor is connected to the second current limiting protection circuit 2601.

[0062] Specifically, Figure 3As shown, D2 indicates the second diode, R9 indicates the ninth resistor, R10 indicates the tenth resistor, Q4 indicates the fourth transistor, and D3 indicates the voltage regulator. The anti-reverse connection circuit 2603 is implemented by the second diode, and only allows the voltage to flow from the positive electrode of the second diode to its negative electrode, so as to prevent the circuit connected to the negative electrode of the second diode from providing a voltage to be reversely conducted to the positive electrode of the second diode, thereby protecting the relay feedback switch 110 and other components connected to the positive electrode of the second diode from receiving reverse voltage and being damaged. In order to ensure that the voltage at both ends of the relay feedback switch 110 meets its minimum voltage requirement when it is disconnected, the first diode and the second diode are selected as diodes with a small conduction voltage drop at low temperature as much as possible, and the resistance value of the first resistor is recommended to be around 100K.

[0063] The overvoltage protection circuit 2602 is implemented by using two resistors, a triode and a voltage regulator, so as to prevent the second diode from transmitting a large voltage to the subsequent circuit through the overvoltage protection circuit 2602, thereby preventing overvoltage damage or abnormal operation. That is, the overvoltage protection circuit 2602 detects whether the voltage transmitted by the second diode reaches its preset overvoltage protection threshold. If it reaches the threshold, the protection is triggered to disconnect the connection between the overvoltage protection circuit 2602 and the subsequent second current protection circuit, so as to prevent the large voltage from being transmitted to the subsequent circuit and causing damage to the components or the main control module 240.

[0064] In one embodiment, the second current limiting protection circuit 2601 includes an eleventh resistor, a twelfth resistor, a fifth triode, and a sixth triode. The first end of the eleventh resistor is respectively connected to the emitter of the fifth triode, the emitter of the fourth triode, the first end of the ninth resistor, and the cathode of the second diode. The second end of the eleventh resistor is respectively connected to the emitter of the sixth triode, the collector of the fourth triode, and the base of the fifth triode. The base of the sixth triode is respectively connected to the collector of the fifth triode and the first end of the twelfth resistor. The second end of the twelfth resistor is respectively grounded to the second state detection circuit 250 and the voltage regulator.

[0065] Specifically, Figure 3As shown, R11 indicates the eleventh resistor, R12 indicates the twelfth resistor, Q5 indicates the fifth transistor, and Q6 indicates the sixth transistor. The second current limiting protection circuit 2601 is implemented by two resistors and two transistors, and the current limiting protection threshold of the second current limiting protection circuit 2601 is the ratio between the voltage of the PN junction of the emitter of the fifth transistor and the resistance value of the eleventh resistor. That is, when the current flowing through the second current limiting protection circuit 2601 reaches its corresponding current limiting protection threshold, the protection is triggered to disconnect the connection between the second current limiting protection circuit 2601 and the main control module 240 and the second state detection circuit 250, respectively, to avoid the large current in the event of overcurrent or short circuit from damaging the main control module 240 or the second state detection circuit 250.

[0066] In one embodiment, the second state detection circuit 250 includes a thirteenth resistor, a first end of the thirteenth resistor is respectively connected to the main control module 240 and the collector of the sixth transistor, and a second end of the thirteenth resistor is grounded together with the twelfth resistor.

[0067] Specifically, Figure 3 As shown, R13 indicates the thirteenth resistor. The second state detection circuit 250 is implemented by one resistor. For the convenience of calculation, the fourth resistor, the eleventh resistor and the thirteenth resistor have the same resistance value. The on-state voltage drop of the PN of the first transistor is between 0.4V and 0.8V. Therefore, a suitable resistance value is selected according to the minimum current required by the relay feedback switch 110.

[0068] In one embodiment, a switch state detection method is provided, such as Figure 4 As shown, the switch state detection method is applied to the switch state detection circuit described in any one of the above embodiments, and the switch state detection method includes:

[0069] Step S310 , when the switch state detection circuit is in a stable state, the main control module 240 in the switch state detection circuit collects a first voltage output by the first state detection circuit 210 in the switch state detection circuit.

[0070] Specifically, the switch state detection circuit is in a stable state, which means that the switch state detection circuit is powered on and has been running stably for a preset time, and the preset time can be set to 5 milliseconds (mS), 7 milliseconds, 10 milliseconds, etc. Only when the switch state detection circuit is in a stable state, the main control module 240 collects the first voltage output by the first state detection circuit 210.

[0071] In step S320 , the main control module 240 determines an abnormal state of the switch state detection circuit according to the first voltage.

[0072] Specifically, the main control module 240 determines the abnormal state of the switch state detection circuit based on the first voltage collected from the first state detection circuit 210. The abnormal state specifically includes normal (no abnormality), the first end short circuit abnormality or the second end short circuit abnormality of the relay feedback switch 110.

[0073] Step S330, when the abnormal state is normal, the main control module 240 outputs an enable signal for the first current limiting protection circuit 2202 in the switch state detection circuit, and determines the first terminal voltage of the relay feedback switch 110 connected to the switch state detection circuit after waiting for a preset period of time.

[0074] Specifically, the abnormal state is normal, indicating that the switch state detection circuit does not have a short circuit abnormality. At this time, the main control module 240 provides an enable signal (enable signal high level signal) to the first current limiting protection circuit 2202. The main control module 240 collects the third voltage output by the first state detection circuit 210 after a preset delay time after outputting the enable signal, and then calculates the first terminal voltage of the relay feedback switch 110 according to the third voltage. The third voltage and the first voltage are the voltages output by the first state detection circuit 210 under different circumstances.

[0075] Step S340, when the voltage at the first end of the relay feedback switch 110 is within the first preset voltage range, the main control module 240 collects the second voltage output by the second state detection circuit 250 in the switch state detection circuit.

[0076] Specifically, the first preset voltage range is a voltage range formed by the difference between the power supply voltage of the power module 230 and the forward conduction voltage drop of the first diode, that is, the forward conduction voltage drop of the first diode will have a small fluctuation range, so the difference between the power supply voltage and the forward conduction voltage drop of the first diode will form a voltage range. If the first terminal voltage of the relay feedback switch 110 belongs to the first preset voltage range, it means that the first terminal voltage detection of the relay feedback switch 110 is normal, and the main control module 240 continues to collect the second voltage output by the second state detection circuit 250; if the first terminal voltage of the relay feedback switch 110 does not belong to the first preset voltage range, it means that the first terminal voltage detection of the relay feedback switch 110 is abnormal, and the first terminal voltage is not a normal value under normal conduction, then the step of determining the first terminal voltage of the relay feedback switch 110 connected to the switch state detection circuit after waiting for a preset time is cyclically executed, that is, the voltage output by the first state detection circuit 210 is re-delayed and the first terminal voltage of the relay feedback switch 110 is calculated and determined, until the first terminal voltage belongs to the first preset voltage range, the voltage output by the second state detection circuit 250 is collected.

[0077] The main control module 240 may trigger instant acquisition of the output voltage of the second state detection circuit 250 or trigger delayed acquisition, that is, the main control module 240 acquires the output voltage of the second state detection circuit 250 after a preset delay.

[0078] Step S350: determining the switch state of the relay feedback switch 110 connected to the switch state detection circuit according to the comparison result between the second voltage and the second preset voltage range.

[0079] Specifically, the second preset voltage range is the voltage conduction range of the first transistor, that is, 0.4 V to 0.8 V. The switching state of the relay feedback switch 110 is determined according to the comparison result between the second voltage and the second preset voltage range.

[0080] Since the switch state detection circuit includes a first resistor, a first state detection circuit 210, an anti-voltage backflow circuit 2201, a first current limiting protection circuit 2202, a power module 230, a main control module 240, a second state detection circuit 250, a second current limiting protection circuit 2601, an overvoltage protection circuit 2602 and an anti-reverse connection circuit 2603, the voltage collected by the main control module 240 is used to determine whether a short circuit abnormality occurs in the switch state detection circuit, and under normal circumstances, the switch state of the relay feedback switch 110 is determined. The first end of the relay feedback switch 110 is connected to the main control module 240 through the first state detection circuit 210, the anti-voltage backflow circuit 2201, the first current limiting protection circuit 2202 in sequence, and the main control module 240 is also connected to the second end of the relay feedback switch 110 through the second state detection circuit 250, the second current limiting protection circuit 2601, the overvoltage protection circuit 2602, and the anti-reverse connection circuit 2603 in sequence, thereby ensuring that the voltage signal is collected between the two ends of the relay feedback switch 110 through the state detection circuit, and abnormal protection is achieved through the anti-voltage backflow circuit 2201, the current limiting protection circuit, the overvoltage protection circuit 2602 and the anti-reverse connection circuit 2603, so that the switch state detection circuit will not be damaged when a short circuit occurs, and the main control module 240 will not lose power and fail to work when the ground terminal is short-circuited.

[0081] It can not only solve the problem of poor robustness of existing electrical feedback switch detection circuits and the problem that the power supply of the output harness short-circuit causes the entire electronic control unit to lose power and cannot work, but also improve the surge resistance of the switch state detection circuit through the anti-reverse connection circuit 2603 and the anti-voltage backflow circuit 2201. When the resistance value of a small resistor drifts and the parameter deviation of semiconductor devices is large at high and low temperatures, the overvoltage protection circuit 2602 and the current limiting protection circuit are triggered to avoid feedback switch state detection errors, and at the same time, the confidence of the detection result of the switch state detection circuit can be improved.

[0082] In one embodiment, the main control module 240 determines the abnormal state of the switch state detection circuit according to the first voltage, including:

[0083] When the first voltage is within a third preset voltage range, determining that the abnormal state of the switch state detection circuit is normal;

[0084] When the first voltage is outside the third preset voltage range, the abnormal state of the switch state detection circuit is determined to be abnormal.

[0085] Specifically, the third preset voltage range includes values ​​approaching zero. Since the first voltage is the voltage collected when the main control module 240 does not provide an enable signal to the first current limiting protection circuit 2202, the first voltage under normal circumstances should belong to the third preset voltage range, that is, the first voltage should approach zero. Only when a short circuit abnormality occurs does the first voltage not approach zero. Therefore, when the first voltage belongs to the third preset voltage range, the abnormal state of the switch state detection circuit is determined to be normal, and when the first voltage does not belong to the third preset voltage range, the abnormal state of the switch state detection circuit is determined to be abnormal.

[0086] In one embodiment, after determining that the abnormal state of the switch state detection circuit is abnormal, the method further includes:

[0087] Determine a first terminal voltage of the relay feedback switch 110 according to the first voltage, and compare the first terminal voltage of the relay feedback switch 110 with a vehicle power supply voltage;

[0088] If the voltage at the first terminal of the relay feedback switch 110 is equal to the vehicle power supply voltage, it is determined that the first terminal of the relay feedback switch 110 is short-circuited abnormally.

[0089] Specifically, when it is determined that the switch state detection circuit is short-circuited abnormally, the first terminal voltage of the relay feedback switch 110 is further calculated based on the first voltage, and the first terminal voltage of the relay feedback switch 110 is compared with the vehicle power supply voltage. The vehicle power supply voltage refers to the power supply voltage of the automobile equipment equipped with the switch state detection circuit, the relay feedback switch 110 and the relay. The automobile equipment can be an electric car or a hybrid car. If the first terminal voltage is equal to the vehicle power supply voltage, it means that the first terminal of the relay feedback switch 110 is short-circuited to the vehicle power supply, that is, it is determined that the first terminal of the relay feedback switch 110 is short-circuited abnormally, and the switch state of the relay feedback switch 110 cannot be determined at this time.

[0090] In one embodiment, after determining the first terminal voltage of the relay feedback switch 110 according to the first voltage, and comparing the first terminal voltage of the relay feedback switch 110 with the vehicle power supply voltage, the method further includes:

[0091] If the voltage at the first end of the relay feedback switch 110 is not equal to the vehicle power supply voltage, determining the voltage at the second end of the relay feedback switch 110, and comparing the voltage at the second end of the relay feedback switch 110 with the voltage at the first end of the relay feedback switch 110;

[0092] If the voltage at the second end of the relay feedback switch 110 is equal to the voltage at the first end of the relay feedback switch 110 , it is determined that the second end of the relay feedback switch 110 is short-circuited abnormally;

[0093] If the second terminal voltage of the relay feedback switch 110 is not equal to the first terminal voltage of the relay feedback switch 110, the step of collecting the first voltage output by the first state detection circuit 210 in the switch state detection circuit through the main control module 240 in the switch state detection circuit is executed cyclically.

[0094] Specifically, if the first terminal voltage is not equal to the vehicle power supply voltage, the second terminal voltage of the relay feedback switch 110 is determined. At this time, the second terminal voltage of the relay feedback switch 110 is calculated by the vehicle power supply voltage and the resistance values ​​of the first resistor, the second resistor, and the third resistor. The calculation formula is: Where U is the vehicle power supply voltage. If the voltage at the second end of the relay feedback switch 110 is equal to the voltage at the first end of the relay feedback switch 110, it means that the second end of the relay feedback switch 110 is short-circuited to the vehicle power supply and the switch state of the relay feedback switch 110 is disconnected, that is, it is determined that the short circuit of the second end of the relay feedback switch 110 is abnormal.

[0095] If the second terminal voltage of the relay feedback switch 110 is not equal to the first terminal voltage of the relay feedback switch 110 , the above step of collecting the first voltage output by the first state detection circuit 210 in the switch state detection circuit through the main control module 240 in the switch state detection circuit is executed cyclically.

[0096] In one embodiment, determining the switch state of the relay feedback switch 110 connected to the switch state detection circuit according to the comparison result between the second voltage and the second preset voltage range includes:

[0097] When the second voltage is within the second preset voltage range, determining that the switch state of the relay feedback switch 110 is closed;

[0098] When the second voltage is outside the second preset voltage range, it is determined that the switch state of the relay feedback switch 110 is disconnected.

[0099] Specifically, if the second voltage belongs to the second preset voltage range, it means that the second voltage is the same as the on-voltage of the first transistor, so the switching state of the relay feedback switch 110 is determined to be closed; if the second voltage does not belong to the second preset voltage range, it means that the second voltage is different from the on-voltage of the first transistor, so the switching state of the relay feedback switch 110 is determined to be open.

[0100] In a specific embodiment, the flow chart of the relay feedback switch 110 state detection is as follows: Figure 5 As shown, including:

[0101] Setp1: MCU starts voltage1 measurement acquisition after a preset delay in a stable state.

[0102] Setp2: MCU collects the voltage value of voltage1 measurement and determines whether its voltage value is close to 0V. If its voltage value is not close to 0V, it calculates the voltage value of port A.

[0103] Setp3: MCU determines whether the voltage value of port A is consistent with the vehicle power supply voltage. If they are consistent, it can be determined that port A is short-circuited to the vehicle power supply, or port A is short-circuited to the vehicle power supply and the relay feedback switch 110 is in a closed state.

[0104] Setp4: If the voltage value of port A is inconsistent with the vehicle power supply voltage, continue to determine whether the voltage of port A is consistent with the vehicle power supply voltage. If they are consistent, it is determined that port B is short-circuited to the vehicle power supply, and the switch state of the relay feedback switch 110 is disconnected. If they are inconsistent, it returns to Setp1 to execute the MCU delay preset time and then start voltage1 measurement acquisition.

[0105] Setp5: According to Setp2, if the voltage value calculated by MCU for voltage1 measurement approaches 0V, the MCU outputs a high-level enable signal.

[0106] Setp6: MCU starts voltage1 measurement after a preset delay and calculates the voltage of port A.

[0107] Setp7: MCU determines whether the voltage at port A is within the range of the power supply voltage of the power module 230 minus the forward conduction voltage drop of D1. If it is not within the range, MCU continues to delay for a preset time and then starts voltage1 measurement acquisition.

[0108] Setp8: If the MCU determines that the voltage at port A is within the range of the power supply voltage of the power module 230 minus the forward conduction voltage drop of D1, the MCU starts voltage2measurement voltage acquisition after a preset delay.

[0109] Setp9: The MCU determines whether the voltage 2 measurement voltage is within the range of 0.4V to 0.8V. If so, it determines that the relay feedback switch 110 is in a closed state; if not, it determines that the relay feedback switch 110 is in an open state.

[0110] Figure 4 and Figure 5 FIG. 1 is a flow chart of a switch state detection method in one embodiment. It should be understood that although Figure 4 and Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 4 and Figure 5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0111] In one embodiment, an automobile device is provided, comprising an electrically connected relay, a relay feedback switch 110 and a switch state detection circuit as described in any of the above embodiments. The switch state detection circuit is used to implement a switch state detection method as provided in any of the above method embodiments.

[0112] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative can be used.

[0113] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A switch state detection circuit, characterized in that: The switch state detection circuit includes a first resistor, a first state detection circuit, a first protection circuit, a power supply module, a main control module, a second state detection circuit and a second protection circuit; The first resistor is connected in parallel between the first end and the second end of the relay feedback switch. The first end of the relay feedback switch is connected to the main control module via the first state detection circuit and the first protection circuit in sequence. The first end of the relay feedback switch is also connected to the main control module via the first state detection circuit. The power supply module is respectively connected to the first protection circuit and the main control module. The main control module is also connected to the second end of the relay feedback switch via the second state detection circuit and the second protection circuit in sequence.

2. The switch state detection circuit according to claim 1, characterized in that: The first protection circuit includes a voltage backflow prevention circuit and a first current limiting protection circuit connected in series, the first end of the voltage backflow prevention circuit is connected to the first state detection circuit, and the second end of the voltage backflow prevention circuit is connected to the power supply module and the main control module respectively through the first current limiting protection circuit.

3. The switch state detection circuit according to claim 2, characterized in that: The voltage backflow prevention circuit includes a first diode, and the first state detection circuit includes a second resistor and a third resistor. The second resistor and the third resistor are connected in series, and the first end of the second resistor is also connected to the cathode of the first diode. The first end of the third resistor is respectively connected to the second end of the second resistor and the main control module. The second end of the third resistor is grounded together with the first current limiting protection circuit, and the anode of the first diode is also connected to the first current limiting protection circuit.

4. The switch state detection circuit according to claim 2, characterized in that: The first current limiting protection circuit includes a fourth resistor, a fifth resistor, a sixth resistor, a seventh resistor, an eighth resistor, a first triode, a second triode, and a third triode. The base of the first triode is respectively connected to the emitter of the fourth resistor, the fifth resistor, and the second triode, the collector of the first triode is respectively connected to the base of the fifth resistor, the sixth resistor, and the second triode, the emitter of the first triode is connected to the emitter of the second triode through the fourth resistor, the emitter of the first triode is also connected to the positive electrode of the power module, the base of the second triode is also connected to the collector of the third triode through the sixth resistor, the base of the third triode is respectively connected to the first end of the seventh resistor and the first end of the eighth resistor, the second end of the seventh resistor is connected to the main control module, and the second end of the eighth resistor is respectively grounded to the emitter of the third triode and the negative electrode of the power module.

5. The switch state detection circuit according to claim 4, characterized in that: The second protection circuit includes an anti-reverse connection circuit, an overvoltage protection circuit and a second current limiting protection circuit connected in series in sequence. The first end of the anti-reverse connection circuit is connected to the relay feedback switch and the first resistor respectively, and the second end of the anti-reverse connection circuit is connected to the second state detection module in sequence through the overvoltage protection circuit and the second current limiting protection circuit.

6. The switch state detection circuit according to claim 5, characterized in that: The anti-reverse connection circuit includes a second diode, and the overvoltage protection circuit includes a ninth resistor, a tenth resistor, a voltage regulator, and a fourth transistor. The anode of the second diode is respectively connected to the first resistor and the second end of the relay feedback switch, the cathode of the second diode is respectively connected to the first end of the ninth resistor, the emitter of the fourth transistor, and the second current limiting protection circuit, the second end of the ninth resistor is respectively connected to the first end of the tenth resistor and the negative electrode of the voltage regulator, the second end of the tenth resistor is connected to the base of the fourth transistor, the anode of the voltage regulator and the second current limiting protection circuit are grounded, and the collector of the fourth transistor is connected to the second current limiting protection circuit.

7. The switch state detection circuit according to claim 6, characterized in that: The second current limiting protection circuit includes an eleventh resistor, a twelfth resistor, a fifth triode, and a sixth triode. The first end of the eleventh resistor is respectively connected to the emitter of the fifth triode, the emitter of the fourth triode, the first end of the ninth resistor, and the cathode of the second diode. The second end of the eleventh resistor is respectively connected to the emitter of the sixth triode, the collector of the fourth triode, and the base of the fifth triode. The base of the sixth triode is respectively connected to the collector of the fifth triode and the first end of the twelfth resistor. The second end of the twelfth resistor is respectively grounded with the second state detection circuit and the voltage regulator.

8. The switch state detection circuit according to claim 7, characterized in that: The second state detection circuit includes a thirteenth resistor, a first end of the thirteenth resistor is respectively connected to the main control module and the collector of the sixth transistor, and a second end of the thirteenth resistor is grounded together with the twelfth resistor.

9. A switch state detection method, characterized in that: The switch state detection method is applied to the switch state detection circuit according to any one of claims 1 to 8, and the switch state detection method includes: When the switch state detection circuit is in a stable state, collecting a first voltage output by a first state detection circuit in the switch state detection circuit through a main control module in the switch state detection circuit; The main control module determines the abnormal state of the switch state detection circuit according to the first voltage; In the case where the abnormal state is normal, the main control module outputs an enable signal for the first current limiting protection circuit in the switch state detection circuit, and determines the first terminal voltage of the relay feedback switch connected to the switch state detection circuit after waiting for a preset time; When the voltage at the first terminal of the relay feedback switch is within the first preset voltage range, the main control module collects a second voltage output by the second state detection circuit in the switch state detection circuit; The switching state of the relay feedback switch connected to the switch state detection circuit is determined according to a comparison result between the second voltage and a second preset voltage range.

10. The switch state detection method according to claim 9, characterized in that: The main control module determines the abnormal state of the switch state detection circuit according to the first voltage, including: When the first voltage is within a third preset voltage range, determining that the abnormal state of the switch state detection circuit is normal; When the first voltage is outside the third preset voltage range, the abnormal state of the switch state detection circuit is determined to be abnormal.

11. The switch state detection method according to claim 9, characterized in that: After determining that the abnormal state of the switch state detection circuit is abnormal, the method further includes: Determining a first terminal voltage of the relay feedback switch according to the first voltage, and comparing the first terminal voltage of the relay feedback switch with a vehicle power supply voltage; If the voltage at the first end of the relay feedback switch is equal to the vehicle power supply voltage, it is determined that the first end of the relay feedback switch is short-circuited abnormally.

12. The switch state detection method according to claim 11, characterized in that: After determining the first terminal voltage of the relay feedback switch according to the first voltage, and comparing the first terminal voltage of the relay feedback switch with the vehicle power supply voltage, the method further includes: If the voltage at the first end of the relay feedback switch is not equal to the vehicle power supply voltage, determining the voltage at the second end of the relay feedback switch, and comparing the voltage at the second end of the relay feedback switch with the voltage at the first end of the relay feedback switch; If the voltage at the second end of the relay feedback switch is equal to the voltage at the first end of the relay feedback switch, it is determined that the second end of the relay feedback switch is short-circuited abnormally; If the second terminal voltage of the relay feedback switch is not equal to the first terminal voltage of the relay feedback switch, the step of collecting the first voltage output by the first state detection circuit in the switch state detection circuit through the main control module in the switch state detection circuit is executed cyclically.

13. The switch state detection method according to claim 9, characterized in that: Determining the switch state of the relay feedback switch connected to the switch state detection circuit according to a comparison result between the second voltage and the second preset voltage range includes: When the second voltage is within the second preset voltage range, determining that the switch state of the relay feedback switch is closed; When the second voltage is outside the second preset voltage range, it is determined that the switch state of the relay feedback switch is disconnected.

14. An automobile device, characterized in that: The automobile device comprises an electrically connected relay, a relay feedback switch and a switch state detection circuit as claimed in any one of claims 1 to 8.

Citation Information

Cited By

  • Switch state detection circuit, control method and spacecraft

    CN119805191A

  • TVS tube state monitoring circuit and protection circuit of EFUSE circuit

    CN120385952A