Signal detection interface circuit, system and signal detection method

By designing the signal detection interface circuit and using the detection switching circuit, power supply circuit and voltage dividing circuit, the compatibility of current and voltage signals in the vehicle controller is achieved, solving the problem of too many interfaces, saving costs and improving safety.

CN109240255BActive Publication Date: 2024-09-06UNITED AUTOMOTIVE ELECTRONICS SYST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201710557659.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2017-07-10
Publication Date
2024-09-06
Estimated Expiration
2037-07-10

AI Technical Summary

Technical Problem

The excessive number of interfaces in the vehicle controller leads to an increase in peripheral circuit area and cost.

Method used

Design a signal detection interface circuit, including a detection switching circuit, a power supply circuit and a voltage dividing circuit. The current sensor or voltage sensor is connected through the detection switching circuit. The same signal detection interface circuit is used to achieve compatibility of current and voltage signals and reduce the number of interface circuits. Component count and board area.

Benefits of technology

While the overall circuit topology remains unchanged, the compatible design of the voltage sensor and current sensor interfaces is achieved, which saves system costs, improves the applicability and safety of the interface, and detects interface short-circuit faults to ground.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109240255B
    Figure CN109240255B
Patent Text Reader

Abstract

The present invention provides a signal detection interface circuit, system and signal detection method. The signal detection interface circuit is connected between a controller and a current sensor or a voltage sensor. The signal detection interface circuit processes the detection signal of the current sensor or the voltage sensor to form an interface signal. The signal detection interface circuit provides the interface signal to the controller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle controllers, and in particular to a signal detection interface circuit, system and signal detection method. Background Art

[0002] Since the entire vehicle needs to detect a large amount of information, many types, complex situations, and high reliability requirements, the vehicle controller needs to carry multiple interfaces, such as a voltage-type signal interface used with a voltage sensor, and a current-type signal interface used with a current sensor. Different models of vehicle controllers use different numbers of voltage sensors and current sensors. In the early design of the vehicle controller, higher compatibility should be met as much as possible, but this requires increasing the number of voltage-type signal interfaces and current-type signal interfaces at the same time, while increasing the number and area of ​​the interface circuits, resulting in increased costs and an increase in the area of ​​the controller's peripheral circuits.

[0003] Therefore, it is necessary to design a detection signal interface solution that reduces the number and area of ​​peripheral interface circuits of a vehicle controller. Summary of the invention

[0004] The object of the present invention is to provide a signal detection interface circuit, system and signal detection method to solve the problem of excessive number of interfaces in existing vehicle controllers.

[0005] In order to solve the above technical problems, the present invention provides a signal detection interface circuit, which is connected between a controller and a current sensor or a voltage sensor, and processes the detection signal of the current sensor or the voltage sensor to form an interface signal, and provides the interface signal to the controller. The signal detection interface circuit includes a detection switching circuit, a power supply circuit and a voltage divider circuit, wherein:

[0006] The detection switching circuit is connected to the current sensor or the voltage sensor, and the detection switching circuit includes a first module, a second module and a third module;

[0007] When the detection switching circuit is connected to the current sensor, the first module and the second module are effective, the first module controls the on or off of the second module according to the detection signal of the current sensor, the second module is connected between the power supply circuit and the voltage divider circuit, the on and off of the second module controls the power supply circuit to provide power to the voltage divider circuit, and the voltage divider circuit forms a current interface signal according to the on or off of the second module;

[0008] When the detection switching circuit is connected to the voltage sensor, the first module and the third module are effective, the power supply circuit is connected to the voltage divider circuit through the first module and the third module, the first module controls the power supply circuit to provide power to the voltage divider circuit according to the detection signal of the voltage sensor, and the voltage divider circuit forms a voltage interface signal according to the power supply situation.

[0009] Optionally, in the signal detection interface circuit, the power supply circuit includes a first transistor and a second transistor, the first transistor is connected to a power supply and the detection switching circuit, and the second transistor is connected to a detection enable terminal, and the detection enable terminal turns the second transistor on or off.

[0010] Optionally, in the signal detection interface circuit, the first transistor is a PNP transistor, the second transistor is an NPN transistor, the base of the first transistor is connected to the collector of the second transistor, the emitter of the first transistor is connected to a power supply, and the collector of the first transistor is connected to the first module; the base of the second transistor is connected to the detection enable terminal, and the emitter of the second transistor is grounded.

[0011] Optionally, in the signal detection interface circuit, a resistor is connected between the base and emitter of the first transistor, there is a resistor between the base of the first transistor and the collector of the second transistor, a resistor is connected between the base and emitter of the second transistor, and there is a resistor between the base of the second transistor and the detection enable terminal.

[0012] Optionally, in the signal detection interface circuit, the power supply circuit further includes a diode, a cathode of the diode is connected to the emitter of the first transistor, and an anode of the diode is connected to a power supply.

[0013] Optionally, in the signal detection interface circuit, the first module includes a first resistor, one end of the first resistor is connected to the collector of the first transistor, and the other end is connected to the current sensor or the voltage sensor, wherein:

[0014] When the detection switching circuit is connected to the current sensor, the resistance of the first resistor is 200 ohms to 400 ohms;

[0015] When the detection switching circuit is connected to the voltage sensor, the resistance of the first resistor is 800 ohms to 1500 ohms.

