A high-side and low-side switch detection circuit and method

By designing a high-side and low-side switch detection circuit and using relays and controllers to realize automatic switching detection of high- and low-side switches, the problem of poor test compatibility in the existing technology is solved and the test efficiency and accuracy are improved.

CN117310442BActive Publication Date: 2024-10-11成都天地直方发动机有限公司 +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311251378.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2024-10-11
Estimated Expiration
2043-09-26

AI Technical Summary

Technical Problem

The high-side and low-side switch testing in existing automotive controllers cannot achieve compatibility, resulting in complex wiring of test equipment, many types of different power loads, and low test efficiency.

Method used

Design a high- and low-side switch detection circuit that uses power loads, relays, and controllers to obtain the type information of the drive circuit under test through the controller, automatically switches the detection circuit, and controls the grounding or power supply status of the power load through the relay to achieve high- and low-side switching. Compatibility testing of switches.

Benefits of technology

It realizes the automatic switching detection of high and low side switches, simplifies the test process, improves the test efficiency, and uses the current sensor to judge the on-off and current carrying capacity, which improves the accuracy of the test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117310442B_ABST
    Figure CN117310442B_ABST
Patent Text Reader

Abstract

The invention relates to a high-side and low-side switch detection circuit and method, wherein the circuit comprises a power load, a first relay and a controller; a signal input end of the controller is connected to a drive circuit to be tested, so as to obtain type information of the drive circuit to be tested; a signal output end of the controller is connected to the first relay, so as to control the first relay according to the type information; under the control of the controller, a moving contact of the first relay is selectively connected to a first static contact or a second static contact; the signal input end of the controller is also connected to one end of the power load, so as to monitor a voltage signal at one end of the power load, and judge whether the drive circuit to be tested is on or off according to the voltage signal; the invention can identify the types of high-side and low-side switches, and cut off the corresponding detection circuit according to the types of the high-side and low-side switches, so as to realize the compatibility test of the high-side and low-side switches, i.e., the power supply circuit and the grounding loop in the invention, without setting test circuits separately, so that the test of the high-side and low-side switches is more convenient and economical.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile auxiliary control, and in particular to a high-side and low-side switch detection circuit and method. Background Art

[0002] As automobile functions continue to expand and emissions continue to upgrade, there are more and more auxiliary devices, such as various lights, valves, motors, heating equipment, etc. In the automobile controller, corresponding drive circuits are needed to control peripheral devices, resulting in a large number of drive circuits in the controller, which are also called power switch circuits. According to different peripheral control methods, the power switch in the controller is generally divided into a high-side switch (when the switch is turned on, it connects to the positive pole of the peripheral power supply to provide power for the peripheral) and a low-side switch (when the switch is turned on, it is connected to the ground wire to provide a ground loop for the peripheral). Each power switch selects the switch capacity according to the peripheral power, which results in a large number of test loads with different powers and different control methods when testing the controller. Commonly used test circuits and methods require testing the high-side switch and the low-side switch separately, that is, setting up a high-side switch test circuit and a low-side switch test circuit respectively. During the test, the high-side switch test channel must be connected to the high-side switch drive channel of the device under test, and the low-side switch test channel must be connected to the low-side switch drive channel of the device under test. The test circuit cannot achieve compatibility between the high-side switch drive channel and the low-side switch drive channel tests, resulting in complex wiring of the test equipment, that is, when there are differences in the number of high-side switches or low-side switches of the device under test, the pin configuration of the connector, etc., different test harnesses need to be replaced, there are many types of power loads, and the test efficiency is low. Summary of the invention

[0003] In order to solve the technical problems in the prior art, such as the inability to achieve test compatibility of high and low side switches, the present invention provides a high and low side switch detection circuit and method.

[0004] The technical solution of the present invention to solve the above technical problems is as follows:

[0005] A high-side and low-side switch detection circuit includes a power load, a first relay and a controller, wherein the static contacts of the first relay include a first static contact and a second static contact;

[0006] One end of the power load is connected to an external device interface, and the external device interface is used to access the drive circuit under test; the other end of the power load is connected to the moving contact of the first relay; the first static contact of the first relay is connected to an auxiliary power supply, and the second static contact of the first relay is grounded;

[0007] The signal input terminal of the controller is connected to the drive circuit under test, and is used to obtain type information of the drive circuit under test;

[0008] The signal output terminal of the controller is connected to the first relay to control the first relay according to the type information;

[0009] Under the control of the controller, the moving contact of the first relay is selectively connected to the first static contact or the second static contact;

[0010] The signal input end of the controller is also connected to one end of the power load, and is used to monitor the voltage signal at one end of the power load, and determine whether the tested driving circuit is on or off according to the voltage signal.

[0011] The beneficial effects of the present invention are: the circuit type of the tested drive circuit is obtained through the controller, and the detection circuit is automatically switched according to the circuit type. At the same time, the relay is used to control whether the other end of the power load is grounded or connected to the power supply, so as to switch the tested drive circuit loaded on one end of the power load on and off, and the high and low side switches, i.e., the power supply circuit and the grounding loop compatibility test in the present invention can be realized, and there is no need to set up the test circuits separately, and the test of automatically switching the high and low side switches can be realized, making the test more convenient and economical.

[0012] Based on the above technical solution, the present invention can also be improved as follows.

[0013] Furthermore, it also includes a second relay, a first current sensor and a second current sensor, and the static contact of the second relay includes a first static contact and a second static contact;

[0014] The negative pole of the power input terminal of the first current sensor is connected to the first static contact of the second relay, and the positive pole of the power input terminal of the second current sensor is connected to the second static contact of the second relay;

[0015] The positive pole of the power input terminal of the first current sensor and the negative pole of the power input terminal of the second current sensor are both connected to the peripheral interface;

[0016] The signal output terminal of the controller is also connected to the second relay to control the second relay according to the type information;

