Vehicle-mounted CAN (Controller Area Network) bus terminal resistor configuration method and system for node test

By automating the configuration of the vehicle CAN bus terminating resistor, the low efficiency and failure risk caused by manual operation are solved, and the stability and accuracy are improved, adapting to complex topologies and test changes.

CN121000595AActive Publication Date: 2025-11-21HONGKE TECH CO LTD

Patent Information

Application Number
CN202511510025.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-22
Publication Date
2025-11-21
Estimated Expiration
2045-10-22

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 automated configuration methods, node identifiers and resistance status are obtained, terminal resistances are dynamically managed, and terminal resistances are automatically configured or canceled based on communication performance parameters and topology databases, reducing human intervention.

Benefits of technology

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

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121000595A_ABST
    Figure CN121000595A_ABST
Patent Text Reader

Abstract

The invention relates to the field of vehicle-mounted bus testing, and discloses a vehicle-mounted CAN bus terminal resistor configuration method and system for node testing, and the method comprises the steps: obtaining a node identifier and a terminal resistor identifier corresponding to each test node in a vehicle-mounted CAN bus test, the terminal resistor identifier being used for identifying the terminal resistor access state of the test node; obtaining a first node position of a first test node corresponding to the first node identifier, configuring a terminal resistor for the first test node when the first node position is an end node of the vehicle-mounted CAN bus, and canceling the configured terminal resistor for the test node of a non-end node; and updating the terminal resistor identifier of each test node according to the terminal resistor access state corresponding to each test node. According to the invention, the terminal resistor can be automatically configured in the CAN bus test.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of vehicle-mounted bus testing, and more particularly to a vehicle-mounted CAN bus terminal resistance configuration method and system for node testing. BACKGROUND

[0002] The Controller Area Network (CAN) is widely used in the fields of automotive electronics, industrial control, aerospace, etc. The terminal resistance in the CAN is a key basic element for realizing reliable communication. The core role of the terminal resistance is to match the characteristic impedance of the bus transmission line, follow the signal transmission line theory, and minimize the signal reflection and ringing phenomenon caused by impedance discontinuity, so as to ensure the integrity of the digital signal waveform and the stability of the communication process. The CAN bus network usually needs to connect a terminal resistance with a resistance value of 120 ohms in parallel at each of the two most distant nodes of the bus. This standard configuration makes the equivalent DC impedance of the bus from any point about 60 ohms, which matches the characteristic impedance of the twisted pair transmission medium, and constitutes a signal integrity good transmission system. In the prior art, the terminal resistance is generally connected by hard connection or manually connected by a jumper cap. It can be effectively applied in small networks with simple topology, fixed node position and no need to frequently change.

[0003] The above-mentioned traditional terminal resistance configuration method in actual engineering application, in the equipment research and development, production debugging or field maintenance stage, when using single node test equipment such as portable tester, fault diagnosis tool, etc. for network testing or simulation, the operator must manually connect or remove a 120 ohm resistance for the node according to the existing terminal resistance of the bus, so as to restore the matching state of the bus impedance. This frequent manual operation is not only tedious and inefficient, but also greatly affects the convenience of testing and maintenance, and is also easy to cause misoperation due to negligence, for example, incorrectly connecting an additional resistance on a bus with double terminal resistance, causing bus impedance mismatch, and introducing serious signal quality problems, and even causing communication interruption. Therefore, the prior art needs a solution that can intelligently and dynamically manage the terminal resistance configuration to overcome the problems of inconvenient operation, increased cost and reduced reliability caused by terminal resistance configuration. SUMMARY

[0004] The purpose of the present application is to provide a vehicle-mounted CAN bus terminal resistance configuration method and system for node testing, which solves the technical problems of low efficiency and easy failure of manually configuring terminal resistance according to the existing terminal resistance of the CAN bus, and achieves the technical effect of automatically configuring terminal resistance in CAN bus testing.

[0005] The embodiment of the application provides a vehicle-mounted CAN bus terminal resistance configuration method 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 a terminal resistance access state of the test node; acquiring a first node position of a first test node corresponding to the first node identifier, and when the first node position is a terminal node of the vehicle-mounted CAN bus, configuring a terminal resistance for the first test node and canceling the configuration of the terminal resistance for the test node which is not the terminal node; and updating the terminal resistance identifier of each test node according to the terminal resistance access state corresponding to each test node.

[0006] In a possible implementation, the method further comprises: acquiring a first terminal resistance configuration condition and a first communication performance parameter corresponding to the first test node, wherein the first terminal resistance configuration condition is a trigger condition preset for the first test node to reconfigure the terminal resistance, and the first communication performance parameter comprises a signal quality and a signal error rate; when the first communication performance parameter does not satisfy the first terminal resistance configuration condition, configuring the terminal resistance for the terminal node of the vehicle-mounted CAN bus again; and when the first communication performance parameter satisfies the first terminal resistance configuration condition, keeping the terminal resistance configuration of the terminal node of the vehicle-mounted CAN bus unchanged.

[0007] In another possible implementation, the method further comprises: acquiring a test node attribute corresponding to each test node in the vehicle-mounted CAN bus testing, and respectively including all the test nodes in different test node groups according to the test node attribute, wherein different test node groups correspond to different preset communication performance parameter averages; determining a communication performance parameter average of all the test nodes in each test node group; wherein the test node attribute comprises an importance attribute corresponding to the test node; when a first communication performance parameter average corresponding to a first test node group is greater than or equal to a first preset communication performance parameter average, starting a terminal resistance configuration process of the vehicle-mounted CAN bus; and 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-mounted CAN bus.

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

[0009] In another possible implementation, the first node position corresponding to the first node identifier is acquired by: acquiring a CAN topology database, the CAN topology database including relative position 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 according to the first node identifier.

