Vehicle-mounted can bus terminal resistance configuration method and system for node testing

By automating the configuration of the vehicle CAN bus terminating resistor, the inefficiency and failure risk caused by manual operation are solved, and the stability and accuracy are improved, making it adaptable to complex topologies and testing scenarios.

CN121000595BActive Publication Date: 2026-03-17HONGKE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-22
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

In existing technologies, the configuration of the terminating resistor of the vehicle CAN bus requires manual operation, which leads to low efficiency and easy failure, affecting the convenience of testing and maintenance.

Method used

By using an automated configuration method, the identifier and resistance status of each node in the vehicle CAN bus test are obtained, and the terminal resistance is dynamically adjusted to match the communication performance requirements, including signal quality and error rate. The configuration is optimized by grouping and utilizing the topology database and node attributes.

Benefits of technology

It improves the stability and accuracy of the testing process, reduces the risk of failure, enhances the reliability and compatibility of the testing system, and adapts to different topologies and testing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121000595B_ABST
    Figure CN121000595B_ABST
Patent Text Reader

Abstract

The application relates to the field of vehicle-mounted bus testing, and discloses a vehicle-mounted CAN bus terminal resistance configuration method and system for node testing, which comprises the following steps: acquiring a node identifier and a terminal resistance identifier corresponding to each test node in vehicle-mounted CAN bus testing, wherein the terminal resistance identifier is used for identifying the terminal resistance access state of the test node; acquiring the first node position of the first test node corresponding to the first node identifier, configuring the terminal resistance for the first test node when the first node position is the terminal node of the vehicle-mounted CAN bus, and canceling the configuration of the terminal resistance for the test nodes of non-terminal nodes; and updating the terminal resistance identifier of each test node according to the terminal resistance access state corresponding to each test node. The application can automatically configure the terminal resistance in CAN bus testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of vehicle bus testing technology, and more specifically, to a method and system for configuring terminating resistors for vehicle CAN bus for node testing. Background Technology

[0002] Controller Area Networks (CAN) are widely used in automotive electronics, industrial control, and aerospace. The terminating resistor in CAN is a crucial component for reliable communication. Its core function is to match the characteristic impedance of the bus transmission line, adhering to signal transmission line theory to minimize signal reflection and ringing caused by impedance discontinuities. This ensures the integrity of the digital signal waveform and the stability of the communication process. CAN bus networks typically require a 120-ohm terminating resistor connected in parallel at each of the two furthest nodes on the bus. This standard configuration results in an equivalent DC impedance of approximately 60 ohms when viewed from any point on the bus, matching the characteristic impedance of the twisted-pair transmission medium and creating a transmission system with good signal integrity. Currently, terminating resistors are generally connected via hard connections or manually using jumper caps, which is effective in small networks with simple topologies, fixed node positions, and minimal need for frequent modifications.

[0003] In practical engineering applications, during equipment development, production debugging, or on-site maintenance, the aforementioned traditional terminating resistor configuration method requires operators to manually connect or remove a 120-ohm resistor to each node based on the existing terminating resistors on the bus during network testing or simulation using portable testers, fault diagnosis tools, or other single-node testing equipment. This frequent manual operation is not only cumbersome and inefficient, significantly impacting the convenience of testing and maintenance, but also highly susceptible to errors due to negligence. For example, incorrectly connecting an additional resistor to a bus with dual terminating resistors can cause impedance mismatch, introducing serious signal quality problems and even communication interruptions. Therefore, existing technology requires a solution that can intelligently and dynamically manage terminating resistor configuration to overcome the operational inconvenience, increased costs, and reduced reliability associated with terminating resistor configuration. Summary of the Invention

[0004] The purpose of this application is to provide a method and system for configuring terminating resistors on a vehicle CAN bus for node testing. This solves the technical problem that manually configuring terminating resistors based on the existing terminating resistors of the CAN bus is inefficient and prone to failure, and achieves the technical effect of automatically configuring terminating resistors in CAN bus testing.

[0005] This application provides a method for configuring terminating resistors on an on-board CAN bus for node testing. The method includes: obtaining a node identifier and a terminating resistor identifier for each test node in the on-board CAN bus test, wherein the terminating resistor identifier is used to identify the terminating resistor connection status of the test node; obtaining the first node position of the first test node corresponding to the first node identifier; configuring a terminating resistor for the first test node when the first node position is the end node of the on-board CAN bus, and deregistering the terminating resistor for test nodes that are not end nodes; and updating the terminating resistor identifier of each test node according to the terminating resistor connection status of each test node.

[0006] In one possible implementation, the method further includes: obtaining the first terminating resistor configuration conditions and the first communication performance parameters corresponding to the first test node, wherein the first terminating resistor configuration conditions are the preset trigger conditions for reconfiguring the terminating resistor of the first test node, and the first communication performance parameters include signal quality and signal error rate; when the first communication performance parameters do not meet the first terminating resistor configuration conditions, reconfiguring the terminating resistor of the end node of the vehicle CAN bus; when the first communication performance parameters meet the first terminating resistor configuration conditions, keeping the terminating resistor configuration of the end node of the vehicle CAN bus unchanged.

[0007] In another possible implementation, the method further includes: obtaining the test node attributes corresponding to each test node in the vehicle CAN bus test; classifying all test nodes into different test node groups according to the test node attributes, with different test node groups corresponding to different preset average communication performance parameters; determining the average communication performance parameters of all test nodes in each test node group; wherein, the test node attributes include the importance attribute corresponding to the test node; when the average first communication performance parameter corresponding to the first test node group is greater than or equal to the average first preset communication performance parameter, initiating the vehicle CAN bus termination resistor configuration process; when the average first communication performance parameter corresponding to the first test node group is less than the average first preset communication performance parameter, not initiating the vehicle CAN bus termination resistor configuration process.

[0008] In another possible implementation, the method further includes: obtaining the test level corresponding to the vehicle CAN bus test, obtaining the communication performance adjustment factor corresponding to the test level; determining the product of the average preset communication performance parameter and the communication performance adjustment factor corresponding to all test node groups, so as to adjust the average preset communication performance parameter corresponding to all test node groups.

[0009] In another possible implementation, obtaining the first node position of the first test node corresponding to the first node identifier includes: obtaining a CAN topology database, which includes the relative positional relationships of all test nodes corresponding to node identifiers; and determining the first node position corresponding to the first node identifier in the CAN topology database based on the first node identifier.