[0016] Optionally, in the signal detection interface circuit, the second module includes a third transistor, a second resistor and a third resistor, the third transistor is a PNP type transistor, the first module controls the on or off of the third transistor according to the detection signal of the current sensor, the collector of the third transistor is connected to the voltage divider circuit, the emitter of the third transistor is connected to the power supply circuit, one end of the second resistor and the third resistor are connected to the base of the third transistor, and the other end is respectively connected to the two ends of the first resistor, and the connection end of the first resistor and the third resistor is also connected to the emitter of the third transistor.

[0017] Optionally, in the signal detection interface circuit, the third module includes a fourth resistor, the resistance of the fourth resistor is less than 0.05 ohms, one end of the fourth resistor is connected to the collector of the third transistor, and the other end is connected to the connection end of the first resistor and the second resistor.

[0018] Optionally, in the signal detection interface circuit, the voltage divider circuit includes a fifth resistor and a sixth resistor, one end of the fifth resistor is connected to the collector of the third transistor and the other end is connected to the controller, and one end of the sixth resistor is connected to the controller and the other end is grounded.

[0019] Optionally, in the signal detection interface circuit, the signal detection interface circuit further includes a diagnostic circuit, and the diagnostic circuit detects a short circuit fault to ground when the detection switching circuit is connected to a current sensor.

[0020] Optionally, in the signal detection interface circuit, the diagnostic circuit includes a fourth transistor, a fifth transistor and a clamping circuit, wherein:

[0021] The fourth transistor is a PNP transistor, the fifth transistor is an NPN transistor, the emitter of the fourth transistor is connected to the current sensor or the voltage sensor, the base of the fourth transistor is connected to the collector of the fifth transistor, the collector of the fourth transistor is connected to the clamping circuit, the emitter of the fifth transistor is grounded, and the base of the fifth transistor is connected to a diagnostic enable terminal, which turns on or off the fifth transistor.

[0022] Optionally, in the signal detection interface circuit, a resistor is connected between the base and emitter of the fourth transistor, a resistor is provided between the base of the fourth transistor and the collector of the fifth transistor, a resistor is connected between the base and emitter of the fifth transistor, and a resistor is provided between the base of the fifth transistor and the diagnostic enable terminal.

[0023] Optionally, in the signal detection interface circuit, the clamping circuit includes a seventh resistor and an eighth resistor, one end of the seventh resistor is connected to the collector of the fourth transistor and the other end is connected to the controller, and one end of the eighth resistor is connected to the controller and the other end is grounded.

[0024] Optionally, in the signal detection interface circuit, the clamping circuit also includes a ninth resistor and a first capacitor, the ninth resistor and the first capacitor constitute a filtering circuit, one end of the ninth resistor is connected to the seventh resistor and the eighth resistor, and the other end is connected to the controller, one end of the first capacitor is connected to the controller, and the other end is grounded.

[0025] The present invention also provides a signal detection interface system, the signal detection interface system comprising a signal detection interface circuit, a controller, and a sensor, wherein:

[0026] The signal detection interface circuit is connected between the controller and the sensor, the signal detection interface circuit processes the detection signal of the sensor to form an interface signal, and the signal detection interface circuit provides the interface signal to the controller;

[0027] The signal detection interface circuit includes a detection switching circuit, a power supply circuit and a voltage dividing circuit, the detection switching circuit is connected to the sensor, and the detection switching circuit includes a first module, a second module and a third module;

[0028] When the sensor is a current sensor, the first module and the second module are effective, the first module controls the on or off of the second module according to the detection signal of the current sensor, the second module is connected between the power supply circuit and the voltage divider circuit, the on and off of the second module controls the power supply circuit to provide power to the voltage divider circuit, and the voltage divider circuit forms a current interface signal according to the on or off of the second module;

[0029] When the sensor is a voltage sensor, the first module and the third module are effective, the power supply circuit is connected to the voltage divider circuit through the first module and the third module, the first module controls the power supply circuit to provide power to the voltage divider circuit according to the detection signal of the voltage sensor, and the voltage divider circuit forms a voltage interface signal according to the power supply situation.

[0030] Optionally, in the signal detection interface system, the current sensor forms a first measured signal according to the measured object, and the current sensor includes a sixth transistor and a current source, the sixth transistor is an NPN type transistor, the base of the sixth transistor is controlled by the first measured signal, the collector of the sixth transistor is connected to the current source, and the emitter of the sixth transistor is grounded.

[0031] Optionally, in the signal detection interface system, the voltage sensor forms a second measured signal according to the measured object, and the voltage sensor includes a seventh transistor, which is an NPN transistor, and the base of the seventh transistor is controlled by the second measured signal, the collector of the seventh transistor is connected to the signal detection interface circuit, and the emitter of the seventh transistor is grounded.

[0032] The present invention also provides a signal detection method, the signal detection method comprising:

[0033] The signal detection interface circuit processes the detection signal of the sensor to form an interface signal, and the signal detection interface circuit provides the interface signal to the controller;

[0034] When the sensor is a current sensor, the first module and the second module are effective, the first module controls the on or off of the second module according to the detection signal of the current sensor, the second module is connected between the power supply circuit and the voltage divider circuit, the on and off of the second module controls the power supply circuit to provide power to the voltage divider circuit, and the voltage divider circuit forms a current interface signal according to the on or off of the second module;

[0035] When the sensor is a voltage sensor, the first module and the third module are effective, the power supply circuit is connected to the voltage divider circuit through the first module and the third module, the first module controls the power supply circuit to provide power to the voltage divider circuit according to the detection signal of the voltage sensor, and the voltage divider circuit forms a voltage interface signal according to the power supply situation.