[0017] Under the control of the controller, the moving contact of the second relay is selectively connected to the first static contact or the second static contact;

[0018] The signal input end of the controller is connected to the current signal output end of the first current sensor and the current signal output end of the second current sensor respectively, and is used to receive the first current information of the branch where the first current sensor is located and the second current information of the branch where the second current sensor is located;

[0019] The controller is also used to determine whether the measured driving circuit is on or off, calculate the current size of the measured driving circuit, and determine the current carrying capacity of the measured driving circuit according to the first current information or the second current information.

[0020] The technical effect of adopting the above further scheme is that by setting up a first current sensor and a second current sensor, and using the two current sensors to respectively detect the working currents of two types of drive circuits under test, not only can the on and off of the drive circuit under test be judged by the current in the circuit, but also it can be judged whether the drive circuit under test is damaged.

[0021] Furthermore, it also includes a first signal amplifier and a second signal amplifier, and the first current sensor and the second current sensor are both Hall current sensors;

[0022] The current signal output end of the first current sensor is connected to the controller through the first signal amplifier, and the first signal amplifier is used to amplify the signal of the first current information;

[0023] The current signal output terminal of the second current sensor is connected to the controller via the second signal amplifier, and the second signal amplifier is used to amplify the signal of the second current information.

[0024] Furthermore, it also includes a second program-controlled switch and a first program-controlled switch;

[0025] The signal output terminal of the controller is connected to the coil of the second relay through the second program-controlled switch, so as to control the on and off of the coil of the second relay through the controller;

[0026] The signal output terminal of the controller is connected to the coil of the first relay through the first program-controlled switch, so that the on and off of the coil of the first relay can be controlled by the controller.

[0027] Furthermore, it also includes a first photoelectric coupler, a twenty-eighth resistor, a twenty-seventh resistor and a first Schmitt trigger; the second program-controlled switch and the first program-controlled switch are both switch tubes;

[0028] The positive electrode of the input end of the first photocoupler is connected to the power supply through the twenty-seventh resistor, the positive electrode of the input end of the first photocoupler is connected to the output end of the first Schmitt trigger, and the negative electrode of the input end of the first photocoupler is grounded; the input end of the first Schmitt trigger is connected to the signal output end of the controller;

[0029] The positive electrode of the output terminal of the first photoelectric coupler is connected to the power supply through the twenty-eighth resistor, and the negative electrode of the output terminal of the first photoelectric coupler is grounded;

[0030] The positive electrode of the output end of the first photocoupler is respectively connected to the base of the second program-controlled switch and the base of the first program-controlled switch, the emitter of the second program-controlled switch is grounded, and the base of the second program-controlled switch and the coil of the second relay are connected in series to a power supply;

[0031] The emitter of the first programmable switch is grounded, and the base of the first programmable switch and the coil of the first relay are connected in series to a power supply.

[0032] Furthermore, it also includes an external communication module and a host computer;

[0033] The controller is connected to the tested driving circuit through the external communication module to obtain the type information of the tested driving circuit;

[0034] The controller is connected to the host computer for communication via the external communication module, so that the host computer receives the test result via the controller; wherein the test result includes type information, on / off information and current information of the tested drive circuit; the current information is the first current information or the second current information.

[0035] The beneficial effect of the above further technical solution is that by setting up a host computer and using the host computer to receive the test result information, it is convenient to store and display the test results through the host computer.

[0036] Further, the external communication module includes a CAN transceiver, a sixteenth resistor, a seventeenth resistor, an eighteenth resistor, two voltage regulator diodes 1, a fourteenth capacitor, a fifteenth capacitor and a sixteenth capacitor;

[0037] The data receiving end of the CAN transceiver is connected to the signal sending end of the controller U1 through the seventeenth resistor, and the data sending end of the CAN transceiver is connected to the signal receiving end of the controller U1;

[0038] The high-speed CAN bus terminal of the CAN transceiver is connected to ground via the sixteenth resistor and the sixteenth capacitor in series, the high-speed CAN bus terminal of the CAN transceiver is connected to ground via the fifteenth capacitor in series, and the high-speed CAN bus terminal of the CAN transceiver is connected to ground via one of the voltage regulator diodes in series;

[0039] The low-speed CAN bus end of the CAN transceiver is connected to ground via the eighteenth resistor and the sixteenth capacitor in series; the low-speed CAN bus end of the CAN transceiver is connected to ground via the fourteenth capacitor in series, and the low-speed CAN bus end of the CAN transceiver is connected to ground via another voltage regulator diode in series;

[0040] The bus ends of the CAN transceiver are respectively connected to the host computer and the drive circuit under test.

[0041] Further, it also includes a second photocoupler, a thirtieth resistor and a second Schmitt trigger;

[0042] The positive electrode of the input end of the second photoelectric coupler is connected to one end of the power load, the negative electrode of the input end of the second photoelectric coupler is grounded, the positive electrode of the output end of the second photoelectric coupler is connected to the power supply through the 30th resistor, and the negative electrode of the output end of the second photoelectric coupler is grounded;

[0043] The input end of the second Schmitt trigger is connected to the positive pole of the output end of the second photoelectric coupler, and the output end of the second Schmitt trigger is connected to the signal input end of the controller.

[0044] Further, the power load includes a Darlington transistor array chip, a third relay, a fourth relay, a fifth relay, a twelfth resistor, a fourteenth resistor, and a fifteenth resistor;

[0045] The output end of the Darlington transistor array chip is respectively connected to one end of the coil of the third relay, one end of the coil of the fourth relay and one end of the coil of the fifth relay; the other end of the coil of the third relay, the other end of the coil of the fourth relay and the other end of the coil of the fifth relay are all connected to a power supply;