[0010] In another possible implementation, the method further includes: acquiring a terminal communication performance parameter corresponding to a terminal node in the vehicle CAN bus test, and acquiring a terminal communication performance parameter threshold corresponding to the terminal communication performance parameter; and when the terminal communication performance parameter is greater than or equal to the terminal communication performance parameter threshold, reconfiguring a terminal resistance of the terminal node.

[0011] In another possible implementation, the method further includes: after reconfiguring the terminal resistance of the terminal node, acquiring a terminal communication performance parameter corresponding to the terminal node in the vehicle CAN bus test, and acquiring a sub-terminal communication performance parameter corresponding to a neighboring node of the terminal node in the vehicle CAN bus test; determining a difference between the terminal communication performance parameter and the sub-terminal communication performance parameter as a communication performance parameter difference; acquiring a communication performance parameter difference threshold corresponding to the communication performance parameter difference; when the terminal communication performance parameter is greater than or equal to the terminal communication performance parameter threshold and the communication performance parameter difference is greater than or equal to the communication performance parameter difference threshold, removing the current terminal node from the vehicle CAN bus, determining the neighboring node of the terminal node as an optimized terminal node, and configuring a terminal resistance for the optimized terminal node; and when the terminal communication performance parameter is greater than or equal to the terminal communication performance parameter threshold and the communication performance parameter difference is less than the communication performance parameter difference threshold, manually configuring a terminal resistance for the terminal node.

[0012] In another possible implementation, the method further includes: acquiring performance degradation amplitudes of the communication performance parameters of all test nodes within a preset time period; determining a sum of the performance degradation amplitudes of 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; and 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.

[0013] In another possible implementation, the method further includes: when the first communication performance parameter satisfies the first terminal resistance configuration condition and the cumulative degradation value is greater than or equal to the preset cumulative degradation value, reconfiguring a terminal resistance of a terminal node of the vehicle CAN bus; and when the first communication performance parameter satisfies the first terminal resistance configuration condition and the cumulative degradation value is less than the preset cumulative degradation value, keeping the terminal resistance configuration of the terminal node of the vehicle CAN bus unchanged.

[0014] The embodiment of the present application also provides a vehicle-mounted CAN bus terminal resistance configuration system for node testing, which comprises units for implementing the vehicle-mounted CAN bus terminal resistance configuration method for node testing.

[0015] Compared with the prior art, the embodiment of the present application has the following beneficial effects: The embodiment of the present application provides a vehicle-mounted CAN bus terminal resistance configuration method 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 to identify a terminal resistance access state of the test node; acquiring a first node position of a first test node corresponding to a first node identifier, and configuring a terminal resistance for the first test node when the first node position is a terminal node of the vehicle-mounted CAN bus, and canceling the configuration of the terminal resistance for the test node which is not the terminal node; and updating the terminal resistance identifier of each test node according to the terminal resistance access state corresponding to each test node. The method in the embodiment of the present application reduces the uncertainty caused by human intervention through the automatic configuration mechanism of the terminal resistance, improves the stability of the test process and the reliability of the test result, significantly improves the test accuracy, reduces the risk of failure caused by improper resistance configuration, and enhances the reliability of the entire test system. BRIEF DESCRIPTION OF DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0017] Figure 1 A flowchart of a first vehicle-mounted CAN bus terminal resistance configuration method for node testing provided by the embodiment of the present application is shown in the figure. Figure 2 A working flowchart of the first vehicle-mounted CAN bus terminal resistance configuration method for node testing provided by the embodiment of the present application is shown in the figure. Figure 3 A system structure diagram of a test system of the first vehicle-mounted CAN bus terminal resistance for node testing in the embodiment of the present application is shown in the figure. Figure 4 A flowchart of a second vehicle-mounted CAN bus terminal resistance configuration method for node testing provided by the embodiment of the present application is shown in the figure. Figure 5 A working flowchart of the second vehicle-mounted CAN bus terminal resistance configuration method for node testing provided by the embodiment of the present application is shown in the figure. Figure 6A flowchart of a third method for configuring a vehicle CAN bus termination resistor for node testing is provided for embodiments of the present application. Figure 7 A flowchart of a fourth method for configuring a vehicle CAN bus termination resistor for node testing is provided for embodiments of the present application. Figure 8 A flowchart of a fifth method for configuring a vehicle CAN bus termination resistor for node testing is provided for embodiments of the present application. Figure 9 A logic structure diagram of a system for configuring a vehicle CAN bus termination resistor for node testing is provided for embodiments of the present application. DETAILED DESCRIPTION

[0018] It should be understood that the terms "comprises", "comprising", "includes", "including", "has", "having", "contains", "containing", or variations thereof, when used in the present specification and in the accompanying claims, indicate that the features, integers, steps, operations, elements, or components that follow are present or added but not excluding the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof.

[0019] It should also be understood that the term "and / or", when used in the present specification and in the accompanying claims, means any one or more of the associated listed items and includes all possible combinations of the associated listed items.

[0020] As used in the present specification and in the accompanying claims, the term "if" can be interpreted as meaning "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [a described condition or event] is detected" can be interpreted to mean "upon determining" or "in response to determining" or "upon detecting [the described condition or event]" or "in response to detecting [the described condition or event]", depending on the context.

[0021] In addition, in the description of the present specification and in the accompanying claims, the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.

[0022] Reference within the specification of this application to "one embodiment" or "some embodiments" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase "in one embodiment" or "in some embodiments" in various places within specified

[0023] In the device development, production debugging or field maintenance stage, manually external or remove a 120 ohm resistor for the node, frequent manual operation not only cumbersome and inefficient, but also greatly affects the convenience of testing and maintenance, and is extremely easy to cause misoperation due to negligence.

