Terminal resistor configuration method of vehicle-mounted controller, peripheral interface circuit and vehicle
By designing the peripheral interface circuit of the on-board controller and selectively shorting or disconnecting the pins with the CAN transceiver and resistor module, the problem of cumbersome version and high cost caused by the termination resistor configuration is solved, and the platformization and cost reduction of the product line is achieved.
Patent Information
- Application Number
- CN202510457798.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-11
- Publication Date
- 2025-07-11
AI Technical Summary
In the prior art, the terminal resistor configuration of the on-board controller requires multiple hardware versions, resulting in cumbersome version control, high cost and poor product consistency.
By designing a peripheral interface circuit of an on-board controller, using CAN transceiver and resistor modules, pins are selectively short-circuited or disconnected according to the requirements of the terminal resistor configuration, the flexible configuration of the terminal resistor is realized, and the component number control of the controller hardware is reduced.
It realizes the platformization of the vehicle-mounted controller product line, reduces production costs, and realizes the demand for terminal resistance through wiring harness arrangement, reducing the control problems of hardware component numbers.
Smart Images

Figure CN120287967A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vehicles, and in particular, to a method for configuring a termination resistor of an in-vehicle controller, a peripheral interface circuit, and a vehicle. Background Art
[0002] At present, with the improvement of the intelligent level of vehicles, the types and quantities of in-vehicle controllers are increasing, and there are also many vehicle models. The requirements for the termination resistor of the same in-vehicle controller (such as the domain controller of the vehicle) may be inconsistent. Therefore, only regarding whether to configure the termination resistor, two hardware versions are derived. That is, for the configuration of the termination resistor of the controller, two part numbers need to be controlled, and the version control is cumbersome, the cost is high, and the product consistency is poor. Summary of the Invention
[0003] Based on this, in view of the above technical problems, it is necessary to provide a method for configuring a termination resistor of an in-vehicle controller, a peripheral interface circuit, and a vehicle, which ensures the platformization of the product line of the in-vehicle controller, no longer requires maintaining whether the controller carries a termination resistor, reduces the production cost of the controller production line, and transfers the relevant changes to the wiring harness layout. Since the wiring harness cost does not increase or increases insignificantly, and the vehicle wiring harness will originally be rearranged according to different vehicle models or the positions of the termination resistors of the controllers, therefore, through the layout of the wiring harness connection of the peripheral interface circuit, the requirement of whether to configure the termination resistor of the controller can be conveniently realized under the condition that the controller hardware is the same, reducing the control problem of multiple part numbers of the controller hardware and reducing the cost.
[0004] In a first aspect, a peripheral interface circuit of an in-vehicle controller is provided, including:
[0005] A CAN transceiver, the CAN transceiver includes a CAN interface and an interface connected to the in-vehicle controller, and the CAN interface includes a high-level signal terminal and a low-level signal terminal;
[0006] A first pin, the first pin is connected to the high-level signal terminal;
[0007] A second pin, the second pin is connected to the low-level signal terminal;
[0008] A resistor module and a third pin, the third pin is connected to the high-level signal terminal through the resistor module, wherein the second pin and the third pin can be selectively short-circuited and disconnected according to the termination resistor configuration requirement of the in-vehicle controller.
[0009] In some examples, the resistor module includes a first resistor and a second resistor, and the first resistor and the second resistor are connected in series between the high-level signal terminal and the third pin.
[0010] In some examples, when the vehicle-mounted controller does not need to configure the terminal resistor, the resistor module is left floating, and the vehicle-mounted controller is connected to the CAN bus through the first pin and the second pin of the peripheral interface circuit.
[0011] In some examples, when the vehicle-mounted controller needs to configure the terminal resistor, the second pin and the third pin are short-circuited, and the vehicle-mounted controller is connected to the CAN bus through the first pin of the peripheral interface circuit and the second pin short-circuited to the third pin.
[0012] In a second aspect, a method for configuring a terminal resistor of a vehicle-mounted controller based on a peripheral interface circuit is provided. The peripheral interface circuit is the peripheral interface circuit of the vehicle-mounted controller according to the first aspect described above. The method includes:
[0013] Obtain the terminal resistor configuration requirement of the vehicle-mounted controller;
[0014] According to the terminal resistor configuration requirement of the vehicle-mounted controller, selectively short-circuit or disconnect the second pin and the third pin of the peripheral interface circuit.
[0015] In some examples, the selectively short-circuiting or disconnecting the second pin and the third pin of the peripheral interface circuit according to the terminal resistor configuration requirement of the vehicle-mounted controller includes:
[0016] When the vehicle-mounted controller does not need to configure the terminal resistor, control the resistor module to be left floating so that the vehicle-mounted controller is connected to the CAN bus through the first pin and the second pin of the peripheral interface circuit.
[0017] In some examples, the selectively short-circuiting or disconnecting the second pin and the third pin of the peripheral interface circuit according to the terminal resistor configuration requirement of the vehicle-mounted controller includes:
[0018] When the vehicle-mounted controller needs to configure the terminal resistor, short-circuit the second pin and the third pin so that the vehicle-mounted controller is connected to the CAN bus through the first pin of the peripheral interface circuit and the second pin short-circuited to the third pin.
[0019] In a third aspect, a vehicle is provided, including: the peripheral interface circuit of the vehicle-mounted controller according to the first aspect described above.
[0020] Fourthly, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the steps of the terminal resistor configuration method for the vehicle-mounted controller based on the peripheral interface circuit in the above-mentioned second aspect and any possible implementation manner of the second aspect are implemented.
[0021] Fifthly, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the terminal resistor configuration method for the vehicle-mounted controller based on the peripheral interface circuit in the above-mentioned second aspect and any possible implementation manner of the second aspect are implemented.
[0022] Sixthly, a computer program product is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the terminal resistor configuration method for the vehicle-mounted controller based on the peripheral interface circuit in the above-mentioned second aspect and any possible implementation manner of the second aspect are implemented.
[0023] By adopting the embodiments of the present application, the platformization of the vehicle-mounted controller product line is ensured. It is no longer necessary to maintain whether the controller carries a terminal resistor, reducing the production cost of the controller production line. The relevant changes are transferred to the wiring harness layout. Since the wiring harness cost does not increase or increases insignificantly, and the vehicle wiring harness will originally be rearranged according to different vehicle models or the terminal resistor positions of the controller. Therefore, through the layout of the wiring harness connection of the peripheral interface circuit, when the controller hardware is the same, the requirement of whether the controller is configured with a terminal resistor can be conveniently realized, reducing the control problem of multiple part numbers of the controller hardware and reducing the cost. Description of the Drawings
[0024] By reading the detailed description of the non-limiting embodiments with reference to the following drawings, other features, purposes, and advantages of the present application will become more obvious:
[0025] Figure 1 It is a circuit schematic diagram of the peripheral interface circuit of the vehicle-mounted controller provided by the embodiment of the present application;
[0026] Figure 2 It is a flowchart of the terminal resistor configuration method for the vehicle-mounted controller based on the peripheral interface circuit provided by the embodiment of the present application;
[0027] Figure 3 It is a structural block diagram of the computer device provided by the embodiment of the present application. Detailed Embodiments
[0028] The present application will be further described in detail below in conjunction with embodiments and the accompanying drawings. It can be understood that the specific embodiments described herein are only for explaining the relevant application and not for limiting the application. In addition, it should be noted that for the convenience of description, only the parts related to the application are shown in the drawings.
[0029] It should be noted that, without conflict, the embodiments and the features of the embodiments in the present application can be combined with each other. The present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0030] The terminal resistance configuration method, peripheral interface circuit and vehicle of an in-vehicle controller according to an embodiment of the present application will be described in detail below with reference to the drawings.
[0031] Figure 1 is a schematic diagram of a peripheral interface circuit of an in-vehicle controller according to an embodiment of the present application. As Figure 1 shown, the peripheral interface circuit of the in-vehicle controller according to an embodiment of the present application includes: a CAN transceiver 110, a first pin PIN1, a second pin PIN2, a third pin PIN3, and a resistor module 120, where:
[0032] The CAN transceiver 110 includes a CAN interface and an interface (Rx and Tx) connected to the in-vehicle controller MCU. The CAN interface includes a high-level signal terminal CAN_H and a low-level signal terminal CAN_L. The first pin PIN1 is connected to the high-level signal terminal CAN_H. The second pin PIN2 is connected to the low-level signal terminal CAN_L. The third pin PIN3 is connected to the high-level signal terminal CAN_H through the resistor module 120, where the second pin PIN2 and the third pin PIN3 can be selectively short-circuited and disconnected according to the terminal resistance configuration requirements of the in-vehicle controller.
[0033] In an embodiment of the present application, in combination with Figure 1 shown, the resistor module 120 includes a first resistor R1 and a second resistor R2. The first resistor R1 and the second resistor R2 are connected in series between the high-level signal terminal CAN_H and the third pin PIN3.
[0034] In a specific example, when the vehicle-mounted controller does not need to configure a terminating resistor, the resistor module 120 is left floating, and the vehicle-mounted controller is connected to the CAN bus through the first pin PIN1 and the second pin PIN2 of the peripheral interface circuit. When the vehicle-mounted controller needs to configure a terminating resistor, the second pin PIN2 is shorted to the third pin PIN3, and the vehicle-mounted controller is connected to the CAN bus through the first pin PIN1 of the peripheral interface circuit and the second pin PIN2 shorted to the third pin PIN3.
[0035] Specifically, as shown in Figure 2 Figure 5, it is a schematic diagram of the peripheral interface circuit of a vehicle-mounted controller without an RC low-pass filter. Two resistors R1 and R2 are added to the PIN3 path and are left floating by default (i.e., the vehicle-mounted controller has no terminating resistor). The automobile manufacturing enterprise can decide whether to configure a terminating resistor according to the position of the vehicle-mounted controller. For example:
[0036] When PIN1 and PIN2 are used as the CAN bus, the vehicle-mounted controller does not configure a terminating resistor;
[0037] After PIN2 is shorted to PIN3, PIN1 and the shorted PIN2 are used as the CAN bus, and the vehicle-mounted controller configures a terminating resistor.
[0038] That is to say, the automobile manufacturing enterprise does not need to update the part number of the vehicle-mounted controller according to the position of the vehicle-mounted controller. Connect the relevant pins at the wire harness end of different vehicle models to ensure the platformization of the vehicle-mounted controller product and reduce the production cost of the production line of the vehicle-mounted controller. If the vehicle-mounted controller does not need a terminating resistor, the wire harness CAN bus can be connected to PIN1 and PIN2. If the vehicle-mounted controller needs to configure a terminating resistor, after PIN2 and PIN3 are shorted at the wire harness end, the wire harness CAN bus can be connected to PIN1 and the shorted PIN2.
[0039] Among them, the vehicle-mounted controller is, for example, a domain controller. In addition, as shown in Figure 2 Figure 6, the peripheral interface circuit of the vehicle-mounted controller also includes some related auxiliary circuits, which will not be elaborated here.
[0040] The peripheral interface circuit of the vehicle-mounted controller according to the embodiments of the present application ensures the platformization of the vehicle-mounted controller product line, eliminates the need to maintain whether the controller carries a terminal resistor, reduces the production cost of the controller production line, and transfers the relevant changes to the wiring harness layout. Since the wiring harness cost does not increase or increases insignificantly, the vehicle's wiring harness will originally be rearranged according to different vehicle models or the terminal resistor positions of the controller. Therefore, through the layout of the wiring harness connection of the peripheral interface circuit, when the controller hardware is the same, the requirement of whether the controller is configured with a terminal resistor can be conveniently realized, reducing the control problem of multiple part numbers of the controller hardware and reducing costs.
[0041] Figure 2 is a flowchart of a method for configuring a terminal resistor of a vehicle-mounted controller based on a peripheral interface circuit according to an embodiment of the present application. As Figure 2 shown, the method for configuring a terminal resistor of a vehicle-mounted controller based on a peripheral interface circuit according to an embodiment of the present application, wherein the peripheral interface circuit is the peripheral interface circuit of the vehicle-mounted controller according to any one of the above embodiments, and the method for configuring a terminal resistor of the vehicle-mounted controller based on the peripheral interface circuit includes the following steps:
[0042] S201: Obtain the terminal resistor configuration requirement of the vehicle-mounted controller;
[0043] S202: Selectively short-circuit or disconnect the second pin and the third pin of the peripheral interface circuit according to the terminal resistor configuration requirement of the vehicle-mounted controller.
[0044] In an embodiment of the present application, the selectively short-circuiting or disconnecting the second pin and the third pin of the peripheral interface circuit according to the terminal resistor configuration requirement of the vehicle-mounted controller includes: when the vehicle-mounted controller does not need to be configured with a terminal resistor, controlling the resistor module to be suspended so that the vehicle-mounted controller is connected to the CAN bus through the first pin and the second pin of the peripheral interface circuit.
[0045] In an embodiment of the present application, the selectively short-circuiting or disconnecting the second pin and the third pin of the peripheral interface circuit according to the terminal resistor configuration requirement of the vehicle-mounted controller includes: when the vehicle-mounted controller needs to be configured with a terminal resistor, short-circuiting the second pin and the third pin so that the vehicle-mounted controller is connected to the CAN bus through the first pin and the second pin short-circuited with the third pin of the peripheral interface circuit.
[0046] The terminal resistance configuration method of the vehicle-mounted controller based on the peripheral interface circuit according to the embodiment of the present application ensures the platformization of the vehicle-mounted controller product line. It is no longer necessary to maintain whether the controller carries the terminal resistance, which reduces the production cost of the controller production line and transfers the relevant changes to the wiring harness layout. Since the wiring harness cost does not increase or increases insignificantly, the wiring harness of the entire vehicle will be rearranged according to the terminal resistance positions of different vehicle models or controllers. Therefore, through the arrangement of the wiring harness connection of the peripheral interface circuit, when the controller hardware is consistent, the need to configure the controller with the terminal resistance can be easily realized, thereby reducing the management and control issues of multiple component numbers of the controller hardware and reducing costs.
[0047] For the specific definition of the terminal resistance configuration method of the vehicle-mounted controller based on the peripheral interface circuit, please refer to the definition of the peripheral interface circuit of the vehicle-mounted controller mentioned above, which will not be repeated here. The various modules of the peripheral interface circuit of the above-mentioned vehicle-mounted controller can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0048] In one embodiment, a vehicle is provided, comprising: a peripheral interface circuit of an on-board controller according to any one of the above embodiments, the vehicle ensures the platformization of the on-board controller product line, and no longer needs to maintain whether the controller carries a terminal resistor, thereby reducing the production cost of the controller production line and transferring the relevant changes to the wiring harness layout. Since the wiring harness cost does not increase or increases insignificantly, the wiring harness of the entire vehicle will originally be rearranged according to the terminal resistor positions of different vehicle models or controllers. Therefore, through the layout of the wiring harness connection of the peripheral interface circuit, when the controller hardware is consistent, the need to configure the controller with a terminal resistor can be easily realized, thereby reducing the management and control issues of multiple component numbers of the controller hardware and reducing costs.
[0049] In addition, other structures and functions of the vehicle according to the embodiment of the present application are known to ordinary technicians in the field and will not be elaborated here.
[0050] In one embodiment, a computer device is provided. Figure 3 This is a block diagram of the computer device provided in the embodiment of the present application, refer to Figure 3 The computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the above-mentioned vehicle diagnostic method embodiment is implemented. For example, the following steps are performed: obtaining the terminal resistance configuration requirement of the vehicle controller;
[0051] According to the terminal resistance configuration requirement of the vehicle-mounted controller, selectively short-circuit or disconnect the second pin and the third pin of the peripheral interface circuit.
[0052] An embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the processor executes the computer program, the embodiments of the foregoing vehicle diagnosis method are implemented. For example, execute: obtain the terminal resistance configuration requirement of the vehicle-mounted controller;
[0053] According to the terminal resistance configuration requirement of the vehicle-mounted controller, selectively short-circuit or disconnect the second pin and the third pin of the peripheral interface circuit.
[0054] An embodiment of the present application provides a computer program product. The computer program product includes instructions, and when the instructions are run, the method described in the embodiments of the present application is executed. For example, the steps of the vehicle diagnosis method shown can be executed, such as execute: obtain the terminal resistance configuration requirement of the vehicle-mounted controller; Figure 2 The various steps of the vehicle diagnosis method shown, for example, execute: obtain the terminal resistance configuration requirement of the vehicle-mounted controller;
[0055] According to the terminal resistance configuration requirement of the vehicle-mounted controller, selectively short-circuit or disconnect the second pin and the third pin of the peripheral interface circuit.
[0056] Those of ordinary skill in the art can understand that all or part of the processes of the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memories. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. The volatile memory can include random access memory (RAM) or an external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0057] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope described in this specification.
[0058] The above embodiments merely illustrate several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation to the scope of the patent application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.
Claims
1. An external interface circuit of a vehicle-mounted controller, characterized in that Comprising: A CAN transceiver, the CAN transceiver includes a CAN interface and an interface connected to a vehicle-mounted controller, and the CAN interface includes a high-level signal terminal and a low-level signal terminal; A first pin, the first pin is connected to the high-level signal terminal; A second pin, the second pin is connected to the low-level signal terminal; A resistor module and a third pin, the third pin is connected to the high-level signal terminal through the resistor module, wherein the second pin and the third pin can be selectively short-circuited and disconnected according to the terminal resistor configuration requirement of the vehicle-mounted controller.
2. The peripheral interface circuit of the vehicle-mounted controller according to claim 1, wherein The resistor module includes a first resistor and a second resistor, and the first resistor and the second resistor are connected in series between the high-level signal terminal and the third pin.
3. The peripheral interface circuit of the vehicle-mounted controller according to claim 1 or 2, characterized in that When the vehicle-mounted controller does not need to configure a terminal resistor, the resistor module is suspended, and the vehicle-mounted controller connects to the CAN bus through the first pin and the second pin of the peripheral interface circuit.
4. The peripheral interface circuit of the vehicle-mounted controller according to claim 1 or 2, characterized in that When the vehicle-mounted controller needs to configure a terminal resistor, the second pin and the third pin are short-circuited, and the vehicle-mounted controller connects to the CAN bus through the first pin of the peripheral interface circuit and the second pin short-circuited with the third pin.
5. A method for configuring termination resistors of an in-vehicle controller based on a peripheral interface circuit, characterized in that, The peripheral interface circuit is the peripheral interface circuit of the vehicle-mounted controller according to any one of claims 1-4, and the method includes: Obtaining the terminal resistor configuration requirement of the vehicle-mounted controller; According to the terminal resistor configuration requirement of the vehicle-mounted controller, selectively short-circuit or disconnect the second pin and the third pin of the peripheral interface circuit.
6. The method for configuring the termination resistor of the vehicle-mounted controller based on the peripheral interface circuit according to claim 5, characterized in that The selectively short-circuiting or disconnecting the second pin and the third pin of the peripheral interface circuit according to the terminal resistor configuration requirement of the vehicle-mounted controller includes: When the vehicle-mounted controller does not need to configure a terminal resistor, controlling the resistor module to be suspended so that the vehicle-mounted controller connects to the CAN bus through the first pin and the second pin of the peripheral interface circuit.
7. The method for configuring the termination resistor of the vehicle-mounted controller based on the peripheral interface circuit according to claim 5, wherein The selectively short-circuiting or disconnecting the second pin and the third pin of the peripheral interface circuit according to the terminal resistor configuration requirement of the vehicle-mounted controller includes: When the vehicle-mounted controller needs to configure a terminal resistor, short-circuiting the second pin and the third pin so that the vehicle-mounted controller connects to the CAN bus through the first pin of the peripheral interface circuit and the second pin short-circuited with the third pin.
8. A vehicle, characterized in that, Comprising: The peripheral interface circuit of the vehicle-mounted controller according to any one of claims 1-4.
9. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the terminal resistor configuration method of the vehicle-mounted controller based on the peripheral interface circuit according to any one of claims 5-7.
10. A computer-readable storage medium, comprising a memory and a computer program stored on the memory and executable on a processor, characterized in that When the program is executed by the processor, it implements the terminal resistor configuration method of the vehicle-mounted controller based on the peripheral interface circuit according to any one of claims 5-7.