Resistance configuration circuit, communication terminal and vehicle
Patent Information
- Application Number
- CN202610974402.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-30
- Publication Date
- 2026-10-23
AI Technical Summary
[0003]在相关技术中,通常基于预设物料清单以硬件固定方式配置终端电阻,然而此种配置方式的通用性较低,且物料管控及后续维护成本较高
[0015]通过上述技术方案,能够基于电阻配置电路,在电阻配置电路的控制端接收到第一控制信号的情况下,通过第一电阻配置模块使第一电阻与第一CAN线导通,并通过第二电阻配置模块使第二电阻与第二CAN线导通, 在控制端接收到第二控制信号的情况下,通过第一电阻配置模块使第一电阻与第一CAN线断开,并通过第二电阻配置模块使第二电阻与第二CAN线断开。这样,能够由电阻配置电路基于控制信号控制电阻与CAN线的通断,使得CAN线能够通过电阻配置电路灵活切换终端电阻的配置,有效提高终端电阻配置的灵活性和通用性,并且通过软件方式配置终端电阻,无需额外加入硬件,有效降低物料管控及后续维护成本。
Smart Images

Figure CN122969918A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and more specifically, to a resistor configuration circuit, a communication terminal, and a vehicle. Background Technology
[0002] Currently, when communicating based on the CAN (Controller Area Network) bus, terminating resistors are typically configured in the CAN bus to improve the line's anti-interference capability and enhance data transmission quality.
[0003] In related technologies, terminating resistors are usually configured in a fixed hardware manner based on a preset bill of materials. However, this configuration method has low versatility and high material control and subsequent maintenance costs. Summary of the Invention
[0004] The purpose of this disclosure is to provide a resistor configuration circuit, a communication terminal, and a vehicle.
[0005] According to a first aspect of the present disclosure, a resistor configuration circuit is provided, the circuit comprising: a first resistor, a second resistor, a first resistor configuration module, a second resistor configuration module, and a control terminal; the control terminal is connected to the first resistor configuration module and the second resistor configuration module, the first resistor and the first resistor configuration module are connected to form a first branch, the second resistor and the second resistor configuration module are connected to form a second branch, a first end of the first branch is used to connect to a first CAN line, a first end of the second branch is used to connect to a second CAN line, and a second end of the first branch is connected to a second end of the second branch; the first resistor configuration module is configured to connect the first resistor to the first CAN line when the control terminal receives a first control signal, and disconnect the first resistor from the first CAN line when the control terminal receives a second control signal; the second resistor configuration module is configured to connect the second resistor to the second CAN line when the control terminal receives the first control signal, and disconnect the second resistor from the second CAN line when the control terminal receives the second control signal.
[0006] Optionally, the first resistor configuration module includes a first transistor, the gate of the first transistor is connected to the control terminal, the source of the first transistor is connected to the first end of the first resistor, the second end of the first resistor forms the second end of the first branch, and the drain of the first transistor forms the first end of the first branch.
[0007] Optionally, the second resistor configuration module includes a second transistor, the gate of the second transistor is connected to the control terminal, the source of the second transistor is connected to the first end of the second resistor, the second end of the second resistor forms the second end of the second branch, and the drain of the second transistor forms the first end of the second branch.
[0008] Optionally, the circuit further includes: a third resistor configuration module, the third resistor configuration module being connected to the control terminal; the third resistor configuration module being used to output the first control signal to the control terminal when a third control signal is received; or, to output the second control signal to the control terminal when a fourth control signal is received.
[0009] Optionally, the third resistor configuration module includes a first submodule and a second submodule, the first submodule being connected to the second submodule and the control terminal respectively; the second submodule is used to receive the third control signal or the fourth control signal and transmit the third control signal or the fourth control signal to the first submodule; the first submodule is used to output the first control signal to the control terminal when receiving the third control signal; or, when receiving the fourth control signal, output the second control signal to the control terminal.
[0010] Optionally, the first submodule includes a third transistor and a third resistor, and the second submodule includes a fourth transistor; the drain of the third transistor is connected to the control terminal, the source of the third transistor is used to connect to a voltage source, and the gate of the third transistor is connected to the drain of the fourth transistor; the first end of the third resistor is connected to the gate of the third transistor, and the second end of the third resistor is used to connect to the voltage source; the gate of the fourth transistor is used to receive the third control signal or the fourth control signal.
[0011] Optionally, the circuit further includes: a fourth resistor, a fifth resistor, and a sixth resistor; the control terminal is grounded through the fourth resistor; the fifth resistor is connected between the drain of the third transistor and the control terminal; and the sixth resistor is connected between the gate of the third transistor and the drain of the fourth transistor.
[0012] Optionally, the circuit further includes: a bypass capacitor, the first terminal of which is grounded, and the second terminal of which is connected to the second terminal of the first branch and the second terminal of the second branch; the bypass capacitor is used for bypass filtering of the resistor configuration circuit.
[0013] According to a second aspect of the present disclosure, a communication terminal is provided, the communication terminal including a CAN transceiver, a control module, and the resistor configuration circuit described in the first aspect, one end of the control module being connected to the CAN transceiver and the other end being connected to the control terminal of the resistor configuration circuit; the control module is configured to output a first control signal to the control terminal of the resistor configuration circuit when it is determined that the CAN transceiver outputs a first status signal; or, when it is determined that the CAN transceiver outputs a second status signal, output a second control signal to the control terminal of the resistor configuration circuit.
[0014] According to a third aspect of the present disclosure, a vehicle is provided, including the communication terminal described in the second aspect.
[0015] The above technical solution enables the following: Based on the resistor configuration circuit, when the control terminal of the resistor configuration circuit receives a first control signal, the first resistor configuration module connects the first resistor to the first CAN line, and the second resistor configuration module connects the second resistor to the second CAN line. When the control terminal receives a second control signal, the first resistor configuration module disconnects the first resistor from the first CAN line, and the second resistor configuration module disconnects the second resistor from the second CAN line. This allows the resistor configuration circuit to control the connection and disconnection of the resistor and CAN line based on the control signal, enabling the CAN line to flexibly switch the configuration of the terminating resistor. This effectively improves the flexibility and versatility of the terminating resistor configuration. Furthermore, configuring the terminating resistor via software eliminates the need for additional hardware, effectively reducing material control and subsequent maintenance costs.
[0016] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description
[0017] The accompanying drawings are provided to further illustrate the present disclosure and form part of the specification. They are used together with the following detailed description to explain the present disclosure, but do not constitute a limitation thereof. In the drawings: Figure 1 This is a schematic diagram of a resistor configuration circuit according to an exemplary embodiment.
[0018] Figure 2 This is a schematic diagram of another resistor configuration circuit according to an exemplary embodiment.
[0019] Figure 3 This is a schematic diagram of the structure of a third resistor configuration circuit according to an exemplary embodiment.
[0020] Figure 4 This is a schematic diagram of the structure of a fourth resistor configuration circuit according to an exemplary embodiment.
[0021] Figure 5 This is a schematic diagram of the structure of a fifth resistor configuration circuit according to an exemplary embodiment.
[0022] Figure 6 This is a schematic diagram of the structure of a sixth resistor configuration circuit according to an exemplary embodiment.
[0023] Figure 7 This is a schematic diagram of the structure of a seventh resistor configuration circuit according to an exemplary embodiment.
[0024] Figure 8 This is a schematic diagram of the structure of an eighth resistor configuration circuit according to an exemplary embodiment.
[0025] Figure 9 This is a block diagram illustrating a communication terminal according to an exemplary embodiment.
[0026] Figure 10 It is based on Figure 9 The diagram shows a block diagram of a communication terminal in a practical application.
[0027] Figure 11 This is a block diagram illustrating a vehicle according to an exemplary embodiment.
[0028] Explanation of reference numerals in the attached figures R1 - First resistor; R2 - Second resistor; R3 - Third resistor; R4 - Fourth resistor; R5 - Fifth resistor; R6 - Sixth resistor; T1 - First transistor; T2 - Second transistor; T3 - Third transistor; T4 - Fourth transistor; C1 - Bypass capacitor; Vs - Voltage source; 1 - First resistor configuration module; 2 - Second resistor configuration module; 3 - Control terminal; 4 - Third resistor configuration module; 41 - First submodule; 42 - Second submodule; 10 - Resistor configuration circuit; 20 - CAN transceiver; 30 - Control module; 100 - Communication terminal; 1000 - Vehicle. Detailed Implementation
[0029] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0030] The embodiments described in the following examples of this disclosure are not representative of all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0031] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily construed as referring to a specific order or sequence. Furthermore, in the description with reference to the accompanying drawings, the same reference numerals in different drawings denote the same elements.
[0032] The term "comprising" and its variations as used herein are open-ended inclusion, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; and the term "some embodiments" means "at least some embodiments".
[0033] In related technologies, when communicating via CAN bus, terminating resistors are typically configured in the CAN bus to improve the line's anti-interference capability and enhance data transmission quality. These terminating resistors are usually configured in hardware using a pre-defined bill of materials; however, this configuration method has low versatility and incurs high costs for material control and subsequent maintenance.
[0034] To address the aforementioned issues, this disclosure provides a resistor configuration circuit, a communication terminal, and a vehicle. Based on the resistor configuration circuit, when the control terminal of the resistor configuration circuit receives a first control signal, it connects a first resistor to a first CAN line via a first resistor configuration module, and connects a second resistor to a second CAN line via a second resistor configuration module. Conversely, when the control terminal receives a second control signal, it disconnects the first resistor from the first CAN line via the first resistor configuration module, and disconnects the second resistor from the second CAN line via the second resistor configuration module. This allows the resistor configuration circuit to control the connection and disconnection of the resistor and CAN line based on control signals, enabling the CAN line to flexibly switch the configuration of the terminating resistor. This effectively improves the flexibility and versatility of the terminating resistor configuration. Furthermore, since the terminating resistor is configured via software methods such as the resistor configuration circuit, no additional hardware is required, effectively reducing material management and subsequent maintenance costs.
[0035] The specific embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.
[0036] Figure 1 This is a schematic diagram of a resistor configuration circuit according to an exemplary embodiment, with reference to... Figure 1The resistor configuration circuit 10 may include: a first resistor R1, a second resistor R2, a first resistor configuration module 1, a second resistor configuration module 2, and a control terminal 3. The control terminal 3 is connected to the first resistor configuration module 1 and the second resistor configuration module 2. The first resistor R1 is connected to the first resistor configuration module 1 to form a first branch, and the second resistor R2 is connected to the second resistor configuration module 2 to form a second branch. The first end of the first branch is used to connect to a first CAN line, the first end of the second branch is used to connect to a second CAN line, and the second end of the first branch is connected to the second end of the second branch. The first resistor configuration module 1 is used to connect the first resistor R1 to the first CAN line when the control terminal 3 receives a first control signal, and to disconnect the first resistor from the first CAN line when the control terminal 3 receives a second control signal. The second resistor configuration module 2 is used to connect the second resistor R2 to the second CAN line when the control terminal 3 receives a first control signal, and to disconnect the second resistor R2 from the second CAN line when the control terminal 3 receives a second control signal.
[0037] In this design, the first resistor R1 and the second resistor R2 have the same resistance value. The sum of the resistance values of the first resistor R1 and the second resistor R2 can be determined according to the actual requirements of the CAN line communication. For example, the sum of the resistance values of the first resistor R1 and the second resistor R2 can be 120 ohms, and correspondingly, the resistance values of the first resistor R1 and the second resistor R2 can both be 60 ohms. The first CAN line can be the CAN high-order line, and correspondingly, the second CAN line can be the CAN low-order line. The first control signal can be a high-level signal, and correspondingly, the second control signal can be a low-level signal.
[0038] For example, when the control terminal 3 receives a high-level signal, the first resistor configuration module 1 can turn on the first branch, so that the first resistor R1 is connected to the CAN high-level line. At the same time, the second resistor configuration module 2 can turn on the second branch, so that the second resistor R2 is connected to the CAN low-level line. At this time, the first branch and the second branch form a loop between the CAN high-level line and the CAN low-level line. The first resistor R1 and the second resistor R2 together serve as terminating resistors connected between the CAN high-level line and the CAN low-level line. Accordingly, when the control terminal 3 receives a low-level signal, the first resistor configuration module 1 can disconnect the first branch, causing the first resistor R1 to disconnect from the CAN high-order line. At the same time, the second resistor configuration module 2 can disconnect the second branch, causing the second resistor R2 to disconnect from the CAN low-order line. At this time, the loop formed between the first branch and the second branch between the CAN high-order line and the CAN low-order line is in an open state. The first resistor R1 and the second resistor R2 will no longer be connected across the CAN high-order line and the CAN low-order line, and no terminating resistors will be configured between the CAN lines.
[0039] The above technical solution, based on a resistor configuration circuit, enables the first resistor to be connected to the first CAN line via a first resistor configuration module and the second resistor to be connected to the second CAN line when the control terminal of the resistor configuration circuit receives a first control signal. Conversely, when the control terminal receives a second control signal, the first resistor configuration module disconnects the first resistor from the first CAN line, and the second resistor configuration module disconnects the second resistor from the second CAN line. This allows the resistor configuration circuit to control the connection and disconnection of the resistor and CAN line based on control signals, enabling the CAN line to flexibly switch the configuration of the terminating resistor. This effectively improves the flexibility and versatility of the terminating resistor configuration. Furthermore, configuring the terminating resistor through software methods such as the resistor configuration circuit eliminates the need for additional hardware, effectively reducing material control and subsequent maintenance costs.
[0040] In some embodiments, such as Figure 2 As shown, the first resistor configuration module 1 may include a first transistor T1, the gate of the first transistor T1 is connected to the control terminal 3, the source of the first transistor is connected to the first end of the first resistor R1, the second end of the first resistor forms the second end of the first branch, and the drain of the first transistor T1 forms the first end of the first branch.
[0041] The first transistor T1 may include a field-effect transistor, such as an N-channel MOSFET (Metal-Oxide-Semiconductor Field Effect Transistor). The first transistor T1 can receive the control signal from the control terminal 3 through its gate, and turn on or off the channel between the source and drain according to the control signal to switch its own on / off state, thereby controlling the on / off state of the first branch.
[0042] For example, when the gate of the first transistor T1 receives a high-level signal transmitted from the control terminal 3, the first transistor T1 forms a gate-source voltage. At this time, the gate-source voltage is greater than or equal to a preset gate-source voltage threshold, the channel between the source and drain is turned on, and the first branch is turned on, so that the first resistor R1 is turned on with the CAN high bit line. Correspondingly, when the gate of the first transistor T1 receives a low-level signal transmitted from the control terminal 3, the gate-source voltage of the first transistor T1 is less than the preset gate-source voltage threshold, the channel between the source and drain is turned off, and the first branch is turned off, so that the first resistor R1 is turned off with the CAN high bit line.
[0043] The above technical solution can control the on / off state of the first branch through the first transistor. Compared with traditional mechanical contact switches, it can effectively reduce driving power consumption. At the same time, the transistor switches the on / off state through the internal channel, which can effectively improve the control response speed compared with traditional mechanical switches, thereby meeting the needs of fast control.
[0044] In some embodiments, such as Figure 3 As shown, the second resistor configuration module 2 may include a second transistor T2, the gate of the second transistor T2 is connected to the control terminal 3, the source of the second transistor T2 is connected to the first end of the second resistor R2, the second end of the second resistor R2 forms the second end of the second branch, and the drain of the second transistor T2 forms the first end of the second branch.
[0045] The second transistor T2 may include a field-effect transistor, such as an N-channel MOSFET. The second transistor T2 can receive the control signal from the control terminal 3 through its gate, and turn on or off the channel between the source and drain according to the control signal to switch its own on / off state, thereby controlling the on / off state of the second branch.
[0046] For example, when the gate of the second transistor T2 receives a high-level signal transmitted from the control terminal 3, the second transistor T2 forms a gate-source voltage. At this time, the gate-source voltage is greater than or equal to a preset gate-source voltage threshold, the channel between the source and drain is turned on, and the second branch is turned on, so that the second resistor R2 is turned on with the CAN low bit line. Correspondingly, when the gate of the second transistor T2 receives a low-level signal transmitted from the control terminal 3, the gate-source voltage of the second transistor T2 is less than the preset gate-source voltage threshold, the channel between the source and drain is turned off, and the second branch is turned off, so that the second resistor R2 is turned off with the CAN low bit line.
[0047] The above technical solution can control the on / off state of the second branch through the second transistor. Compared with traditional mechanical contact switches, it can effectively reduce driving power consumption. At the same time, the transistor switches the on / off state through the internal channel, which can effectively improve the control response speed compared with traditional mechanical switches, thereby meeting the needs of fast control.
[0048] In other embodiments, such as Figure 4 As shown, the circuit may further include: a third resistor configuration module 4, which is connected to the control terminal 3. The third resistor configuration module 4 is used to output a first control signal to the control terminal 3 when a third control signal is received, or to output a second control signal to the control terminal 3 when a fourth control signal is received.
[0049] The third control signal can be a high-level signal, and correspondingly, the fourth control signal can be a low-level signal. For example, when the third resistor configuration module 4 receives a high-level signal, it can output a high-level signal to the control terminal 3, so that the first resistor configuration module 1 and the second resistor configuration module 2, based on the high-level signal from the control terminal 3, control the first resistor R1 and the second resistor R2 to be connected between the CAN high-level line and the CAN low-level line. Conversely, when the third resistor configuration module 4 receives a low-level signal, it can output a low-level signal to the control terminal 3, so that the first resistor configuration module 1 and the second resistor configuration module 2, based on the low-level signal from the control terminal 3, disconnect the loop formed between the first branch and the second branch between the CAN high-level line and the CAN low-level line, thereby releasing the configuration of the terminating resistor.
[0050] The above technical solution can also output control signals to the control terminal based on the received control signals through the third resistor configuration module, so that the control signals can be adapted and adjusted, thereby improving the reliability and accuracy of the subsequent output control signals to the control terminal, and improving the flexibility of subsequent terminal resistor configuration.
[0051] In some embodiments, such as Figure 5 As shown, the third resistor configuration module 4 may include a first submodule 41 and a second submodule 42. The first submodule 41 is connected to the second submodule 42 and the control terminal 3, respectively. The second submodule 42 is used to receive the third control signal or the fourth control signal and transmit the third control signal or the fourth control signal to the first submodule 41. The first submodule 41 is used to output a first control signal to the control terminal 3 when it receives the third control signal, or to output a second control signal to the control terminal 3 when it receives the fourth control signal.
[0052] For example, when the second submodule 42 receives a high-level signal, it can transmit the high-level signal to the first submodule 41. At this time, the first submodule 41 outputs a high-level signal to the control terminal 3, so that the first resistor configuration module 1 and the second resistor configuration module 2, based on the high-level signal from the control terminal 3, control the first resistor R1 and the second resistor R2 to be connected between the CAN high-level line and the CAN low-level line. Correspondingly, when the second submodule 42 receives a low-level signal, it can transmit the low-level signal to the first submodule 41. At this time, the first submodule 41 outputs a low-level signal to the control terminal 3, so that the first resistor configuration module 1 and the second resistor configuration module 2, based on the low-level signal from the control terminal 3, disconnect the loop formed between the first branch and the second branch between the CAN high-level line and the CAN low-level line, thereby terminating the configuration of the terminating resistor.
[0053] In one possible implementation, such as Figure 6As shown, the first submodule 41 includes a third transistor T3 and a third resistor R3, and the second submodule 42 includes a fourth transistor T4. The drain of the third transistor T3 is connected to the control terminal 3, the source of the third transistor T3 is connected to the voltage source Vs, the gate of the third transistor T3 is connected to the drain of the fourth transistor T4, the first end of the third resistor R3 is connected to the gate of the third transistor T3, the second end of the third resistor is connected to the voltage source, and the gate of the fourth transistor is used to receive the third control signal or the fourth control signal.
[0054] The third transistor T3 may include a field-effect transistor, such as a P-channel MOSFET, and the fourth transistor T4 may include a field-effect transistor, such as an N-channel MOSFET. The source of the fourth transistor T4 is grounded, and the output voltage of the voltage source Vs can be determined according to the actual situation, such as 24V.
[0055] For example, when the gate of the fourth transistor T4 receives a third control signal representing a high-level signal, the fourth transistor T4 forms a gate-source voltage greater than or equal to a preset gate-source voltage threshold, and the channel between the source and drain is turned on. At this time, since the source of the fourth transistor T4 is grounded, the drain of the fourth transistor T4 is also clamped at zero potential, and the gate of the third transistor T3 is also at zero potential. At this time, since the source of the third transistor T3 is connected to the voltage source Vs, the gate-source voltage of the third transistor T3 is less than or equal to the negative conduction threshold, and the channel between the source and drain is turned on. The third transistor T3 outputs the high-level signal of the voltage source Vs to the control terminal. Correspondingly, when the gate of the fourth transistor T4 receives the fourth control signal representing a low-level signal, the gate-source voltage of the fourth transistor T4 is less than the preset gate-source voltage threshold, and the channel between the source and drain is turned off. The gate of the third transistor T3 does not receive the low-level signal from the fourth transistor T4, and remains at the same potential as the voltage source under the voltage maintenance effect of the third resistor. At this time, the gate-source voltage of the third transistor T3 is greater than the negative conduction threshold, and the channel between the source and drain is opened. The drain of the third transistor T3 outputs a low-level signal to the control terminal 3.
[0056] The above technical solution can convert the received control signal into a control signal output to the control terminal through the first and second sub-modules, so that the control signal can be adapted and adjusted, thereby improving the reliability and accuracy of the subsequent control signal output to the control terminal, and improving the flexibility of subsequent terminal resistor configuration.
[0057] In some embodiments, such as Figure 7As shown, the circuit may further include: a fourth resistor R4, a fifth resistor R5 and a sixth resistor R6. The control terminal 3 is grounded through the fourth resistor R4. The fifth resistor is connected between the drain of the third transistor T3 and the control terminal 3. The sixth resistor R6 is connected between the gate of the third transistor T3 and the drain of the fourth transistor T4.
[0058] The fourth resistor R4 is used to pull the potential of the control terminal 3 to a low level when the third transistor T3 is in the off state, so that the control terminal 3 continuously receives a low potential signal, thereby facilitating the subsequent disconnection of the first branch and the second branch to remove the terminating resistor configuration. The fifth resistor R5 is used to limit the current magnitude of the first control signal and the second control signal based on the resistor current limiting characteristic, so that the first control signal and the second control signal are smoothly transmitted from the third transistor T3 to the control terminal 3. The sixth resistor R6 is used to limit the current magnitude of the third control signal and the fourth control signal based on the resistor current limiting characteristic, so that the third control signal and the fourth control signal are smoothly transmitted from the fourth transistor to the third transistor T3, thereby preventing sudden potential changes in the gate of the third transistor T3.
[0059] The above technical solution can also control the potential of the control terminal to a low level based on the fourth resistor when the transistor in the circuit is in the off state. At the same time, the fifth and sixth resistors limit the current of signal transmission in the circuit, effectively improving the stability of the terminal resistor configuration.
[0060] In some embodiments, such as Figure 8 As shown, the circuit also includes a bypass capacitor C1, the first end of which is grounded, and the second end of which is connected to the second end of the first branch and the second end of the second branch. The bypass capacitor C1 is used for bypass filtering of the resistor configuration circuit 10.
[0061] For example, when the first branch and the second branch form a DC loop between the CAN high line and the CAN low line, and the first resistor R1 and the second resistor R2 together serve as terminating resistors across the CAN high line and the CAN low line, the bypass capacitor C1 is used to maintain an open circuit state based on the DC open circuit characteristic to maintain the terminating resistor connection. At the same time, based on the AC conduction characteristic, it filters the interference waveform signals on the CAN high line and the CAN low line to maintain the stability of signal transmission during CAN line communication.
[0062] The above technical solutions can also maintain the connection of the terminating resistor by opening the DC circuit of the bypass capacitor, and at the same time filter the CAN line transmission signal by conducting the AC circuit of the bypass capacitor, thereby effectively improving the stability of communication signal transmission.
[0063] The following is combined Figure 8 The resistor configuration circuit shown is illustrated using the example of configuring a terminating resistor for a CAN line. The working principle of this resistor configuration circuit 10 is explained below: First, when it is necessary to configure a terminating resistor for the CAN line, a third control signal representing a high-level signal can be input to the gate of the fourth transistor T4. The fourth transistor T4 forms a gate-source voltage greater than or equal to a preset gate-source voltage threshold due to the increase in the gate level, thereby turning on the source and drain, so that the drain is in a low-level state due to the source being grounded, and then pulls down the gate of the third transistor T3 connected to the drain of the fourth transistor T4 to a low level.
[0064] Secondly, since the gate of the third transistor T3 is in a low-level state, the source is connected to the voltage source Vs, forming a gate-source voltage that is less than the negative conduction threshold, thereby turning on the source and drain, causing the drain to switch to the same high-potential state as the source, and then outputting a first control signal representing a high-level signal to the control terminal connected to the drain.
[0065] Finally, after the gate of the first transistor T1 receives a high-level signal through the control terminal 3, it forms a gate-source voltage greater than or equal to the preset gate-source voltage threshold, and the channel between the source and drain is connected, thereby connecting the first resistor R1 to the CAN high-order line. At the same time, after the gate of the second transistor T2 receives a high-level signal through the control terminal 3, it forms a gate-source voltage greater than or equal to the preset gate-source voltage threshold, and the channel between the source and drain is connected, thereby connecting the second resistor R2 to the CAN low-order line. At this time, the first branch and the second branch form a loop between the CAN high-order line and the CAN low-order line, and the first resistor R1 and the second resistor R2 together serve as terminating resistors connected between the CAN high-order line and the CAN low-order line.
[0066] In addition, for detailed steps on removing the terminating resistor configuration from the CAN line, please refer to the relevant description above, which will not be repeated here.
[0067] By adopting the above technical solution, the resistor configuration circuit can control the on / off state of the resistor and the CAN line based on the control signal, so that the CAN line can flexibly switch the configuration of the terminating resistor through the resistor configuration circuit, effectively improving the flexibility and versatility of the terminating resistor configuration. Furthermore, the terminating resistor can be configured through software methods such as the resistor configuration circuit, without the need for additional hardware, effectively reducing material control and subsequent maintenance costs.
[0068] This disclosure also provides a communication terminal. Figure 9 This is a block diagram illustrating a communication terminal 100 according to an exemplary embodiment, such as... Figure 9 As shown, the communication terminal 100 includes a CAN transceiver 20, a control module 30, and... Figures 1 to 8The resistor configuration circuit 10 shown has a control module 30 connected at one end to the CAN transceiver 20 and at the other end to the control terminal 3 of the resistor configuration circuit 10. The control module 30 is used to output a first control signal to the control terminal 3 of the resistor configuration circuit 10 when it is determined that the CAN transceiver 20 outputs a first status signal; or, when it is determined that the CAN transceiver 20 outputs a second status signal, to the control terminal 3 of the resistor configuration circuit 10.
[0069] The control module 30 may include an MCU (Microcontroller Unit). The CAN transceiver 20 can output status signals via the INH (Inhibit) pin. The first status signal indicates that the CAN transceiver 20 is in an active state, and the second status signal indicates that the CAN transceiver 20 is in a standby state. For example, when the CAN transceiver 20 outputs the first status signal, it is determined that the CAN transceiver 20 is in an active state. At this time, the control module 30 outputs a first control signal to the control terminal 3 of the resistor configuration circuit 10, which allows the first and second resistors in the resistor configuration circuit 10 to be used together as terminating resistors across the CAN high and low bits. Correspondingly, when the CAN transceiver 20 outputs the second status signal, it is determined that the CAN transceiver 20 is in a standby state. The control module 30 outputs a second control signal to the control terminal 3 of the resistor configuration circuit 10 to deactivate the terminating resistor configuration.
[0070] Figure 10 It is based on Figure 9 The diagram shown is a block diagram of a communication terminal 100 in a practical application, with reference to... Figure 10 The communication terminal 100 may further include a redundancy module, a status control module, an EMC module, and a debugging module. The redundancy module provides redundant backup for the CAN communication link. The status control module performs adaptation processing (e.g., filtering and voltage division) on the status signals output by the CAN transceiver. The EMC module provides filtering protection for CAN line communication based on EMC (Electromagnetic Compatibility) requirements. The debugging module performs auxiliary testing and verification of the CAN communication link. It should be noted that the specific applications of the above modules can be found in the module application methods in related technologies, and will not be described in detail here.
[0071] This disclosure also provides a vehicle, Figure 11 This is a block diagram illustrating a vehicle according to an exemplary embodiment, such as... Figure 11 As shown, the vehicle 1000 includes, for example... Figure 9 or Figure 10 The communication terminal 100 shown.
[0072] The preferred embodiments of this disclosure have been described in detail above with reference to the accompanying drawings. However, this disclosure is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this disclosure, various simple modifications can be made to the technical solutions of this disclosure, and these simple modifications all fall within the protection scope of this disclosure.
[0073] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, this disclosure will not describe the various possible combinations separately.
[0074] Furthermore, various different embodiments of this disclosure can be combined in any way, as long as they do not violate the spirit of this disclosure, they should also be regarded as the content disclosed in this disclosure.
Claims
1. A resistor configuration circuit, characterized in that, The circuit includes: a first resistor, a second resistor, a first resistor configuration module, a second resistor configuration module, and a control terminal; the control terminal is connected to the first resistor configuration module and the second resistor configuration module, the first resistor is connected to the first resistor configuration module to form a first branch, the second resistor is connected to the second resistor configuration module to form a second branch, the first end of the first branch is used to connect to a first CAN line, the first end of the second branch is used to connect to a second CAN line, and the second end of the first branch is connected to the second end of the second branch; The first resistor configuration module is used to connect the first resistor to the first CAN line when the control terminal receives a first control signal, and to disconnect the first resistor from the first CAN line when the control terminal receives a second control signal. The second resistor configuration module is used to connect the second resistor to the second CAN line when the control terminal receives a first control signal, and to disconnect the second resistor from the second CAN line when the control terminal receives a second control signal.
2. The circuit according to claim 1, characterized in that, The first resistor configuration module includes a first transistor, the gate of the first transistor is connected to the control terminal, the source of the first transistor is connected to the first end of the first resistor, the second end of the first resistor forms the second end of the first branch, and the drain of the first transistor forms the first end of the first branch.
3. The circuit according to claim 1, characterized in that, The second resistor configuration module includes a second transistor, the gate of the second transistor is connected to the control terminal, the source of the second transistor is connected to the first end of the second resistor, the second end of the second resistor forms the second end of the second branch, and the drain of the second transistor forms the first end of the second branch.
4. The circuit according to claim 1, characterized in that, The circuit further includes: a third resistor configuration module, which is connected to the control terminal; The third resistor configuration module is used to output the first control signal to the control terminal when a third control signal is received; or to output the second control signal to the control terminal when a fourth control signal is received.
5. The circuit according to claim 4, characterized in that, The third resistor configuration module includes a first submodule and a second submodule, wherein the first submodule is connected to the second submodule and the control terminal, respectively; The second submodule is used to receive the third control signal or the fourth control signal, and to transmit the third control signal or the fourth control signal to the first submodule; The first submodule is configured to output the first control signal to the control terminal when a third control signal is received; or to output the second control signal to the control terminal when a fourth control signal is received.
6. The circuit according to claim 5, characterized in that, The first submodule includes a third transistor and a third resistor, and the second submodule includes a fourth transistor; The drain of the third transistor is connected to the control terminal, the source of the third transistor is used to connect to a voltage source, and the gate of the third transistor is connected to the drain of the fourth transistor; the first end of the third resistor is connected to the gate of the third transistor, and the second end of the third resistor is used to connect to the voltage source; the gate of the fourth transistor is used to receive the third control signal or the fourth control signal.
7. The circuit according to claim 6, characterized in that, The circuit also includes: a fourth resistor, a fifth resistor, and a sixth resistor; The control terminal is grounded through the fourth resistor; The fifth resistor is connected between the drain of the third transistor and the control terminal; The sixth resistor is connected between the gate of the third transistor and the drain of the fourth transistor.
8. The circuit according to any one of claims 1-7, characterized in that, The circuit further includes: a bypass capacitor, the first terminal of which is grounded, and the second terminal of which is connected to the second terminal of the first branch and the second terminal of the second branch; The bypass capacitor is used for bypass filtering of the resistor configuration circuit.
9. A communication terminal, characterized in that, The communication terminal includes a CAN transceiver, a control module, and a resistor configuration circuit as described in any one of claims 1-8. One end of the control module is connected to the CAN transceiver, and the other end is connected to the control terminal of the resistor configuration circuit. The control module is configured to output the first control signal to the control terminal of the resistor configuration circuit when it is determined that the CAN transceiver outputs a first status signal; or, when it is determined that the CAN transceiver outputs a second status signal, output the second control signal to the control terminal of the resistor configuration circuit.
10. A vehicle, characterized in that, Includes the communication terminal as described in claim 9.