Switch state determination circuit

By designing a switching quantity state determination circuit including an ECU module, a control module and a detection module, the problem of only one effective state is solved in the prior art, and the accurate determination of the actual state of the consecrated quantity is achieved.

CN119781427APending Publication Date: 2025-04-08SHANGHAI ECAR TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411782119.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

The existing unmanned vehicle electronic controller (ECU) can only recognize the effective state of high or low level, resulting in a low accuracy in determining the actual state of the consecrated light.

Method used

A switching quantity state determination circuit including an ECU module, a control module and a detection module is designed, and a second control signal of high and low levels is sent through the control module, so that the detection module can simultaneously identify two effective states: high and low levels.

Benefits of technology

The accuracy of the determination result of the actual state of the conspicuous amount is improved, and the state of the switching quantity input signal can be accurately detected under different states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781427A_ABST
    Figure CN119781427A_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a determination circuit for the state of a switch quantity, including: an ECU module, a control module and a detection module, the output end of the ECU module is connected to the input end of the control module, and is used to send a first control signal to the control module, the output end of the control module is connected to the input end of the detection module, and is used to send a second control signal to the detection module based on the received first control signal, the output end of the detection module is connected to the input end of the ECU module, and is used to receive the switch quantity input signal and the second control signal sent by the control module, and detect the effective state of the switch quantity input signal based on the second control signal to obtain a detection result, and send the detection result to the ECU module, so that the ECU module determines the state of the switch quantity based on the detection result. Based on the determination circuit of the state of the switch quantity provided by the present application, the accuracy of the determination result of the actual state of the switching quantity can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of unmanned sweepers, and in particular to a circuit for determining a switch state. Background Art

[0002] The state of the switch is divided into two states: 0 and 1, which represent the opening and closing of the circuit, or the connection and disconnection of the contact. It is generally used as a general I / O detection circuit to detect the state feedback of the external load switch of the product. The external load switch of the product has three states: high level, low level and floating. The high level and low level represent signal input, while the floating means no signal input. However, in a certain period of time, only one of the high level or low level is regarded as the effective state of the switch.

[0003] In the prior art, the electronic control unit (ECU) of the unmanned vehicle generally determines the detection result of the detection circuit on the effective state of the switching amount, thereby obtaining the actual state of the switching amount.

[0004] However, the current detection circuit can only identify one valid state, high level or low level, which leads to low accuracy of the ECU's judgment result on the actual state of the light switching amount. Therefore, designing a circuit that can simultaneously identify both high level and low level valid states is an urgent problem to be solved in this field. Summary of the invention

[0005] The embodiment of the present application provides a circuit for determining the state of a switching quantity, which can improve the accuracy of the determination result of the actual state of the switching quantity.

[0006] In a first aspect, an embodiment of the present application provides a circuit for determining a state of a switch quantity, comprising: an ECU module, a control module, and a detection module;

[0007] The output end of the ECU module is connected to the input end of the control module, and is used to send a first control signal to the control module;

[0008] The output end of the control module is connected to the input end of the detection module, and is used to send a second control signal to the detection module based on the received first control signal, wherein when the first control signal is at a high level, the second control signal is at a low level, and when the first control signal is at a low level, the second control signal is at a high level;

[0009] The input end of the detection module is linked to the output end of the control module, and is used to receive the second control signal sent by the control module, and is used to receive the switch input signal, and detect the effective state of the switch input signal based on the second control signal to obtain a detection result;

[0010] The output end of the detection module is connected to the input end of the ECU module, and is used to send the detection result to the ECU module, so that the ECU module determines the state of the switch quantity based on the detection result.

[0011] In a possible implementation, the control module includes a first control switch and a second control switch;

[0012] The control end of the first control switch is connected to the output end of the ECU module, the first end of the first control switch is grounded, and the second end of the first control switch is connected to the control end of the second control switch, and is used to conduct the path between the first end and the second end when the first control signal is at a high level, and disconnect the path between the first end and the second end when the first control signal is at a low level;

[0013] The first end of the second control switch is connected to the input end of the detection module, and the second end of the second control switch is connected to the power supply, and is used to collect the voltage of the second end of the first control switch. When the voltage at the second end of the first control switch is at a low level, the path between the first end and the second end is disconnected to send a low-level second control signal to the detection module; when the voltage at the second end of the first control switch is at a high level, the path between the first end and the second end is connected to send a high-level second control signal to the detection module.