[0024] Based on the above reasons, the embodiment of the application provides a vehicle-mounted CAN bus termination resistance configuration method for node testing, the method comprising: acquiring a node identifier and a termination resistance identifier corresponding to each test node in vehicle-mounted CAN bus testing, the termination resistance identifier being used to identify a termination resistance access state of the test node; acquiring a first node position of a first test node corresponding to the first node identifier, and when the first node position is a terminal node of the vehicle-mounted CAN bus, configuring a termination resistance for the first test node, and canceling the configuration of the termination resistance for the test node which is not the terminal node; and updating the termination resistance identifier of each test node according to the termination resistance access state corresponding to each test node. The method in the embodiment of the application reduces the uncertainty caused by human intervention through the automatic configuration mechanism of the termination resistance, improves the stability of the testing process and the reliability of the results, significantly improves the testing accuracy, reduces the fault risk caused by improper resistance configuration, and enhances the reliability of the entire testing system.

[0025] In some scenarios, the vehicle-mounted CAN bus termination resistance configuration method for node testing provided by the embodiment of the application can be applied to the termination resistance configuration of the vehicle-mounted CAN bus, and can efficiently and automatically configure the termination resistance, thereby improving the testing efficiency of the vehicle-mounted CAN bus.

[0026] The vehicle-mounted CAN bus termination resistance configuration method for node testing provided by the embodiment of the application will be specifically described below in combination with specific examples.

[0027] Figure 1 The flowchart of the first vehicle-mounted CAN bus termination resistance configuration method for node testing provided by the embodiment of the application is as shown in Figure 1As shown, the vehicle-mounted CAN bus terminal resistance configuration method for node testing includes S110 to S120, and S110 to S120 are specifically described below.

[0028] S110, acquiring the node identifier and the terminal resistance identifier corresponding to each test node in the vehicle-mounted CAN bus test, the terminal resistance identifier being used to identify the terminal resistance access state of the test node.

[0029] Figure 2 The working flow diagram of the first vehicle-mounted CAN bus terminal resistance configuration method for node testing provided by the embodiment is as shown in Figure 2 As shown, in the vehicle-mounted CAN bus test process, the node identifier and the terminal resistance identifier corresponding to each test node can be acquired, the node identifier can uniquely identify different test nodes, and the terminal resistance identifier can reflect the state information of whether the test node is currently connected to the terminal resistance. These identifier information can be automatically collected and recorded by the test system.

[0030] For example, in the vehicle-mounted CAN bus test, the identifier information of each test node on the bus can be read by the test equipment, and the terminal resistance connection state of each node can be detected. These data provide basic information support for subsequent terminal resistance configuration decision.

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

[0032] Figure 3 The system structure diagram of the test system of the first vehicle-mounted CAN bus terminal resistance for node testing in the embodiment is as shown in Figure 3 As shown, a plurality of test nodes 1 are connected in parallel on the CAN bus, each test node 1 includes a terminal resistance R2, an electronic switch 11 and a test unit 12, the electronic switch 11 and the test unit 12 are respectively electrically connected to a test control component, the test control component can control the communication state of the electronic switch 11 of each test node 1, and then control whether the terminal resistance R2 is connected to the CAN bus through the electronic switch 11. When the terminal resistance R2 is connected to the CAN bus, the terminal resistance R1 is used as a terminal resistance, the test unit 12 is used to receive the test results of a plurality of test units 12 and control the communication state of the electronic switch 11 according to the test results of the plurality of test units 12, so as to control the configuration state of the terminal resistance corresponding to each test unit 12. The test control component can acquire the node identifier and the terminal resistance 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 the terminal resistance identifier corresponding to each test node 1.

[0033] Exemplarily, the test control component can also be communicatively connected with the CAN transceiver, so as to control the configuration state of the terminal resistance corresponding to each test unit 12 through the transceiving signal of the CAN transceiver.

[0034] In S120, the first node position of the first test node corresponding to the first node identifier is acquired, and when the first node position is the end node of the vehicle-mounted CAN bus, the terminal resistance is configured for the first test node, and the terminal resistance configured for the test node which is not the end node is cancelled. According to the terminal resistance access state corresponding to each test node, the terminal resistance identifier of each test node is updated.

[0035] In the implementation, the position information of the corresponding first test node in the bus topology can be determined according to the first node identifier, and through the analysis of the node position relationship, the test node located at the end of the bus can be identified, and when the first test node is confirmed as the end node, the terminal resistance can be automatically configured for the node, and the terminal resistance configuration of other non-end nodes is cancelled.

[0036] For example, in the vehicle-mounted CAN bus test, the relative positions of the nodes can be determined through the bus topology analysis algorithm, and when a node located at the end of the bus is identified, the test system can automatically control the terminal resistance access circuit of the node.

[0037] Exemplarily, when the terminal resistance configured for the test node is cancelled, the terminal resistance connection of other nodes can be disconnected.

[0038] Exemplarily, when the terminal resistance is configured for the first test node, a 120Ω terminal resistance can be automatically connected in parallel to the first test node through an electronic switch, and the electronic switch for configuring the terminal resistance for the first test node can be electrically connected with the control component and controlled uniformly through the control component.

[0039] In the implementation, after the terminal resistance configuration operation is completed, the terminal resistance identifier of each test node can be updated according to the actual terminal resistance access state, so that the identifier information and the actual hardware state can be kept consistent, thereby providing accurate reference basis for subsequent test operation.

[0040] For example, in the vehicle-mounted CAN bus test, after the configuration and adjustment of the terminal resistance are completed, the test system can automatically update the terminal resistance identifier of each node, record the current resistance access state, and the updated identifier information can be used for subsequent test verification and state monitoring.

