A test method for diagnosing an HCU by CANoe network

CN117768348BActive Publication Date: 2026-10-09CHERY AUTOMOBILE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311723847.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-15
Publication Date
2026-10-09
Estimated Expiration
2043-12-15

AI Technical Summary

Technical Problem

[0007]针对现有技术的不足,本发明提供了一种CANoe网络诊断HCU的测试方法,具备减少测试人员的配置工作,提高测试效率,自动录制和分析CAN消息,减轻测试人员的工作负担,能够及时检测HCU可能出现的问题,有助于提前优化和修复等优点,解决了上述技术的问题

Benefits of technology

[0055] 1. This invention automatically records and analyzes CAN messages, and performs real-time monitoring and diagnosis according to preset test requirements. The system can detect potential problems of HCU in the network environment, such as message loss and excessive latency, and generate corresponding test reports. Testers only need to browse the reports to understand the performance and stability of HCU, which reduces the workload of testers and achieves the beneficial effects of reducing the configuration work of testers and improving test efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117768348B_ABST
    Figure CN117768348B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of CAPL script automatic network diagnosis test, and discloses a CANoe network diagnosis HCU test method, which comprises the following steps: step one, inputting basic information and test requirements of the HCU; step two, system configuration CANoe test environment; step three, system automatic recording and analysis of CAN messages; step four, system real-time monitoring and diagnosis of the HCU; step five, system generation of a test report, including the performance and stability of the HCU; and step six, test personnel browsing of the report and further analysis and optimization according to requirements. The application can detect possible problems of the HCU under a network environment, such as message loss, delay, etc., and generate a corresponding test report, thereby reducing the work burden of the test personnel, achieving the beneficial effects of reducing the configuration work of the test personnel and improving the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of CAPL script-based automated network diagnostic testing technology, specifically a CANoe network diagnostic HCU testing method. Background Technology

[0002] The new energy vehicle industry is booming, and developing new energy vehicles is an essential path for China to move from a major automobile producer to a leading automobile power, as well as a strategic measure to address climate change and promote green development. The development directions of new energy vehicles include hybrid electric vehicles (HEVs), plug-in hybrid electric vehicles (PHEVs), range-extended electric vehicles (REEVs), pure electric vehicles, and hydrogen fuel cell vehicles. Given China's vast territory and large-scale inter-regional population movement, hybrid vehicles have become the preferred choice for consumers.

[0003] In hybrid electric vehicles, the Hybrid Power Control Unit (HCU) is one of the core components of the automotive electronic system, playing a crucial role. The HCU is responsible for controlling various vehicle functions, such as engine control, braking system, and drive system. Since the performance and stability of the HCU directly affect the vehicle's safety and performance, comprehensive testing of the HCU is essential to ensure the vehicle's safety, reliability, and performance. Therefore, detailed testing of the HCU is necessary.

[0004] Currently, a common testing method is to use CANoe software for HCU network diagnostics. CANoe is a widely used tool for testing automotive electronic systems; it can simulate the behavior of electronic control units (ECUs), send and receive CAN messages, and perform real-time monitoring and diagnostics.

[0005] However, current testing methods have some problems. For example, due to the complexity and diversity of CANoe network environments, testers often find it difficult to correctly configure the CANoe testing environment. Furthermore, the testing process requires manually recording and analyzing a large number of CAN messages, which increases the testing time and workload. Summary of the Invention

[0006] (a) Technical problems to be solved

[0007] To address the shortcomings of existing technologies, this invention provides a testing method for diagnosing HCUs in a CANoe network. This method reduces the configuration work for testers, improves testing efficiency, automatically records and analyzes CAN messages, reduces the workload of testers, and can detect potential problems with the HCU in a timely manner, facilitating early optimization and repair. It solves the problems mentioned above.

[0008] (II) Technical Solution

[0009] To achieve the above objectives, the present invention provides the following technical solution: a test method for diagnosing HCU using a CANoe network, comprising the following steps:

[0010] Step 1: Input the basic information and test requirements of the HCU;

[0011] Step 2: Configure the CANoe test environment.

[0012] Step 3: The system automatically records and analyzes CAN messages;

[0013] Step 4: The system performs real-time monitoring and diagnosis of the HCU;

[0014] Step 5: The system generates a test report, including the performance and stability of the HCU;

[0015] Step Six: Testers review the report and perform further analysis and optimization as needed.

[0016] Preferably, the test types in step one include rising edge slope test, falling edge slope test, ground offset test, ground offset test, bit time test, and sampling point test.