[0010] In another possible implementation, the method further includes: obtaining the end communication performance parameters corresponding to the end node in the vehicle CAN bus test, obtaining the end communication performance parameter threshold corresponding to the end communication performance parameters; and reconfiguring the terminating resistor of the end node when the end communication performance parameters are greater than or equal to the end communication performance parameter threshold.

[0011] In another possible implementation, the method further includes: after reconfiguring the terminating resistor of the end node, obtaining the end communication performance parameters corresponding to the end node in the vehicle CAN bus test, and obtaining the secondary end communication performance parameters corresponding to the adjacent nodes of the end node in the vehicle CAN bus test; determining the difference between the end communication performance parameters and the secondary end communication performance parameters as the communication performance parameter difference; obtaining the communication performance parameter difference threshold corresponding to the communication performance parameter difference; when the end communication performance parameter is greater than or equal to the end communication performance parameter threshold, and when the communication performance parameter difference is greater than or equal to the communication performance parameter difference threshold, removing the current end node from the vehicle CAN bus, determining the adjacent nodes of the end node as optimized end nodes, and configuring terminating resistors for the optimized end nodes; when the end communication performance parameter is greater than or equal to the end communication performance parameter threshold, and when the communication performance parameter difference is less than the communication performance parameter difference threshold, manually configuring terminating resistors for the end nodes.

[0012] In another possible implementation, the method further includes: obtaining the performance degradation range of the communication performance parameters corresponding to all test nodes within a preset time period; determining the sum of the performance degradation ranges corresponding to all test nodes as the cumulative degradation value; when the cumulative degradation value is greater than or equal to the preset cumulative degradation value, initiating the terminating resistor configuration process of the vehicle CAN bus; when the cumulative degradation value is less than the preset cumulative degradation value, not initiating the terminating resistor configuration process of the vehicle CAN bus.

[0013] In another possible implementation, the method further includes: configuring a terminating resistor on the end node of the vehicle CAN bus again when the first communication performance parameter meets the first terminating resistor configuration condition and when the cumulative degradation value is greater than or equal to a preset cumulative degradation value; and keeping the terminating resistor configuration of the end node of the vehicle CAN bus unchanged when the first communication performance parameter meets the first terminating resistor configuration condition and when the cumulative degradation value is less than a preset cumulative degradation value.

[0014] This application also provides an onboard CAN bus terminating resistor configuration system for node testing, including units for implementing the above-described onboard CAN bus terminating resistor configuration method for node testing.

[0015] The beneficial effects of the embodiments in this application compared with the prior art are:

[0016] This application provides a method for configuring terminating resistors on an onboard CAN bus for node testing. The method includes: obtaining a node identifier and a terminating resistor identifier for each test node in the onboard CAN bus test, wherein the terminating resistor identifier is used to identify the terminating resistor connection status of the test node; obtaining the first node position of the first test node corresponding to the first node identifier; configuring a terminating resistor for the first test node when the first node position is the end node of the onboard CAN bus, and deregistering the terminating resistor for test nodes that are not end nodes; and updating the terminating resistor identifier of each test node according to the terminating resistor connection status of each test node. The method in this application reduces the uncertainty caused by human intervention through an automated terminating resistor configuration mechanism, improves the stability of the testing process and the reliability of the results, significantly improves the testing accuracy, reduces the risk of failure caused by improper resistor configuration, and enhances the reliability of the entire testing system. Attached Figure Description

[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 A flowchart illustrating the first method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment;

[0019] Figure 2 A schematic diagram illustrating the workflow of the first method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment;

[0020] Figure 3 This is a schematic diagram of the system structure of the first type of test system for the terminal resistor of the vehicle CAN bus used for node testing in the embodiments of this application;

[0021] Figure 4 A flowchart illustrating a second method for configuring an on-board CAN bus terminating resistor for node testing, provided in an embodiment of this application.

[0022] Figure 5A schematic diagram illustrating the workflow of the second method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment;

[0023] Figure 6 A flowchart illustrating the third method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment;

[0024] Figure 7 A flowchart illustrating the fourth method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment;

[0025] Figure 8 A flowchart illustrating the fifth method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment;

[0026] Figure 9 This is a schematic diagram of the logic structure of an on-board CAN bus terminating resistor configuration system for node testing, provided in an embodiment of this application. Detailed Implementation

[0027] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0028] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0029] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0030] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0031] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0032] During equipment research and development, production debugging, or on-site maintenance, manually connecting or removing a 120-ohm resistor to a node is not only tedious and inefficient due to frequent manual operations, but also greatly affects the convenience of testing and maintenance, and is also prone to misoperation due to negligence.

[0033] Based on the above reasons, this application provides a method for configuring terminating resistors on an onboard CAN bus for node testing. The method includes: obtaining a node identifier and a terminating resistor identifier corresponding to each test node in the onboard CAN bus test, wherein the terminating resistor identifier is used to identify the terminating resistor connection status of the test node; obtaining the first node position of the first test node corresponding to the first node identifier; when the first node position is the end node of the onboard CAN bus, configuring a terminating resistor for the first test node, and deregulating the configured terminating resistor for test nodes that are not end nodes; and updating the terminating resistor identifier of each test node according to the terminating resistor connection status corresponding to each test node. The method in this application reduces the uncertainty caused by human intervention through an automated terminating resistor configuration mechanism, improves the stability of the testing process and the reliability of the results, significantly improves the testing accuracy, reduces the risk of failure caused by improper resistor configuration, and enhances the reliability of the entire testing system.

[0034] In some scenarios, the vehicle CAN bus terminating resistor configuration method for node testing according to an embodiment of this application can be applied to the terminating resistor configuration of the vehicle CAN bus, enabling efficient and automated configuration of the terminating resistor and improving the testing efficiency of the vehicle CAN bus.

[0035] The following describes in detail, with specific examples, a method for configuring terminating resistors for vehicle CAN bus used in node testing provided in this application.

[0036] Figure 1 A flowchart illustrating the first method for configuring an on-board CAN bus terminating resistor for node testing provided in this application is shown below. Figure 1As shown, the method for configuring the terminating resistor of the vehicle CAN bus used for node testing includes S110 to S120, and S110 to S120 are described in detail below.

[0037] S110. Obtain the node identifier and terminating resistor identifier corresponding to each test node in the vehicle CAN bus test. The terminating resistor identifier is used to identify the terminating resistor connection status of the test node.