[0041] The beneficial effects of the above implementation manner are that the identification and resistance information of each test node are acquired first, and then it is judged whether the first test node is a bus end node; if yes, the terminal resistance is automatically configured for the node, and the resistance configuration of other nodes is cancelled, thereby ensuring the integrity of signal transmission and avoiding communication errors caused by signal reflection. This automatic 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 fault risk caused by improper resistance configuration, and enhances the reliability of the entire test system.

[0042] The beneficial effects of the above implementation manner are also that the identification and position data of all test nodes are acquired in batches, the end node is quickly located by using an algorithm, and the configuration and cancellation of the resistance are completed in one key, without the need for technical personnel to operate each node, which greatly shortens the configuration time, optimizes the test preparation work, reduces the manual operation links and potential errors, improves the test efficiency, and is especially suitable for complex multi-node scenarios, and can quickly respond to changes in test requirements.

[0043] The beneficial effects of the above implementation manner are also that different vehicle CAN bus topologies can be flexibly responded to, the terminal resistance configuration is automatically adjusted by dynamically detecting the node position, is not dependent on the fixed node layout, the node information is acquired in real time and the end node is judged, the compatibility and scalability of the test platform are enhanced, a variety of vehicle models or configuration changes can be adapted, the test limitations caused by hardware differences are reduced, and the breadth of the application range is improved.

[0044] Figure 4 A flowchart of a second vehicle CAN bus terminal resistance configuration method for node testing provided by an embodiment of the present application is shown in Figure 4 As shown in the figure, the vehicle CAN bus test method includes S210 to S220, and S210 to S220 are specifically described below.

[0045] S210, acquire a first terminal resistance configuration condition and a first communication performance parameter corresponding to a first test node, the first terminal resistance configuration condition being a trigger condition preset for the first test node to reconfigure the terminal resistance, and the first communication performance parameter including a signal quality and a signal error rate.

[0046] Figure 5 A working flowchart of the second vehicle CAN bus terminal resistance configuration method for node testing provided by an embodiment of the present application is shown in Figure 5As shown, during the vehicle CAN bus test, the first terminal resistance configuration condition and the first communication performance parameter corresponding to the first test node can be obtained. The first terminal resistance configuration condition represents a preset trigger condition for reconfiguring the terminal resistance, and the first communication performance parameter includes two key indicators, i.e., signal quality and signal error rate.

[0047] For example, the first terminal resistance configuration condition and the first communication performance parameter can be collected in real time by the CAN bus analyzer. The signal quality can reflect the integrity and stability of the bus signal, and the signal error rate can reflect the reliability of data transmission. Obtaining these parameters helps to comprehensively evaluate the bus communication state and provides a basis for subsequent terminal resistance configuration decisions.

[0048] For example, the signal quality and the signal error rate can be calculated by monitoring the signal quality and the signal error rate of all test nodes in real time. The signal quality can be obtained by analyzing the oscilloscope waveform diagram of the CAN bus, and the signal error rate can be detected by the error counter built in each CAN controller.

[0049] S220, when the first communication performance parameter does not satisfy the first terminal resistance configuration condition, the terminal resistance of the end node of the vehicle CAN bus is configured again. When the first communication performance parameter satisfies the first terminal resistance configuration condition, the terminal resistance configuration of the end node of the vehicle CAN bus is kept unchanged.

[0050] In the present implementation, when it is detected that the first communication performance parameter does not satisfy the first terminal resistance configuration condition, the terminal resistance 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 terminal resistance value of the end node.

[0051] For example, in the vehicle CAN bus test, when the signal quality is lower than a preset threshold or the signal error rate exceeds the allowed range, it indicates that the current terminal resistance configuration may not adapt to the current bus state, and reconfiguring the terminal resistance helps to optimize signal transmission at this time.

[0052] In the present implementation, when the first communication performance parameter satisfies the first terminal resistance configuration condition, the terminal resistance configuration of the end node of the vehicle CAN bus can be kept unchanged, which ensures that unnecessary terminal resistance configuration adjustment is not performed in the case of good communication performance.

[0053] For example, in the vehicle CAN bus test, when the signal quality remains at a qualified level and the signal error rate is within a normal range, it indicates that the current terminal resistance configuration is still effective, and keeping the existing configuration at this time can avoid unnecessary system disturbance.

[0054] The implementation manner has the beneficial effects that the communication performance parameters such as signal quality or error rate of the test nodes and the predefined terminal resistance configuration condition are acquired; when it is monitored that the communication performance parameters do not meet the configuration condition, the terminal resistance configuration process is started, otherwise, the current state is kept, the bus communication state is evaluated in real time, and adjustment is made only when the actual performance is decreased, blind configuration is avoided, the communication efficiency and stability of the vehicle CAN bus are effectively improved, and performance fluctuation caused by fixed configuration is reduced.

[0055] The implementation manner also has the beneficial effects that configuration is triggered only when the parameters are abnormal, the terminal resistance adjustment is ensured to be based on actual demand rather than fixed rules, bus state changes are dynamically responded to, misconfiguration or over-configuration is prevented, the reliability and robustness of the vehicle CAN bus test system are improved, the risk of communication failure caused by improper configuration is reduced, and the accuracy of test results and long-term stability of the system are ensured.

[0056] Figure 6 A flowchart of a third vehicle CAN bus terminal resistance configuration method for node testing provided by the embodiments of the present application is shown in FIG. 6. Figure 6 As shown in FIG. 6, the method further includes S230 to S240, which are specifically described below.

[0057] S230, acquire test node attributes corresponding to each test node in vehicle CAN bus testing, respectively include all test nodes in different test node groups according to the test node attributes, and different test node groups correspond to different preset communication performance parameter averages. Determine the communication performance parameter average of all test nodes in each test node group. The test node attributes include the importance attribute corresponding to the test node.