[0017] Through the above technical solution, by automatically recording and analyzing CAN messages, and performing real-time monitoring and diagnosis according to preset test requirements, the system can detect potential problems of HCU in the network environment, such as message loss and excessive latency, and generate corresponding test reports. Testers only need to browse the reports to understand the performance and stability of HCU, reducing the workload of testers.

[0018] Preferably, the basic information and test requirements in step one include the following steps:

[0019] S1.1 Open the CANoe software and create a new test project;

[0020] S1.2. Locate the HCU node in the CANoe project tree, right-click and select Properties;

[0021] S1.3 In the HCU property settings interface, fill in the basic information of the HCU, including name, manufacturer and version number;

[0022] S1.4 In the property settings interface, find the test requirement-related options and set the functions to be monitored and diagnosed, communication protocols, and CAN network parameters.

[0023] S1.5 After selecting the appropriate options and setting them, save the configuration and close the interface.

[0024] With the above technical solution and automated configuration technology, testers only need to input the basic information of the HCU and the test requirements, and the system can automatically configure the CANoe test environment, including setting the communication rate and creating the message database. Testers no longer need to manually configure CANoe, which greatly simplifies the testing process.

[0025] Preferably, configuring the CANoe test environment in step two includes the following steps:

[0026] S2.1. In the CANoe project tree, find the Configuration node and right-click to create a new configuration;

[0027] S2.2 In the configuration property settings interface, configure the network devices, including the CAN bus interface, emulator, and gateway, for CANoe to connect to the vehicle network;

[0028] S2.3 Select a predefined vehicle model, or create a custom simulation model as needed, to complete the simulation model configuration;

[0029] S2.4 Configure nodes, simulate the CAN nodes of various control units in the vehicle, set the communication parameters and simulation model of the nodes, and configure their network, defining the parameters of the CAN network, including network bit rate, frame ID and node configuration;

[0030] S2.5, Configure the communication protocol;

[0031] S2.6 Enable diagnostic-related functions, such as supporting UDS diagnostics and DTC management.

[0032] The above technical solutions, based on automated configuration and intelligent analysis, can effectively test the performance and stability of automotive HCUs in a CANoe network environment.

[0033] Preferably, the CAN node in S2.4 includes an HCU, the communication protocol in S2.5 includes CAN, LIN, and FlexRay, and the UDS diagnostics in S2.6 include a diagnostic controller, a diagnostic token, a diagnostic session, and a diagnostic service.

[0034] Preferably, configuring the communication protocol in S2.5 includes the following steps:

[0035] SS1. In the CANoe project tree, find the Configuration node, right-click and select Properties;

[0036] SS2. In the configuration properties settings interface, select the "Network" tab;

[0037] SS3. Enable the CAN bus interface in the network configuration interface;

[0038] SS4. In the network device's property settings, find the options related to the communication protocol;

[0039] SS5. Based on the actual communication protocol, select the corresponding option, such as CAN communication type and bit rate or LIN communication type and version number;

[0040] SS6. Configure other network devices as needed, such as setting the number of network nodes and node IDs.

[0041] Preferably, the automatic recording in step three includes the following steps:

[0042] S3.1. Open the CANoe software and open the previously created test project;

[0043] S3.2. In the CANoe project tree, find the Configuration node, right-click and select Properties;

[0044] S3.3 In the configuration property settings interface, select the "Simulation" tab;

[0045] S3.4 In the simulation configuration interface, find the "Recorder" option, enable the recorder, and configure the recorder parameters, including the recorder's file name, storage location, and recorded signals or messages;

[0046] S3.5 Set trigger conditions to control the start and stop timing of the recorder, including triggering based on specific events, specific signal values, etc. Select the rolling mode, that is, when the recording file size reaches the preset value, the oldest data will be automatically overwritten to keep the recorder working continuously.

[0047] Preferably, the recorded CAN messages are analyzed using the analysis tools provided by CANoe. The analysis steps are to find the Analysis Modules node in the CANoe project tree, right-click and select Add Analysis Module.

[0048] Preferably, the real-time monitoring in step four includes the following steps:

[0049] S4.1 Setting up online monitoring: Using the network configuration function provided by CANoe, connect the HCU to the CANoe simulation environment and configure the corresponding network devices and communication parameters. Through online monitoring, CANoe can receive and parse CAN messages from the HCU in real time.

[0050] S4.2 Signal Monitoring: Use CANoe's monitoring window to view the real-time received CAN messages and their signal values;