[0036] Optionally, in the signal detection method, the first module effectively includes: current flows through the first resistor.

[0037] Optionally, in the signal detection method, the second module effectively includes: current flows through the third transistor, the second resistor, and the third resistor.

[0038] Optionally, in the signal detection method, the third module effectively includes: current flows through the fourth resistor.

[0039] In the signal detection interface circuit, system and signal detection method provided by the present invention, when the current sensor is connected through the detection switching circuit, the second module is effective, and when the detection switching circuit is connected to the voltage sensor, the third module is effective, which can improve the compatibility of the signal detection interface circuit in the early stage of the circuit design, and because the current sensor and the voltage sensor share the same signal detection interface circuit, the number of interface circuit components and the area of ​​the circuit board will not be greatly increased, saving costs. The present invention realizes the compatible design of the voltage sensor and current sensor interfaces by selecting and pasting components under the premise that the overall circuit topology remains unchanged, saving system costs and improving the applicability of the interface. The circuit is built with relatively simple components and has a low hardware cost. In addition, a protective design is made for the current sensor interface, and the diagnostic circuit can detect the interface short-circuit fault to the ground, thereby improving the safety of the interface circuit. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a schematic diagram of a signal detection interface circuit, system and signal detection method of the present invention;

[0041] Figure 2 It is a schematic diagram of the connection between the signal detection interface circuit and the current sensor of the present invention;

[0042] Figure 3 It is a schematic diagram of the connection between the signal detection interface circuit and the voltage sensor of the present invention;

[0043] As shown in the figure: 10-signal detection interface circuit; 11-detection switching circuit; 12-power supply circuit; 13-voltage divider circuit; 14-diagnosis circuit; 20-controller; 30-sensor; 31-current sensor; 32-voltage sensor; 40-power supply. DETAILED DESCRIPTION

[0044] The signal detection interface circuit, system and signal detection method proposed in the present invention are further described in detail below in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description and claims. It should be noted that the drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0045] The core idea of ​​the present invention is to provide a signal detection interface circuit, system and signal detection method to reduce the number and area of ​​the peripheral interface circuits of the vehicle controller.

[0046] To realize the above idea, the present invention provides a signal detection interface circuit, system and signal detection method, wherein the signal detection interface circuit is connected between a controller and a current sensor or a voltage sensor, the signal detection interface circuit processes the detection signal of the current sensor or the voltage sensor to form an interface signal, and the signal detection interface circuit provides the interface signal to the controller, the signal detection interface circuit includes a detection switching circuit, a power supply circuit and a voltage divider circuit, wherein: the detection switching circuit is connected to the current sensor or the voltage sensor, the detection switching circuit includes a first module, a second module and a third module; when the detection switching circuit is connected to the current sensor, the first module and the second module are effective, and the first module and the second module are effective. A module controls the on or off of the second module according to the detection signal of the current sensor, the second module is connected between the power supply circuit and the voltage divider circuit, the on and off of the second module controls the power supply circuit to provide power to the voltage divider circuit, and the voltage divider circuit forms a current interface signal according to the on or off of the second module; when the detection switching circuit is connected to the voltage sensor, the first module and the third module are effective, the power supply circuit is connected to the voltage divider circuit through the first module and the third module, the first module controls the power supply circuit to provide power to the voltage divider circuit according to the detection signal of the voltage sensor, and the voltage divider circuit forms a voltage interface signal according to the power supply situation.

[0047] <Example 1>

[0048] like Figures 1 to 3As shown, this embodiment provides a signal detection interface circuit 10, the signal detection interface circuit 10 is located in the peripheral circuit of a controller 20, the signal detection interface circuit 10 is connected to a current sensor 31 or a voltage sensor 32, the signal detection interface circuit is connected between a controller and a current sensor or a voltage sensor, the signal detection interface circuit 10 processes the detection signal of the current sensor 31 or the voltage sensor 32 to form an interface signal, the signal detection interface circuit 10 provides the interface signal to the controller 20, the signal detection interface circuit 10 includes a detection switching circuit 11, a power supply circuit 12 and a voltage divider circuit 13, wherein: the detection switching circuit is connected to the current sensor or the voltage sensor, and the detection switching circuit includes a first module, a second module and a third module; when the detection switching circuit 11 is connected to the current sensor 31 , the first module and the second module are effective, the first module controls the on or off of the second module according to the detection signal of the current sensor 31, the second module is connected between the power supply circuit 12 and the voltage divider circuit 13, the on and off of the second module controls the power supply circuit 12 to provide power to the voltage divider circuit 13, and the voltage divider circuit 13 forms a current interface signal according to the on or off of the second module; when the detection switching circuit 11 is connected to the voltage sensor 32, the first module and the third module are effective, the power supply circuit 12 is connected to the voltage divider circuit 13 through the first module and the third module, the first module controls the power supply circuit 12 to provide power to the voltage divider circuit 13 according to the detection signal of the voltage sensor 32, and the voltage divider circuit 13 forms a voltage interface signal according to the power supply situation.

[0049] In the signal detection interface circuit provided in this embodiment, when the current sensor 31 is connected through the detection switching circuit 11, the second module is effective, and when the detection switching circuit 11 is connected to the voltage sensor 32, the third module is effective. The compatibility of the signal detection interface circuit can be improved in the early design of the circuit. Moreover, since the current sensor 31 and the voltage sensor 32 share the same signal detection interface circuit 10, the number of interface circuit components and the area of ​​the circuit board will not be greatly increased, thereby saving costs.