[0014] In a possible implementation, the control module further includes: a first resistor;

[0015] The first end of the first resistor is grounded, and the second end of the first resistor is connected to the control end of the first control switch, for transmitting a low-level third control signal to the first control switch to disconnect the path between the first end and the second end of the first control switch.

[0016] In a possible implementation, the control module further includes: a second resistor;

[0017] A first end of the second resistor is connected to the control end of the first control switch, and a second end of the second resistor is connected to the output end of the ECU module, for reducing the current value of the current in the path.

[0018] In a possible implementation manner, the control module further includes: a third resistor;

[0019] A first end of the third resistor is connected to the control end of the second control switch, and a second end of the third resistor is connected to the power supply, for reducing the current value of the current in the path.

[0020] In a possible implementation manner, the control module further includes: a fourth resistor;

[0021] A first end of the fourth resistor is connected to the input end of the detection module, and a second end of the fourth resistor is connected to the first end of the second control switch, for reducing the current value of the current in the path.

[0022] In a possible implementation, the detection module includes: a fifth resistor;

[0023] A first end of the fifth resistor receives a switch input signal, and a second end of the fifth resistor is connected to an input end of the ECU module, and is used to reduce a current value of a current in the path.

[0024] In a possible implementation, the detection module further includes: a sixth resistor;

[0025] The first end of the sixth resistor is connected to the second end of the fifth resistor, and the second end of the sixth resistor is grounded, and is used to reduce the voltage value of the voltage in the path where the fifth resistor is located.

[0026] In a possible implementation, the detection module further includes: a capacitor;

[0027] The first end of the capacitor is connected to the second end of the fifth resistor, and the second end of the capacitor is grounded, and is used to filter the voltage in the path where the fifth resistor is located.

[0028] In a possible implementation, the detection module further includes: a voltage stabilizer;

[0029] The first end of the voltage regulator is connected to the second end of the fifth resistor, and the second end of the voltage regulator is grounded, and is used to regulate the voltage in the path where the fifth resistor is located so that the voltage in the path where the fifth resistor is located does not exceed a preset voltage value.

[0030] In a possible implementation, the circuit further includes: a diode;

[0031] The first end of the diode is connected to the second end of the second control switch, and the first end of the diode is connected to the power supply, so as to prevent the current in the path from flowing back to the power supply.

[0032] The switch quantity state determination circuit provided in the embodiment of the present application includes: an ECU module, a control module and a detection module. The ECU module sends a first control signal to the control module. After receiving the high-level control signal, the control module sends a low-level second control signal to the detection module. After receiving the low-level control signal, the control module sends a high-level second control signal to the detection module. The detection module detects the effective state of the switch quantity input signal based on the second control signal to obtain a detection result, and the ECU module determines the state of the switch quantity based on the detection result. The switch quantity state determination circuit provided in the present application can detect different states of the switch quantity input signal with the second control signal in different states, and has the ability to simultaneously identify two effective states of high level and low level, so it can improve the accuracy of the determination result of the actual state of the switching quantity. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0034] Figure 1 A schematic diagram of a scenario for determining the state of a switch provided in this application;

[0035] Figure 2 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 1 ;

[0036] Figure 3 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 2 ;

[0037] Figure 4 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 3 ;

[0038] Figure 5 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 4 ;

[0039] Figure 6 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 5 ;

[0040] Figure 7 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 6 ;

[0041] Figure 8 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 7 ;

[0042] Fig. 9 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 8 ;

[0043] Fig.10 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 9 ;

[0044] Fig.11 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 10 ;

[0045] Fig.12 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 10 .

[0046] Description of reference numerals:

[0047] Q1: first control switch;

[0048] Q2: second control switch;

[0049] R1: first resistor;

[0050] R2: second resistor;

[0051] R3: the third resistor;

[0052] R4: the fourth resistor;

[0053] R5: the fifth resistor;

[0054] R6: the sixth resistor;

[0055] C1: first capacitor;

[0056] D1: voltage regulator;

[0057] D2: diode.

[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0060] First, the terms involved in this application are explained:

[0061] Switching quantity: refers to the collection and output of non-continuous signals, with two states of 0 and 1, representing the opening and closing of the circuit, or the connection and disconnection of the contact;