[0051] S4.3 Monitoring and Diagnosing Events: Use CANoe's event window to monitor and record HCU-related events, including fault code triggering and changes in specific signal values;

[0052] S4.4. Conduct fault diagnosis and troubleshooting of HCU through real-time monitoring, diagnostic services and data analysis.

[0053] Preferably, in step five, the test report is generated using a report generation tool provided by CANoe, including Report Generator, and the report is automatically generated based on the measurement data. The report includes a test summary, performance indicators, and stability assessment.

[0054] Compared with existing technologies, this invention provides a test method for diagnosing HCUs using a CANoe network, which has the following advantages:

[0055] 1. This invention automatically records and analyzes CAN messages, and performs real-time monitoring and diagnosis according to preset test requirements. The system can detect potential problems of HCU in the network environment, such as message loss and excessive latency, and generate corresponding test reports. Testers only need to browse the reports to understand the performance and stability of HCU, which reduces the workload of testers and achieves the beneficial effects of reducing the configuration work of testers and improving test efficiency.

[0056] 2. This invention utilizes automated configuration technology, allowing testers to automatically configure the CANoe test environment by simply inputting the basic information of the HCU and the test requirements. This includes setting the communication rate and creating a message database. Testers no longer need to manually configure the CANoe, greatly simplifying the testing process and achieving the beneficial effects of automatically recording and analyzing CAN messages, thus reducing the workload of testers.

[0057] 3. Based on automated configuration and intelligent analysis, this invention can effectively test the performance and stability of automotive HCU in a CANoe network environment, achieving the beneficial effect of timely detection of potential HCU problems and facilitating early optimization and repair. Attached Figure Description

[0058] Figure 1 This is a schematic diagram of the process of the present invention. Detailed Implementation

[0059] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0060] Please see Figure 1 A test method for diagnosing HCU using a CANoe network includes the following steps:

[0061] Step 1: Input the basic information and test requirements of the HCU;

[0062] Step 2: Configure the CANoe test environment.

[0063] Step 3: The system automatically records and analyzes CAN messages;

[0064] Step 4: The system performs real-time monitoring and diagnosis of the HCU;

[0065] Step 5: The system generates a test report, including the performance and stability of the HCU;

[0066] Step Six: Testers review the report and perform further analysis and optimization as needed.

[0067] Specifically, the test types in step one include rising edge slope test, falling edge slope test, ground offset test, bit time test, and sampling point test. The advantage is that by automatically recording and analyzing CAN messages and performing real-time monitoring and diagnosis according to preset test requirements, the system can detect potential problems of the HCU in the network environment, such as message loss and excessive latency, and generate corresponding test reports. Testers only need to browse the reports to understand the performance and stability of the HCU, reducing the workload of testers.

[0068] Specifically, the basic information and testing requirements in step one include the following steps:

[0069] S1.1 Open the CANoe software and create a new test project;

[0070] S1.2. Locate the HCU node in the CANoe project tree, right-click and select Properties;

[0071] S1.3 In the HCU property settings interface, fill in the basic information of the HCU, including name, manufacturer and version number;

[0072] S1.4 In the property settings interface, find the test requirement-related options and set the functions to be monitored and diagnosed, communication protocols, and CAN network parameters.

[0073] S1.5 After selecting the appropriate options and setting them, save the configuration and close the interface.

[0074] The advantage is that, through automated configuration technology, testers only need to input the basic information of the HCU and the test requirements, and the system can automatically configure the CANoe test environment, including setting the communication rate and creating the message database. Testers no longer need to manually configure CANoe, which greatly simplifies the testing process.

[0075] Specifically, configuring the CANoe test environment in step two includes the following steps:

[0076] S2.1. In the CANoe project tree, find the Configuration node and right-click to create a new configuration;

[0077] S2.2 In the configuration property settings interface, configure the network devices, including the CAN bus interface, emulator, and gateway, for CANoe to connect to the vehicle network;

[0078] S2.3 Select a predefined vehicle model, or create a custom simulation model as needed, to complete the simulation model configuration;

[0079] S2.4 Configure nodes, simulate the CAN nodes of various control units in the vehicle, set the communication parameters and simulation model of the nodes, and configure their network, defining the parameters of the CAN network, including network bit rate, frame ID and node configuration;

[0080] S2.5, Configure the communication protocol;

[0081] S2.6 Enable diagnostic-related functions, such as supporting UDS diagnostics and DTC management.