[0038] Figure 2 A schematic diagram illustrating the workflow of the first method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment is shown below. Figure 2 As shown in this implementation, during the vehicle CAN bus test, the node identifier and terminating resistor identifier corresponding to each test node can be obtained. The node identifier can uniquely identify different test nodes, and the terminating resistor identifier can reflect the status information of whether the test node is currently connected to a terminating resistor. This identifier information can be automatically collected and recorded by the test system.

[0039] For example, in vehicle CAN bus testing, the identification information of each test node on the bus can be read by the test equipment, and the connection status of the terminating resistor of each node can be detected. This data provides basic information support for subsequent terminating resistor configuration decisions.

[0040] For example, the identification information of each test node can be embedded in the data field sent by the test node.

[0041] Figure 3 This is a schematic diagram of the system structure of the first type of vehicle CAN bus terminating resistor test system for node testing in this application embodiment, as shown below. Figure 3 As shown, multiple test nodes 1 are connected in parallel on the CAN bus. Each test node 1 includes a terminating resistor R2, an electronic switch 11, and a test unit 12. The electronic switch 11 and the test unit 12 are electrically connected to the test control component. The test control component can control the connection state of the electronic switch 11 of each test node 1, and then control whether the terminating resistor R2 is connected to the CAN bus through the electronic switch 11. When the terminating resistor R2 is connected to the CAN bus, it is used as a terminating resistor along with the terminating resistor R1. The test unit 12 is used to receive the test results of multiple test units 12 and control the connection state of the electronic switch 11 according to the test results of multiple test units 12, so as to control the configuration state of the terminating resistor corresponding to each test unit 12. The test control component can obtain the node identifier and terminating resistor identifier corresponding to the test node 1 through the data field information sent by the test unit 12. The test control component can store the node identifier and terminating resistor identifier corresponding to each test node 1.

[0042] For example, the test control component can also communicate with a CAN transceiver to control the configuration state of the terminating resistor corresponding to each test unit 12 through the transmit and receive signals of the CAN transceiver.

[0043] S120. Obtain the first node position of the first test node corresponding to the first node identifier. When the first node position is the end node of the vehicle CAN bus, configure a terminating resistor for the first test node and deconfigure the terminating resistor for test nodes that are not end nodes. Update the terminating resistor identifier of each test node according to the terminating resistor access status corresponding to each test node.

[0044] In this implementation, the position information of the corresponding first test node in the bus topology can be determined according to the first node identifier. By analyzing the node position relationship, the test node located at the end of the bus can be identified. When the first test node is confirmed to be the end node, the terminating resistor can be automatically configured for the node, while the terminating resistor configuration of other non-end nodes can be canceled.

[0045] For example, in vehicle CAN bus testing, the relative positions of each node can be determined by bus topology analysis algorithms. When a node is identified as being at the end of the bus, the test system can automatically control the connection of the terminating resistor of that node to the circuit.

[0046] For example, when the terminating resistor configured on a test node is removed, the terminating resistor connections on other nodes can be disconnected.

[0047] For example, when configuring a terminating resistor for the first test node, a 120Ω terminating resistor can be automatically connected in parallel to the first test node by an electronic switch. The electronic switch that configures the terminating resistor for the first test node can be electrically connected to the control component, and the electronic switch can be uniformly controlled by the control component.

[0048] In this implementation, after completing the terminating resistor configuration operation, the terminating resistor identifier of each test node can be updated according to the actual terminating resistor access status. This ensures that the identifier information is consistent with the actual hardware status, providing an accurate reference for subsequent test operations.

[0049] For example, in vehicle CAN bus testing, after the configuration adjustment of the terminating resistors is completed, the test system can automatically update the terminating resistor identifiers of each node and record the current resistor connection status. These updated identifiers can be used for subsequent test verification and status monitoring.

[0050] The beneficial effects of the above implementation method are as follows: First, the identification and resistance information of each test node are obtained. Then, it is determined whether the first test node is the end node of the bus. If so, the terminating resistor is automatically configured for the node, while the resistor configuration of other nodes is canceled. This ensures the integrity of signal transmission and avoids communication errors caused by signal reflection. This automated configuration mechanism reduces the uncertainty caused by human intervention, improves the stability of the test process and the reliability of the results, significantly improves the test accuracy, reduces the risk of failure caused by improper resistor configuration, and enhances the reliability of the entire test system.

[0051] The benefits of the above implementation method are that it can batch acquire the identification and location data of all test nodes, use algorithms to quickly locate the end nodes, and complete the configuration and cancellation of resistors with one click. It eliminates the need for technicians to operate each node individually, greatly shortens the configuration time, optimizes test preparation, reduces manual operation steps and potential errors, and improves test efficiency. It is especially suitable for complex multi-node scenarios and can quickly respond to changes in test requirements.

[0052] The beneficial effects of the above implementation method are that it can flexibly cope with changes in different vehicle CAN bus topologies, automatically adjust the terminal resistor configuration by dynamically detecting node positions, not rely on fixed node layout, obtain node information in real time and determine the end node, enhance the compatibility and scalability of the test platform, adapt to various vehicle models or configuration changes, reduce test limitations caused by hardware differences, and improve the breadth of application scope.

[0053] Figure 4 This is a flowchart illustrating the second method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment. Figure 4 As shown, this vehicle CAN bus test method includes S210 to S220, and S210 to S220 are explained in detail below.

[0054] S210. Obtain the first terminal resistor configuration conditions and the first communication performance parameters corresponding to the first test node. The first terminal resistor configuration conditions are the trigger conditions for reconfiguring the terminal resistor preset by the first test node. The first communication performance parameters include signal quality and signal error rate.

[0055] Figure 5 This is a schematic diagram illustrating the workflow of the second method for configuring an on-board CAN bus terminating resistor for node testing provided in this application embodiment. Figure 5As shown, during the vehicle CAN bus test, the first terminating resistor configuration conditions and the first communication performance parameters corresponding to the first test node can be obtained. The first terminating resistor configuration conditions represent the preset trigger conditions for reconfiguring the terminating resistor, and the first communication performance parameters include two key indicators: signal quality and signal error rate.

[0056] For example, the first terminating resistor configuration conditions and the first communication performance parameters can be acquired in real time by a CAN bus analyzer. Signal quality can reflect the integrity and stability of the bus signal, and signal error rate can reflect the reliability of data transmission. Obtaining these parameters helps to comprehensively evaluate the bus communication status and provides a basis for subsequent terminating resistor configuration decisions.