[0046] The moving contact of the third relay, the moving contact of the fourth relay and the moving contact of the fifth relay are all connected to the moving contact of the first relay; the normally open contact or the normally closed contact of the third relay is connected to the moving contact of the second relay through the twelfth resistor, the normally open contact or the normally closed contact of the fourth relay is connected to the moving contact of the second relay through the fourteenth resistor, and the normally open contact or the normally closed contact of the fifth relay is connected to the moving contact of the second relay through the fifteenth resistor;

[0047] The input end of the Darlington transistor array chip is connected to the output end of the controller, so that the controller controls the on and off of the coils of the third relay, the fourth relay and the fifth relay respectively through the Darlington transistor array chip; the voltage signal is the voltage at the moving contact of the second relay.

[0048] In order to solve the above technical problems, the present invention also provides a high-side and low-side switch detection and method, and its specific technical contents are as follows:

[0049] A high-side and low-side switch detection method is applied to the high-side and low-side switch detection circuit, comprising the following steps:

[0050] Using the controller to obtain the type information of the tested driving circuit;

[0051] The controller determines the type of the drive circuit under test according to the type information; when the type information is high-side switch information, the drive circuit under test is determined to be a power supply circuit; when the type information is low-side switch information, the drive circuit under test is determined to be a ground loop;

[0052] When the tested drive circuit is determined to be a power supply circuit, the controller sends first control information to the first relay to control the moving contact of the first relay to be connected with the second static contact of the first relay;

[0053] The controller is used to monitor the voltage signal at one end of the power load, and the on / off of the power supply circuit is determined according to the voltage signal; wherein, when the voltage signal is a high-level signal, the power supply circuit is on; and when the voltage signal is a low-level signal, the power supply circuit is off;

[0054] When the tested drive circuit is determined to be a ground loop, the controller sends second control information to the first relay to control the moving contact of the first relay to be connected with the first static contact of the first relay;

[0055] The controller is used to monitor the voltage signal at one end of the power load, and the on / off state of the power supply circuit is determined based on the voltage signal; when the voltage signal is a low-level signal, the grounding loop is determined to be open; when the voltage signal is a high-level signal, the grounding loop is determined to be open.

[0056] Furthermore, the above-mentioned high-side and low-side switch detection and method further includes the following steps:

[0057] Using the controller to receive first current information of a branch where the first current sensor is located and second current information of a branch where the second current sensor is located;

[0058] The controller is used to determine whether the drive circuit under test is on or off, calculate the current size of the drive circuit under test, and determine the current carrying capacity of the drive circuit under test according to the first current information or the second current information. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 1 is a principle block diagram of a high-side and low-side switch detection circuit in an embodiment of the present invention;

[0060] Figure 2 is a circuit diagram of a high-side and low-side switch detection circuit in an embodiment of the present invention;

[0061] Figure 3 Schematic diagram of the pin structure of the controller in an embodiment of the present invention;

[0062] Figure 4 is a circuit diagram of an external communication module in an embodiment of the present invention;

[0063] Figure 5 It is a circuit structure principle diagram of the power load in the present invention. DETAILED DESCRIPTION

[0064] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0065] like Figure 1 As shown, this embodiment provides a high-side and low-side switch detection circuit, including a second relay LS4, a power load R29, a first relay LS5 and a controller U1;

[0066] The moving contact of the second relay LS4 is connected to one end of the power load R29, and one end of the power load R29 is connected to the moving contact of the first relay LS5; the normally closed contact of the first relay LS5 is connected to the auxiliary power supply, and the normally open contact of the first relay LS5 is grounded; the first contact of the first relay LS5 is a normally open contact, and the second contact is a normally closed contact. The first contact of the second relay LS4 is a normally open contact, and the second contact is a normally closed contact.

[0067] The signal input end of the controller U1 is connected to the drive circuit under test, so as to obtain the type information of the drive circuit under test; the signal output end of the controller U1 is connected to the first relay LS5, so as to control the first relay LS5 according to the type information; under the control of the controller U1, the moving contact of the first relay LS5 is selectively connected to the first static contact or the second static contact; the signal input end of the controller U1 is also connected to one end of the power load R29, so as to monitor the voltage signal at one end of the power load R29, and judge whether the drive circuit under test is on or off according to the voltage signal.

[0068] If the tested driving circuit is a grounding loop, that is, a grounding loop is loaded at the I_S_LSD / HSD end, one end of the power load R29 is connected to the grounding loop, and the other end of the power load R29 is connected to the auxiliary power supply; after the grounding loop is normally connected, one end of the power load R29 is grounded, then one end of the power load R29 is at a low potential, that is, the electrical signal read by the controller U1 is a low potential signal; when the voltage signal is a low level signal, the grounding loop is a passage; when the controller U1 determines that the voltage signal is a high level signal, the grounding loop is an open circuit; when the tested driving circuit is a power supply circuit, one end of the power load R29 is connected to the power supply circuit, and the other end of the power load R29 is grounded; when the controller U1 determines that the voltage signal is a low level signal, the power supply circuit is an open circuit; when the controller U1 determines that the voltage signal is a high level signal, that is, the voltage signal is that one end of the power load R29 is at a high potential, and the power supply circuit is a passage. This embodiment collects the voltage value at one end of the power load R29, determines whether the grounding circuit or the power supply circuit is on or off according to the high and low levels represented by the collected voltage value, and uses one circuit to combine the working state detection of the grounding circuit, i.e., the low-side switch, or the power supply circuit, i.e., the high-side switch. In addition, before detecting the on and off of the tested drive circuit, the circuit state of the tested drive circuit is obtained to switch the corresponding detection circuit according to the type of the tested drive circuit, thereby realizing automatic detection and improving the detection efficiency. In some specific embodiments, the high and low side switch detection circuit includes a first current sensor U4, a second current sensor U7, a first signal amplifier U5, a second signal amplifier U6, a second program-controlled switch Q1, and a first program-controlled switch Q2.

[0069] The negative pole of the power input terminal of the first current sensor U4 is connected to the normally open contact of the second relay LS4, and the positive pole of the power input terminal of the second current sensor U7 is connected to the normally closed contact of the second relay LS4.