[0062] Figure 1 A schematic diagram of a scenario for determining the state of a switch provided in this application, such as Figure 1 As shown, the specific application scenarios of this application include detection circuits and ECU internal circuits. Switching quantity refers to the acquisition and output of non-continuous signals, with two states of 0 and 1, representing the opening and closing of the circuit, or the connection and disconnection of the contacts. It can be used as a general I / O sampling circuit to detect the state feedback of the external load of the product, and its working principle is based on the effective state of the level. The external load switch of the product has three states: high level, low level and suspended. The high level and low level represent signal input, while the suspended state indicates no signal input. However, in a certain period of time, only one of the high level or low level is regarded as the effective state of the switching quantity. The detection circuit is used to detect the effective level of the switching quantity, and send the obtained detection result to the internal circuit of the ECU. The detection result of the internal circuit of the ECU is judged to obtain the actual state of the switching quantity.

[0063] In combination with the above scenario, it can be seen that in the prior art, the detection circuit can only identify a valid state of high level or low level, resulting in low accuracy of the ECU's judgment result on the actual state of the light switching amount.

[0064] The switch state determination circuit provided in the embodiment of the present application includes: an ECU module, a control module and a detection module, wherein the ECU module represents Figure 1 The internal circuit of the ECU in the example, the detection module represents Figure 1The detection circuit of the example in the example. The output end of the ECU module is connected to the input end of the control module, the ECU module sends a first control signal to the control module, the output end of the control module is connected to the input end of the detection module, the control module sends a low-level second control signal to the detection module after receiving the high-level control signal, and the control module sends a high-level second control signal to the detection module after receiving the low-level control signal. The output end of the detection module is connected to the input end of the ECU module, the detection module receives the second control signal and the switch input signal, and detects the effective state of the switch input signal based on the second control signal to obtain the detection result, and the detection module sends the detection result to the ECU module, so that the ECU module determines the state of the switch based on the detection result. The determination circuit of the switch state provided in the present application can detect different states of the switch input signal with the second control signal in different states, and has the ability to simultaneously identify two effective states of high level and low level, so that the accuracy of the determination result of the actual state of the opening amount can be improved.

[0065] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0066] Figure 2 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 1 ,like Figure 2 As shown, the determination circuit of the switch quantity state includes: an ECU module, a control module and a detection module;

[0067] The output end of the ECU module is connected to the input end of the control module, and is used to send a first control signal to the control module;

[0068] The output end of the control module is connected to the input end of the detection module, and is used to send a second control signal to the detection module based on the received first control signal, wherein when the first control signal is at a high level, the second control signal is at a low level, and when the first control signal is at a low level, the second control signal is at a high level;

[0069] The input end of the detection module is linked to the output end of the control module, and is used to receive the second control signal sent by the control module, and is used to receive the switch input signal, and detect the effective state of the switch input signal based on the second control signal to obtain a detection result;

[0070] The output end of the detection module is connected to the input end of the ECU module, and is used to send the detection result to the ECU module, so that the ECU module determines the state of the switch quantity based on the detection result.

[0071] Combined with the scene example, combined with Figure 1 , ECU module represents Figure 1 The internal circuit of the ECU in the example, the detection module represents Figure 1 The detection circuit of the example in . The first control signal sent by the ECU module to the control module has two states of high level and low level. The first control signal can be an EN signal. The second control signal sent by the control module to the detection module also has two states of high level and low level. The first control signal can be an EN signal. When the EN signal is at a high level, the second control signal sent by the control module to the detection module is at a low level. At this time, when the detection module collects a low-level switch signal, it outputs a valid detection result. On the contrary, when the EN signal is at a low level, the second control signal sent by the control module to the detection module is at a high level. At this time, when the detection module collects a high-level switch signal, it outputs a valid detection result.

[0072] Table 1 shows the determination results of the switch state of an example, where "L" represents a low level, "H" represents a high level, and "NC" represents a floating state.

[0073] Table 1

[0074]

[0075] When the switch quantity state is low level, when the EN signal is low level, the detection module collects the high level valid, but at this time the switch quantity state is low level, so the output detection result is an invalid low level "L". When the EN signal is high level, the detection module collects the low level valid, and at this time the switch quantity state is just low level, so the output detection result is a valid low level "L". When the EN signal is high level and low level, the detection results received by the ECU module are all low level "L", so the ECU module can determine that the switch quantity state is low level.