[0057] For example, signal quality and signal error rate can be calculated by monitoring the signal quality and signal error rate of all test nodes in real time. Signal quality can be obtained by analyzing the oscilloscope waveform of the CAN bus through quantitative analysis, and signal error rate can be detected by the error counter built into each CAN controller.

[0058] S220. When the first communication performance parameter does not meet the first terminating resistor configuration condition, configure the terminating resistor for the end node of the vehicle CAN bus again. When the first communication performance parameter meets the first terminating resistor configuration condition, keep the terminating resistor configuration of the end node of the vehicle CAN bus unchanged.

[0059] In this implementation, when it is detected that the first communication performance parameter does not meet the first terminating resistor configuration condition, the terminating resistor of the end node of the vehicle CAN bus can be configured again. This configuration operation can be performed immediately, and the bus impedance matching condition can be improved by adjusting the terminating resistor value of the end node.

[0060] For example, in vehicle CAN bus testing, when the signal quality is below a preset threshold or the signal error rate exceeds the allowable range, it indicates that the current terminating resistor configuration may not be suitable for the current bus state. In this case, reconfiguring the terminating resistor can help optimize signal transmission.

[0061] In this implementation, when the first communication performance parameter meets the first terminating resistor configuration condition, the terminating resistor configuration of the end node of the vehicle CAN bus can remain unchanged, ensuring that no unnecessary terminating resistor configuration adjustments are made when the communication performance is good.

[0062] For example, in vehicle CAN bus testing, when the signal quality remains at a qualified level and the signal error rate is within the normal range, it indicates that the current terminating resistor configuration is still valid. In this case, maintaining the existing configuration can avoid unnecessary system disturbances.

[0063] The beneficial effects of the above implementation method are that it obtains communication performance parameters such as signal quality or error rate of the test node and predefined terminating resistor configuration conditions; when the communication performance parameters are detected to be unsatisfactory, the terminating resistor configuration process is initiated; otherwise, the current state is maintained. By evaluating the bus communication status in real time, adjustments are only made when the actual performance deteriorates, avoiding blind configuration, effectively improving the communication efficiency and stability of the vehicle CAN bus, and reducing performance fluctuations caused by fixed configuration.

[0064] The beneficial effects of the above implementation method are that configuration is only triggered when parameters are abnormal, ensuring that the terminal resistor adjustment is based on actual needs rather than fixed rules. By dynamically responding to changes in bus state, misconfiguration or overconfiguration is prevented, thereby improving the reliability and robustness of the vehicle CAN bus test system, reducing the risk of communication failures caused by improper configuration, and ensuring the accuracy of test results and the long-term stability of the system.

[0065] Figure 6 A flowchart illustrating the third method for configuring an on-board CAN bus terminating resistor for node testing provided in this application is shown below. Figure 6 As shown, the above method also includes S230 to S240, which will be described in detail below.

[0066] S230. Obtain the test node attributes corresponding to each test node in the vehicle CAN bus test. Based on these attributes, group all test nodes into different test node groups. Different test node groups correspond to different preset average communication performance parameters. Determine the average communication performance parameters of all test nodes in each test node group. The test node attributes include the importance attribute corresponding to the test node.

[0067] During the testing of the vehicle CAN bus, the test node attributes corresponding to each test node can be obtained. The test node attributes include the importance attribute of the test node. According to the test node attributes, all test nodes can be included in different test node groups. The average value of the preset communication performance parameters corresponding to different test node groups is different. The test node attributes can reflect the importance and functional characteristics of the node in the CAN bus system.

[0068] For example, in vehicle CAN bus testing, test node attributes can include importance attributes such as safety-critical nodes, regular control nodes, and auxiliary monitoring nodes. Safety-critical nodes can be included in the high-importance test node group, regular control nodes can be included in the medium-importance test node group, and auxiliary monitoring nodes can be included in the low-importance test node group. The average preset communication performance parameters corresponding to different test node groups can be set differently based on the importance of the nodes.

[0069] After completing the test node grouping, the average communication performance parameters of all test nodes in each test node group can be determined. Communication performance parameters can include indicators such as signal transmission quality, bit error rate, and communication delay. When calculating the average communication performance parameters, the values ​​of communication performance parameters of all nodes in the group can be comprehensively considered, and the average index reflecting the overall communication status can be obtained through statistical averaging.

[0070] For example, for a high-importance test node group, the communication performance parameters of all security-critical nodes in the high-importance test node group can be collected, and the arithmetic mean of these parameters can be calculated as the average of the communication performance parameters of the high-importance test node group. This method of calculating the average of all node data in the high-importance test node group can more comprehensively reflect the overall communication status of the group of nodes.

[0071] S240. When the average value of the first communication performance parameter corresponding to the first test node group is greater than or equal to the average value of the first preset communication performance parameter, the terminating resistor configuration process of the vehicle CAN bus is initiated. When the average value of the first communication performance parameter corresponding to the first test node group is less than the average value of the first preset communication performance parameter, the terminating resistor configuration process of the vehicle CAN bus is not initiated.

[0072] In this implementation, after obtaining the average communication performance parameters of each test node group, when the average first communication performance parameter of the first test node group is greater than or equal to the average first preset communication performance parameter, the terminal resistor configuration process of the vehicle CAN bus can be started. The terminal resistor configuration process can configure the terminal resistor for the end node of the vehicle CAN bus.

[0073] For example, when the average value of the first communication performance parameter of the high importance test node group reaches or exceeds the preset average value of the first preset communication performance parameter, it indicates that the communication performance of the nodes in this group needs to be optimized. At this time, the terminating resistor configuration process can be started to improve the bus communication quality.

[0074] In this implementation, when the average value of the first communication performance parameter corresponding to the first test node group is less than the average value of the first preset communication performance parameter, the terminal resistor configuration process of the vehicle CAN bus can be skipped. In this case, it indicates that the communication performance of the nodes in the test node group is within an acceptable range and no terminal resistor configuration adjustment is required.

[0075] For example, when the average value of the first communication performance parameter of the high-importance test node group is lower than the average value of the first preset communication performance parameter, it indicates that the communication performance of the nodes in this group is good. At this time, the current terminal resistor configuration state can be maintained to avoid unnecessary configuration operations.