[0070] The positive pole of the power input terminal of the first current sensor U4 and the negative pole of the power input terminal of the second current sensor U7 are both connected to the peripheral interface.

[0071] The signal input end of the controller U1 is respectively connected to the current signal output end of the first current sensor U4 and the current signal output end of the second current sensor U7, for receiving the first current information of the branch where the first current sensor U4 is located and the second current information of the branch where the second current sensor U7 is located.

[0072] The controller U1 is further used to determine whether the drive circuit under test is on or off, calculate the current size of the drive circuit under test, and determine the current carrying capacity of the drive circuit under test according to the first current information or the second current information.

[0073] At the same time, the method for judging the current carrying capacity of the measured drive circuit can be specifically obtained by obtaining the current size of the measured drive circuit, and when the resistance value of the power load R29 is adjusted, since the voltage value at one end of the power load R29 is equal to the current size of the measured drive circuit multiplied by the resistance value of the power load R29, the voltage at one end of the power load R29 is linearly related to the current of the measured drive circuit. If the current of the measured drive circuit does not change or there is no current during the process of adjusting the resistance value of the power load R29, it means that the measured drive circuit is overloaded or damaged, and its current carrying capacity is determined by obtaining the current when the measured drive circuit is overloaded and damaged. Therefore, the embodiment of the present invention can determine whether the measured drive circuit is working normally by obtaining the current size of the measured drive circuit, thereby improving the accuracy of the detection result. Because, when the current of the measured drive circuit is not used to verify whether the measured drive circuit is working normally, the damage of the measured drive circuit itself can affect the accuracy of the test result.

[0074] Specifically, in some embodiments, the first current sensor U4 and the second current sensor U7 are both Hall current sensors; the current signal output end of the first current sensor U4 is connected to the controller U1 through the first signal amplifier U5 to amplify the first current information; the current signal output end of the second current sensor U7 is connected to the controller U1 through the second signal amplifier U6 to amplify the second current information.

[0075] The signal output end of the controller U1 is connected to the coil of the second relay LS4 through the second program-controlled switch Q1, so as to control the on and off of the coil of the second relay LS4 through the controller U1. The signal output end of the controller U1 is connected to the coil of the first relay LS5 through the first program-controlled switch Q2, so as to control the on and off of the coil of the first relay LS5 through the controller U1.

[0076] The power input terminal and the ground terminal of the first current sensor U4 are connected through the twentieth capacitor C20, and the signal output point of the first current sensor U4 is connected to the positive input terminal of the first signal amplifier U5 through the twenty-second resistor R22; the model of the first current sensor U4 is LESR25HP, and its reference voltage port Vref is connected to the reverse input terminal of the first signal amplifier U5 through the nineteenth resistor R19, the model of the first signal amplifier U5 is AD8226ARMZ, and the RG1 terminal of the AD8226ARMZ chip is connected to the RG2 terminal of the AD8226ARMZ chip through the twentieth resistor R20, the positive power access terminal V+ of the first signal amplifier U5 is connected to the power supply, the reference voltage terminal REF and the negative power access terminal V- of the first signal amplifier U5 are both grounded, the positive power access terminal of the first signal amplifier U5 is also filtered through the twenty-second capacitor C22, the output terminal Vo of the first signal amplifier U5 outputs the O_V_HSD signal through the twenty-first resistor R21, and the O_V_HSD signal output terminal is filtered through the twenty-third capacitor C23.

[0077] The power input terminal and the ground terminal of the second current sensor U7 are connected through the twenty-seventh capacitor C27, and the signal output point of the second current sensor U7 is connected to the positive input terminal of the second signal amplifier U6 through the twenty-sixth resistor R26; the model of the second current sensor U7 is LESR25HP, and its reference voltage port Vref is connected to the reverse input terminal of the second signal amplifier U6 through the twenty-third resistor R23, the model of the second signal amplifier U6 is AD8226ARMZ, the RG1 terminal of the AD8226ARMZ chip is connected to the RG2 terminal of the AD8226ARMZ chip through the twenty-fourth resistor R24, the positive power access terminal V+ of the second signal amplifier U6 is connected to the power supply, the reference voltage terminal REF and the negative power access terminal V- of the second signal amplifier U6 are both grounded, the positive power access terminal of the second signal amplifier U6 is also filtered through the twenty-fifth capacitor C25, the output terminal Vo of the second signal amplifier U6 outputs the O_V_LSD signal through the twenty-fifth resistor R25, and the O_V_LSD signal output terminal is filtered through the twenty-sixth capacitor C26.

[0078] If the tested driving circuit is a ground loop, that is, the ground loop is loaded at the I_S_LSD / HSD end, one end of the power load R29 is connected to the ground loop through the second current sensor U7, and the other end of the power load R29 is connected to the auxiliary power supply, that is, the connected O_V_TEST signal is a positive voltage signal; when the second current information is amplified to a high level, it means that the current measured by the second current sensor U7 is not 0, and the ground loop is a passage; when the second current information is amplified to a low level, it means that the current measured by the second current sensor U7 is When the first current information is amplified and is at a high level, it indicates that the current measured by the first current sensor U7 is not 0, and the power supply circuit is open; when the first current information is amplified and is at a low level, it indicates that the current measured by the first current sensor U4 is 0, and the grounding circuit is open.

[0079] like Figure 1 and Figure 2 As shown, in some embodiments, the positive input terminal of the first photocoupler U9 is connected to the power supply through the twenty-seventh resistor R27, the positive input terminal of the first photocoupler U9 is connected to the output terminal of the first Schmitt trigger U8A, and the negative input terminal of the first photocoupler U9 is grounded; the input terminal of the first Schmitt trigger U8A is connected to the signal output terminal of the controller U1.