[0058] In vehicle CAN bus testing, test node attributes corresponding to each test node can be acquired, the test node attributes include the importance attribute corresponding to the test node, all test nodes can be respectively included in different test node groups according to the test node attributes, and the preset communication performance parameter averages corresponding to different test node groups are different. The test node attributes can reflect the importance and functional characteristics of the node in the CAN bus system.

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

[0060] After the test node grouping is completed, the average of the communication performance parameters of all test nodes in each test node group can be determined, and the communication performance parameters can include signal transmission quality, bit error rate, communication delay and the like. When calculating the average of the communication performance parameters, the communication performance parameter values of all nodes in the group can be considered comprehensively, and the average index reflecting the overall communication state is obtained by statistical average method.

[0061] For example, for the high importance test node group, the communication performance parameters of all safety critical nodes in the high importance test node group can be collected, and the arithmetic mean of these parameters is calculated as the average of the communication performance parameters of the high importance test node group. This average calculation method based on all node data in the high importance test node group can more comprehensively reflect the overall communication state of the group nodes.

[0062] S240, 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, the terminal resistance configuration process of the vehicle CAN bus is started. When the first communication performance parameter average corresponding to the first test node group is less than the first preset communication performance parameter average, the terminal resistance configuration process of the vehicle CAN bus is not started.

[0063] In the present embodiment, after obtaining the average of the communication performance parameters of each test node group, 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, the terminal resistance configuration process of the vehicle CAN bus can be started. The terminal resistance configuration process can be to configure the terminal resistance for the terminal node of the vehicle CAN bus.

[0064] For example, when the first communication performance parameter average of the high importance test node group reaches or exceeds the first preset communication performance parameter average, it indicates that the communication performance of the group nodes needs to be optimized, and at this time the terminal resistance configuration process can be started to improve the bus communication quality.

[0065] In the present embodiment, when the first communication performance parameter average corresponding to the first test node group is less than the first preset communication performance parameter average, the terminal resistance configuration process of the vehicle CAN bus can not be started. In this case, it indicates that the communication performance of the nodes in the test node group is within an acceptable range, and there is no need to perform terminal resistance configuration adjustment.

[0066] For example, when the first communication performance parameter average of the high importance test node group is lower than the first preset communication performance parameter average, it indicates that the communication performance of the group nodes is good, and at this time the current terminal resistance configuration state can be maintained to avoid unnecessary configuration operation.

[0067] 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.

[0068] 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.

[0069] 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.

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

[0071] 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.

[0072] 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.

[0073] 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.

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

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

[0076] The above-mentioned implementation mode has the beneficial effects that the test level corresponding to the vehicle CAN bus test is obtained first, then the communication performance adjustment factor matched with the test level is obtained, and then the product of the original preset average of the communication performance parameters of each test node group and the communication performance adjustment factor is calculated to update the preset average of each group, so that the preset average is dynamically associated with the test level instead of being fixed, which can solve the problem that the fixed preset average cannot adapt to different test levels, make the preset average fit the current test scene, and improve the scene adaptability of the configuration trigger judgment.

[0077] The above-mentioned implementation mode also has the beneficial effects that the nodes are grouped according to the node attributes and the differentiated preset average is set, and then the preset average is adjusted by introducing the adjustment factor combined with the test level, so that the preset average has both node characteristics and scene requirements through the dual synergy of node attribute grouping and test level parameter adjustment, the configuration deviation caused by single dimension is avoided, the double-dimensional accurate matching is realized, and the rationality of terminal resistance configuration is improved.

[0078] In some implementation modes, in the above-mentioned S120, the first node position of the first test node corresponding to the first node identifier is obtained, including S121-S122, which will be described below.

[0079] S121, a CAN topology database is obtained, and the CAN topology database includes the relative position relationship of the test nodes corresponding to all node identifiers.

[0080] In the present implementation, during the vehicle CAN bus test, a pre-configured CAN topology database can be obtained, which records the identification and corresponding relative position relationship of all test nodes. The relative position relationship can represent the physical distribution and connection order of each test node in the CAN bus network.

[0081] Exemplarily, the CAN topology database can be imported through a bus design file or constructed based on historical test data, thereby providing complete topology reference for terminal resistance configuration. Obtaining these topology data helps to understand the structural characteristics of the bus network and provides a basis for subsequent node positioning.

[0082] S122, according to the first node identification, determining the first node position corresponding to the first node identification in the CAN topology database.

[0083] After obtaining the CAN topology database, the matching first node position can be queried in the CAN topology database according to the first node identification.

[0084] Exemplarily, the first node identification can be a unique identification code of the test node. The corresponding node position information can be directly obtained through the database query operation. This query process avoids complex signal detection or hardware interaction. After determining the first node position, the specific position of the test node in the CAN bus can be accurately identified, thereby providing a position basis for the correct configuration of the subsequent terminal resistance.

[0085] In the present implementation, after obtaining the first node position, the configuration operation of the terminal resistance can be performed based on the position information.

[0086] For example, in the vehicle CAN bus test, when it is necessary to configure terminal resistance for a certain test node, the position of the node can be queried in the CAN topology database according to the identification of the node. Then, when the first node position is the end node of the vehicle CAN bus, the terminal resistance is configured for the first test node.

[0087] The above-mentioned implementation has the following beneficial effects: by obtaining the CAN topology database containing the relative position relationship corresponding to the identification of all nodes, the position of the first node is directly matched and determined in the database according to the first node identification, thereby avoiding the complex analysis of dynamic signal detection or the interaction process of hardware identification, reducing the operation steps and time of position acquisition, significantly improving the efficiency of node position acquisition, and accelerating the overall process of terminal resistance configuration; by accurately matching the database information with the node identification to determine the position, the misjudgment caused by signal interference in dynamic detection is avoided.