[0076] The beneficial effects of the above implementation method are as follows: First, the attributes of each test node are obtained, and the nodes are divided into different test node groups according to the node attributes. Each test node group corresponds to a different preset average value of communication performance parameters. Then, the actual average value of each test node group is calculated, and compared with the preset average value of communication performance parameters to determine whether to start the terminal resistor configuration. Grouping according to importance makes the judgment fit the actual needs of the nodes, avoids uniform judgment that ignores the needs of important nodes, improves the targeting of configuration, reduces failures of important nodes due to improper configuration, and ensures the reliable operation of the CAN bus.

[0077] The beneficial effects of the above implementation method are that it does not rely solely on the parameters of a single node. After grouping by attributes, it calculates the average communication performance parameters of all nodes in each group. The average communication performance parameters are compared with the corresponding preset average communication performance parameters to determine whether to start the configuration. The average communication performance parameters of the group can more accurately reflect the overall status of the nodes in the group, reduce the false start of dynamic configuration of terminal resistors caused by fluctuations in the parameters of a single node, improve the accuracy of configuration judgment, and reduce invalid configuration operations caused by single point of failure.

[0078] In some implementations, Figure 7 A flowchart illustrating the fourth method for configuring an on-board CAN bus terminating resistor for node testing provided in this application is shown below. Figure 7 As shown, the above method also includes S250 to S260, which are described in detail below.

[0079] S250: Obtain the test level corresponding to the vehicle CAN bus test, and obtain the communication performance adjustment factor corresponding to the test level.

[0080] During the testing of the vehicle CAN bus, the test level corresponding to the current test can be obtained. The test level can be divided according to the complexity of the test scenario and the performance requirements. Different test levels correspond to different communication performance requirement standards. Then, the communication performance adjustment factor corresponding to the test level can be obtained. The communication performance adjustment factor can be determined based on historical test data and is used to reflect the different requirements of different test levels on communication performance parameters.

[0081] For example, in vehicle CAN bus testing, the test levels can include basic test level and advanced test level. The basic test level corresponds to lower communication performance requirements, while the advanced test level corresponds to higher communication performance requirements. The corresponding communication performance adjustment factor can be obtained through the test level. The communication performance adjustment factor of the basic test level is smaller, while the communication performance adjustment factor of the advanced test level is larger.

[0082] S260. Determine the product of the average preset communication performance parameter and the communication performance adjustment factor for all test node groups, so as to adjust the average preset communication performance parameter for all test node groups.

[0083] In this implementation, after obtaining the average communication performance parameters of all test nodes in each test node group, the product of the preset average communication performance parameters and the communication performance adjustment factor for all test node groups can be determined to adjust the preset average communication performance parameters for all test node groups. The preset average communication performance parameters reflect the baseline communication performance level of each test node group under standard conditions. Through product calculation, the communication performance adjustment factor corresponding to the test level can be applied to the preset average communication performance parameters of each test node group.

[0084] For example, in vehicle CAN bus testing, each test node group has different preset average communication performance parameters. By calculating the product of the preset average communication performance parameters and the communication performance adjustment factor, the adjusted preset average communication performance parameters can be obtained. The adjusted preset average communication performance parameters can better match the performance requirements of the current test level and provide a more accurate reference benchmark for subsequent terminal resistor configuration.

[0085] The beneficial effect of the above implementation method is that it first obtains the test level corresponding to the vehicle CAN bus test, then obtains the communication performance adjustment factor matched by the test level, and then calculates the product of the original preset communication performance parameter mean and the communication performance adjustment factor for each test node group, thereby updating the preset mean of each group. This makes the preset mean dynamically related to the test level, rather than fixed, which can solve the problem that fixed preset mean cannot adapt to different test levels, make the preset mean fit the current test scenario, and improve the scenario adaptability of configuration trigger judgment.

[0086] The beneficial effects of the above implementation method are that, firstly, the node attributes are grouped and differentiated preset averages are set, and then the preset averages are adjusted by introducing adjustment factors in combination with the test level. Through the dual synergy of node attribute grouping and test level parameter tuning, the preset averages can take into account both node characteristics and scenario requirements, avoid configuration deviations caused by a single dimension, achieve accurate matching of dual dimensions, and improve the rationality of terminal resistor configuration.

[0087] In some implementations, the first node position of the first test node corresponding to the first node identifier is obtained in S120 above, including S121 to S122. S121 to S122 will be explained in detail below.

[0088] S121. Obtain the CAN topology database, which includes the relative positional relationships of all test nodes corresponding to node identifiers.

[0089] In this implementation, during the vehicle CAN bus test, a pre-configured CAN topology database can be obtained. This database records the identifiers of all test nodes and their corresponding relative positions. The relative positions can characterize the physical distribution and connection order of each test node in the CAN bus network.

[0090] For example, a CAN topology database can be built by importing bus design files or historical test data, thereby providing a complete topology reference for terminating resistor configuration. Obtaining this topology data helps to understand the structural characteristics of the bus network and provides a basis for subsequent node positioning.

[0091] S122. Based on the first node identifier, determine the position of the first node corresponding to the first node identifier in the CAN topology database.

[0092] After obtaining the CAN topology database, the location of the matching first node can be queried in the CAN topology database based on the first node identifier.

[0093] For example, the first node identifier can be a unique identification code of the test node. The corresponding node location information can be directly obtained through a database query operation. This query process avoids complex signal detection or hardware interaction. After determining the location of the first node, the specific location of the test node in the CAN bus can be accurately identified, providing a location basis for the correct configuration of the subsequent terminating resistor.

[0094] In this implementation, after obtaining the location of the first node, the terminal resistor can be configured based on this location information.

[0095] For example, in vehicle CAN bus testing, when it is necessary to configure a terminating resistor for a certain test node, its location can be queried in the CAN topology database according to the node's identifier. Then, when the first node is the end node of the vehicle CAN bus, the terminating resistor is configured for the first test node.

[0096] The beneficial effects of the above implementation method are that by acquiring a CAN topology database containing the relative positional relationships of all node identifiers, the position of the first node can be determined directly by matching it in the database. This eliminates the complex analysis of dynamic signal detection or the interaction process of hardware identifiers, reduces the operation steps and time for position acquisition, significantly improves the efficiency of node position acquisition, and speeds up the overall process of terminal resistor configuration. Furthermore, by accurately matching the database information with the node identifier to determine the position, misjudgments caused by signal interference during dynamic detection are avoided.