[0080] The positive electrode of the output end of the first photocoupler U9 is connected to the power supply through the twenty-eighth resistor R28, and the negative electrode of the output end of the first photocoupler U9 is grounded; the positive electrode of the output end of the first photocoupler U9 is respectively connected to the base of the second programmable switch Q1 and the base of the first programmable switch Q2, the emitter of the second programmable switch Q1 is grounded, and the base of the second programmable switch Q1 and the coil of the second relay LS4 are connected in series to the power supply; the emitter of the first programmable switch Q2 is grounded, and the base of the first programmable switch Q2 and the coil of the first relay LS5 are connected in series to the power supply.

[0081] In some specific embodiments, the positive electrode of the input end of the second photocoupler U10 is connected to one end of the power load R29, the negative electrode of the input end of the second photocoupler U10 is grounded, the positive electrode of the output end of the second photocoupler U10 is connected to the power supply through the 30th resistor R30, and the negative electrode of the output end of the second photocoupler U10 is grounded; the input end of the second Schmitt trigger U8B is connected to the positive electrode of the output end of the second photocoupler U10, and the output end of the second Schmitt trigger U8B is connected to the signal input end of the controller U1. The positive electrode of the constant current diode D3 is connected to one end of the power load R29, and the negative electrode of the constant current diode D3 is grounded to provide a constant current for the light emitting diode circuit of the second photocoupler U10. The positive electrode of the constant current diode D3 is connected to the negative electrode of the transient suppression diode D5, and the positive electrode of the transient suppression diode D5 is grounded to limit the peak voltage of the light emitting diode circuit of the second photocoupler U10.

[0082] like Figure 3 As shown, the controller U1 is specifically a SAK-TC234L single-chip microcomputer. The first capacitor C1, the second capacitor C2, the third capacitor C3, the fourth capacitor C4, the fifth capacitor C5, the sixth capacitor C6, the seventh capacitor C7, the eighth capacitor C8, the ninth capacitor C9, the tenth capacitor C10, and the eleventh capacitor C11 are the power port filter capacitors of the SAK-TC234L single-chip microcomputer. The first resistor R1, the second resistor R2, the third resistor R3, the fourth resistor R4, the fifth resistor R5, the sixth resistor R6, the seventh resistor R7, the eighth resistor R8, the ninth resistor R9, the tenth resistor R10, and the eleventh resistor R11 are the configuration resistors of the SAK-TC234L single-chip microcomputer. The crystal oscillator Y1, the twelfth capacitor C12, the twelfth resistor R12, the thirteenth capacitor C13, and the thirteenth resistor R13 together constitute the crystal oscillator configuration circuit of the SAK-TC234L single-chip microcomputer. The seventeenth capacitor C17, the eighteenth capacitor C18 and the nineteenth capacitor C19 are analog power port filter capacitors of the SAK-TC234L microcontroller.

[0083] like Figure 1 As shown, the high-side and low-side switch detection also includes an external communication module and a host computer; the controller U1 communicates with the host computer through the external communication module.

[0084] The controller U1 is connected to the tested driving circuit through the external communication module to obtain the type information of the tested driving circuit;

[0085] The controller U1 is connected to the host computer through the external communication module, so that the host computer receives the test result through the controller U1; wherein the test result includes the type information, on / off information and current information of the tested drive circuit; the current information is the first current information or the second current information. By setting up the host computer and using the host computer to receive the detection result information, it is convenient to store and display the test result through the host computer.

[0086] like Figure 4 As shown, the external communication module includes a CAN transceiver, a sixteenth resistor R16, a seventeenth resistor R17, an eighteenth resistor R18, two voltage stabilizing diodes D1, a fourteenth capacitor C14, a fifteenth capacitor C15 and a sixteenth capacitor C16; the data receiving end of the CAN transceiver is connected to the signal sending end of the controller U1 through the seventeenth resistor R17, and the data sending end of the CAN transceiver is connected to the signal receiving end of the controller U1; the high-speed CAN bus end of the CAN transceiver is connected to ground through the sixteenth resistor R16 and the sixteenth capacitor C16 in series, and the high-speed CA of the CAN transceiver The N bus end is grounded by connecting the fifteenth capacitor C15 in series, and the high-speed CAN bus end of the CAN transceiver is grounded by connecting one of the voltage-stabilizing diodes D1 in series; the low-speed CAN bus end of the CAN transceiver is grounded by connecting the eighteenth resistor R18 and the sixteenth capacitor C16 in series; the low-speed CAN bus end of the CAN transceiver is grounded by connecting the fourteenth capacitor C14 in series, and the low-speed CAN bus end of the CAN transceiver is grounded by connecting another voltage-stabilizing diode D1 in series; the high-speed CAN bus end of the CAN transceiver and the low-speed CAN bus end of the CAN transceiver are respectively connected to the host computer.

[0087] like Figure 5 As shown, the power load R29 includes a Darlington transistor array chip U2, a third relay LS1, a fourth relay LS2, a fifth relay LS3, a twelfth resistor R12, a fourteenth resistor R14, and a fifteenth resistor R15; the output end of the Darlington transistor array chip U2 is respectively connected to one end of the coil of the third relay LS1, one end of the coil of the fourth relay LS2, and one end of the coil of the fifth relay LS3; the other end of the coil of the third relay LS1, the other end of the coil of the fourth relay LS2, and the other end of the coil of the fifth relay LS3 are all connected to a power supply.

[0088] The moving contact of the third relay LS1, the moving contact of the fourth relay LS2 and the moving contact of the fifth relay LS3 are all connected to the moving contact of the first relay LS5; the normally open contact or the normally closed contact of the third relay LS1 is connected to the moving contact of the second relay LS4 through the twelfth resistor R12, the normally open contact or the normally closed contact of the fourth relay LS2 is connected to the moving contact of the second relay LS4 through the fourteenth resistor R14, and the normally open contact or the normally closed contact of the fifth relay LS3 is connected to the moving contact of the second relay LS4 through the fifteenth resistor R15.