[0076] Similarly, when the switch state is high, when the EN signal is low, the detection module collects the high level is valid, and the switch state is high at this time, so the output detection result is a valid high level "H". When the EN signal is high, the detection module collects the low level is valid, but the switch state is high at this time, so the output detection result is an invalid high level "H". When the EN signal is high and low, the detection results received by the ECU module are all high level "H", so the ECU module can determine that the switch state is high.

[0077] When the switch state is suspended, when the EN signal is low, the detection module collects the high level valid, but at this time the switch state is suspended, so the output detection result is an invalid low level "L". When the EN signal is high, the detection module collects the low level valid, but at this time the switch state is suspended, so the output detection result is an invalid high level "H". When the EN signal is high and low, the detection result received by the ECU module changes with the state of the EN signal, so the ECU module can determine that the switch state is suspended.

[0078] The switch state determination circuit provided in this example can detect different states of the switch input signal by the second control signal in different states, and has the ability to simultaneously identify two valid states, high level and low level. Therefore, it can improve the accuracy of the determination result of the actual state of the switching quantity.

[0079] Optional, Figure 3 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 2 ,like Figure 3 As shown, the control module includes a first control switch Q1 and a second control switch Q2;

[0080] The control end of the first control switch Q1 is connected to the output end of the ECU module, the first end of the first control switch Q1 is grounded, and the second end of the first control switch Q1 is connected to the control end of the second control switch Q2, and is used to conduct the path between the first end and the second end when the first control signal is at a high level, and disconnect the path between the first end and the second end when the first control signal is at a low level;

[0081] The first end of the second control switch Q2 is connected to the input end of the detection module, and the second end of the second control switch Q2 is connected to the power supply, and is used to collect the voltage of the second end of the first control switch Q1. When the voltage of the second end of the first control switch Q1 is at a low level, the path between the first end and the second end thereof is disconnected to send a low-level second control signal to the detection module; when the voltage of the second end of the first control switch Q1 is at a high level, the path between the first end and the second end thereof is connected to send a high-level second control signal to the detection module.

[0082] In combination with the scenario example, the first control switch Q1 can be selected as an NPN-type transistor, the base of the transistor represents the control end of the first control switch Q1, the emitter represents the first end of the first control switch Q1, and the collector represents the second end of the first control switch Q1. The second control switch Q2 can be selected as a P-channel metal-oxide-semiconductor field-effect transistor (Metal-Oxide-Semiconductor Field-Effect Transistor, referred to as MOSFET), the gate of the MOS tube represents the control end of the second control switch Q2, the drain of the MOS tube represents the first end of the second control switch Q2, and the source of the MOS tube represents the second end of the second control switch Q2.

[0083] After the control end of the first control switch Q1 receives the first control signal of high level, the first end of the first control switch is connected with the second end, and at this time the control end of the second control switch Q2 is at low level, so the second control signal sent to the detection module is at the second level. After the control end of the first control switch Q1 receives the first control signal of low level, the first end of the first control switch is disconnected with the second end, and at this time the control end of the second control switch Q2 is at high level, so the second control signal sent to the detection module is at high level.

[0084] Based on the switch quantity state determination circuit provided in this example, the state of the second control signal sent to the detection module can be flexibly adjusted through the first control switch and the second control switch to adjust the level validity state collected by the detection module.

[0085] Optional, Figure 4 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 3 ,like Figure 4 As shown, the control module also includes: a first resistor R1;

[0086] The first end of the first resistor R1 is grounded, and the second end of the first resistor R1 is connected to the control end of the first control switch for transmitting a low-level third control signal to the first control switch Q1 to disconnect the path between the first end and the second end of the first control switch Q1.

[0087] In combination with the scenario example, when the ECU module does not send the first control signal to the first control switch Q1, the first resistor R1 is used to provide an initial state to the first control switch Q1. Specifically, a low level signal is sent to the control end of the first control switch Q1 through the first resistor R1 to disconnect the first end of the first control switch Q1 from the second end.

[0088] Optional, Figure 5 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 4 ,like Figure 5As shown, the control module further includes: a second resistor R2;