[0050] Specifically, in the signal detection interface circuit 10, the power supply circuit 12 includes a first transistor Q1 and a second transistor Q2, the first transistor Q1 is connected to the power supply 40 and the detection switching circuit 11, and the second transistor Q2 is connected to a detection enable terminal POWER_EN, and the detection enable terminal turns the second transistor on or off. The first transistor Q1 is a PNP-type triode, and the second transistor Q2 is an NPN-type triode. The base of the first transistor Q1 is connected to the collector of the second transistor Q2, the emitter of the first transistor Q1 is connected to the power supply 40, and the collector of the first transistor Q1 is connected to the first module; the base of the second transistor Q2 is connected to the detection enable terminal POWER_EN, and the emitter of the second transistor Q2 is grounded. In the signal detection interface circuit, a resistor R10 is connected between the base and emitter of the first transistor Q1, a resistor R11 is provided between the base of the first transistor Q1 and the collector of the second transistor Q2, a resistor R12 is connected between the base and emitter of the second transistor Q2, and a resistor R13 is provided between the base of the second transistor Q2 and the detection enable terminal POWER_EN.

[0051] Furthermore, in the signal detection interface circuit, the power providing circuit 12 further includes a diode D1 , a cathode of the diode D1 is connected to the emitter of the first transistor Q1 , and an anode of the diode D1 is connected to the power source 40 .

[0052] Furthermore, in the signal detection interface circuit, the first module includes a first resistor R1, one end of the first resistor R1 is connected to the collector of the first transistor Q1, and the other end is connected to the current sensor 31 or the voltage sensor 32, wherein: when the detection switching circuit 11 is connected to the current sensor 31, the resistance of the first resistor R1 is 200 ohms to 400 ohms; when the detection switching circuit 11 is connected to the voltage sensor 32, the resistance of the first resistor R1 is 800 ohms to 1500 ohms.

[0053] In addition, in the signal detection interface circuit, the second module includes a third transistor Q3, a second resistor R2 and a third resistor R3, the third transistor Q3 is a PNP type transistor, the first module controls the on or off of the third transistor Q3 according to the detection signal of the current sensor 31, the collector of the third transistor Q3 is connected to the voltage divider circuit 13, the emitter of the third transistor Q3 is connected to the power supply circuit 12, one end of the second resistor R2 and the third resistor R3 are both connected to the base of the third transistor Q3, and the other ends are respectively connected to the two ends of the first resistor R1, and the connecting end of the first resistor R1 and the third resistor R3 is also connected to the emitter of the third transistor Q3.

[0054] Specifically, in the signal detection interface circuit, the third module includes a fourth resistor R4, the resistance of the fourth resistor R4 is less than 0.05, close to zero ohm, one end of the fourth resistor R4 is connected to the collector of the third transistor Q3, and the other end is connected to the connection end of the first resistor R1 and the second resistor R2.

[0055] like Figures 1 to 3 As shown, in the signal detection interface circuit, the voltage divider circuit 13 includes a fifth resistor R5 and a sixth resistor R6, one end of the fifth resistor R5 is connected to the collector of the third transistor Q3, and the other end is connected to the controller 20, and one end of the sixth resistor R6 is connected to the controller 20, and the other end is grounded.

[0056] Further, in the signal detection interface circuit, the signal detection interface circuit 10 further includes a diagnosis circuit 14, and the diagnosis circuit 14 detects a short-to-ground fault when the detection switching circuit 11 is connected to the current sensor 31. The diagnosis circuit 14 includes a fourth transistor Q4, a fifth transistor Q5, and a clamping circuit, wherein: the fourth transistor Q4 is a PNP-type transistor, the fifth transistor Q5 is an NPN-type transistor, the emitter of the fourth transistor Q4 is connected to the current sensor 31 or the voltage sensor 32, the base of the fourth transistor Q4 is connected to the collector of the fifth transistor Q5, the collector of the fourth transistor Q4 is connected to the clamping circuit, the emitter of the fifth transistor Q5 is grounded, and the base of the fifth transistor Q5 is connected to a diagnosis enable terminal DIAG_EN, and the diagnosis enable terminal turns the fifth transistor on or off. In addition, in the signal detection interface circuit, a resistor R14 is connected between the base and emitter of the fourth transistor Q4, a resistor R15 is provided between the base of the fourth transistor Q4 and the collector of the fifth transistor Q5, a resistor R16 is connected between the base and emitter of the fifth transistor Q5, and a resistor R17 is provided between the base of the fifth transistor Q5 and the diagnosis enable terminal DIAG_EN.

[0057] The clamping circuit includes a seventh resistor R7 and an eighth resistor R8, one end of the seventh resistor R7 is connected to the collector of the fourth transistor Q4, and the other end is connected to the controller 20, one end of the eighth resistor R8 is connected to the controller 20, and the other end is grounded. In the signal detection interface circuit, the clamping circuit also includes a ninth resistor R9 and a first capacitor C1, the ninth resistor R9 and the first capacitor C1 form a filter circuit, one end of the ninth resistor R9 is connected to the seventh resistor R7 and the eighth resistor R8, and the other end is connected to the controller 20, one end of the first capacitor C1 is connected to the controller 20, and the other end is grounded.