[0089] The input end of the Darlington transistor array chip U2 is connected to the output end of the controller U1, so that the controller U1 controls the on and off of the coils of the third relay LS1, the fourth relay LS2 and the fifth relay LS3 respectively through the Darlington transistor array chip U2; the voltage signal is the voltage at the moving contact of the second relay LS4.

[0090] In some embodiments, a high-side and low-side switch detection and method is also provided, which is applied to the above-mentioned high-side and low-side switch detection circuit, and the specific method is as follows:

[0091] A high-side and low-side switch detection method is applied to the high-side and low-side switch detection circuit, comprising the following steps:

[0092] Using the controller U1 to obtain the type information of the tested driving circuit;

[0093] The controller U1 determines the type of the drive circuit under test according to the type information; when the type information is high-side switch information, the drive circuit under test is determined to be a power supply circuit; when the type information is low-side switch information, the drive circuit under test is determined to be a ground loop;

[0094] When the tested drive circuit is determined to be a power supply circuit, the controller U1 sends first control information to the first relay LS5 to control the moving contact of the first relay LS5 to be connected with the second static contact of the first relay LS5;

[0095] The controller U1 is used to monitor the voltage signal at one end of the power load R29, and the on / off of the power supply circuit is determined according to the voltage signal; wherein, when the voltage signal is a high-level signal, the power supply circuit is on; and when the voltage signal is a low-level signal, the power supply circuit is off;

[0096] When the tested driving circuit is determined to be a ground loop, the controller U1 sends second control information to the first relay LS5 to control the moving contact of the first relay LS5 to be connected with the first static contact of the first relay LS5;

[0097] The controller U1 is used to monitor the voltage signal at one end of the power load R29, and the on / off of the power supply circuit is determined according to the voltage signal; when the voltage signal is a low-level signal, the ground loop is determined to be open; when the voltage signal is a high-level signal, the ground loop is determined to be open.

[0098] If the drive circuit under test is a ground loop, one end of the power load R29 is connected to the ground loop, and the other end of the power load R29 is connected to the auxiliary power supply; when the voltage signal is a low-level signal, the ground loop is a connection; when the voltage signal is a high-level signal, the ground loop is an open circuit.

[0099] If the drive circuit under test is a power supply circuit, one end of the power load R29 is connected to the power supply circuit, and the other end of the power load R29 is grounded; when the voltage signal is a low-level signal, the power supply circuit is open; when the voltage signal is a high-level signal, the power supply circuit is open.

[0100] The above-mentioned high-side and low-side switch detection and method also includes the following steps:

[0101] Using the controller U1 to receive the first current information of the branch where the first current sensor U4 is located and the second current information of the branch where the second current sensor U7 is located;

[0102] The controller U1 is used to determine whether the drive circuit under test is on or off, calculate the current magnitude of the drive circuit under test, and determine the current carrying capacity of the drive circuit under test according to the first current information or the second current information.

[0103] The method for calculating the current size of the measured driving circuit is as follows: since the first current sensor U4 and the second current sensor U7 are both Hall current sensors, their output signals are both voltage signals, and the controller U1 calculates the current size of the measured driving circuit based on the voltage signal output by the first current sensor U4 or the second current sensor U7.

[0104] The circuit adds a CAN communication interface, i.e., the CAN transceiver, to exchange data with the device under test, and can verify the driving current calculated by the main control chip, i.e., the controller U1, with the current tested by the device under test, to improve the detection performance. The circuit adds a CAN communication interface to exchange data with the device under test. The controller U1 reads the type information of the tested driving circuit, i.e., the power supply circuit or the grounding loop, through the CAN transceiver, and controls the I_S_RELAY output signal. The same test channel can automatically adapt to different switch types. When the switch type of the device under test is known, the I_S_RELAY output signal can be controlled according to the basic test principle.

[0105] The circuit adds a CAN communication interface to exchange data with the device under test. The controller U1 reads the switch type of the device under test, that is, the type information of the drive circuit under test, through the CAN communication interface, controls the I_S_RELAY output signal, and reads the O_S_ST.HSD / LSD status. The type information of the drive circuit under test can be verified to improve the test reliability. The circuit adds a CAN communication interface to display the test results on the host computer through the controller U1.

[0106] In some embodiments, since the tested drive circuits are all enabled to control the opening or closing of the tested drive circuits through a control chip such as a single-chip microcomputer or an MCU, the controller U1 can determine the type of the tested drive circuit by obtaining specific characters in the data of the single-chip microcomputer or the MCU of the tested drive circuit in the CAN communication. For example, the CAN communication protocol stipulates that when a certain bit in the data between the controller U1 and the tested drive circuit is a binary "1", it indicates that the tested drive circuit is a power supply circuit, and when a certain bit is a binary "0", it indicates that the tested drive circuit is a ground loop.

[0107] The power load R29 is changed to a programmable power load, the A end of the programmable resistor is connected to the A end of the power load R29, and the B end of the programmable resistor is connected to the B end of the power load R29. The main control chip is used to control the on and off of the third relay LS1, the fourth relay LS2, and the fifth relay LS3 to change the resistance value of the twelfth resistor R12, the fourteenth resistor R14, and the fifteenth resistor R15 after being connected in parallel, so as to realize the programmable resistance function, which can adapt to the high and low side switch tests with different current carrying capacities, and the overcurrent protection function of the high and low side switches can be tested by changing the power load value through program control, and when overcurrent occurs, the high and low side switches will automatically switch to the disconnected state for protection. By comparing the switch state sent by the device under test and the switch state read by the test circuit, it can be determined whether the high and low side switches are both turned on for overcurrent protection.

[0108] In some other embodiments, the first amplifier U5 and the second amplifier U6 can preferably be programmable amplifiers, and the controller U1 is used to control the amplification factors of the first amplifier U5 and the second amplifier U6, so that the same test circuit can expand the test range of the current carrying capacity of the high and low side switches without changing the hardware.