[0088] The implementation mode has the beneficial effects that the CAN topology database centrally manages node position information, when the vehicle CAN bus topology changes, only the relative position relationship in the database needs to be updated, without modifying the node hardware or adjusting the detection algorithm, and the method can flexibly adapt to changes of different vehicle models or bus topologies, and the universality and scalability of the terminal resistance configuration method are enhanced.

[0089] In some implementations, Figure 8 A fifth vehicle CAN bus terminal resistance configuration method for node testing provided by an embodiment of the present application has a flowchart as shown in Figure 8 The method further includes S310-S320, which are described below.

[0090] S310, acquiring a terminal communication performance parameter corresponding to a terminal node in vehicle CAN bus testing, and acquiring a terminal communication performance parameter threshold corresponding to the terminal communication performance parameter.

[0091] In the implementation, the terminal communication performance parameter corresponding to the terminal node can be continuously acquired during vehicle CAN bus testing. The terminal communication performance parameter reflects the actual performance of the terminal node in bus communication, and the terminal communication performance parameter threshold can be set based on the bus communication quality requirement and used as a reference standard for judging whether the terminal resistance needs to be reconfigured.

[0092] For example, the terminal communication performance parameter can include a signal amplitude, a bit error rate, a signal integrity index, and other communication quality parameters. The terminal communication performance parameter threshold can be determined according to the bus communication protocol requirement and the actual test environment, to ensure that the bus communication quality meets the design requirement.

[0093] S320, reconfiguring the terminal resistance of the terminal node when the terminal communication performance parameter is greater than or equal to the terminal communication performance parameter threshold.

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

[0095] For example, reconfiguring the terminal resistance of the terminal node can include manually reconfiguring the terminal resistance of the terminal node. The configuration of the terminal resistance can timely adapt to the change of the bus communication state.

[0096] For example, in the vehicle CAN bus test, when the signal amplitude attenuation of the end node is monitored to exceed the end communication performance parameter threshold, the end resistance can be reconfigured and connected to improve the signal quality and ensure the stability of the bus communication.

[0097] The implementation mode has the beneficial effects that the original signal is transmitted to the end node over a long distance, and the amplitude itself may have been attenuated. The reflected signal is generated at the end node and immediately superimposed on the original signal with maximum strength, so that the waveform distortion at the position of the end node is the most serious. The communication abnormality can be accurately identified through the performance parameter feedback of the end node, the communication performance deficiency caused by the static position configuration can be avoided, the communication stability of the end node is ensured, and the overall communication quality of the vehicle CAN bus can be improved.

[0098] The implementation mode also has the beneficial effects that the end communication performance parameter monitoring and threshold comparison link are added, and the actual communication performance data is used as the key basis for reconfiguration. The performance parameter can feedback the effectiveness of the configuration in real time, and the configuration can be adapted to the actual communication situation, so that the accuracy of the terminal resistance configuration is greatly improved, and improper configuration is reduced.

[0099] The implementation mode also has the beneficial effects that the environmental interference, node load and other conditions may change dynamically during the test, and it is difficult to adapt to the changes by position configuration alone. The dynamic performance monitoring can respond to scene fluctuations in time, and manual frequent intervention is not required. The dynamic changes in the test can be automatically adapted, the adaptability to different test conditions is enhanced, the test efficiency is improved, and the effectiveness of the terminal resistance configuration in various scenarios is ensured.

[0100] In some implementation modes, the above also includes S330 to S340, which are described in detail below.

[0101] S330, 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 the communication performance parameter difference. The communication performance parameter difference threshold corresponding to the communication performance parameter difference is obtained.

[0102] 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 can be obtained, and the next-end communication performance parameter corresponding to the adjacent node of the end node in the vehicle CAN bus test can be obtained. These communication performance parameters can reflect the communication quality condition of the node in the bus network.

[0103] After obtaining the end communication performance parameter and the sub-end communication performance parameter, a difference between the end communication performance parameter and the sub-end communication performance parameter can be determined as a communication performance parameter difference, which can reflect a difference degree of communication performance of the end node relative to the adjacent node, and a communication performance parameter difference threshold corresponding to the communication performance parameter difference can be obtained, which can be set based on historical test data.

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

[0105] S340, 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 optimized end node is configured with a terminal resistance. 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 end node is manually configured with a terminal resistance.

[0106] In the present implementation, 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 can be removed from the vehicle CAN bus, and the adjacent node of the end node can be determined as an optimized end node, and the optimized end node can be configured with a terminal resistance.

[0107] For example, when the error rate of the end node is continuously out of standard and the difference with the adjacent node is large, the end node can be removed from the bus, and the adjacent node can be set as a new end node and configured with a terminal resistance.

[0108] In the present implementation, 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 end node can be manually configured with a terminal resistance.

[0109] 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 condition of the CAN bus can be improved by manually adjusting the terminal resistance value.

[0110] The beneficial effects of the above implementation manner are that, after reconfiguring the terminal node terminal resistance, the difference between the communication performance parameters of the terminal and the sub-terminal is obtained first, and the double conditions of whether the terminal parameter is still above the threshold value are combined, and the strategies of replacing the terminal node configuration or manual configuration are taken respectively, the communication abnormality may be affected by the problem of the terminal node itself, and needs to be handled specifically, so that the configuration can be dynamically adjusted according to the actual communication parameters, and the adaptability of the terminal resistance configuration to different test scenarios is improved.