[0089] A first end of the second resistor R2 is connected to the control end of the first control switch Q1 , and a second end of the second resistor R2 is connected to the output end of the ECU module, for reducing the current value of the current in the path.

[0090] In combination with the scenario example, the resistance value of the second resistor R2 can be determined according to actual conditions. The function of the second resistor R2 in the circuit is current limiting, which is used to prevent the current flowing through from exceeding a preset limit value to protect the components in the circuit.

[0091] Optional, Figure 6 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 5 ,like Figure 6 As shown, the control module further includes: a third resistor R3;

[0092] A first end of the third resistor R3 is connected to the control end of the second control switch Q2, and a second end of the third resistor R3 is connected to the power supply, for reducing the current value of the current in the path.

[0093] In combination with the scenario example, the resistance value of the third resistor R3 can be determined according to actual conditions. The function of the third resistor R3 in the circuit is current limiting, which is used to prevent the current flowing through from exceeding a preset limit value to protect the components in the circuit.

[0094] Optional, Figure 7 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 6 ,like Figure 7 As shown, the control module further includes: a fourth resistor R4;

[0095] A first end of the fourth resistor R4 is connected to the input end of the detection module, and a second end of the fourth resistor R4 is connected to the first end of the second control switch Q2, for reducing the current value of the current in the path.

[0096] In combination with the scenario example, the resistance value of the fourth resistor R4 can be determined according to actual conditions. The role of the fourth resistor R4 in the circuit is current limiting, which is used to prevent the current flowing through from exceeding a preset limit value to protect the components in the circuit.

[0097] Optional, Figure 8 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 7 ,like Figure 8 As shown, the detection module includes: a fifth resistor R5;

[0098] A first end of the fifth resistor R5 receives a switch input signal, and a second end of the fifth resistor R5 is connected to an input end of the ECU module, so as to reduce a current value of a current in the path.

[0099] In combination with the scenario example, the resistance value of the fifth resistor R5 can be determined according to actual conditions. The function of the fifth resistor R5 in the circuit is current limiting, which is used to prevent the current flowing through the circuit from exceeding a preset limit value to protect the components in the circuit.

[0100] Optional, Fig. 9 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 8 ,like Fig. 9 As shown, the detection module also includes: a sixth resistor R6;

[0101] A first end of the sixth resistor R6 is connected to a second end of the fifth resistor R5 , and a second end of the sixth resistor R6 is grounded, for reducing a voltage value of a voltage in a path where the fifth resistor R5 is located.

[0102] In combination with the scenario example, the voltage of the switch input is generally 12V, and the voltage of the detection result received by the ECU module is generally 3.3-5V, so the sixth resistor R6 can be connected in parallel to divide the voltage so as to reduce the voltage to 3.3-5V.

[0103] Optional, Fig.10 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 9 ,like Fig.10 As shown, the detection module also includes: a capacitor C1;

[0104] A first end of the capacitor C1 is connected to a second end of the fifth resistor R5 , and a second end of the capacitor C1 is grounded, for filtering a voltage in a path where the fifth resistor R5 is located.

[0105] In conjunction with the scenario example, capacitor C1 is used to filter the voltage in the path to make the voltage smoother.

[0106] Optional, Fig.11 The structure of the switch state determination circuit provided in this application is schematically shown. Figure 10 ,The detection module also includes: a voltage regulator D1;

[0107] The first end of the regulator D1 is connected to the second end of the fifth resistor R5, and the second end of the regulator D1 is grounded, for regulating the voltage in the path where the fifth resistor R5 is located so that the voltage in the path where the fifth resistor R5 is located does not exceed a preset voltage value.

[0108] In combination with the scenario example, if the voltage after the sixth resistor R6 divides the voltage of the switch input does not reach the range of 3.3-5V, the voltage regulator D1 can adjust the voltage so that the voltage can be maintained in the range of 3.3-5V.

[0109] Optional, Fig.12The structure of the switch state determination circuit provided in this application is schematically shown. Figure 10 First, the circuit also includes: a diode D2;

[0110] The first end of the diode D2 is connected to the second end of the second control switch Q2 , and the first end of the diode D2 is connected to the power supply, so as to prevent the current in the path from flowing back to the power supply.

[0111] Combined with the scene example, combined with Fig.12 As shown, the direction of the current provided by the power module is from the power module to the second control switch Q2. In order to prevent the current from flowing back from the second control switch Q2 to the power module, a diode D2 can be connected in series in the circuit to prevent the current from flowing back.