[0109] In some other embodiments, the auxiliary power supply connected to the I_V_TEST port can be changed to a programmable adjustable power supply or an adjustable voltage power supply to adapt to high-side switch drive channel tests of different voltages.

[0110] The embodiment of the present invention uses a relay to control whether the other end of the power load R29 is grounded or connected to the power supply, so as to switch the on and off of the tested driving circuit loaded on one end of the power load R29, thereby realizing the compatibility test of the high and low side switches, i.e., the power supply circuit and the grounding loop in the present invention, without setting up test circuits separately, making the testing of the high and low side switches more convenient and economical.

[0111] The present invention does not need to distinguish between the high and low side switch channels of the device under test. The high and low side switches are connected to the I_S_LSD / HSD port at the same time. By controlling the I_S_RELAY signal, the same circuit can adapt to the test of the high and low side switches, and change the resistance value of the power load R29. It can adapt to the high and low side switch test of different capacities with high integration. At the same time, the present invention can also be designed as a multi-channel circuit. When the device under test has more driving channels, the number of test equipment can be reduced and the stability is high; the power drive circuit and the signal acquisition circuit of the test circuit are isolated, and the system stability and measurement accuracy are improved. The test function is complete. When the application is expanded, the same circuit can automatically realize the test of the high and low side switch type, high and low side switch state, high and low side switch current carrying capacity, and high and low side switch overcurrent protection function.

[0112] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the concept and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A high-side and low-side switch detection circuit, characterized in that: It comprises a power load (R29), a first relay (LS5) and a controller (U1), wherein the static contacts of the first relay (LS5) comprise a first static contact and a second static contact; One end of the power load (R29) is connected to an external device interface, and the external device interface is used to access the drive circuit under test; the other end of the power load (R29) is connected to the moving contact of the first relay (LS5); the first static contact of the first relay (LS5) is connected to an auxiliary power supply, and the second static contact of the first relay (LS5) is grounded; The signal input terminal of the controller (U1) is connected to the drive circuit under test, and is used to obtain type information of the drive circuit under test; The signal output terminal of the controller (U1) is connected to the first relay (LS5) to control the first relay (LS5) according to the type information; Under the control of the controller (U1), the moving contact of the first relay (LS5) is selectively connected to the first static contact or the second static contact; The signal input end of the controller (U1) is also connected to one end of the power load (R29) to monitor the voltage signal at one end of the power load (R29) and determine whether the tested drive circuit is on or off according to the voltage signal; It also includes a second relay (LS4), a first current sensor (U4) and a second current sensor (U7), wherein the static contact of the second relay (LS4) includes a first static contact and a second static contact; The negative pole of the power input terminal of the first current sensor (U4) is connected to the first static contact of the second relay (LS4), and the positive pole of the power input terminal of the second current sensor (U7) is connected to the second static contact of the second relay (LS4); The positive pole of the power input terminal of the first current sensor (U4) and the negative pole of the power input terminal of the second current sensor (U7) are both connected to the peripheral device interface; The signal output terminal of the controller (U1) is also connected to the second relay (LS4) to control the second relay (LS4) according to the type information; Under the control of the controller (U1), the moving contact of the second relay (LS4) is selectively connected to the first stationary contact or the second stationary contact; The signal input end of the controller (U1) is respectively connected to the current signal output end of the first current sensor (U4) and the current signal output end of the second current sensor (U7), and is used to receive the first current information of the branch where the first current sensor (U4) is located and the second current information of the branch where the second current sensor (U7) is located; The controller (U1) is also used to determine whether the drive circuit under test is on or off, calculate the current magnitude of the drive circuit under test, and determine the current carrying capacity of the drive circuit under test according to the first current information or the second current information; The power load (R29) includes a Darlington tube array chip (U2), a third relay (LS1), a fourth relay (LS2), a fifth relay (LS3), a twelfth resistor (R12), a fourteenth resistor (R14), and a fifteenth resistor (R15); The output end of the Darlington transistor array chip (U2) is respectively connected to one end of the coil of the third relay (LS1), one end of the coil of the fourth relay (LS2) and one end of the coil of the fifth relay (LS3); the other end of the coil of the third relay (LS1), the other end of the coil of the fourth relay (LS2) and the other end of the coil of the fifth relay (LS3) are all connected to a power supply; The moving contact of the third relay (LS1), the moving contact of the fourth relay (LS2) and the moving contact of the fifth relay (LS3) are all connected to the moving contact of the first relay (LS5); the normally open contact or the normally closed contact of the third relay (LS1) is connected to the moving contact of the second relay (LS4) through the twelfth resistor (R12), the normally open contact or the normally closed contact of the fourth relay (LS2) is connected to the moving contact of the second relay (LS4) through the fourteenth resistor (R14), and the normally open contact or the normally closed contact of the fifth relay (LS3) is connected to the moving contact of the second relay (LS4) through the fifteenth resistor (R15); The input end of the Darlington transistor array chip (U2) is connected to the output end of the controller (U1), so that the controller (U1) controls the on and off of the coils of the third relay (LS1), the fourth relay (LS2) and the fifth relay (LS3) respectively through the Darlington transistor array chip (U2); the voltage signal is the voltage at the moving contact of the second relay (LS4).

2. A high-side and low-side switch detection circuit according to claim 1, characterized in that: It also includes a first signal amplifier (U5) and a second signal amplifier (U6), and the first current sensor (U4) and the second current sensor (U7) are both Hall current sensors; The current signal output end of the first current sensor (U4) is connected to the controller (U1) via the first signal amplifier (U5), and the first signal amplifier (U5) is used to amplify the signal of the first current information; The current signal output end of the second current sensor (U7) is connected to the controller (U1) via the second signal amplifier (U6), and the second signal amplifier (U6) is used to amplify the signal of the second current information.