[0097] The beneficial effects of the above implementation method are that the CAN topology database centrally manages the node location information. When the vehicle CAN bus topology changes, only the relative position relationship in the database needs to be updated. There is no need to modify the node hardware or adjust the detection algorithm. It can flexibly adapt to changes in different vehicle models or bus topologies, and enhances the universality and scalability of the terminal resistor configuration method.

[0098] In some implementations, Figure 8 A flowchart illustrating the fifth method for configuring an on-board CAN bus terminating resistor for node testing provided in this application is shown below. Figure 8 As shown, the above method also includes S310 to S320, which are described in detail below.

[0099] S310. Obtain the end communication performance parameters corresponding to the end nodes in the vehicle CAN bus test, and obtain the end communication performance parameter thresholds corresponding to the end communication performance parameters.

[0100] In this implementation, during the vehicle CAN bus test, the end-node communication performance parameters can be continuously acquired. These end-node communication performance parameters reflect the actual performance of the end-node in bus communication. The threshold of the end-node communication performance parameters can be set based on the bus communication quality requirements and used as a reference standard to determine whether the terminating resistor needs to be reconfigured.

[0101] For example, the terminal communication performance parameters may include communication quality parameters such as signal amplitude, bit error rate, and signal integrity index. The threshold of the terminal communication performance parameters can be determined according to the bus communication protocol requirements and the actual test environment to ensure that the bus communication quality meets the design requirements.

[0102] S320. When the terminal communication performance parameter is greater than or equal to the terminal communication performance parameter threshold, reconfigure the terminating resistor of the terminal node.

[0103] In this implementation, the terminal communication performance parameters and the terminal communication performance parameter threshold can be compared in real time by the test control component. When the terminal communication performance parameter is detected to be greater than or equal to the terminal communication performance parameter threshold, it indicates that the current terminal resistor configuration may not meet the communication quality requirements. At this time, the reconfiguration process of the terminal resistor can be triggered.

[0104] For example, reconfiguring the terminating resistor of the end node may include manually reconfiguring the terminating resistor of the end node so that the configuration of the terminating resistor can adapt to changes in the bus communication state in a timely manner.

[0105] For example, in vehicle CAN bus testing, when the signal amplitude attenuation of the end node is detected to exceed the threshold of the end communication performance parameter, the terminating resistor can be reconfigured and reconnected to improve signal quality and ensure the stability of bus communication.

[0106] The beneficial effect of the above implementation method is that the original signal may have been attenuated after long-distance transmission to the end node. The reflected signal is generated at the end node and immediately superimposed on the original signal with the maximum intensity, so that the waveform distortion is most severe at the end node. Communication anomalies can be accurately identified through the performance parameter feedback of the end node, which can avoid insufficient communication performance caused by static position configuration, ensure stable communication at the end node, and improve the overall communication quality of the vehicle CAN bus.

[0107] The beneficial effects of the above implementation method are that it adds the monitoring of terminal communication performance parameters and threshold comparison, uses actual communication performance data as the key basis for whether to reconfigure, and the performance parameters can provide real-time feedback on the validity of the configuration. It can get rid of the reliance on a single static basis, make the configuration fit the actual communication situation, greatly improve the accuracy of terminal resistor configuration, and reduce improper configuration.

[0108] The beneficial effects of the above implementation method are that environmental interference, node load and other conditions may change dynamically during the test. Relying solely on location configuration is difficult to adapt to changes. However, dynamic performance monitoring can respond to scene fluctuations in a timely manner without frequent manual intervention. It can automatically adapt to dynamic changes in the test, enhance the adaptability to different test conditions, improve test efficiency, and ensure the effectiveness of terminal resistor configuration in various scenarios.

[0109] In some implementations, the above also includes S330 to S340, which will be described in detail below.

[0110] S330. After reconfiguring the terminating resistor of the end node, obtain the end communication performance parameters corresponding to the end node in the vehicle CAN bus test, and obtain the secondary end communication performance parameters corresponding to the adjacent nodes of the end node in the vehicle CAN bus test. Determine the difference between the end communication performance parameters and the secondary end communication performance parameters as the communication performance parameter difference value. Obtain the communication performance parameter difference threshold value corresponding to the communication performance parameter difference value.

[0111] After reconfiguring the terminating resistor of the end node, the end communication performance parameters corresponding to the end node in the vehicle CAN bus test can be obtained, as well as the secondary end communication performance parameters corresponding to the adjacent nodes of the end node in the vehicle CAN bus test. These communication performance parameters can reflect the communication quality status of the node in the bus network.

[0112] After obtaining the terminal communication performance parameters and the secondary terminal communication performance parameters, the difference between the terminal communication performance parameters and the secondary terminal communication performance parameters can be determined as the communication performance parameter difference. The communication performance parameter difference can reflect the degree of difference in communication performance between the terminal node and its neighboring nodes. At the same time, the communication performance parameter difference threshold corresponding to the communication performance parameter difference can be obtained. The communication performance parameter difference threshold can be set based on historical test data.

[0113] For example, in vehicle CAN bus testing, when the bit error rate of the end node is high, the difference between its bit error rate and that of the adjacent nodes can be calculated and compared with a preset communication performance parameter difference threshold.

[0114] S340. When the end-point communication performance parameter is greater than or equal to the end-point communication performance parameter threshold, and when the communication performance parameter difference is greater than or equal to the communication performance parameter difference threshold, remove the current end-point node from the vehicle CAN bus, determine the adjacent node of the end-point node as the optimized end-point node, and configure the terminating resistor for the optimized end-point node. When the end-point communication performance parameter is greater than or equal to the end-point communication performance parameter threshold, and when the communication performance parameter difference is less than the communication performance parameter difference threshold, manually configure the terminating resistor for the end-point node.

[0115] In this implementation, when the end-to-end communication performance parameter is greater than or equal to the end-to-end communication performance parameter threshold, and when the communication performance parameter difference is greater than or equal to the communication performance parameter difference threshold, the current end-to-end node can be removed from the vehicle CAN bus, and the adjacent node of the end-to-end node can be determined as the optimized end-to-end node, and the terminating resistor can be configured for the optimized end-to-end node.

[0116] For example, when the bit error rate of the end node continues to exceed the limit and differs significantly from that of the adjacent nodes, it can be removed from the bus, and the adjacent node can be set as the new end node and the terminating resistor can be configured.

[0117] In this implementation, when the terminal communication performance parameter is greater than or equal to the terminal communication performance parameter threshold, and when the difference in communication performance parameters is less than the communication performance parameter difference threshold, the terminal node can be manually configured with a terminating resistor.

