Gateway circuit and terminal resistance selection method of gateway circuit
By introducing selection modules and multiplexers into the gateway circuit and dynamically adjusting the terminal resistance, the versatility problem of the central gateway controller caused by differences in vehicle models and bus types is solved, and the stability of signal transmission and system reliability are improved. .
Patent Information
- Application Number
- CN202410700793.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, the central gateway controller needs to customize different terminal resistors due to differences in vehicle models and bus types, which makes it incompetent and lacks dynamic adjustment capabilities, affecting signal transmission quality and system reliability.
A gateway circuit is designed, which includes a central gateway controller and a selection module. Terminal resistors with different resistances are dynamically selected through control signals to achieve connection with the central gateway controller, unify hardware production, and improve versatility.
By dynamically adjusting the terminal resistance, the stability and reliability of signal transmission are improved, hardware production is simplified, system complexity and the risk of maintenance errors are reduced, and communication quality is enhanced.
Smart Images

Figure CN118694632A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network communication technology, and in particular to a gateway circuit and a gateway circuit control method. Background Art
[0002] The central gateway controller is the network center of the whole vehicle. The central gateway controller is connected to all electronic control units (ECU) in hardware. In the whole vehicle network, due to the difference in vehicle models and bus types, the central gateway controller (or a branch of the central gateway controller) needs to set different terminal resistors. In the prior art, the central gateway controller with different terminal resistors is usually customized according to different vehicle models and bus types, resulting in the defect that the central gateway controller cannot be universal. Summary of the invention
[0003] The present invention provides a gateway circuit and a terminal resistance selection method for the gateway circuit, so as to realize dynamic adjustment of the terminal resistance in the gateway circuit, unify the hardware production of the gateway circuit, and improve the versatility of the gateway circuit.
[0004] According to a first aspect of the present invention, there is provided a gateway circuit, the gateway circuit comprising: a central gateway controller, at least one selection module, and at least two terminal resistors;
[0005] The selection module is connected to the central gateway controller and the terminal resistor respectively;
[0006] The selection module is used to select at least one of the terminal resistors to be connected to the central gateway controller according to a control signal sent by the central gateway controller;
[0007] Wherein, at least two of the terminal resistors have different resistance values.
[0008] Optionally, the central gateway controller comprises a control unit and at least two branches; different branches are used to connect different communication channels;
[0009] The gateway circuit comprises at least two selection modules, and the selection modules are electrically connected to the branches in a one-to-one correspondence;
[0010] The control unit is used to control the selection module to select the terminal resistor that matches the resistance value of the communication channel.
[0011] Optionally, the communication channel includes at least one bus type; and the control unit is specifically configured to set the terminal resistors with different resistance values according to the bus type in the communication channel.
[0012] Optionally, the selection module has at least two first ends, and the first ends are electrically connected to the terminal resistors in a one-to-one correspondence; the selection module also includes a control end and at least one second end, and the second end and the control end are electrically connected to the central gateway controller respectively; the selection module is used to select at least one of the first ends to be connected to at least one of the second ends according to the control signal of the control end.
[0013] Optionally, the selection module comprises a multiplexer.
[0014] Optionally, the selection module and the terminal resistor are integrated in the central gateway controller.
[0015] Optionally, a gateway connection interface is connected to a central gateway controller; the central gateway controller is used to send the corresponding control signal to the selection module according to the instruction input by the gateway connection interface.
[0016] Optionally, the gateway connection interface includes a wired interface or a wireless interface.
[0017] According to a second aspect of the present invention, a method for selecting a terminal resistance of a gateway circuit is provided, the method comprising:
[0018] The central gateway controller sends a control signal to the selection module, and the selection module selects at least one terminal resistor to be connected to the central gateway controller according to the received control signal.
[0019] The central gateway controller sends a control signal to the selection module, and the selection module selects at least one terminal resistor to be connected to the central gateway controller according to the received control signal, including:
[0020] The central gateway controller receives input instructions through the gateway connection interface;
[0021] The central gateway controller sends the corresponding control signal to the selection module according to the instruction input by the gateway connection interface.
[0022] The present invention discloses a gateway circuit and a terminal resistor selection method for the gateway circuit. The gateway circuit includes: a central gateway controller, at least one selection module, and at least two terminal resistors; the selection module can select at least one of the terminal resistors to be connected to the central gateway controller according to a control signal sent by the central gateway controller. In the gateway circuit provided by the present invention, at least two terminal resistors are set, and the central gateway controller can select different terminal resistors through the selection module according to actual needs to achieve dynamic adjustment of the terminal resistor connected to the central gateway controller, so that the central gateway controller can select terminal resistors with different resistance values according to actual needs, unify the hardware production of the gateway circuit, and improve the versatility of the gateway circuit.
[0023] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0025] Figure 1 This is a schematic diagram of a gateway circuit structure provided by an embodiment of the present invention;
[0026] Figure 2 is another schematic diagram of a gateway circuit structure provided by an embodiment of the present invention;
[0027] Figure 3 is another schematic diagram of a gateway circuit structure provided by an embodiment of the present invention;
[0028] Figure 4 is another schematic diagram of a gateway circuit structure provided by an embodiment of the present invention;
[0029] Figure 5 A method for selecting terminal resistance of a gateway circuit provided by an embodiment of the present invention;
[0030] Figure 6 Another gateway circuit terminal resistance selection method provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in the present invention can be executed in parallel, can be executed sequentially, or can be executed in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document is not limited here.
[0033] Figure 1 is a schematic diagram of a gateway circuit structure provided by an embodiment of the present invention, such as Figure 1 As shown, the gateway circuit includes a central gateway controller 101, a selection module 102 and at least two terminal resistors 103. The selection module 102 is connected to the central gateway controller 101 and the terminal resistors 103 respectively. The selection module 102 selects at least one of the terminal resistors 103 to be connected to the central gateway controller 101 according to the control signal sent by the central gateway controller 101. Among them, the resistance values of at least two terminal resistors are different. For example, the resistance value of the terminal resistor is 60Ω or 120Ω, and can also be other resistance values, which are not limited here.
[0034] The gateway circuit of this embodiment can be applied to vehicles. As the network center of the whole vehicle, the central gateway controller can connect to the ECU through the bus, and then obtain relevant information of the whole vehicle from the ECU. The central gateway controller can route data buses in different networks, such as CAN, LIN, MOST, FlexRay, Ethernet, etc., to ensure that data is correctly and efficiently transmitted in the whole vehicle network. When the central gateway controller routes these data buses, because the signal is transmitted to the end of the ECU, signal reflection or signal transmission instability may occur. Therefore, the central gateway controller needs to connect terminal resistors with different resistance values according to actual needs, such as in the network architecture of different models or when the central gateway controller is connected to different types of buses, so that the terminal resistor can effectively absorb the signal reflection and echo on the bus, reduce the interference and distortion of the signal during the transmission process, thereby improving the signal quality. Or the terminal resistor can make the signal more stable during the transmission process, reduce signal fluctuations and bit error rate, and ensure accurate and reliable data transmission by providing a stable impedance load.
[0035] In this embodiment, the gateway circuit includes a selection module and at least two terminal resistors with different resistance values. The central gateway controller can select at least one terminal resistor for connection by controlling the selection module so that the terminal resistor matches the vehicle type or bus type. The selection module can be implemented by setting a multi-way selection circuit or a switch selection circuit of a multi-way relay.
[0036] Among them, in some optional embodiments, for the selection of the terminal resistor, the central gateway controller 101 can identify the current vehicle architecture type and control the selection module 102 to select the terminal resistor 103; or the central gateway controller 101 can identify the type of the connected bus and control the selection module 102 to select the terminal resistor 103. In other optional embodiments, for the selection of the terminal resistor, the central gateway controller 101 receives the input of the command signal outside the car and inputs the corresponding control signal to the selection module 102, so that the central gateway controller 101 connects the terminal resistor 103 of the corresponding resistance value.
[0037] The gateway circuit of this embodiment includes: a central gateway controller, at least one selection module, and at least two terminal resistors; the selection module can select at least one of the terminal resistors to connect to the central gateway controller according to the control signal sent by the central gateway controller. In the gateway circuit provided by this embodiment, at least two terminal resistors are set, and the central gateway controller can select different terminal resistors through the selection module according to actual needs to achieve dynamic adjustment of the terminal resistor connected to the central gateway controller, so that the central gateway controller can select terminal resistors with different resistance values according to actual needs, unify the hardware production of the gateway circuit, and improve the versatility of the gateway circuit.
[0038] Figure 2 is another schematic diagram of a gateway circuit structure provided by an embodiment of the present invention, such as Figure 2 As shown, the central gateway controller 101 includes a control unit 104 and at least two branches 105, wherein different branches 105 are used to connect different communication channels, and the communication channels include at least one bus type. The gateway circuit includes at least two selection modules 102, and the selection modules 102 are electrically connected to the branches 105 in a one-to-one correspondence. Figure 2 As shown, the first selection module 1021 is connected to the first branch 1051, and the nth selection module 102n is connected to the nth branch 105n. The control unit 104 is used to control the selection module 102 and set terminal resistors with different resistance values.
[0039] Exemplarily, at least two branches 105 can be connected to different types of communication channels, such as CAN channels, Lin channels or FlexRay channels, which are not limited here; at least two branches 105 can also be connected to different channels of the same type of communication channels, such as power CAN channels or calibration CAN channels, which are also not limited here.
[0040] Exemplarily, the control unit 104 controls the selection module 102 to select a terminal resistance value that matches the resistance value of the communication channel corresponding to the branch 105, or sets a terminal resistance of different resistance values according to the bus type in the communication channel, which is not limited here. Optionally, the terminal resistance value may include 60Ω or 120Ω, and when the type of the communication channel includes a FlexRay bus, it may also include 48.5Ω and 97Ω. The specific terminal resistance value may be selected according to actual needs, which is not limited here.
[0041] The gateway circuit of this embodiment, when there are multiple branches of different types of communication channels or different types of communication channels of the same type in the central gateway controller, can be set to connect each selection module with the corresponding branch one by one when matching the resistance of these branches, so as to achieve accurate resistance matching in units of branches. At the same time, at least two terminal resistors with different resistance values are set for each branch, and the control module selects the corresponding terminal resistor to connect with the branch for resistance matching, so as to achieve dynamic adjustment of the terminal resistor of the gateway circuit for the branch, and unify the hardware production of the gateway circuit.
[0042] Figure 3 1 is another schematic diagram of a gateway circuit structure provided by an embodiment of the present invention, wherein the selection module 102 has at least two first terminals 201, and the first terminals 201 are electrically connected to the terminal resistors 103 in a one-to-one correspondence; the selection module 102 also includes a control terminal 202 and at least one second terminal 203, and the second terminal 203 and the control terminal 202 are electrically connected to the central gateway controller 101; the selection module 102 is used to select at least one first terminal 201 to be connected to at least one second terminal 203 according to a control signal of the control terminal 202. Figure 3 As shown, the first end 2011 is electrically connected to the terminal resistor 1031, the first end 201n is connected to the terminal resistor 103n; the control end 202 is connected to the central gateway controller 101. At the same time, n second ends 203 are connected to one central gateway controller 101. The selection module 102 is used to select at least one first end 201 to be connected to at least one second end 203 according to the control signal of the control end 202.
[0043] According to this embodiment, the selection module is provided with a plurality of second terminals, and the second terminals are electrically connected to the central gateway controller. The control terminal is controlled by the central gateway controller so that at least one first terminal in the selection module is connected to at least one second terminal. This realizes that the connection between the central gateway controller and the terminal resistor forms an independent loop, avoids errors in matching the terminal resistor due to the complexity of the circuit, and ensures the reliability of the circuit. At the same time, the terminal resistor of the gateway circuit is dynamically adjusted, and the hardware production of the gateway circuit is unified.
[0044] In this embodiment, the selection module includes a multiplexer 102. Optionally, the multiplexer 102 includes a multi-way analog switch, a transistor or a relay, which is not limited here.
[0045] Optionally, the selection module 102 and the terminal resistor 103 are integrated in the central gateway controller.
[0046] In this embodiment, the selection module and the terminal resistor are integrated into the central gateway controller. In the process of manufacturing the central gateway controller, the commonly used terminal resistors can be directly integrated into the central gateway controller in a standardized manner. In the design of the whole vehicle, what resistance value is required, the selection module selects the corresponding terminal resistance value for electrical connection. The unified production standard of the central gateway is realized. At the same time, the integrated terminal resistor and the selection module can reduce the wiring requirements of the external resistor and simplify the structure and wiring complexity of the entire system. It helps to reduce the physical complexity of the system and reduce potential installation and maintenance errors. Through the integrated design, communication failures caused by looseness and damage of the terminal resistor when it is set externally can be reduced. The terminal resistor inside the central gateway controller has better fixity and stability, thereby improving the reliability of the system. Selecting the appropriate terminal resistor according to the specific application scenario can optimize the signal transmission performance of the communication channel. The correct terminal resistance value can ensure the correct matching and transmission of the signal, reduce signal reflection and noise interference, and thus improve the stability and reliability of communication.
[0047] Figure 4 is a schematic diagram of a gateway circuit structure provided in this embodiment, such as Figure 4 As shown, it also includes a gateway connection interface 106, which is connected to the central gateway controller 101; the central gateway controller 101 is used to send the corresponding control signal to the selection module according to the instruction input by the gateway connection interface 106.
[0048] Optionally, the gateway connection interface includes a wired interface or a wireless interface.
[0049] The wired interface includes at least one of a vehicle OBD interface, a USB interface or an Ethernet interface; the wireless interface includes at least one of a DSRC interface, a Wi-Fi interface, a mobile communication module interface or a Bluetooth interface. The type of the specific gateway connection interface is not limited here.
[0050] The present embodiment provides a gateway circuit, which includes a gateway connection interface, and the gateway connection interface is connected to a central gateway controller; the central gateway controller is used to send a corresponding control signal to the selection module according to the instruction input by the gateway connection interface. In this way, the terminal resistance matching in the gateway circuit can be easily configured and managed remotely through the programming interface of the central gateway controller, reducing the need for manual physical intervention. Through the programming control of the gateway connection interface to achieve resistance matching, the central gateway controller can dynamically adjust the value of the terminal resistance when the system is running. This helps to cope with changes in system parameters or temporary needs, optimize bus performance in real time, reduce signal reflection and interference, and improve communication quality. The terminal resistance configuration in the prior art usually involves manual adjustment or replacement of resistance elements, which is cumbersome and error-prone. Through programming control, the user only needs to operate through the software interface or programming interface to quickly complete the selection and configuration of the terminal resistance, simplifying the configuration process and improving work efficiency.
[0051] Based on the same inventive concept, this embodiment also provides a control method for a gateway circuit.
[0052] Figure 5 A terminal resistance selection method for a gateway circuit provided in this embodiment is as follows: Figure 5 As shown, the control method includes:
[0053] S101, the central gateway controller sends a control signal to the selection module;
[0054] S102: A selection module selects at least one terminal resistor to be connected to the central gateway controller according to the received control signal.
[0055] The terminal resistance selection method of the gateway circuit of this embodiment is applied to the gateway circuit of any of the above embodiments of the present invention, and has the beneficial effects of the gateway circuit of any of the above embodiments of the present invention.
[0056] Figure 6 A terminal resistance selection method for a gateway circuit provided in this embodiment is as follows: Figure 6 As shown, the control method includes:
[0057] S201, the central gateway controller receives an input instruction through the gateway connection interface;
[0058] S202, the central gateway controller sends a corresponding control signal to the selection module according to the instruction input by the gateway connection interface;
[0059] S203: The selection module selects at least one terminal resistor to be connected to the central gateway controller according to the received control signal.
[0060] The terminal resistance selection method of a gateway circuit provided in this embodiment can achieve the same technical effect as the gateway circuit provided in the above-mentioned invention embodiment, and will not be described in detail here.
[0061] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A gateway circuit, characterized in that: The gateway circuit includes: a central gateway controller, at least one selection module, and at least two terminal resistors; The selection module is connected to the central gateway controller and the terminal resistor respectively; The selection module is used to select at least one of the terminal resistors to be connected to the central gateway controller according to a control signal sent by the central gateway controller; Wherein, at least two of the terminal resistors have different resistance values.
2. The gateway circuit according to claim 1, characterized in that: The central gateway controller comprises a control unit and at least two branches; different branches are used to connect different communication channels; The gateway circuit comprises at least two selection modules, and the selection modules are electrically connected to the branches in a one-to-one correspondence; The control unit is used to control the selection module to select the terminal resistor that matches the resistance value of the communication channel.
3. The gateway circuit according to claim 2, characterized in that: The communication channel includes at least one bus type; the control unit is specifically used to set the terminal resistors with different resistance values according to the bus type in the communication channel.
4. The gateway circuit according to claim 1, characterized in that: The selection module has at least two first ends, and the first ends are electrically connected to the terminal resistors in a one-to-one correspondence; the selection module also includes a control end and at least one second end, and the second end and the control end are electrically connected to the central gateway controller respectively; the selection module is used to select at least one of the first ends to be connected to at least one of the second ends according to the control signal of the control end.
5. The gateway circuit according to claim 4, characterized in that: The selection module includes a multiplexer.
6. The gateway circuit according to claim 1, characterized in that: The selection module and the terminal resistor are integrated in the central gateway controller.
7. The gateway circuit according to claim 1, characterized in that: Also includes: A gateway connection interface, the gateway connection interface is connected to a central gateway controller; the central gateway controller is used to send the corresponding control signal to the selection module according to the instruction input by the gateway connection interface.
8. The gateway circuit according to claim 7, characterized in that: The gateway connection interface includes a wired interface or a wireless interface.
9. A method for selecting terminal resistance of a gateway circuit, applied to the gateway circuit of any one of claims 1 to 8, characterized in that: The method comprises: The central gateway controller sends a control signal to the selection module, and the selection module selects at least one terminal resistor to be connected to the central gateway controller according to the received control signal.
10. The method for selecting terminal resistance of a gateway circuit according to claim 9, characterized in that: The central gateway controller sends a control signal to the selection module, and the selection module selects at least one terminal resistor to be connected to the central gateway controller according to the received control signal, including: The central gateway controller receives input instructions through the gateway connection interface; The central gateway controller sends the corresponding control signal to the selection module according to the instruction input by the gateway connection interface.