[0082] The advantage is that, based on automated configuration and intelligent analysis, the performance and stability of automotive HCUs in a CANoe network environment can be effectively tested.

[0083] Specifically, in S2.4, the CAN node includes the HCU; in S2.5, the communication protocols include CAN, LIN, and FlexRay; and in S2.6, the UDS diagnostics include the diagnostic controller, diagnostic token, diagnostic session, and diagnostic service.

[0084] Specifically, configuring the communication protocol in S2.5 includes the following steps:

[0085] SS1. In the CANoe project tree, find the Configuration node, right-click and select Properties;

[0086] SS2. In the configuration properties settings interface, select the "Network" tab;

[0087] SS3. Enable the CAN bus interface in the network configuration interface;

[0088] SS4. In the network device's property settings, find the options related to the communication protocol;

[0089] SS5. Based on the actual communication protocol, select the corresponding option, such as CAN communication type and bit rate or LIN communication type and version number;

[0090] SS6. Configure other network devices as needed, such as setting the number of network nodes and node IDs.

[0091] Specifically, step three, where the system automatically records data, includes the following steps:

[0092] S3.1. Open the CANoe software and open the previously created test project;

[0093] S3.2. In the CANoe project tree, find the Configuration node, right-click and select Properties;

[0094] S3.3 In the configuration property settings interface, select the "Simulation" tab;

[0095] S3.4 In the simulation configuration interface, find the "Recorder" option, enable the recorder, and configure the recorder parameters, including the recorder's file name, storage location, and recorded signals or messages;

[0096] S3.5 Set trigger conditions to control the start and stop timing of the recorder, including triggering based on specific events, specific signal values, etc. Select the rolling mode, that is, when the recording file size reaches the preset value, the oldest data will be automatically overwritten to keep the recorder working continuously.

[0097] Specifically, the recorded CAN messages are analyzed using the analysis tools provided by CANoe. The analysis steps are to find the Analysis Modules node in the CANoe project tree, right-click and select Add Analysis Module.

[0098] Specifically, step four, real-time monitoring, includes the following steps:

[0099] S4.1 Setting up online monitoring: Using the network configuration function provided by CANoe, connect the HCU to the CANoe simulation environment and configure the corresponding network devices and communication parameters. Through online monitoring, CANoe can receive and parse CAN messages from the HCU in real time.

[0100] S4.2 Signal Monitoring: Use CANoe's monitoring window to view the real-time received CAN messages and their signal values;

[0101] S4.3 Monitoring and Diagnosing Events: Use CANoe's event window to monitor and record HCU-related events, including fault code triggering and changes in specific signal values;

[0102] S4.4. Conduct fault diagnosis and troubleshooting of HCU through real-time monitoring, diagnostic services and data analysis.

[0103] Specifically, in step five, the test report is generated using the report generation tools provided by CANoe, including ReportGenerator, and the report is automatically generated based on the measurement data. The report includes a test summary, performance indicators, and stability assessment.

[0104] Furthermore, the testing method of the present invention can be improved and expanded to meet the evolving needs of automotive electronics technology.

[0105] Advanced diagnostic features: Introduces more advanced diagnostic features, such as fault mode identification and fault location.

[0106] By performing in-depth analysis and pattern matching of CAN messages, the system can accurately identify potential fault modes and pinpoint the specific location of the fault, which helps improve the accuracy and speed of fault diagnosis.

[0107] Multi-protocol support: In addition to the CAN protocol, it also supports other network protocols such as FlexRay and Ethernet. The system can test the HCU in a wider range of network environments and meet the needs of different vehicles and systems.

[0108] Automated optimization: Machine learning algorithms and optimization models are introduced to automate the optimization of testing methods. The system can automatically adjust test parameters and configurations based on historical data and feedback information to improve testing efficiency and accuracy.

[0109] Integrated auxiliary tools: Integrate the testing method with other auxiliary tools, such as virtual simulation platforms or data recording and playback devices.

[0110] Further improve the scalability and flexibility of testing.

[0111] Furthermore, other network protocols can be integrated into the testing method to meet the testing needs of different vehicles. Adding protocols such as FlexRay or Ethernet can expand the applicability of the testing method.