[0118] For example, when the communication performance of the end node is poor but the error difference between the end node and the adjacent node is small, the communication status of the CAN bus can be improved by manually adjusting the terminating resistor value.

[0119] The beneficial effect of the above implementation method is that after reconfiguring the terminal resistor of the end node, the difference in communication performance parameters between the end and the sub-end is obtained first. Combined with the dual conditions of whether the end parameter still exceeds the threshold, strategies such as changing the end node configuration or manual configuration are adopted respectively. Communication anomalies may be caused by problems of the end node itself, which need to be handled in a targeted manner. The configuration can be dynamically adjusted according to the actual communication parameters, improving the adaptability of the terminal resistor configuration to different test scenarios.

[0120] The beneficial effects of the above implementation method are that by obtaining the difference in communication performance parameters between the end node and the second-to-last node, and combining it with the end parameter threshold, it can determine whether the current end node is a key factor in communication abnormality. If the difference in communication performance parameters is greater than or equal to the communication performance parameter difference threshold, the end node is replaced; otherwise, it is manually configured. This can reflect the degree of impact of the current end node on bus communication, help locate the source of the fault, quickly lock the node problem affecting communication, avoid blind adjustments, reduce ineffective operations, and improve the efficiency and accuracy of fault handling in CAN bus testing.

[0121] In some implementations, the above method also includes S410 to S420, which are described in detail below.

[0122] S410. Obtain the performance degradation rate of the communication performance parameters corresponding to all test nodes within a preset time period. Determine the sum of the performance degradation rates corresponding to all test nodes as the cumulative degradation value.

[0123] In this implementation, during the vehicle CAN bus test, the performance degradation of the communication performance parameters of all test nodes within a preset time period can be obtained. These performance degradation ranges reflect the degree of decline in the communication performance of each test node over time, and may include changes in parameters such as signal quality, bit error rate, or communication delay.

[0124] In this implementation, the cumulative degradation value can be obtained by calculating the sum of the performance degradation magnitudes of all test nodes. This cumulative degradation value can comprehensively reflect the overall performance degradation of all test nodes in the entire CAN bus system, providing a quantitative basis for subsequent decision-making.

[0125] S420. When the cumulative degradation value is greater than or equal to the preset cumulative degradation value, the terminating resistor configuration process of the vehicle CAN bus is initiated. When the cumulative degradation value is less than the preset cumulative degradation value, the terminating resistor configuration process of the vehicle CAN bus is not initiated.

[0126] After determining the cumulative degradation value, it can be compared with the preset cumulative degradation value. When the cumulative degradation value is greater than or equal to the preset cumulative degradation value, it indicates that the communication performance of the entire CAN bus system has deteriorated to the point where intervention is required. At this time, the terminal resistor configuration process of the vehicle CAN bus can be started.

[0127] For example, in vehicle CAN bus testing, when significant degradation in the communication performance parameters of multiple test nodes is detected, the cumulative degradation value can be calculated to promptly activate the terminating resistor configuration when the overall system performance drops to a critical level, ensuring that the bus signal quality meets the test requirements.

[0128] After determining the cumulative degradation value, if the cumulative degradation value is less than the preset cumulative degradation value, it indicates that the communication performance of the current CAN bus system is still within an acceptable range. At this time, the terminating resistor configuration process of the vehicle CAN bus can be skipped, thus avoiding unnecessary configuration operations when the system performance meets the test requirements.

[0129] For example, during testing, if only a few test nodes experience slight performance degradation and the cumulative degradation value does not reach the preset cumulative degradation value, the current terminal resistor configuration can be maintained to avoid frequent configuration adjustments interfering with the testing process.

[0130] The beneficial effect of the above implementation method is that it first obtains the degradation range of communication performance parameters of all test nodes within a preset time period, calculates the sum of these degradation ranges as the cumulative degradation value, and then compares the cumulative degradation value with the preset cumulative degradation value, so that the configuration of the terminal resistor is only performed when the communication performance deteriorates to the point that intervention is required, which greatly improves the accuracy of the timing of the terminal resistor configuration and reduces meaningless configuration operations.

[0131] In some implementations, the above method further includes: configuring a terminating resistor on the end node of the vehicle CAN bus again when the first communication performance parameter meets the first terminating resistor configuration condition and the cumulative degradation value is greater than or equal to a preset cumulative degradation value. When the first communication performance parameter meets the first terminating resistor configuration condition and the cumulative degradation value is less than the preset cumulative degradation value, keeping the terminating resistor configuration of the end node of the vehicle CAN bus unchanged.

[0132] In this implementation, the first termination resistor configuration conditions and the first communication performance parameters corresponding to the first test node can be obtained first. The first communication performance parameters can reflect the status indicators of the communication quality of the first test node in the vehicle CAN bus. The first termination resistor configuration conditions represent the trigger conditions for adjusting the termination resistor configuration. When the communication performance of the first test node meets the first termination resistor configuration conditions, that is, when the communication status of the first test node needs to be reconfigured for the termination resistor, and when the cumulative degradation value quantified by the termination resistor performance over time does not meet the test requirements, the termination resistor can be configured again for the end node of the vehicle CAN bus to improve the test stability of the CAN bus during testing.

[0133] In this implementation, when the communication performance of the first test node meets the first terminating resistor configuration condition, and the communication status of the first test node requires reconfiguration of the terminating resistor, and when the cumulative attenuation of the terminating resistor performance quantified by the cumulative degradation value over time meets the test requirements, it is not necessary to configure the terminating resistor at the end node of the vehicle CAN bus. There is no need to repeatedly configure the terminating resistor at the end node of the vehicle CAN bus, that is, keep the terminating resistor configuration of the end node of the vehicle CAN bus unchanged, avoid configuration deviation caused by a single condition, greatly improve the accuracy of the terminating resistor configuration, and prevent unnecessary repeated terminating resistor configuration.

[0134] The beneficial effect of the above implementation method is that it first determines whether the first communication performance parameter meets the first terminating resistor configuration condition. If the cumulative degradation value is greater than or equal to the preset cumulative degradation value, the terminating resistor is configured again for the end node of the vehicle CAN bus. If the first communication performance parameter meets the condition but the cumulative degradation value is less than the preset cumulative degradation value, the existing resistor configuration of the end node remains unchanged, avoiding configuration deviation caused by a single condition, greatly improving the accuracy of the terminating resistor configuration, and preventing unnecessary duplicate terminating resistor configuration.

