Resistance detection circuit and automobile
By designing a resistance detection circuit including a switch unit and a voltage regulating unit, the CAN bus terminal resistance can be quickly and accurately detected without disassembling the wire harness, which solves the wear and tear caused by frequent disassembly of the wire harness in the existing technology. And the problem of long detection time is improved, which improves the stability of signal transmission.
Patent Information
- Application Number
- CN202410741711.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-27
AI Technical Summary
The existing technology requires frequent disassembly of the wire harness when detecting the CAN bus terminal resistance, resulting in line wear and long detection time, which affects the signal transmission quality.
Design a resistance detection circuit that is connected to the CAN bus through the first switch unit, the second switch unit and the voltage regulating unit, and uses the preset current and electrical signal to calculate the equivalent resistance of the terminal resistor, achieving automatic and rapid detection without disassembling the wiring harness. .
It improves the efficiency and accuracy of terminal resistance detection, reduces the wear and tear of the wire harness, simplifies the detection process, and ensures the stability of signal transmission.
Smart Images

Figure CN118707192A
Abstract
Description
Technical Field
[0001] The present application relates to the field of power electronics technology, and in particular to a resistance detection circuit and a car. Background Art
[0002] The Controller Area Network (CAN) bus is a multi-node parallel networking communication network based on differential cables. Each CAN node only needs two-core cables, CANH and CANL, to connect. It is simple to connect and easy to expand. It is widely used in industrial control and automotive communications.
[0003] The CAN bus relies on differential signals on the CANH and CANL cables to achieve communication. In order to eliminate signal reflections at the CAN cable terminals, terminal resistors need to be connected to the terminal nodes at both ends of the CANH bus. The CAN nodes connected to the CAN bus are usually dynamically changed. When a new CAN node is connected to the existing CAN bus network or a CAN node is removed, the resistance value of the C terminal resistor needs to be adjusted to meet the signal transmission requirements.
[0004] In order to ensure the quality of signal transmission, the terminal resistance of the CAN bus will be tested regularly or irregularly. Currently, the industry mostly adopts manual disassembly of the wiring harness of the CAN bus to be tested, and connects the wiring harness with a multimeter to test the terminal resistance. However, frequent disassembly of the line will cause losses such as line wear and tear, and it takes a long time. Summary of the invention
[0005] The present application provides a resistance detection circuit and a car, which are used to detect the resistance value of a terminal resistor without disassembling a wiring harness, and to improve the detection efficiency of the terminal resistor.
[0006] In a first aspect, an embodiment of the present application provides a resistance detection resistor, which can be connected to a CAN terminal resistor on a CAN bus and provide an electrical signal required to calculate the equivalent resistance of the CAN terminal resistor. The resistance detection resistor circuit includes at least: a first switch unit, a second switch unit and a first voltage regulating unit.
[0007] Specifically, the first end of the first switch unit is used to be connected to a power supply, and the second end of the first switch unit is used to be connected to the first end of the resistor to be measured, and is used to be turned on when a detection signal is received; the first end of the second switch unit is used to be connected to the second end of the resistor to be measured, and the second end of the second switch unit is grounded, and is used to be turned on when a detection signal is received, and output a first signal representing the second end voltage of the resistor to be measured; the first voltage regulating unit is connected to the second switch unit, and is used to control the control end voltage of the switch device in the second switch unit to be a preset voltage when the detection signal is received, so that the current flowing through the resistor to be measured is a preset current.
[0008] With the above design, when determining the resistance value of the terminal resistor of the CAN bus, the control terminal voltage of the switch device in the second switch unit is controlled by the first voltage regulating circuit, so that the conduction degree of the switch device in the second switch unit can be controlled. Therefore, the current flowing through the second switch unit is fixed to a preset current. Since the second switch unit is connected in series with the resistor to be measured, the current flowing through the resistor to be measured is also the preset current. The voltage of the resistor to be measured can be calculated using the first signal. Based on the voltage across the resistor to be measured and the preset current flowing through the resistor to be measured, the equivalent resistance of the resistor to be measured can be accurately calculated.
[0009] In a possible implementation, the second switch unit includes a first resistor, a second resistor and a first switch. The first end of the first resistor is used to receive the detection signal, the second end of the first resistor is connected to the control end of the first switch and the first voltage regulating unit; the first end of the first switch is used to connect to the second end of the resistor to be measured, the second end of the first switch is connected to the first end of the second resistor, and the first end of the first switch is used to output the first signal; the second end of the second resistor is grounded. With the above design, the first switch is connected in parallel with the resistor to be measured, and the first voltage regulating circuit can control the control end voltage of the first switch to be a preset voltage. Therefore, the conduction degree of the first switch is fixed, and the current flowing through the resistor to be measured in series with the first switch is the same as the current flowing through the first switch and the value remains unchanged, thereby creating a constant current-like scenario for the resistor to be measured.
[0010] In a possible implementation, the second switch unit further includes a third resistor and a fourth resistor. The first end of the third resistor is connected to the first end of the first switch, and the second end of the third resistor is connected to the first end of the fourth resistor; the second end of the fourth resistor is grounded; and the first end of the first switch outputs the first signal through the second end of the third resistor. With the above design, in order to prevent the resistance to be tested from presenting a high voltage state and damaging the switch device during the live detection process, a voltage divider branch consisting of the third resistor and the fourth resistor is added to ensure the safety of the switch device.
[0011] In a possible implementation, the first voltage regulating circuit includes a second switch, a first end of the second switch is connected to the second end of the first resistor, the second end of the second switch is grounded, and a control end of the second switch is connected to the first end of the second resistor. With the above design, the second switch is connected to the control end of the first switch connected in series with the resistor to be measured, and when the first switch is turned on, the voltage at the control end of the second switch will rise, and the second switch is turned on and clamps the voltage at the control end of the first switch, thereby fixing the degree of conduction of the first switch.
[0012] In a possible implementation manner, the first switch unit includes: a fifth resistor, a sixth resistor, and a third switch.
[0013] Among them, the first end of the fifth resistor is used to connect to the power supply, and the second end of the fifth resistor is connected to the second end of the third switch; the first end of the sixth resistor is used to receive the detection signal, and the second end of the sixth resistor is connected to the control end of the third switch; the first end of the third switch is used to connect to the first end of the resistor to be measured.
[0014] In a possible implementation, the resistance detection circuit further includes a second voltage regulating unit connected to the first switch unit, the first switch unit receives the detection signal through the second voltage regulating unit, and the second voltage regulating unit is used to adjust the control terminal voltage of the switch device in the first switch unit. With the above design, the control terminal voltage of the switch device in the first switch unit can be reduced when a fault occurs in the resistance to be measured, thereby protecting the safety of the device.
[0015] In a possible implementation manner, the second voltage regulating unit includes: a seventh resistor, an eighth resistor, and a fourth switch.
[0016] Among them, the first end of the seventh resistor is used to receive the detection signal, and the second end of the seventh resistor is connected to the control end of the fourth switch and the first end of the fourth resistor; the first end of the fourth switch is connected to the first end of the sixth resistor, and the second end of the fourth switch is connected to the second end of the eighth resistor and grounded; the first switch unit also includes a ninth resistor, the first end of the ninth resistor is used to be connected to the power supply, and the second end of the ninth resistor is connected to the second end of the second resistor.
[0017] In a possible implementation, the resistance detection unit further includes a controller, and the controller is used to determine the resistance value of the resistor to be measured according to the preset current and the first signal.
[0018] In a possible implementation, the switch devices in the first switch unit and the second switch unit are transistors. With the above design, since the transistor has a current amplification function, when the control terminal voltage of the transistor is fixed, the current amplification factor of the transistor is fixed, thereby providing a constant current scenario for the series-connected resistor to be measured, which is convenient for accurately calculating the resistance value of the resistor to be measured.
[0019] In a second aspect, an embodiment of the present application provides a car, which includes at least a CAN bus, a resistance detection resistor provided in the first aspect of the present application and any possible design thereof, and a plurality of terminal devices. The CAN bus is connected to the plurality of terminal devices; the resistance detection resistor is connected to the CAN bus.
[0020] In addition, the technical effects brought about by the second aspect and any possible design thereof can refer to the technical effects brought about by the different designs in the first aspect of the embodiment of the present application, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0022] Figure 1 A schematic diagram of a resistance detection circuit provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of the structure of a second switch unit provided in an embodiment of the present application Figure 1 ;
[0024] Figure 3 A schematic diagram of the structure of a second switch unit provided in an embodiment of the present application Figure 2 ;
[0025] Figure 4 A schematic diagram of the structure of a first voltage regulating unit provided in an embodiment of the present application;
[0026] Figure 5 A schematic diagram of the structure of a first switch unit provided in an embodiment of the present application;
[0027] Figure 6 A schematic diagram of the structure of a second voltage regulating unit provided in an embodiment of the present application;
[0028] Figure 7 A schematic diagram of current flow of a resistance detection circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] The following will introduce the application scenarios of the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The solution provided in the embodiments of the present application can be applied to a system with a resistance detection requirement. Among them, the above-mentioned system can be but is not limited to an automobile communication system and an industrial control system. The resistance detection circuit provided in the embodiments of the present application can be located on a system with a resistance detection requirement. Under normal circumstances, the closure of the resistance detection circuit does not affect the normal operation of the equipment. When it is necessary to detect the resistance, the resistance detection circuit obtains the electrical energy in the system to start running and detects the resistance value of the resistance to be detected. In order to facilitate the understanding of the solution requested for protection in this application, the technical solution requested for protection in this application is introduced below, taking the automobile communication system as an example.
[0030] A car is generally equipped with multiple terminal devices, which have built-in control units and on-board devices. The CAN bus can be connected to the above terminal devices and realize communication between different terminal devices. The CAN bus can include a first CAN bus and a second CAN bus. A large number of CAN nodes are set between the first CAN bus and the second CAN bus, and the terminal devices are connected to the above CAN nodes.
[0031] In actual use, terminal resistance will be configured in the longitudinal direction of CAN to improve the quality of signal transmission. When the number of nodes on the CAN bus increases or decreases, the terminal resistance on the CAN bus needs to be adjusted to adapt the number of nodes. In order to ensure the normal transmission of the signal, it is necessary to regularly or irregularly detect the resistance of the terminal resistance to determine whether the terminal resistance is faulty. At present, the industry mostly disassembles the wiring harness of the CAN bus and uses a multimeter to detect the resistance of the wiring harness to measure the terminal resistance, but the above detection method takes a long time to detect, and frequent disassembly of the wiring harness of the CAN bus will also cause damage to the CAN bus, such as harness wear and poor harness contact.
[0032] Based on this, an embodiment of the present application provides a resistance detection circuit and a car, which are used to realize automatic and rapid detection of the terminal resistance of the CAN bus and ensure the accuracy of the detection.
[0033] See also Figure 1 As shown in FIG. 1 , a schematic diagram of a resistance detection circuit provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the resistance detection circuit may include a first switch unit, a second switch unit and a first voltage regulating unit.
[0034] The first end of the first switch unit is used to connect to the power supply, the second end of the first switch unit is used to connect to the first end of the resistor to be measured, and is used to be turned on when receiving a detection signal; the first end of the second switch unit is used to connect to the second end of the resistor to be measured, and the second end of the second switch unit is grounded, and is used to be turned on when receiving a detection signal, and output a first signal representing the voltage at the second end of the resistor to be measured; the first voltage regulating unit is connected to the second switch unit, and is used to control the control end voltage of the switch device in the second switch unit to be a preset voltage when receiving the detection signal, so that the current flowing through the resistor to be measured is a preset current. The preset current can be determined according to the structure of the second switch unit and the type of the switch device in the second switch unit.
[0035] In actual application, taking the resistance to be measured as the terminal resistance connected to the CAN bus in the automobile communication system as an example, the resistance detection circuit provided by the embodiment of the present application can be electrically connected to the CAN bus, wherein the first end of the resistance to be measured can be CANH of the CAN bus, and the second end of the resistance to be measured can be CANL of the CAN bus. When the automobile communication system operates normally and there is no need to detect the terminal resistance, stop sending a detection signal to the resistance detection circuit, then the resistance detection circuit is turned off and stopped to ensure the normal operation of the automobile communication system, and it is also beneficial to reduce the loss of the resistance detection circuit. When the resistance detection circuit provided by the embodiment of the present application is used to detect the terminal resistance, the power load connected to the CAN bus and affecting the detection result is turned off, and a detection signal is sent to the resistance detection circuit, the resistance detection circuit starts to detect the resistance of the terminal resistance of the CAN bus, and outputs an electrical signal for calculating the resistance value of the terminal resistance, and the controller inside the resistance detection circuit or the controller inside the resistance detection circuit can use the above-mentioned electrical signal to calculate the resistance value of the terminal resistance.
[0036] Continue to see Figure 1 As shown, the first switch unit, the resistor to be measured and the second switch unit are in a series relationship. When the control terminal voltage of the switch device in the second switch unit is controlled by the first voltage regulating circuit to be a preset voltage, the current flowing through the switch device in the second switch unit is fixed, and therefore, the current flowing through the resistor to be measured connected in series with the second switch unit is also fixed. In the case where the current amplitude flowing through the line is known, the voltage across the resistor to be measured can be calculated by the first signal, and the equivalent resistance of the resistor to be measured can be calculated based on Ohm's formula, so as to determine whether the resistor to be measured has a failure, a short circuit or other faults.
[0037] In combination with the above description, it can be known that the control terminal voltage of the switch device in the second switch unit in the series main circuit can be controlled by the first voltage regulating circuit, so that the current flowing through the second switch unit is fixed to a preset current, thereby providing a constant current scenario for the resistor to be measured. When the current flowing through the resistor to be measured is known, the voltage across the resistor to be measured is calculated by the first signal, and the resistance value of the resistor to be measured can be accurately calculated. In actual use, the switch device in the second switch unit can be any device having a linear relationship between the control terminal voltage and the current. In order to facilitate the understanding of the solution for which protection is requested in this application, the embodiment of this application is described by taking the switch device in the second switch unit as a transistor as an example.
[0038] In some implementations, the second switch unit includes a first resistor, a second resistor, and a first switch. The first end of the first resistor is used to receive the detection signal, the second end of the first resistor is connected to the control end of the first switch and the first voltage regulating unit; the first end of the first switch is used to connect to the second end of the resistor to be measured, the second end of the first switch is connected to the first end of the second resistor, and the first end of the first switch is used to output the first signal; the second end of the second resistor is grounded.
[0039] For ease of understanding, a specific example of the structure of the second switch unit is given below.
[0040] See also Figure 2 , which is a schematic diagram of the structure of a second switch unit provided in an embodiment of the present application. Figure 2 In the embodiment, the transistor Q1 can be regarded as the first switch, the resistor R1 can be regarded as the first resistor, and the resistor R2 can be regarded as the second resistor. The base of the transistor Q1 is the control end of the first switch, the collector of the transistor Q1 is the first end of the first switch, and the emitter of the transistor Q1 is the second end of the first switch Q1. The first end of the resistor R1 can be used as the external interface of the second switch unit and is used to receive the detection signal.
[0041] pass Figure 2 When the second switch unit performs terminal resistance detection, if the first switch unit is turned on and the first end of the resistor R1 receives a detection signal, the transistor Q1 satisfies the conduction condition and is turned on. At this time, the power supply power is transmitted to the second switch unit through the first switch unit and the resistor to be tested.
[0042] See also Figure 2As shown, the second switch unit uses a transistor as a switch device. Since the transistor has the ability to amplify current, its current amplification factor is linearly related to the base voltage of the transistor. Therefore, when the first voltage regulating unit controls the control terminal voltage of the transistor Q1 to be fixed, the amplification factor of the transistor Q1 is fixed. Therefore, the current flowing through the transistor Q1 is maintained at a preset current, and the current flowing through the resistor to be measured in series with the transistor Q1 is also maintained unchanged. The voltage difference between the transistor Q1 and the power supply can be calculated using the first signal. This voltage difference is the sum of the voltage across the resistor to be measured and the voltage across the first switch unit. Therefore, the voltage across the resistor to be measured can be reversely calculated using the conduction voltage drop of the first switch unit. When the current flowing through the resistor to be measured is known, the resistance value of the resistor to be measured can be accurately calculated.
[0043] It should be noted that Figure 2 The transistor Q1 shown is an NPN transistor, and in practical applications, a PNP transistor may also be used. In addition, the second switch unit may also use other switch devices whose control terminal voltage and current amplification factor are in a linear relationship, and this application does not make too many restrictions here.
[0044] In one example, in order to prevent the terminal resistance failure from causing the CAN bus to be in a high voltage state and damaging the components in the second switch unit, the second switch unit may include a third resistor and a fourth resistor in addition to the above components. The first end of the third resistor is connected to the first end of the first switch, the second end of the third resistor is connected to the first end of the fourth resistor; the second end of the fourth resistor is grounded. Figure 3 Taking the second switch unit shown in FIG. 1 as an example, the structure of the second switch unit after adding the third resistor and the fourth resistor can be seen in FIG. Figure 3 As shown, the resistor R3 can be regarded as a third resistor, and the resistor R4 can be regarded as a fourth resistor.
[0045] The third resistor and the fourth resistor are generally selected as resistor devices with larger resistance values. The third resistor and the fourth resistor are connected in series to form a voltage dividing branch, and the high voltage presented by the terminal resistance failure is divided to ensure the safety of other devices.
[0046] In one example, in order to reduce the acquisition cost of the first signal, the first signal can be collected at the middle node of the third resistor and the fourth resistor, wherein the voltage at the second end of the resistor to be measured can be calculated based on the resistance values of the third resistor and the fourth resistor. For example, if the resistance values of the third resistor and the fourth resistor are the same, when the voltage at the middle node of the third resistor and the fourth resistor detected is 1V, the voltage at the second end of the resistor to be measured is 2V. It can be seen that the midpoint node voltage of the third resistor and the fourth resistor is lower than the voltage at the first end of the transistor triode Q1. Therefore, a sampling device with a lower specification can be selected to collect the first signal for calculating the resistance value of the resistor to be measured, which is conducive to reducing the detection cost of the terminal resistor.
[0047] Next, the adjustment process of the control terminal voltage of the switch device in the second switch unit is described in combination with the structure of the first voltage regulating unit.
[0048] In some implementations, the first voltage regulating circuit includes a second switch, a first end of the second switch is connected to the second end of the first resistor, the second end of the second switch is grounded, and a control end of the second switch is connected to the first end of the second resistor.
[0049] For ease of understanding, a specific example of the structure of the first voltage regulating unit is given below.
[0050] See also Figure 4 FIG. 1 is a schematic diagram of the structure of a first voltage regulating unit provided in an embodiment of the present application. Figure 4 In the embodiment, the transistor Q2 can be regarded as the second switch, wherein the collector of the transistor Q2 is the first end of the second switch, the emitter of the transistor Q2 is the second end of the second switch, and the base of the transistor Q2 is the control end of the second switch.
[0051] pass Figure 4When the first voltage regulating unit shown adjusts the control terminal voltage of the switch device in the second switch unit, due to the base of the transistor Q2 and the first end of the resistor R2 in the second switch unit, when the transistor Q1 in the second switch unit is turned on, the potential of the first end of the resistor R2 rises. As the voltage of the resistor R2 increases, the conduction degree of the transistor Q2 also increases, and the conduction voltage drop of the transistor Q2 also decreases, thereby reducing the conduction degree of the transistor Q1. That is, the transistor Q2 can be used as a negative feedback path of the transistor Q1, so that the control terminal voltage of the transistor Q1 is maintained at a fixed preset voltage, so that the current flowing through the transistor Q1 connected in series with the resistor to be measured remains fixed. The preset voltage can be determined by the model of the transistor Q2. For example, if the starting voltage of the transistor Q2 is 0.6V and the on-state voltage drop of the transistor Q2 is 0.7V, when the voltage at the first end of the resistor R2 exceeds 0.6V, the transistor Q2 is turned on and the base voltage of the transistor Q1 is clamped to 0.7V. At this time, the voltage across the resistor R2 is also clamped to 0.6V. If the resistance value of the resistor R2 is 60Ω, the current flowing through the transistor Q1 is 0.6V / 60Ω=10mA. Of course, the on-state voltage drop and starting voltage of transistors of different models may be different, and this application does not make specific limitations here.
[0052] In combination with the above description, it can be known that the control terminal voltage of the switching device in the second switch unit is controlled by the first voltage regulating unit to achieve the control of the current position flowing through the resistor to be measured to remain unchanged. The sum of the voltage differences between the resistor to be measured and the first switch unit can be calculated by detecting the first signal. Therefore, the voltage across the resistor to be measured can be determined by calculating the voltage across the first switch unit. The structure of the first switch unit is introduced in conjunction with the embodiments below.
[0053] In some implementations, the first switch unit includes a fifth resistor, a sixth resistor, and a third switch.
[0054] Among them, the first end of the fifth resistor is used to connect to the power supply, and the second end of the fifth resistor is connected to the second end of the third switch; the first end of the sixth resistor is used to receive the detection signal, and the second end of the sixth resistor is connected to the control end of the third switch; the first end of the third switch is used to connect to the first end of the resistor to be measured.
[0055] For ease of understanding, a specific example of the structure of the first switch unit is given below.
[0056] See also Figure 5 , which is a schematic diagram of the structure of a first switch unit provided in an embodiment of the present application. Figure 5In the embodiment, the resistor R5 can be regarded as the fifth resistor, the resistor R6 can be regarded as the sixth resistor, and the transistor Q3 can be regarded as the third switch. The collector of the transistor Q3 is the first end of the third switch, the emitter of the transistor is the second end of the third switch, the base of the transistor Q3 is the control end of the third switch, and the first end of the resistor R6 is used as the external interface of the first switch unit to receive the detection signal.
[0057] pass Figure 5 In the first switch unit shown, when the first end of the resistor R6 receives a detection signal, the transistor Q3 is turned on. At this time, if the second switch unit is turned on, an energy transmission path of the power supply is formed, and the power supply energy can pass through the resistor R6, the transistor Q3, the resistor to be measured and the second switch unit in sequence.
[0058] In actual use, if the terminal resistance to be measured fails, in order to avoid the above-mentioned failure from causing damage to the devices in the first switch unit, the resistance detection circuit may also include a second voltage regulating unit connected to the first switch unit and adjusting the control terminal voltage of the switch device in the first switch unit, and the first switch unit receives the detection signal through the second voltage regulating circuit.
[0059] In some implementations, the second voltage regulating unit includes: a seventh resistor, an eighth resistor, and a fourth switch.
[0060] Among them, the first end of the seventh resistor is used to receive the detection signal, the second end of the seventh resistor is connected to the control end of the fourth switch and the first end of the fourth resistor; the first end of the fourth switch is connected to the first end of the sixth resistor, the second end of the fourth switch is connected to the second end of the eighth resistor and grounded, and in order to meet the conduction of the fourth switch, the first switch unit also includes a ninth resistor, the first end of the ninth resistor is used to be connected to the power supply, and the second end of the ninth resistor is connected to the second end of the second resistor.
[0061] For ease of understanding, a specific example of the structure of the second voltage regulating unit is given below.
[0062] See also Figure 6 FIG. 1 is a schematic diagram of the structure of a second voltage regulating unit provided in an embodiment of the present application. Figure 6 In the embodiment, the resistor R7 can be regarded as the seventh resistor, the resistor R8 can be regarded as the eighth resistor, and the transistor Q4 can be regarded as the fourth switch. The resistor R7 can be regarded as the external interface of the second voltage regulating unit for receiving the detection signal.
[0063] use Figure 6In the second voltage regulating unit shown, when the resistance detection circuit and the resistance to be measured are normal, when the first end of the resistor R7 receives the detection signal, the power supply provides a collector voltage for the transistor Q4 and a base voltage for the transistor Q3 through the resistor R6 and the resistor R9 voltage division, the transistor Q3 and the transistor Q4 are turned on, and the resistance detection circuit operates normally. At this time, the current flow direction in the resistance detection circuit can be seen in Figure 7 As shown. When the circuit detection circuit fails or the resistance to be measured fails, causing the current of the transistor Q4 to increase, the voltage across the resistor R5 also increases. Therefore, the emitter potential of the transistor Q3 decreases. Due to the voltage-dividing effect of the resistors R9 and R6, the control terminal voltage of the transistor Q3 remains unchanged. Therefore, the voltage difference between the base and the emitter of the transistor Q3 decreases, causing the conduction degree of the transistor Q3 to decrease or even shut down, thereby realizing the device protection function under the fault state. Similarly, since the first voltage regulating unit can be clamped with the control terminal voltage of the switching device in the second switching unit, when the resistance detection circuit fails or the resistance to be measured fails, causing the current on the transistor Q1 to increase, the transistor Q2 works to control the current flowing through the transistor Q1 to remain unchanged, thereby avoiding overcurrent damage to the device and realizing the function of protecting the device safety.
[0064] Combined with the above description, the control terminal voltage of the switch device in the second switch unit can be controlled by the first voltage regulating unit to provide a constant current scenario for the circuit to be tested. The resistance value of the resistor to be tested can be calculated by the first signal and the current flowing through the resistor to be tested. For example, the rated voltage of the power supply is 5V, the conduction voltage drop of the transistor Q3 is 150mV, and the Figure 7 The resistance detection circuit shown can make the preset current flowing through the resistor to be tested be 10mA. If the voltage amplitude of the detected first signal is 2V, the resistance value of resistor R5*10mA is 150mV, and the resistance value of the resistor to be tested is R=(5V-2V*2-150mV-100mV) / 10mA.
[0065] In actual use, the calculation process of the above-mentioned resistance to be measured can be executed by a controller in the device to which the resistance to be measured belongs. The resistance detection circuit can also have a built-in controller, which can receive the first signal and use the first signal and the preset current to calculate the resistance value of the resistance to be measured.
[0066] In combination with the above description, the embodiment of the present application further provides a car, which includes at least a CAN bus, the aforementioned resistance detection resistor and a plurality of terminal devices. The CAN bus is connected to the plurality of terminal devices; the resistance detection resistor is connected to the CAN bus. The terminal device may be a control unit inside the car or a functional vehicle load.
[0067] In the various embodiments of the present application, unless otherwise specified or provided for in any logical conflict, the terms and / or descriptions between the different embodiments are consistent and may be referenced to each other, and the technical features in the different embodiments may be combined to form new embodiments according to their inherent logical relationships.
[0068] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the scope of protection of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A resistance detection circuit, characterized in that: include: A first switch unit, a second switch unit and a first voltage regulating unit; The first end of the first switch unit is used to be connected to the power supply, and the second end of the first switch unit is used to be connected to the first end of the resistor to be measured, and is used to be turned on when receiving a detection signal; The first end of the second switch unit is used to be connected to the second end of the resistor to be measured, and the second end of the second switch unit is grounded, and is used to be turned on when receiving a detection signal, and output a first signal representing the voltage of the second end of the resistor to be measured; The first voltage regulating unit is connected to the second switch unit, and is used to control the control terminal voltage of the switch device in the second switch unit to be a preset voltage when receiving the detection signal, so that the current flowing through the resistor to be measured is a preset current.
2. The resistance detection circuit according to claim 1, characterized in that: The second switch unit includes: a first resistor, a second resistor and a first switch; The first end of the first resistor is used to receive the detection signal, and the second end of the first resistor is connected to the control end of the first switch and the first voltage regulating unit; The first end of the first switch is used to connect to the second end of the resistor to be measured, the second end of the first switch is connected to the first end of the second resistor, and the first end of the first switch is used to output the first signal; A second terminal of the second resistor is grounded.
3. The resistance detection circuit according to claim 2, characterized in that: The second switch unit further includes: a third resistor and a fourth resistor; The first end of the third resistor is connected to the first end of the first switch, and the second end of the third resistor is connected to the first end of the fourth resistor; The second end of the fourth resistor is grounded; The first end of the first switch outputs the first signal through the second end of the third resistor.
4. The resistance detection circuit according to claim 2 or 3, characterized in that: The first voltage regulating circuit includes a second switch, a first end of the second switch is connected to the second end of the first resistor, a second end of the second switch is grounded, and a control end of the second switch is connected to the first end of the second resistor.
5. The resistance detection circuit according to claim 1 or 2, characterized in that: The first switch unit includes: a fifth resistor, a sixth resistor and a third switch; The first end of the fifth resistor is used to be connected to the power supply, and the second end of the fifth resistor is connected to the second end of the third switch; The first end of the sixth resistor is used to receive the detection signal, and the second end of the sixth resistor is connected to the control end of the third switch; The first end of the third switch is used to be connected to the first end of the resistor to be measured.
6. The resistance detection circuit according to claim 5, characterized in that: The resistance detection circuit also includes a second voltage regulating unit connected to the first switch unit, the first switch unit receives the detection signal through the second voltage regulating unit, and the second voltage regulating unit is used to adjust the control terminal voltage of the switch device in the first switch unit.
7. The resistance detection circuit according to claim 6, characterized in that: The second voltage regulating unit includes: a seventh resistor, an eighth resistor and a fourth switch; The first end of the seventh resistor is used to receive the detection signal, and the second end of the seventh resistor is connected to the control end of the fourth switch and the first end of the fourth resistor; A first end of the fourth switch is connected to a first end of the sixth resistor, and a second end of the fourth switch is connected to a second end of the eighth resistor and is grounded; The first switch unit further includes a ninth resistor, a first end of the ninth resistor is used to be connected to the power supply, and a second end of the ninth resistor is connected to the second end of the second resistor.
8. The resistance detection circuit according to claim 1 or 2, characterized in that: The resistance detection unit further includes a controller, and the controller is used to determine the resistance value of the resistor to be measured according to the preset current and the first signal.
9. The resistance detection circuit according to claim 1, characterized in that: The switch devices in the first switch unit and the second switch unit are transistors.
10. An automobile, characterized in that: include: A CAN bus, a resistance detection circuit as claimed in any one of claims 1 to 9, and a plurality of terminal devices; The CAN bus is connected to the multiple terminal devices; The resistance detection resistor is connected to the CAN bus.