[0058] In summary, the above embodiments describe in detail different configurations of the signal detection interface circuit. Of course, the present invention includes but is not limited to the configurations listed in the above embodiments. Any content that is transformed based on the configurations provided in the above embodiments belongs to the scope of protection of the present invention. Those skilled in the art can draw inferences based on the contents of the above embodiments.

[0059] The present invention realizes the compatible design of the voltage sensor 32 and the current sensor interface 31 by selecting and pasting components under the premise that the overall circuit topology structure remains unchanged, thereby saving system cost and improving the applicability of the interface. The circuit is built with relatively simple components, and the hardware cost is low. In addition, a protective design is made for the current sensor interface, and the diagnostic circuit can detect the interface short circuit fault to the ground, thereby improving the safety of the interface circuit.

[0060] <Example 2>

[0061] like Figure 1 As shown, this embodiment also provides a signal detection interface system and a signal detection method, wherein the signal detection interface system includes a signal detection interface circuit 10, a controller 20, and a sensor 30, wherein: the signal detection interface circuit 10 is connected between the controller 20 and the sensor 30, the signal detection interface circuit 10 processes the detection signal of the sensor 30 to form an interface signal, and the signal detection interface circuit 10 provides the interface signal to the controller 20; the signal detection interface circuit 10 includes a detection switching circuit 11, a power supply circuit 12 and a voltage divider circuit 13, the detection switching circuit 11 is connected to the sensor 30, and the detection switching circuit 11 includes a first module, a second module and a third module.

[0062] Specifically, in the signal detection interface system, if Figure 2As shown, when the sensor is a current sensor 31, the current sensor forms a first measured signal according to the measured object, and the current sensor 31 includes a sixth transistor Q6 and a current source, the sixth transistor Q6 is an NPN-type triode, the base of the sixth transistor Q6 is controlled by the first measured signal, the collector of the sixth transistor Q6 is connected to the current source S1, and the emitter of the sixth transistor Q6 is grounded; the first module and the second module are effective, the first module controls the conduction or shutdown of the second module according to the detection signal of the current sensor 31, the second module is connected between the power supply circuit 12 and the voltage divider circuit 13, the conduction and shutdown of the second module control the power supply circuit 12 to provide power to the voltage divider circuit 13, and the voltage divider circuit 13 forms a current interface signal according to the conduction or shutdown of the second module.

[0063] like Figure 3 As shown, when the sensor is a voltage sensor 32, the voltage sensor forms a second measured signal according to the measured object, and the voltage sensor 32 includes a seventh transistor Q7, which is an NPN-type triode, and the base of the seventh transistor Q7 is controlled by the second measured signal, the collector of the seventh transistor Q7 is connected to the signal detection interface circuit 10, and the emitter of the seventh transistor Q7 is grounded; the first module and the third module are effective, and the power supply circuit 12 is connected to the voltage divider circuit 13 through the first module and the third module. The first module controls the power supply circuit 12 to provide power to the voltage divider circuit 13 according to the detection signal of the voltage sensor 31, and the voltage divider circuit 13 forms a voltage interface signal according to the power supply situation.

[0064] In the signal detection interface system provided in this embodiment, when the current sensor 31 is connected through the detection switching circuit 11, the second module is effective, and when the detection switching circuit 11 is connected to the voltage sensor 32, the third module is effective, which can improve the compatibility of the signal detection interface circuit in the early stage of the circuit design, and because the current sensor 31 and the voltage sensor 32 share the same signal detection interface circuit 10, the number of interface circuit components and the area of ​​the circuit board will not be greatly increased, thereby saving costs.

[0065] Specifically, in the signal detection interface system 10, the power supply circuit 12 includes a first transistor Q1 and a second transistor Q2, the first transistor Q1 is connected to the power supply 40 and the detection switching circuit 11, and the second transistor Q2 is connected to a detection enable terminal POWER_EN. The first transistor Q1 is a PNP-type transistor, the second transistor Q2 is an NPN-type transistor, the base of the first transistor Q1 is connected to the collector of the second transistor Q2, the emitter of the first transistor Q1 is connected to the power supply 40, and the collector of the first transistor Q1 is connected to the first module; the base of the second transistor Q2 is connected to the detection enable terminal POWER_EN, and the emitter of the second transistor Q2 is grounded. In the signal detection interface circuit, a resistor R10 is connected between the base and emitter of the first transistor Q1, a resistor R11 is provided between the base of the first transistor Q1 and the collector of the second transistor Q2, a resistor R12 is connected between the base and emitter of the second transistor Q2, and a resistor R13 is provided between the base of the second transistor Q2 and the detection enable terminal POWER_EN.

[0066] Furthermore, in the signal detection interface system, the power providing circuit 12 further includes a diode D1 , a cathode of the diode D1 is connected to the emitter of the first transistor Q1 , and an anode of the diode D1 is connected to the power source 40 .

[0067] Furthermore, in the signal detection interface system, the first module includes a first resistor R1, one end of the first resistor R1 is connected to the collector of the first transistor Q1, and the other end is connected to the current sensor 31 or the voltage sensor 32, wherein: when the detection switching circuit 11 is connected to the current sensor 31, the resistance of the first resistor R1 is 200 ohms to 400 ohms; when the detection switching circuit 11 is connected to the voltage sensor 32, the resistance of the first resistor R1 is 800 ohms to 1500 ohms.