[0135] This application also provides an onboard CAN bus terminating resistor configuration system for node testing, including units for implementing the above-described onboard CAN bus terminating resistor configuration method for node testing.

[0136] Figure 9 A schematic diagram of the logic structure of an on-board CAN bus terminating resistor configuration system for node testing provided in this application embodiment is shown below. Figure 9 As shown, the system 2 of this embodiment includes a processing unit 21, a storage unit 22, and a transceiver unit 23. The processing unit 21 is used to process data, the storage unit 22 is used to store data, and the transceiver unit 23 is used to send and receive data. The processing unit 21, the storage unit 22, and the transceiver unit 23 cooperate with each other to implement the above-described method. The beneficial effects of the embodiments of this application have been described in the above-described method and will not be repeated here.

[0137] It should be noted that the information interaction and execution process between the above-mentioned devices / units are based on the same concept as the method embodiments of this application. For details on their specific functions and technical effects, please refer to the method embodiments section, and they will not be repeated here.

[0138] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units and modules in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0139] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographing device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0140] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0141] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0142] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0143] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0144] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for configuring a vehicle CAN bus termination resistance for node testing, characterized in that, The method comprises: Obtaining the node identifier and the terminal resistance identifier corresponding to each test node in the vehicle CAN bus test, and the terminal resistance identifier is used to identify the terminal resistance access state of the test node; Obtaining the first node position of the first test node corresponding to the first node identifier, and when the first node position is the end node of the vehicle CAN bus, configuring the terminal resistance for the first test node and canceling the configured terminal resistance for the test node that is not the end node; updating the terminal resistance identifier of each test node according to the terminal resistance access state corresponding to each test node; The method further comprises: Obtaining the first terminal resistance configuration condition and the first communication performance parameter corresponding to the first test node, the first terminal resistance configuration condition being the trigger condition preset for the first test node to reconfigure the terminal resistance, and the first communication performance parameter including the signal quality and the signal error rate; When the first communication performance parameter does not satisfy the first terminal resistance configuration condition, configuring the terminal resistance for the end node of the vehicle CAN bus again; when the first communication performance parameter satisfies the first terminal resistance configuration condition, keeping the terminal resistance configuration of the end node of the vehicle CAN bus unchanged.

2. The method of claim 1, wherein, The method further comprises: Obtaining the test node attribute corresponding to each test node in the vehicle CAN bus test, and respectively including all test nodes in different test node groups according to the test node attribute, and different test node groups correspond to different preset communication performance parameter averages; determining the communication performance parameter average of all test nodes in each test node group; wherein the test node attribute includes the importance attribute corresponding to the test node; When the first communication performance parameter average corresponding to the first test node group is greater than or equal to the first preset communication performance parameter average, starting the terminal resistance configuration process of the vehicle CAN bus; when the first communication performance parameter average corresponding to the first test node group is less than the first preset communication performance parameter average, not starting the terminal resistance configuration process of the vehicle CAN bus.

3. The method of claim 2, wherein, The method further comprises: Obtaining the test level corresponding to the vehicle CAN bus test, and obtaining the communication performance adjustment factor corresponding to the test level; Determining the product of the preset communication performance parameter average and the communication performance adjustment factor corresponding to all test node groups to adjust the preset communication performance parameter average corresponding to all test node groups.

4. The method of claim 3, wherein, Obtaining the first node position of the first test node corresponding to the first node identifier, comprising: Obtaining the CAN topology database, and the CAN topology database includes the relative position relationship of the test node corresponding to all node identifiers; According to the first node identifier, determining the first node position corresponding to the first node identifier in the CAN topology database.

5. The method of claim 4, wherein, The method further comprises: Obtaining the end communication performance parameter corresponding to the end node in the vehicle CAN bus test, and obtaining the end communication performance parameter threshold value corresponding to the end communication performance parameter; When the end communication performance parameter is greater than or equal to the end communication performance parameter threshold value, reconfiguring the terminal resistance of the end node.

6. The method of claim 5, wherein, The method further comprises: After reconfiguring the terminal resistance of the end node, the end communication performance parameter corresponding to the end node in the vehicle CAN bus test is obtained, and the next-end communication performance parameter corresponding to the adjacent node of the end node in the vehicle CAN bus test is obtained; the difference between the end communication performance parameter and the next-end communication performance parameter is determined as a communication performance parameter difference; a communication performance parameter difference threshold corresponding to the communication performance parameter difference is obtained; When the end communication performance parameter is greater than or equal to the end communication performance parameter threshold, and when the communication performance parameter difference is greater than or equal to the communication performance parameter difference threshold, the current end node is removed from the vehicle CAN bus, and the adjacent node of the end node is determined as an optimized end node, and the terminal resistance of the optimized end node is configured; when the end communication performance parameter is greater than or equal to the end communication performance parameter threshold, and when the communication performance parameter difference is less than the communication performance parameter difference threshold, the terminal resistance of the end node is manually configured.

7. The method of claim 6, wherein, The method further comprises: Obtaining the performance degradation amplitude of the communication performance parameter corresponding to all test nodes within a preset time period; determining the sum of the performance degradation amplitudes corresponding to all test nodes as a cumulative degradation value; When the cumulative degradation value is greater than or equal to a preset cumulative degradation value, starting a terminal resistance configuration process of the vehicle CAN bus; when the cumulative degradation value is less than the preset cumulative degradation value, not starting the terminal resistance configuration process of the vehicle CAN bus.

8. The method of claim 7, wherein, The method further comprises: When the first communication performance parameter meets the first terminal resistance configuration condition, and when the cumulative degradation value is greater than or equal to the preset cumulative degradation value, reconfiguring the terminal resistance of the end node of the vehicle CAN bus; when the first communication performance parameter meets the first terminal resistance configuration condition, and when the cumulative degradation value is less than the preset cumulative degradation value, keeping the terminal resistance configuration of the end node of the vehicle CAN bus unchanged.

9. A system for configuring a vehicle CAN bus termination resistance for node testing, characterized by A unit for implementing the method of any one of claims 1 to 8. A unit for implementing the method of any one of claims 1 to 8.

Citation Information

Patent Citations

  • 485 bus temperature transmitter for intelligent link cascade and terminal detection

    CN113490069A

  • System, method and circuit for configuring resistance of CAN (Controller Area Network) terminal of self-driving automobile module

    CN117579478A