3. A high-side and low-side switch detection circuit according to claim 1, characterized in that: Also includes a second program-controlled switch (Q1) and a first program-controlled switch (Q2); The signal output end of the controller (U1) is connected to the coil of the second relay (LS4) through the second program-controlled switch (Q1), so as to control the on and off of the coil of the second relay (LS4) through the controller (U1); The signal output end of the controller (U1) is connected to the coil of the first relay (LS5) through the first programmable switch (Q2) so as to control the on and off of the coil of the first relay (LS5) through the controller (U1).

4. A high-side and low-side switch detection circuit according to claim 3, characterized in that: It also includes a first photocoupler (U9), a twenty-eighth resistor (R28), a twenty-seventh resistor (R27) and a first Schmitt trigger (U8A); the second program-controlled switch (Q1) and the first program-controlled switch (Q2) are both switch tubes; The positive electrode of the input end of the first photoelectric coupler (U9) is connected to the power supply through the second seventh resistor (R27), the positive electrode of the input end of the first photoelectric coupler (U9) is connected to the output end of the first Schmitt trigger (U8A), and the negative electrode of the input end of the first photoelectric coupler (U9) is grounded; the input end of the first Schmitt trigger (U8A) is connected to the signal output end of the controller (U1); The positive electrode of the output end of the first photoelectric coupler (U9) is connected to the power supply through the twenty-eighth resistor (R28), and the negative electrode of the output end of the first photoelectric coupler (U9) is grounded; The positive electrode of the output end of the first photoelectric coupler (U9) is respectively connected to the base of the second programmable switch (Q1) and the base of the first programmable switch (Q2), the emitter of the second programmable switch (Q1) is grounded, and the base of the second programmable switch (Q1) and the coil of the second relay (LS4) are connected in series to a power supply; The emitter of the first programmable switch (Q2) is grounded, and the base of the first programmable switch (Q2) and the coil of the first relay (LS5) are connected in series to a power source.

5. A high-side and low-side switch detection circuit according to claim 4, characterized in that: It also includes an external communication module and a host computer; The controller (U1) is connected to the drive circuit under test through the external communication module to obtain the type information of the drive circuit under test; The controller (U1) is connected to the host computer for communication via the external communication module, so that the host computer receives the test result via the controller (U1); wherein the test result includes type information, on / off information and current information of the tested drive circuit; and the current information is the first current information or the second current information.

6. A high-side and low-side switch detection circuit according to claim 5, characterized in that: The external communication module includes a CAN transceiver, a sixteenth resistor (R16), a seventeenth resistor (R17), an eighteenth resistor (R18), two voltage stabilizing diodes (D1), a fourteenth capacitor (C14), a fifteenth capacitor (C15) and a sixteenth capacitor (C16); The data receiving end of the CAN transceiver is connected to the signal sending end of the controller (U1) through the seventeenth resistor (R17), and the data sending end of the CAN transceiver is connected to the signal receiving end of the controller (U1); The high-speed CAN bus terminal of the CAN transceiver is connected to ground via the sixteenth resistor (R16) and the sixteenth capacitor (C16) in series, the high-speed CAN bus terminal of the CAN transceiver is connected to ground via the fifteenth capacitor (C15) in series, and the high-speed CAN bus terminal of the CAN transceiver is connected to ground via one of the voltage regulator diodes (D1) in series; The low-speed CAN bus terminal of the CAN transceiver is connected to ground via the eighteenth resistor (R18) and the sixteenth capacitor (C16) in series; the low-speed CAN bus terminal of the CAN transceiver is connected to ground via the fourteenth capacitor (C14) in series, and the low-speed CAN bus terminal of the CAN transceiver is connected to ground via another voltage regulator diode (D1) in series; The bus ends of the CAN transceiver are respectively connected to the host computer and the drive circuit under test.

7. A high-side and low-side switch detection circuit according to any one of claims 1 to 6, characterized in that: Also includes a second photocoupler (U10), a thirtieth resistor (R30) and a second Schmitt trigger (U8B); The positive electrode of the input end of the second photoelectric coupler (U10) is connected to one end of the power load (R29), the negative electrode of the input end of the second photoelectric coupler (U10) is grounded, the positive electrode of the output end of the second photoelectric coupler (U10) is connected to the power supply through the thirtieth resistor (R30), and the negative electrode of the output end of the second photoelectric coupler (U10) is grounded; The input end of the second Schmitt trigger (U8B) is connected to the positive pole of the output end of the second photoelectric coupler (U10), and the output end of the second Schmitt trigger (U8B) is connected to the signal input end of the controller (U1).

8. A high-side and low-side switch detection method, characterized in that: The high-side and low-side switch detection circuit according to any one of claims 1 to 7 comprises the following steps: Using the controller (U1) to obtain the type information of the tested drive circuit; The controller (U1) determines the type of the drive circuit under test according to the type information; when the type information is high-side switch information, the drive circuit under test is determined to be a power supply circuit; when the type information is low-side switch information, the drive circuit under test is determined to be a ground loop; When the tested drive circuit is determined to be a power supply circuit, the controller (U1) sends first control information to the first relay (LS5) to control the moving contact of the first relay (LS5) to be connected with the second static contact of the first relay (LS5); The controller (U1) is used to monitor a voltage signal at one end of the power load (R29), and the on / off status of the power supply circuit is determined according to the voltage signal; wherein when the voltage signal is a high-level signal, the power supply circuit is on; and when the voltage signal is a low-level signal, the power supply circuit is off; When the tested drive circuit is determined to be a ground loop, the controller (U1) sends second control information to the first relay (LS5) to control the moving contact of the first relay (LS5) to be connected with the first static contact of the first relay (LS5); The controller (U1) is used to monitor a voltage signal at one end of the power load (R29), and the on / off state of the power supply circuit is determined based on the voltage signal; when the voltage signal is a low-level signal, the grounding loop is determined to be open; and when the voltage signal is a high-level signal, the grounding loop is determined to be open.