[0068] In addition, in the signal detection interface system, the second module includes a third transistor Q3, a second resistor R2 and a third resistor R3, the third transistor Q3 is a PNP type triode, the first module controls the on or off of the third transistor Q3 according to the detection signal of the current sensor 31, the collector of the third transistor Q3 is connected to the voltage divider circuit 13, the emitter of the third transistor Q3 is connected to the power supply circuit 12, one end of the second resistor R2 and the third resistor R3 are connected to the base of the third transistor Q3, and the other end is respectively connected to the two ends of the first resistor R1, and the connection end of the first resistor R1 and the third resistor R3 is also connected to the emitter of the third transistor Q3.

[0069] Specifically, in the signal detection interface system, the third module includes a fourth resistor R4, the resistance of the fourth resistor R4 is zero ohm, one end of the fourth resistor R4 is connected to the collector of the third transistor Q3, and the other end is connected to the connection end of the first resistor R1 and the second resistor R2.

[0070] like Figures 1 to 3 As shown, in the signal detection interface system, the voltage divider circuit 13 includes a fifth resistor R5 and a sixth resistor R6, one end of the fifth resistor R5 is connected to the collector of the third transistor Q3, and the other end is connected to the controller 20, and one end of the sixth resistor R6 is connected to the controller 20, and the other end is grounded.

[0071] Further, in the signal detection interface circuit, the signal detection interface circuit 10 also includes a diagnostic circuit 14, and the diagnostic circuit 14 detects a short-to-ground fault when the signal detection interface circuit 10 is connected to the current sensor 31. The diagnostic circuit 14 includes a fourth transistor Q4, a fifth transistor Q5 and a clamping circuit, wherein: the fourth transistor Q4 is a PNP-type transistor, the fifth transistor Q5 is an NPN-type transistor, the emitter of the fourth transistor Q4 is connected to the current sensor 31 or the voltage sensor 32, the base of the fourth transistor Q4 is connected to the collector of the fifth transistor Q5, the collector of the fourth transistor Q4 is connected to the clamping circuit, the emitter of the fifth transistor Q5 is grounded, and the base of the fifth transistor Q5 is connected to a diagnostic enable terminal DIAG_EN. In addition, in the signal detection interface circuit, a resistor R14 is connected between the base and emitter of the fourth transistor Q4, a resistor R15 is provided between the base of the fourth transistor Q4 and the collector of the fifth transistor Q5, a resistor R16 is connected between the base and emitter of the fifth transistor Q5, and a resistor R17 is provided between the base of the fifth transistor Q5 and the diagnosis enable terminal DIAG_EN.

[0072] The clamping circuit includes a seventh resistor R7 and an eighth resistor R8, one end of the seventh resistor R7 is connected to the collector of the fourth transistor Q4, and the other end is connected to the controller 20, one end of the eighth resistor R8 is connected to the controller 20, and the other end is grounded. In the signal detection interface circuit, the clamping circuit also includes a ninth resistor R9 and a first capacitor C1, the ninth resistor R9 and the first capacitor C1 form a filter circuit, one end of the ninth resistor R9 is connected to the seventh resistor R7 and the eighth resistor R8, and the other end is connected to the controller 20, one end of the first capacitor C1 is connected to the controller 20, and the other end is grounded.

[0073] The present invention also provides a signal detection method, which includes: a signal detection interface circuit 10 processes a detection signal of a sensor 30 to form an interface signal, and the signal detection interface circuit 10 provides the interface signal to a controller 20; when the sensor 30 is a current sensor 31, a first module and a second module are effective, the first module controls the on or off of the second module according to the detection signal of the current sensor, the second module is connected between a power supply circuit 12 and a voltage divider circuit 13, the on and off of the second module controls the power supply circuit 12 to provide power to the voltage divider circuit 13, and the voltage divider circuit 13 forms a current interface signal according to the on or off of the second module; when the sensor is a voltage sensor 32, the first module and the third module are effective, the power supply circuit 12 is connected to the voltage divider circuit 13 through the first module and the third module, the first module controls the power supply circuit 12 to provide power to the voltage divider circuit 13 according to the detection signal of the voltage sensor 32, and the voltage divider circuit 13 forms a voltage interface signal according to the power supply situation.

[0074] Specifically, the first module effectively includes: current flows through the first resistor R1. The second module effectively includes: current flows through the third transistor Q3, the second resistor R2 and the third resistor R3. The third module effectively includes: current flows through the fourth resistor R4.

[0075] like Figure 2 As shown, when the signal detection interface circuit 10 is used in conjunction with the current sensor 31, the third module fails, the fourth resistor R4 is not welded, and the power supply 40 provides a DC voltage through the diode D1. During detection, the detection enable terminal POWER_EN outputs a high potential, the second transistor Q2 is turned on, the collector of Q2 is pulled to a low potential, the first transistor Q1 is turned on, and the power supply voltage output by the power supply 40 is provided to the detection switching circuit 11. The first measured signal S2 is a current signal, and the current source S1 in the current sensor 31 is a constant current source. The current sensor 31 determines the pulse width modulation voltage of the sixth transistor Q6 according to the amplitude relationship between the first measured signal S2 and the current source S1. The ratio of the on-time and off-time of Q6 can reflect the amplitude of the first measured signal. When the amplitude of the first measured signal is greater than the threshold, the on-current of the current sensor is large, and the current flowing through the first resistor R1 is equal to the on-current of the current sensor. When the voltage value across the first resistor R1 is large enough to make the voltage between the base and the emitter of the third transistor Q3 greater than the on-voltage of the third transistor, the third transistor is turned on, and the power supply voltage is transmitted to the voltage divider circuit 13 through the third transistor, and then transmitted to the controller 20 by the voltage divider circuit.