[0111] The beneficial effects of the above implementation manner are also that, by obtaining the difference between the communication performance parameters of the terminal node and the sub-terminal node, and combining the threshold value of the terminal parameter, it is judged whether the current terminal node is a key factor of communication abnormality, if the difference between the communication performance parameters is greater than or equal to the threshold value of the difference between the communication performance parameters, the terminal node is replaced, otherwise manual configuration is performed, which can reflect the influence degree of the current terminal node on the bus communication, assist in locating the fault source, quickly lock the node problem affecting communication, avoid blind adjustment, reduce invalid operation, and improve the efficiency and accuracy of fault handling in CAN bus test.

[0112] In some implementation manners, the above method further includes S410 to S420, which are specifically described as follows.

[0113] S410, obtain the performance degradation amplitude of the communication performance parameters of all test nodes within a preset time period. The sum of the performance degradation amplitudes of all test nodes is determined as a cumulative degradation value.

[0114] In this implementation manner, during the vehicle CAN bus test, the performance degradation amplitudes of the communication performance parameters of all test nodes within a preset time period can be obtained, which reflect the degree of decline of the communication performance of each test node over time, and can include the change amount of parameters such as signal quality, bit error rate or communication delay.

[0115] In this implementation manner, by calculating the sum of the performance degradation amplitudes of all test nodes, the cumulative degradation value can be obtained, which can comprehensively reflect the overall performance degradation of all test nodes in the entire CAN bus system, and provide a quantitative basis for subsequent decision-making.

[0116] S420, when the cumulative degradation value is greater than or equal to a preset cumulative degradation value, start the terminal resistance configuration process of the vehicle CAN bus. When the cumulative degradation value is less than the preset cumulative degradation value, do not start the terminal resistance configuration process of the vehicle CAN bus.

[0117] After determining the accumulated degradation value, the accumulated degradation value and the preset accumulated degradation value can be compared. When the accumulated degradation value is greater than or equal to the preset accumulated degradation value, it indicates that the communication performance of the entire CAN bus system has deteriorated to the extent that intervention is needed, and at this time, the terminal resistance configuration process of the vehicle CAN bus can be started.

[0118] For example, in the vehicle CAN bus test, when it is detected that the communication performance parameters of multiple test nodes have obviously deteriorated, the accumulated degradation value can be calculated to start the terminal resistance configuration in time when the overall system performance has dropped to the critical level, thereby ensuring that the bus signal quality meets the test requirements.

[0119] After determining the accumulated degradation value, when the accumulated degradation value is less than the preset accumulated degradation value, it indicates that the communication performance of the current CAN bus system is still within an acceptable range, and at this time, the terminal resistance configuration process of the vehicle CAN bus can not be started, thereby avoiding unnecessary configuration operations when the system performance meets the test requirements.

[0120] For example, during the test, if only a small number of test nodes have slight performance degradation, and the accumulated degradation value does not reach the preset accumulated degradation value, the current terminal resistance configuration state can be maintained to avoid frequent configuration adjustments that interfere with the test process.

[0121] The above-mentioned implementation mode has the beneficial effect that the degradation amplitudes of the communication performance parameters of all test nodes within a preset time period are first obtained, the sum of these degradation amplitudes is calculated as the accumulated degradation value, and then the accumulated degradation value is compared with the preset accumulated degradation value, so that the configuration of the terminal resistance is only performed when the communication performance deteriorates to the extent that intervention is needed, which greatly improves the precision of the timing of the terminal resistance configuration and reduces meaningless configuration operations.

[0122] In some implementations, the above-mentioned method further includes: when the first communication performance parameter satisfies the first terminal resistance configuration condition, and when the accumulated degradation value is greater than or equal to the preset accumulated degradation value, the terminal resistance of the end node of the vehicle CAN bus is configured again. When the first communication performance parameter satisfies the first terminal resistance configuration condition, and when the accumulated degradation value is less than the preset accumulated degradation value, the terminal resistance configuration of the end node of the vehicle CAN bus is kept unchanged.

[0123] In the present implementation, the first terminal resistance configuration condition corresponding to the first test node and the first communication performance parameter can be acquired first. The first communication performance parameter can reflect a state index of the communication quality of the first test node in the vehicle CAN bus. The first terminal resistance configuration condition represents a trigger condition for adjusting the terminal resistance configuration. When the communication performance of the first test node meets the first terminal resistance configuration condition, i.e., the communication state of the first test node needs to reconfigure the terminal resistance, and the accumulated degradation value quantified accumulated attenuation degree of the terminal resistance performance over time does not meet the test requirement, the terminal resistance of the end node of the vehicle CAN bus can be configured again to improve the test stability of the CAN bus in the test.

[0124] In the present implementation, when the communication performance of the first test node meets the first terminal resistance configuration condition, i.e., the communication state of the first test node needs to reconfigure the terminal resistance, and the accumulated degradation value quantified accumulated attenuation degree of the terminal resistance performance over time meets the test requirement, the terminal resistance of the end node of the vehicle CAN bus can not be configured, and the terminal resistance configuration of the end node of the vehicle CAN bus does not need to be repeated. In this way, the configuration deviation caused by a single condition is avoided, the accuracy of the terminal resistance configuration is greatly improved, and unnecessary repeated terminal resistance configuration is prevented.

[0125] The above-mentioned implementation has the beneficial effects that whether the first communication performance parameter meets the first terminal resistance configuration condition is determined first. If the accumulated degradation value is greater than or equal to the preset accumulated degradation value, the terminal resistance of the end node of the vehicle CAN bus is configured again. If the first communication performance parameter meets the condition but the accumulated degradation value is less than the preset accumulated degradation value, the existing resistance configuration of the end node is maintained, the configuration deviation caused by a single condition is avoided, the accuracy of the terminal resistance configuration is greatly improved, and unnecessary repeated terminal resistance configuration is prevented.