[0112] The switch quantity state determination circuit provided in this embodiment can detect different states of the switch quantity input signal by the second control signal in different states, and has the ability to simultaneously identify two valid states, high level and low level. Therefore, the accuracy of the determination result of the actual state of the switching quantity can be improved.

[0113] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A circuit for determining the state of a switch quantity, characterized in that: include: ECU module, control module and detection module; The output end of the ECU module is connected to the input end of the control module, and is used to send a first control signal to the control module; The output end of the control module is connected to the input end of the detection module, and is used to send a second control signal to the detection module based on the received first control signal, wherein when the first control signal is at a high level, the second control signal is at a low level, and when the first control signal is at a low level, the second control signal is at a high level; The input end of the detection module is linked to the output end of the control module, and is used to receive the second control signal sent by the control module, and is used to receive the switch input signal, and detect the effective state of the switch input signal based on the second control signal to obtain a detection result; The output end of the detection module is connected to the input end of the ECU module, and is used to send the detection result to the ECU module, so that the ECU module determines the state of the switch quantity based on the detection result.

2. The circuit according to claim 1, characterized in that The control module includes a first control switch and a second control switch; The control end of the first control switch is connected to the output end of the ECU module, the first end of the first control switch is grounded, and the second end of the first control switch is connected to the control end of the second control switch, and is used to conduct the path between the first end and the second end when the first control signal is at a high level, and disconnect the path between the first end and the second end when the first control signal is at a low level; The first end of the second control switch is connected to the input end of the detection module, and the second end of the second control switch is connected to the power supply, and is used to collect the voltage of the second end of the first control switch. When the voltage of the second end of the first control switch is at a low level, the path between the first end and the second end is disconnected to send a low-level second control signal to the detection module; when the voltage of the second end of the first control switch is at a high level, the path between the first end and the second end is connected to send a high-level second control signal to the detection module.

3. The circuit according to claim 2, characterized in that The control module further includes: a first resistor; The first end of the first resistor is grounded, and the second end of the first resistor is connected to the control end of the first control switch, for transmitting a low-level third control signal to the first control switch to disconnect the path between the first end and the second end of the first control switch.

4. The circuit according to claim 3, characterized in that The control module further includes: a second resistor; The first end of the second resistor is connected to the control end of the first control switch, and the second end of the second resistor is connected to the output end of the ECU module, so as to reduce the current value of the current in the path.

5. The circuit according to claim 4, characterized in that The control module further includes: a third resistor; A first end of the third resistor is connected to the control end of the second control switch, and a second end of the third resistor is connected to the power supply, for reducing a current value of the current in the path.

6. The circuit according to claim 5, characterized in that The control module further includes: a fourth resistor; A first end of the fourth resistor is connected to the input end of the detection module, and a second end of the fourth resistor is connected to the first end of the second control switch, for reducing a current value of the current in the path.

7. The circuit according to claim 1, characterized in that The detection module includes: a fifth resistor; The first end of the fifth resistor receives the switch input signal, and the second end of the fifth resistor is connected to the input end of the ECU module, and is used to reduce the current value of the current in the path.

8. The circuit according to claim 7, characterized in that The detection module further includes: a sixth resistor; The first end of the sixth resistor is connected to the second end of the fifth resistor, and the second end of the sixth resistor is grounded, so as to reduce the voltage value of the voltage in the path where the fifth resistor is located.

9. The circuit according to claim 8, characterized in that The detection module further includes: a capacitor; The first end of the capacitor is connected to the second end of the fifth resistor, and the second end of the capacitor is grounded, and is used to filter the voltage in the path where the fifth resistor is located.

10. The circuit according to claim 9, characterized in that The detection module also includes: a voltage stabilizer; The first end of the voltage regulator is connected to the second end of the fifth resistor, and the second end of the voltage regulator is grounded, and is used to regulate the voltage in the path where the fifth resistor is located so that the voltage in the path where the fifth resistor is located does not exceed a preset voltage value.

11. The circuit according to any one of claims 1 to 10, characterized in that: The circuit further comprises: a diode; The first end of the diode is connected to the second end of the second control switch, and the first end of the diode is connected to the power supply, so as to prevent the current in the path from flowing back to the power supply.