[0076] like Figure 3As shown, when the signal detection interface circuit 10 is used in conjunction with the voltage sensor 32, the second module fails, the third transistor Q3, the second resistor R2 and the third resistor R3 are not welded, and the seventh transistor Q7 in the voltage sensor 32 is turned on and off according to the amplitude of the second measured signal, and the ratio of the on-time and the off-time is proportional to the amplitude of the second measured signal. When the seventh transistor Q7 is turned on, the connection ends of R1 and R4 are grounded, and the voltage divider circuit 13 outputs a low level to the controller 20. When the seventh transistor Q7 is turned off, the level of the connection ends of R1 and R4 is proportional to the power supply voltage, and the voltage divider circuit 13 outputs a high level to the controller 20, and the amplitude of the high level is proportional to the power supply voltage. The low level and the high level appear alternately, and the ratio of the two is related to the second measured signal.

[0077] In the signal detection interface system and signal detection method provided in this embodiment, when the current sensor is connected through the detection switching circuit, the second module is effective, and when the detection switching circuit is connected to the voltage sensor, the third module is effective. The compatibility of the signal detection interface circuit can be improved in the early circuit design, and because the current sensor and the voltage sensor share the same signal detection interface circuit, the number of interface circuit components and the area of ​​the circuit board will not be greatly increased, thereby saving costs.

[0078] The present invention realizes the compatible design of the voltage sensor 32 and the current sensor interface 31 by selecting and pasting components under the premise that the overall circuit topology structure remains unchanged, thereby saving system cost and improving the applicability of the interface. The circuit is built with relatively simple components, and the hardware cost is low. In addition, a protective design is made for the current sensor interface, and the diagnostic circuit can detect the interface short circuit fault to the ground, thereby improving the safety of the interface circuit.

[0079] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0080] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. A signal detection interface circuit, wherein the signal detection interface circuit is connected between a controller and a current sensor or a voltage sensor, wherein the signal detection interface circuit processes the detection signal of the current sensor or the voltage sensor to form an interface signal, and wherein the signal detection interface circuit provides the interface signal to the controller, wherein: The signal detection interface circuit includes a detection switching circuit, a power supply circuit and a voltage divider circuit, wherein: The detection switching circuit is connected to the current sensor or the voltage sensor, and the detection switching circuit includes a first module, a second module and a third module; When the detection switching circuit is connected to the current sensor, the first module and the second module are effective, the first module controls the on or off of the second module according to the detection signal of the current sensor, the second module is connected between the power supply circuit and the voltage divider circuit, the on and off of the second module controls the power supply circuit to provide power to the voltage divider circuit, and the voltage divider circuit forms a current interface signal according to the on or off of the second module; When the detection switching circuit is connected to the voltage sensor, the first module and the third module are effective, the power supply circuit is connected to the voltage divider circuit through the first module and the third module, the first module controls the power supply circuit to provide power to the voltage divider circuit according to the detection signal of the voltage sensor, and the voltage divider circuit forms a voltage interface signal according to the power supply situation.

2. The signal detection interface circuit according to claim 1, characterized in that: The power supply circuit includes a first transistor and a second transistor, the first transistor is connected to a power source and the detection switching circuit, and the second transistor is connected to a detection enable terminal, and the detection enable terminal turns the second transistor on or off.

3. The signal detection interface circuit according to claim 2, characterized in that: The first transistor is a PNP transistor, the second transistor is an NPN transistor, the base of the first transistor is connected to the collector of the second transistor, the emitter of the first transistor is connected to a power supply, and the collector of the first transistor is connected to the first module; the base of the second transistor is connected to the detection enable terminal, and the emitter of the second transistor is grounded.

4. The signal detection interface circuit according to claim 3, characterized in that: A resistor is connected between the base and emitter of the first transistor, a resistor is provided between the base of the first transistor and the collector of the second transistor, a resistor is connected between the base and emitter of the second transistor, and a resistor is provided between the base of the second transistor and the detection enable terminal.

5. The signal detection interface circuit according to claim 3, characterized in that: The power supply circuit further includes a diode, wherein a cathode of the diode is connected to an emitter of the first transistor, and an anode of the diode is connected to a power source.

6. The signal detection interface circuit according to claim 3, characterized in that: The first module includes a first resistor, one end of the first resistor is connected to the collector of the first transistor, and the other end of the first resistor is connected to the current sensor or the voltage sensor, wherein: When the detection switching circuit is connected to the current sensor, the resistance of the first resistor is 200 ohms to 400 ohms; When the detection switching circuit is connected to the voltage sensor, the resistance of the first resistor is 800 ohms to 1500 ohms.

7. The signal detection interface circuit according to claim 6, characterized in that: The second module includes a third transistor, a second resistor and a third resistor, the third transistor is a PNP type triode, the first module controls the on or off of the third transistor according to the detection signal of the current sensor, the collector of the third transistor is connected to the voltage divider circuit, the emitter of the third transistor is connected to the power supply circuit, one end of the second resistor and the third resistor are connected to the base of the third transistor, and the other end is respectively connected to the two ends of the first resistor, and the connection end of the first resistor and the third resistor is also connected to the emitter of the third transistor.