[0112] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A test method for diagnosing HCU using a CANoe network, characterized in that, Includes the following steps: Step 1: Input the basic information and test requirements of the HCU; Step 2: Configure the CANoe test environment. Step 3: The system automatically records and analyzes CAN messages; Step 4: The system performs real-time monitoring and diagnosis of the HCU; Step 5: The system generates a test report, including the performance and stability of the HCU; Step Six: Testers review the report and perform analysis and optimization as needed; The tests in step one include rising edge slope test, falling edge slope test, ground offset test, bit time test, and sampling point test; Step one includes the following steps: S2.

11. Open the CANoe software and create a new test project; S2.

12. In the CANoe project tree, find the HCU node, right-click and select Properties; S2.

13. In the HCU property settings interface, fill in the basic information of the HCU, including name, manufacturer and version number; S2.

14. In the property settings interface, find the test requirement-related options and set the functions to be monitored and diagnosed, communication protocols, and CAN network parameters. S2.

15. After selecting the appropriate options and setting them, save the configuration and close the interface; The second step of configuring the CANoe test environment includes the following steps: S2.

21. In the CANoe project tree, find the configuration node and right-click to create a new configuration; S2.

22. In the configuration property settings interface, configure the network devices, including the CAN bus interface, emulator, and gateway, for CANoe to connect to the vehicle network. S2.

23. Select a predefined vehicle model, or create a custom simulation model as needed. Complete the simulation model configuration; S2.

24. Configure nodes, simulate the CAN nodes of each control unit in the vehicle, set the communication parameters and simulation model of the nodes, and configure their network, defining the parameters of the CAN network, including network bit rate, frame ID and node configuration. S2.25, Configure the communication protocol; S2.

26. Enable diagnostic-related functions, such as supporting UDS diagnostics and DTC management; In S2.24, the CAN node includes an HCU; in S2.25, the communication protocols include CAN, LIN, and FlexRay; and in S2.26, the UDS diagnostics include a diagnostic controller, a diagnostic token, a diagnostic session, and a diagnostic service. Configuring the communication protocol in S2.25 includes the following steps: SS1. In the CANoe project tree, find the configuration node, right-click and select Properties; SS2. In the configuration properties settings interface, select the "Network" tab; SS3. Enable the CAN bus interface in the network configuration interface; SS4. In the network device's property settings, find the options related to the communication protocol; SS5. Based on the actual communication protocol, select the corresponding option, such as CAN communication type and bit rate or LIN communication type and version number; SS6. Configure other network devices as needed, such as setting the number of network nodes and node IDs.

2. The test method for diagnosing HCU via a CANoe network according to claim 1, characterized in that: The automatic recording process in step three includes the following steps: S3.

1. Open the CANoe software and open the previously created test project; S3.

2. In the CANoe project tree, find the configuration node, right-click and select Properties; S3.3 In the configuration property settings interface, select the "Simulation" tab; S3.4 In the simulation configuration interface, find the "Recorder" option, enable the recorder, and configure the recorder parameters, including the recorder's file name, storage location, and recorded signals or messages; S3.5 Set trigger conditions to control the start and stop timing of the recorder, including triggering based on the value of a specific event or signal, and selecting the rolling mode, that is, when the size of the recording file reaches a preset value, the oldest data is automatically overwritten to keep the recorder working continuously.

3. The test method for diagnosing HCU via a CANoe network according to claim 1, characterized in that: The recorded CAN messages are analyzed using the analysis tools provided by CANoe. The analysis steps are as follows: find the analysis module node in the CANoe project tree, right-click and select Add Analysis Module.

4. The test method for diagnosing HCU via a CANoe network according to claim 1, characterized in that: The real-time monitoring in step four includes the following steps: S4.1 Setting up online monitoring: Using the network configuration function provided by CANoe, connect the HCU to the CANoe simulation environment and configure the corresponding network devices and communication parameters. Through online monitoring, CANoe can receive and parse CAN messages from the HCU in real time. S4.2 Signal Monitoring: Use CANoe's monitoring window to view the real-time received CAN messages and their signal values; S4.3 Monitoring and Diagnosing Events: Use CANoe's event window to monitor and record HCU-related events, including fault code triggering and changes in specific signal values; S4.

4. Conduct fault diagnosis and troubleshooting of HCU through real-time monitoring, diagnostic services and data analysis.

5. The test method for diagnosing HCU via a CANoe network according to claim 1, characterized in that: In step five, the test report is generated using the report generation tools provided by CANoe, including ReportGenerator, and the report is automatically generated based on the measurement data. The report includes a test summary, performance indicators, and stability assessment.

Citation Information

Patent Citations

  • Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system

    CN104267715A

  • CAN bus test system and CAN bus test method based on UDS

    CN110233768A