[0126] The present application also provides a vehicle CAN bus terminal resistance configuration system for node testing, which includes units for implementing the above-mentioned vehicle CAN bus terminal resistance configuration method for node testing.

[0127] Figure 9 A logic structure schematic diagram of a vehicle CAN bus terminal resistance configuration system for node testing provided by the present application is shown in FIG. 2. As shown in FIG. 2, the system 2 of the present embodiment includes a processing unit 21, a storage unit 22, and a transceiver unit 23. The processing unit 21 is used for processing data, the storage unit 22 is used for storing data, and the transceiver unit 23 is used for transceiving data. The processing unit 21, the storage unit 22, and the transceiver unit 23 cooperate with each other to implement the above-mentioned method. The beneficial effects of the present application have been described in the above-mentioned method, and will not be repeated here. Figure 9 The beneficial effects of the present application have been described in the above-mentioned method, and will not be repeated here.

[0128] It should be noted that the information interaction, execution process and the like between the above devices / units are based on the same concept as the method embodiments of the present application, and specific functions and brought technical effects can be referred to the method embodiments part, which will not be repeated here.

[0129] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above-mentioned division of each functional unit and module is exemplified, and in actual application, the above-mentioned functions can be completed by different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or software function unit. In addition, the specific names of each functional unit and module are only for easy distinction, and do not limit the protection scope of the present application. The specific working process of the unit and module in the system can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

[0130] The integrated unit, if realized in the form of a software function unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the above-embodied methods can be completed by a computer program instructing related hardware, and the computer program can be stored in a computer-readable storage medium. When the processor executes the computer program, the steps of each method embodiment described above can be implemented. The computer program includes computer program code, which can be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium at least includes any entity or device that can carry the computer program code to the photographing device / terminal equipment, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.

[0131] In the above embodiments, the description of each embodiment has its own emphasis, and the parts not described or recorded in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0132] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed 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 the present application.

[0133] In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other ways. For example, the apparatus embodiments described above are only schematic, and for example, the division of the modules or units is only a logical function division, and there can be another division in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between different parts can be indirect couplings or communication connections through some interfaces, devices or units, and can be electrical, mechanical or other forms.

[0134] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiments.

[0135] The above-described embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalent; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.

Claims

1. A method for configuring terminating resistors on an onboard CAN bus for node testing, characterized in that, The method includes: 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. 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 the 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 of each test node.

2. The method according to claim 1, characterized in that, The method further includes: 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. When the first communication performance parameter does not meet the first terminating resistor configuration condition, the terminating resistor is configured again for the end node of the vehicle CAN bus; 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 remains unchanged.

3. The method according to claim 2, characterized in that, The method further includes: Obtain the test node attributes corresponding to each test node in the vehicle CAN bus test, and include all test nodes into different test node groups according to the test node attributes. 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. Among them, the test node attributes include the importance attribute corresponding to the test node. 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 terminal resistor configuration process of the vehicle CAN bus is started; 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 is not started.

4. The method according to claim 3, characterized in that, The method further includes: Obtain the test level corresponding to the vehicle CAN bus test, and obtain the communication performance adjustment factor corresponding to the test level; 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.

5. The method according to claim 4, characterized in that, Obtain the position of the first node corresponding to the first test node with the first node identifier, including: Obtain the CAN topology database, which includes the relative positional relationships of all test nodes corresponding to their respective node identifiers; Based on the first node identifier, determine the location of the first node corresponding to the first node identifier in the CAN topology database.

6. The method according to claim 5, characterized in that, The method further includes: Obtain the end-to-end communication performance parameters corresponding to the end nodes in the vehicle CAN bus test, and obtain the end-to-end communication performance parameter thresholds corresponding to the end-to-end communication performance parameters. When the terminal communication performance parameter is greater than or equal to the terminal communication performance parameter threshold, the terminating resistance of the terminal node is reconfigured.

7. The method according to claim 6, characterized in that, The method further includes: 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. 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 difference in communication performance parameters is greater than or equal to the difference in communication performance parameters threshold, the current end-to-end node is removed from the vehicle CAN bus, and the adjacent node of the end-to-end node is determined as the optimized end-to-end node, and the terminating resistor is configured for the optimized end-to-end node; 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 difference in communication performance parameters is less than the difference in communication performance parameters threshold, the terminating resistor is manually configured for the end-to-end node.

8. The method according to claim 7, characterized in that, The method further includes: 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; 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.

9. The method according to claim 8, characterized in that, The method further includes: When the first communication performance parameter meets the first termination resistor configuration condition, and when the cumulative degradation value is greater than or equal to the preset cumulative degradation value, the termination resistor of the end node of the vehicle CAN bus is configured again; when the first communication performance parameter meets the first termination resistor configuration condition, and when the cumulative degradation value is less than the preset cumulative degradation value, the termination resistor configuration of the end node of the vehicle CAN bus remains unchanged.

10. A vehicle-mounted CAN bus terminating resistor configuration system for node testing, characterized in that, Includes units for implementing the method of any one of claims 1 to 9.

Citation Information

Patent Citations

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

    CN113490069A

  • CAN node terminal resistance management method and device and CAN node terminal resistance detection circuit

    CN114624624A

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

    CN117579478A

  • Device and method for automatically identifying terminal equipment and automatically accessing terminal resistor

    CN118573499A

  • CAN bus network topology, configuration method of CAN bus terminal resistor and vehicle

    CN119109729A

Cited By

  • Dynamic terminal resistance self-adaptive adjusting method, device, equipment and medium

    CN122247806A

  • Dynamic terminal resistance adaptive adjustment method, device, equipment and medium

    CN122247806B