8. The signal detection interface circuit according to claim 7, characterized in that: The third module includes a fourth resistor, the resistance of the fourth resistor is less than 0.05 ohms, one end of the fourth resistor is connected to the collector of the third transistor, and the other end of the fourth resistor is connected to the connection end of the first resistor and the second resistor.

9. The signal detection interface circuit according to claim 7, characterized in that: The voltage divider circuit includes a fifth resistor and a sixth resistor, wherein one end of the fifth resistor is connected to the collector of the third transistor and the other end is connected to the controller, and one end of the sixth resistor is connected to the controller and the other end is grounded.

10. The signal detection interface circuit according to claim 1, characterized in that: The signal detection interface circuit further includes a diagnostic circuit, and the diagnostic circuit detects a short-to-ground fault when the detection switching circuit is connected to a current sensor.

11. The signal detection interface circuit according to claim 10, characterized in that: The diagnostic circuit comprises a fourth transistor, a fifth transistor and a clamping circuit, wherein: The fourth transistor is a PNP transistor, the fifth transistor is an NPN transistor, the emitter of the fourth transistor is connected to the current sensor or the voltage sensor, the base of the fourth transistor is connected to the collector of the fifth transistor, the collector of the fourth transistor is connected to the clamping circuit, the emitter of the fifth transistor is grounded, and the base of the fifth transistor is connected to a diagnostic enable terminal, which turns on or off the fifth transistor.

12. The signal detection interface circuit according to claim 11, characterized in that: A resistor is connected between the base and emitter of the fourth transistor, a resistor is provided between the base of the fourth transistor and the collector of the fifth transistor, a resistor is connected between the base and emitter of the fifth transistor, and a resistor is provided between the base of the fifth transistor and the diagnosis enable terminal.

13. The signal detection interface circuit according to claim 11, characterized in that: The clamping circuit includes a seventh resistor and an eighth resistor, wherein one end of the seventh resistor is connected to the collector of the fourth transistor and the other end is connected to the controller, and one end of the eighth resistor is connected to the controller and the other end is grounded.

14. The signal detection interface circuit according to claim 13, characterized in that: The clamping circuit also includes a ninth resistor and a first capacitor, the ninth resistor and the first capacitor form a filtering circuit, one end of the ninth resistor is connected to the seventh resistor and the eighth resistor, and the other end is connected to the controller, one end of the first capacitor is connected to the controller, and the other end is grounded.

15. A signal detection interface system, characterized in that: The signal detection interface system includes a signal detection interface circuit, a controller, and a sensor, wherein: The signal detection interface circuit is connected between the controller and the sensor, the signal detection interface circuit processes the detection signal of the sensor to form an interface signal, and the signal detection interface circuit provides the interface signal to the controller; The signal detection interface circuit includes a detection switching circuit, a power supply circuit and a voltage dividing circuit, the detection switching circuit is connected to the sensor, and the detection switching circuit includes a first module, a second module and a third module; When the sensor is a current sensor, the first module and the second module are effective, the first module controls the on or off of the second module according to the detection signal of the current sensor, the second module is connected between the power supply circuit and the voltage divider circuit, the on and off of the second module controls the power supply circuit to provide power to the voltage divider circuit, and the voltage divider circuit forms a current interface signal according to the on or off of the second module; When the sensor is a voltage sensor, the first module and the third module are effective, the power supply circuit is connected to the voltage divider circuit through the first module and the third module, the first module controls the power supply circuit to provide power to the voltage divider circuit according to the detection signal of the voltage sensor, and the voltage divider circuit forms a voltage interface signal according to the power supply situation.

16. The signal detection interface system according to claim 15, characterized in that: The current sensor forms a first measured signal according to the measured object. The current sensor includes a sixth transistor and a current source. The sixth transistor is an NPN-type transistor. The base of the sixth transistor is controlled by the first measured signal. The collector of the sixth transistor is connected to the current source, and the emitter of the sixth transistor is grounded.

17. The signal detection interface system according to claim 15, characterized in that: The voltage sensor forms a second measured signal according to the measured object. The voltage sensor includes a seventh transistor, which is an NPN transistor. The base of the seventh transistor is controlled by the second measured signal, the collector of the seventh transistor is connected to the signal detection interface circuit, and the emitter of the seventh transistor is grounded.

18. A signal detection method, characterized in that: The signal detection method comprises: The signal detection interface circuit processes the detection signal of the sensor to form an interface signal, and the signal detection interface circuit provides the interface signal to the controller; wherein the signal detection interface circuit is the signal detection interface circuit according to any one of claims 1 to 14; When the sensor is a current sensor, the first module and the second module are effective, the first module controls the on or off of the second module according to the detection signal of the current sensor, the second module is connected between the power supply circuit and the voltage divider circuit, the on and off of the second module controls the power supply circuit to provide power to the voltage divider circuit, and the voltage divider circuit forms a current interface signal according to the on or off of the second module; When the sensor is a voltage sensor, the first module and the third module are effective, the power supply circuit is connected to the voltage divider circuit through the first module and the third module, the first module controls the power supply circuit to provide power to the voltage divider circuit according to the detection signal of the voltage sensor, and the voltage divider circuit forms a voltage interface signal according to the power supply situation.

19. The signal detection method according to claim 18, characterized in that: The first module effectively includes: current flows through the first resistor.

20. The signal detection method according to claim 18, characterized in that: The second module effectively includes: current flows through the third transistor, the second resistor and the third resistor.

21. The signal detection method according to claim 18, characterized in that: The third module effectively includes: current flows through the fourth resistor.