Domain controller function test method and device based on CANoe

By combining CANoe devices and low-voltage programmable power supplies, adjusting the target test voltage and analyzing the communication message interaction results, the problem of insufficient accuracy in domain controller functional testing is solved, enabling more efficient functional testing and development.

CN116909250BActive Publication Date: 2026-03-27EVE ENERGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-27
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, the functional testing methods for domain controllers lack accuracy, making it impossible to determine in a timely manner whether the domain controller is operating effectively, which affects the efficiency of subsequent development.

Method used

A CANoe-based functional testing method is adopted, which outputs the target test voltage to the domain controller and CANoe device through a low-voltage programmable power supply, and determines the functional test results based on the communication message interaction results, including adjusting the voltage value and judging the communication message interaction duration.

Benefits of technology

It improves the accuracy of domain controller functional testing and the accuracy of determining real-time functional operating status, increases the efficiency and accuracy of determining whether the domain controller is operating normally, and promotes the efficiency of subsequent functional development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116909250B_ABST
    Figure CN116909250B_ABST
Patent Text Reader

Abstract

The application discloses a domain controller function test method and device based on CANoe, and the method comprises the following steps: according to a preset function test strategy, a low-voltage programmable power supply outputs corresponding target test voltage to the domain controller and the CANoe device to supply power to the domain controller and the CANoe device through the target test voltage, and the preset function test strategy is used to adjust the voltage value of the target test voltage; after the low-voltage programmable power supply provides the target test voltage to the domain controller and the CANoe device, the communication message interaction result between the domain controller and the CANoe device is determined; and according to the communication message interaction result, the function test result corresponding to the domain controller is determined. It can be seen that the embodiment of the application can improve the function test accuracy of the domain controller, and can improve the determination accuracy of the real-time function running state of the domain controller, thereby improving the determination efficiency and accuracy of determining whether the domain controller normally runs the corresponding function.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of functional testing technology, and in particular to a CANoe-based method and apparatus for functional testing of domain controllers. Background Technology

[0002] During the development of domain controller functions, it is often necessary to perform functional tests on the developed domain controllers to ensure that each developed domain controller can operate according to the preset functions and that there is no interference between the functions.

[0003] Conventional domain controller functional testing methods include voltage testing. This involves inputting a preset operating voltage to the domain controller and using an oscilloscope to detect the output voltage at the corresponding target test point. The output voltage waveform displayed on the oscilloscope is then manually analyzed to determine if the domain controller is effectively operating its corresponding function. However, during functional testing, fluctuations in the domain controller's output voltage waveform are common, or the controller may fail to stably output the target voltage waveform for effective function operation. In such cases, relying solely on manual analysis is insufficient to accurately determine the domain controller's operational status. Consequently, it becomes impossible to promptly identify when the domain controller is failing to effectively operate its corresponding function, impacting the development efficiency of subsequent functions.

[0004] Therefore, it is particularly important to propose a technical solution to improve the accuracy of domain controller functional testing. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide a domain controller functional testing method and apparatus based on CANoe, which can help improve the accuracy of domain controller functional testing.

[0006] To address the aforementioned technical problems, the first aspect of this invention discloses a domain controller functional testing method based on CANoe, the method comprising:

[0007] According to the preset functional test strategy, the low-voltage programmable power supply is controlled to output the corresponding target test voltage to the domain controller and CANoe device, so as to power the domain controller and CANoe device through the target test voltage. The preset functional test strategy is used to adjust the voltage value of the target test voltage.

[0008] After the low-voltage programmable power supply provides the target test voltage to the domain controller and the CANoe device, the communication message interaction result between the domain controller and the CANoe device is determined;

[0009] Based on the communication message interaction results, the functional test results corresponding to the domain controller are determined.

[0010] As an optional implementation, in the first aspect of the present invention, determining the communication message interaction result between the domain controller and the CANoe device includes:

[0011] The CANoe device is controlled to send a first message to the domain controller, which triggers the domain controller to continuously send a second message to the CANoe device.

[0012] The communication message interaction result between the CANoe device and the domain controller is determined based on the interval between the sending time of the first message and the sending time of the first second message.

[0013] The communication message interaction result includes at least the duration of the first frame message transmission, which is equal to the interval between the transmission time of the first message and the transmission time of the first second message.

[0014] As an optional implementation, in the first aspect of the present invention, controlling the low-voltage programmable power supply to output a corresponding target test voltage to the domain controller and CANoe device according to a preset functional test strategy includes:

[0015] According to the preset functional test strategy, the low-voltage programmable power supply is controlled to output a target test voltage of the first voltage value to the domain controller and CANoe device.

[0016] Based on a preset voltage decrease step size and a first voltage value, the low-voltage programmable power supply is controlled to output a target test voltage to the domain controller and the CANoe device, wherein the second voltage value is less than the first voltage value.

[0017] Furthermore, determining the communication message interaction results between the CANoe device and the domain controller further includes:

[0018] Determine whether the domain controller stops sending the second message to the CANoe device. When it is determined that the domain controller stops sending the second message to the CANoe device, determine a first target time when the domain controller stops sending the second message to the CANoe device, and determine a third voltage value of the target test voltage corresponding to the first target time. Also, determine the communication message interaction result between the CANoe device and the domain controller based on the third voltage value.

[0019] The communication message interaction result also includes a communication stop voltage value, which is equal to the third voltage value.

[0020] As an optional implementation, in the first aspect of the present invention, after determining the communication message interaction result between the CANoe device and the domain controller based on the third voltage value, the method further includes:

[0021] After a preset time period, based on a preset voltage increment step size and the third voltage value, the low-voltage programmable power supply is controlled to output the target test voltage with a fourth voltage value that matches the preset voltage increment step size to the domain controller and the CANoe device. The fourth voltage value is greater than the third voltage value.

[0022] Determine whether the domain controller resends the second message to the CANoe device. When it is determined that the domain controller resends the second message to the CANoe device, determine the second target time when the domain controller resends the second message to the CANoe device, determine the fifth voltage value of the target test voltage corresponding to the second target time, and determine the communication message interaction result between the CANoe device and the domain controller based on the fifth voltage value.

[0023] The communication message interaction result also includes a communication recovery voltage value, which is equal to the fifth voltage value.

[0024] As an optional implementation, in the first aspect of the present invention, determining the functional test result corresponding to the domain controller based on the communication message interaction result includes:

[0025] Determine whether there is a target interaction result in the communication message interaction result that does not meet the preset functional conditions. If it is determined that the target interaction result exists in the communication message interaction result, then determine that the target interaction result does not meet the preset functional conditions as a functional abnormality factor.

[0026] Based on the aforementioned functional anomaly factors, a functional optimization reference strategy for the domain controller is determined;

[0027] Based on the functional anomaly factor and the functional optimization reference strategy, determine the functional test results corresponding to the domain controller;

[0028] When it is determined that the target interaction result is not present in the communication message interaction result, the communication message interaction result is determined as the functional test result corresponding to the domain controller.

[0029] As an optional implementation, in the first aspect of the present invention, determining whether there is a target interaction result in the communication message interaction result that does not meet the preset functional conditions includes:

[0030] Determine whether the transmission duration of the first frame message meets the preset duration condition. If it is determined that the transmission duration of the first frame message does not meet the preset duration condition, then it is determined that there is a target interaction result in the communication message interaction result.

[0031] When it is determined that the transmission duration of the first frame message meets the preset duration condition, it is determined that the target interaction result does not exist in the communication message interaction result;

[0032] And, the functional anomaly factor for determining that the target interaction result does not meet the preset functional conditions includes:

[0033] Determine whether the communication message interaction link meets the abnormal communication connection conditions. The communication message interaction link includes a software configuration link and a hardware configuration link. The hardware configuration link includes the CANoe device, the low-voltage programmable power supply, and the domain controller.

[0034] When it is determined that the communication message interaction link meets the abnormal communication connection conditions, the first verification information of the target connection node corresponding to each target object in the communication message interaction link and the first verification information of the target connection node corresponding to each target object is set, and the operation of controlling the CANoe device to send the first message to the domain controller is triggered again to trigger the domain controller to continuously send the second message to the CANoe device, so as to obtain at least one second verification information.

[0035] Determine whether at least one target verification message exists among all the second verification messages. If at least one target verification message exists among all the second verification messages, then the target object corresponding to each target verification message is identified as a communication anomaly object; the target verification message does not match any of the first verification messages.

[0036] All the communication anomalies are identified as functional anomaly factors that do not meet the preset functional conditions for the target interaction result.

[0037] As an optional implementation, in the first aspect of the present invention, determining the functional test result corresponding to the domain controller based on the communication message interaction result includes:

[0038] The communication voltage range is determined based on the communication stop voltage and the communication resume voltage;

[0039] Determine whether the communication voltage range matches the preset voltage range. If the communication voltage range matches the preset voltage range, then determine the communication message interaction result as the functional test result corresponding to the domain controller.

[0040] When it is determined that the communication voltage range does not match the preset voltage range, a communication voltage configuration function is determined based on the communication voltage range, and it is determined whether the communication voltage configuration function matches the preset voltage configuration function to obtain a judgment result. Based on the judgment result, the communication voltage configuration function and the preset voltage configuration function, a function optimization reference strategy for the domain controller is determined, and a function test result corresponding to the domain controller is determined based on the function optimization reference strategy.

[0041] A second aspect of this invention discloses a CANoe-based domain controller functional testing apparatus, the apparatus comprising:

[0042] The control module is used to control the low-voltage programmable power supply to output a corresponding target test voltage to the domain controller and CANoe device according to a preset functional test strategy, so as to power the domain controller and CANoe device through the target test voltage. The preset functional test strategy is used to adjust the voltage value of the target test voltage.

[0043] The determination module is used to determine the communication message interaction result between the domain controller and the CANoe device after the low-voltage programmable power supply provides the target test voltage to the domain controller and the CANoe device;

[0044] The determining module is further configured to determine the functional test result corresponding to the domain controller based on the communication message interaction result.

[0045] As an optional implementation, in a second aspect of the present invention, the specific method by which the determining module determines the communication message interaction result between the domain controller and the CANoe device includes:

[0046] The CANoe device is controlled to send a first message to the domain controller, which triggers the domain controller to continuously send a second message to the CANoe device.

[0047] The communication message interaction result between the CANoe device and the domain controller is determined based on the interval between the sending time of the first message and the sending time of the first second message.

[0048] The communication message interaction result includes at least the duration of the first frame message transmission, which is equal to the interval between the transmission time of the first message and the transmission time of the first second message.

[0049] As an optional implementation, in the second aspect of the present invention, the specific method by which the control module controls the low-voltage programmable power supply to output the corresponding target test voltage to the domain controller and the CANoe device according to a preset functional test strategy includes:

[0050] According to the preset functional test strategy, the low-voltage programmable power supply is controlled to output a target test voltage of the first voltage value to the domain controller and CANoe device.

[0051] Based on a preset voltage decrease step size and a first voltage value, the low-voltage programmable power supply is controlled to output a target test voltage to the domain controller and the CANoe device, wherein the second voltage value is less than the first voltage value.

[0052] Furthermore, the specific method by which the determining module determines the communication message interaction results between the CANoe device and the domain controller also includes:

[0053] Determine whether the domain controller stops sending the second message to the CANoe device. When it is determined that the domain controller stops sending the second message to the CANoe device, determine a first target time when the domain controller stops sending the second message to the CANoe device, and determine a third voltage value of the target test voltage corresponding to the first target time. Also, determine the communication message interaction result between the CANoe device and the domain controller based on the third voltage value.

[0054] The communication message interaction result also includes a communication stop voltage value, which is equal to the third voltage value.

[0055] As an optional implementation, in a second aspect of the invention, the control module is further configured to, after a preset time period following the determination module determining the communication message interaction result between the CANoe device and the domain controller based on the third voltage value, control the low-voltage programmable power supply to output the target test voltage, a fourth voltage value matching the preset voltage increment step, to the domain controller and the CANoe device, based on a preset voltage increment step and the third voltage value, wherein the fourth voltage value is greater than the third voltage value;

[0056] The device also includes:

[0057] The determination module is used to determine whether the domain controller should resend the second message to the CANoe device;

[0058] The determining module is further configured to, when the judging module determines that the domain controller resends the second message to the CANoe device, determine a second target time when the domain controller resends the second message to the CANoe device, determine a fifth voltage value of the target test voltage corresponding to the second target time, and determine the communication message interaction result between the CANoe device and the domain controller based on the fifth voltage value;

[0059] The communication message interaction result also includes a communication recovery voltage value, which is equal to the fifth voltage value.

[0060] As an optional implementation, in the second aspect of the present invention, the specific method by which the determining module determines the functional test result corresponding to the domain controller based on the communication message interaction result includes:

[0061] Determine whether there is a target interaction result in the communication message interaction result that does not meet the preset functional conditions. If it is determined that the target interaction result exists in the communication message interaction result, then determine that the target interaction result does not meet the preset functional conditions as a functional abnormality factor.

[0062] Based on the aforementioned functional anomaly factors, a functional optimization reference strategy for the domain controller is determined;

[0063] Based on the functional anomaly factor and the functional optimization reference strategy, determine the functional test results corresponding to the domain controller;

[0064] When it is determined that the target interaction result is not present in the communication message interaction result, the communication message interaction result is determined as the functional test result corresponding to the domain controller.

[0065] As an optional implementation, in the second aspect of the present invention, the specific method by which the determining module determines whether there is a target interaction result in the communication message interaction result that does not meet the preset functional conditions includes:

[0066] Determine whether the transmission duration of the first frame message meets the preset duration condition. If it is determined that the transmission duration of the first frame message does not meet the preset duration condition, then it is determined that there is a target interaction result in the communication message interaction result.

[0067] When it is determined that the transmission duration of the first frame message meets the preset duration condition, it is determined that the target interaction result does not exist in the communication message interaction result;

[0068] Furthermore, the specific methods by which the determining module determines the functional anomaly factor that the target interaction result does not meet the preset functional conditions include:

[0069] Determine whether the communication message interaction link meets the abnormal communication connection conditions. The communication message interaction link includes a software configuration link and a hardware configuration link. The hardware configuration link includes the CANoe device, the low-voltage programmable power supply, and the domain controller.

[0070] When it is determined that the communication message interaction link meets the abnormal communication connection conditions, the first verification information of the target connection node corresponding to each target object in the communication message interaction link and the first verification information of the target connection node corresponding to each target object is set, and the operation of controlling the CANoe device to send the first message to the domain controller is triggered again to trigger the domain controller to continuously send the second message to the CANoe device, so as to obtain at least one second verification information.

[0071] Determine whether at least one target verification message exists among all the second verification messages. If at least one target verification message exists among all the second verification messages, then the target object corresponding to each target verification message is identified as a communication anomaly object; the target verification message does not match any of the first verification messages.

[0072] All the communication anomalies are identified as functional anomaly factors that do not meet the preset functional conditions for the target interaction result.

[0073] As an optional implementation, in the second aspect of the present invention, the specific method by which the determining module determines the functional test result corresponding to the domain controller based on the communication message interaction result includes:

[0074] The communication voltage range is determined based on the communication stop voltage and the communication resume voltage;

[0075] Determine whether the communication voltage range matches the preset voltage range. If the communication voltage range matches the preset voltage range, then determine the communication message interaction result as the functional test result corresponding to the domain controller.

[0076] When it is determined that the communication voltage range does not match the preset voltage range, a communication voltage configuration function is determined based on the communication voltage range, and it is determined whether the communication voltage configuration function matches the preset voltage configuration function to obtain a judgment result. Based on the judgment result, the communication voltage configuration function and the preset voltage configuration function, a function optimization reference strategy for the domain controller is determined, and a function test result corresponding to the domain controller is determined based on the function optimization reference strategy.

[0077] A third aspect of the present invention discloses another CANoe-based domain controller functional testing apparatus, the apparatus comprising:

[0078] Memory containing executable program code;

[0079] A processor coupled to the memory;

[0080] The processor calls the executable program code stored in the memory to execute the CANoe-based domain controller function testing method disclosed in the first aspect of the present invention.

[0081] The fourth aspect of the present invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the CANoe-based domain controller function testing method disclosed in the first aspect of the present invention.

[0082] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0083] In this embodiment of the invention, according to a preset functional test strategy, a low-voltage programmable power supply is controlled to output a corresponding target test voltage to the domain controller and CANoe device, so as to power the domain controller and CANoe device through the target test voltage. The preset functional test strategy is used to adjust the voltage value of the target test voltage. After the low-voltage programmable power supply provides the target test voltage to the domain controller and CANoe device, the communication message interaction result between the domain controller and the CANoe device is determined. Based on the communication message interaction result, the functional test result corresponding to the domain controller is determined. It can be seen that implementing this embodiment of the invention can adjust the target test voltage output by the low-voltage programmable power supply to the domain controller and CANoe device according to the preset functional test strategy, and determine the communication message interaction result between the domain controller and the CANoe device based on the adjusted target test voltage, thereby determining the functional test result corresponding to the domain controller. This can improve the accuracy of functional testing of the domain controller and the accuracy of determining the real-time functional operating status of the domain controller, thereby improving the efficiency and accuracy of determining whether the domain controller is operating normally, and is beneficial to improving the development efficiency of other functions of the domain controller in the future. Attached Figure Description

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

[0085] Figure 1 This is a flowchart illustrating a domain controller functional testing method based on CANoe disclosed in an embodiment of the present invention.

[0086] Figure 2 This is a flowchart illustrating another CANoe-based domain controller functional testing method disclosed in an embodiment of the present invention.

[0087] Figure 3 This is a schematic diagram of the structure of a domain controller function testing device based on CANoe disclosed in an embodiment of the present invention;

[0088] Figure 4 This is a schematic diagram of another CANoe-based domain controller functional testing device disclosed in an embodiment of the present invention;

[0089] Figure 5 This is a schematic diagram of the structure of another CANoe-based domain controller functional testing device disclosed in an embodiment of the present invention;

[0090] Figure 6 This is a schematic diagram of a CANoe-based domain controller functional testing hardware configuration circuit disclosed in an embodiment of the present invention. Detailed Implementation

[0091] To enable those skilled in the art to better understand the present invention, 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.

[0092] The terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or end that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or ends.

[0093] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0094] This invention discloses a CANoe-based domain controller functional testing method and apparatus. It can adjust the target test voltage output by the low-voltage programmable power supply to the domain controller and CANoe device according to a preset functional testing strategy. Based on the adjusted target test voltage, it determines the communication message interaction results between the domain controller and the CANoe device, thereby determining the corresponding functional test results of the domain controller. This improves the accuracy of domain controller functional testing and the accuracy of determining the real-time functional operating status of the domain controller. This enhances the efficiency and accuracy of determining whether the domain controller is operating normally, and also improves the efficiency of developing other functions of the domain controller. Detailed descriptions follow.

[0095] Example 1

[0096] Please see Figure 1 , Figure 1 This is a flowchart illustrating a CANoe-based domain controller functional testing method disclosed in an embodiment of the present invention. Wherein, Figure 1 The described CANoe-based domain controller functional testing method can be applied to domain controller functional testing systems, as well as to functional testing benches or systems for corresponding domain controller application scenarios. This invention does not limit its application. Figure 1 As shown, this CANoe-based domain controller functional testing method may include the following operations:

[0097] 101. According to the preset functional test strategy, control the low-voltage programmable power supply to output the corresponding target test voltage to the domain controller and CANoe device, so as to power the domain controller and CANoe device through the target test voltage. The preset functional test strategy is used to adjust the voltage value of the target test voltage.

[0098] In this embodiment of the invention, the target test voltage serves not only to power the domain controller and CANoe device, but also to adjust the target test voltage according to the aforementioned preset functional test strategy in a specified functional test scenario, and to determine the communication message interaction results between the domain controller and the CANoe device based on the adjusted target test voltage. It should be noted that all obtained communication message interaction results are not limited to those obtained by adjusting the target test voltage. For example, when the communication message interaction results include the duration of the first frame transmission, the results can still be obtained without adjusting the target test voltage.

[0099] CANoe (CAN open environment) refers to a bus development environment, including CANoe software and CANoe devices.

[0100] A domain controller is used to represent the integration of separate ECUs (Electronic Control Units) with the same function or similar application scenarios into a more powerful processor hardware platform. Generally speaking, a domain controller includes a domain processor, operating system, application software, and upper-level algorithms.

[0101] In this embodiment of the invention, the executing entity can be a mobile terminal, including but not limited to PC, mobile phone, tablet computer, vehicle terminal equipment, intelligent connected device, etc.

[0102] In embodiments of the present invention, such as Figure 6 As shown, optionally, the first terminal of the mobile terminal is electrically connected to the first terminal of the low-voltage programmable power supply, the second terminal of the low-voltage programmable power supply is electrically connected to the first terminal of the domain controller and the first terminal of the CANoe device, the second terminal of the domain controller is electrically connected to the second terminal of the CANoe device, and the third terminal of the CANoe device is electrically connected to the second terminal of the mobile terminal.

[0103] The mobile terminal is used to control a low-voltage programmable power supply to output a corresponding target test voltage to the domain controller and CANoe devices via the CAPL function in the CANoe software and the RS232 wiring harness. This target test voltage powers the domain controller and CANoe devices through their I / O ports. Furthermore, according to a preset functional test strategy, the mobile terminal adjusts the target test voltage output to the domain controller and CANoe devices via the CAPL function in the CANoe software and the RS232 wiring harness to determine the communication message interaction results between the domain controller and the CANoe devices. These communication message interaction results are fed back to the mobile terminal by the CANoe devices via the USB wiring harness.

[0104] The domain controller is used to send a second message to the CANoe device via the CANL and CANH ports.

[0105] The CANoe device is used to send the first message to the domain controller via the CANL and CANH ports.

[0106] 102. After the low-voltage programmable power supply provides the target test voltage to the domain controller and CANoe device, determine the communication message exchange results between the domain controller and the CANoe device.

[0107] In this embodiment of the invention, the communication message interaction result may include the duration of the first frame message transmission, and further may include the communication stop voltage and the communication recovery voltage.

[0108] In this embodiment of the invention, as an optional implementation, determining the communication message interaction results between the domain controller and the CANoe device may include the following operations:

[0109] The CANoe device is controlled to send a first message to the domain controller, which triggers the domain controller to continuously send a second message to the CANoe device.

[0110] The communication message interaction result between the CANoe device and the domain controller is determined based on the time interval between the sending time of the first message and the sending time of the first second message.

[0111] The communication message interaction result includes at least the duration of the first frame message transmission, which is equal to the interval between the transmission time of the first message and the transmission time of the first second message.

[0112] In this optional embodiment, specifically, the CAPL function RS232send() in the CANoe software can be used to control the low-voltage programmable power supply to output a voltage of approximately 13V (with an error range of ±0.5V) to the domain controller. This domain controller includes, but is not limited to, one of the following: powertrain domain controller, chassis domain controller, intelligent cockpit domain controller, or autonomous driving domain controller. Specifically, it can include domain controllers such as BMS (Battery Management System), LMU (Location and HD-MAP Unit), and DMS (DriverMonitor System). The CANoe device is then started, and real-time message monitoring is performed through the Trace window. The CANoe device is controlled to simulate sending a wake-up message 453 to the domain controller until the first frame message 372 sent by the domain controller is detected on the Trace. The time of sending the first frame message 372 is then subtracted from the time of the first send of the wake-up message 453, i.e., the duration of the first frame message transmission.

[0113] In this optional embodiment, the first message is used to represent a message sent by the CANoe device to the domain controller, and the second message is used to represent a message sent by the domain controller to the CANoe device. The number of the first message and the number of the second message are greater than or equal to 1, and the types of the first message and the second message are greater than or equal to 1. For example, the first message is 453, and the second message is 372, 373, or 374.

[0114] In this optional embodiment, optionally, while the domain controller is continuously sending the second message to the CANoe device, the CANoe device is also periodically / non-periodically sending the first message to the domain controller.

[0115] As can be seen, implementing this optional embodiment can send a first message to the domain controller via the CANoe device, triggering the domain controller to continuously send a second message to the CANoe device, thereby determining the duration of the first frame message transmission between the CANoe device and the domain controller. This can improve the accuracy of determining the domain controller's communication efficiency, thereby improving the accuracy of the domain controller's functional testing. It is also beneficial to improve the accuracy of determining the real-time functional operating status of the domain controller, as well as the efficiency and accuracy of determining whether the domain controller is operating normally. In turn, it is beneficial to improve the development efficiency of other functions of the domain controller in the future.

[0116] In this optional embodiment, as an optional implementation, controlling the low-voltage programmable power supply to output the corresponding target test voltage to the domain controller and CANoe device according to the preset functional test strategy may include the following operations:

[0117] According to the preset functional test strategy, the low-voltage programmable power supply is controlled to output a target test voltage of the first voltage value to the domain controller and CANoe device.

[0118] Based on the preset voltage decrease step size and the first voltage value, the low-voltage programmable power supply is controlled to output a target test voltage with a second voltage value that matches the preset voltage decrease step size to the domain controller and CANoe device. The second voltage value is less than the first voltage value.

[0119] In addition, determining the communication message exchange results between the CANoe device and the domain controller also includes:

[0120] Determine whether the domain controller has stopped sending the second message to the CANoe device. When it is determined that the domain controller has stopped sending the second message to the CANoe device, determine the first target time when the domain controller stops sending the second message to the CANoe device, and determine the third voltage value of the target test voltage corresponding to the first target time. Also, determine the communication message interaction result between the CANoe device and the domain controller based on the third voltage value.

[0121] The communication message exchange result also includes the communication stop voltage value, which is equal to the third voltage value.

[0122] In this optional embodiment, specifically, the low-voltage programmable power supply can be controlled to output a 9V voltage to the domain controller via the CAPL function RS232send() in the CANoe software, and gradually decrease the voltage in 0.1V steps until no second message is sent in the Trace window. The corresponding voltage value at this time is the communication stop voltage.

[0123] As can be seen, implementing this optional embodiment can adjust the voltage value of the target test voltage according to the preset functional test strategy to determine the first target time when the domain controller stops sending the second message to the CANoe device, and thus determine the communication stop voltage of the domain controller. This can improve the accuracy of determining the domain controller's communication voltage operating range, thereby improving the accuracy of the domain controller's functional test. It is also beneficial to improve the accuracy of determining the real-time functional operating status of the domain controller, and to improve the efficiency and accuracy of determining whether the domain controller is operating normally. This, in turn, is beneficial to improving the development efficiency of other functions of the domain controller in the future.

[0124] In this optional embodiment, as another optional implementation, after determining the communication message interaction result between the CANoe device and the domain controller based on the third voltage value, the method may further include the following operations:

[0125] After a preset time, based on the preset voltage increment step and the third voltage value, the low-voltage programmable power supply is controlled to output a target test voltage with a fourth voltage value that matches the preset voltage increment step and is greater than the third voltage value to the domain controller and CANoe device.

[0126] Determine whether the domain controller resends the second message to the CANoe device. When it is determined that the domain controller resends the second message to the CANoe device, determine the second target time when the domain controller resends the second message to the CANoe device, determine the fifth voltage value of the target test voltage corresponding to the second target time, and determine the communication message interaction result between the CANoe device and the domain controller based on the fifth voltage value.

[0127] The communication message interaction result also includes the communication recovery voltage value, which is equal to the fifth voltage value.

[0128] In this optional embodiment, the preset voltage increment step can optionally be 0.1V.

[0129] As can be seen, implementing this optional embodiment can further adjust the target test voltage value based on the determined domain controller communication stop voltage, in order to determine the second target time when the domain controller resends the second message to the CANoe device, and thus determine the domain controller's communication recovery voltage. This can further improve the accuracy of determining the domain controller's communication voltage operating range, thereby improving the accuracy of the domain controller's functional testing, which is beneficial to improving the accuracy of determining the domain controller's real-time functional operating status, and also beneficial to improving the efficiency and accuracy of determining whether the domain controller is operating normally. This, in turn, is beneficial to improving the development efficiency of subsequent domain controller functions.

[0130] 103. Based on the communication message exchange results, determine the functional test results corresponding to the domain controller.

[0131] As can be seen, implementing the embodiments of the present invention can adjust the target test voltage output by the low-voltage programmable power supply to the domain controller and CANoe device according to the preset functional test strategy, and determine the communication message interaction results between the domain controller and the CANoe device based on the adjusted target test voltage, thereby determining the corresponding functional test results of the domain controller. This can improve the accuracy of the functional test of the domain controller and the accuracy of determining the real-time functional operating status of the domain controller. In this way, it can improve the efficiency and accuracy of determining whether the domain controller is operating normally, and is also conducive to improving the development efficiency of other functions of the domain controller in the future.

[0132] Example 2

[0133] Please see Figure 2 , Figure 2 This is a flowchart illustrating a CANoe-based domain controller functional testing method disclosed in an embodiment of the present invention. Wherein, Figure 2 The described CANoe-based domain controller functional testing method can be applied to domain controller functional testing systems, as well as to functional testing benches or systems for corresponding domain controller application scenarios. This invention does not limit its application. Figure 2 As shown, this CANoe-based domain controller functional testing method may include the following operations:

[0134] 201. According to the preset functional test strategy, control the low-voltage programmable power supply to output the corresponding target test voltage to the domain controller and CANoe device, so as to power the domain controller and CANoe device through the target test voltage. The preset functional test strategy is used to adjust the voltage value of the target test voltage.

[0135] 202. After the low-voltage programmable power supply provides the target test voltage to the domain controller and CANoe device, determine the communication message exchange results between the domain controller and the CANoe device.

[0136] For other descriptions of steps 201 and 202 in this embodiment of the invention, please refer to the detailed description in Embodiment 1. These descriptions will not be repeated here.

[0137] 203. Determine whether there are target interaction results in the communication message interaction results that do not meet the preset functional conditions.

[0138] In this embodiment of the invention, as an optional implementation, the above-mentioned determination of whether there is a target interaction result in the communication message interaction result that does not meet the preset functional conditions may include the following operations:

[0139] Determine whether the transmission duration of the first frame message meets the preset duration condition. If it is determined that the transmission duration of the first frame message does not meet the preset duration condition, then it is determined that the target interaction result exists in the communication message interaction result.

[0140] If it is determined that the duration of the first frame message meets the preset duration condition, then it is determined that there is no target interaction result in the communication message interaction result.

[0141] Optionally, determining whether the transmission duration of the first frame meets the preset duration condition may include:

[0142] Determine whether the target duration value corresponding to the first frame message transmission duration exceeds the range of the first frame message transmission duration. If the target duration value exceeds the range of the first frame message transmission duration, it is determined that the first frame message transmission duration does not meet the preset duration condition. If the target duration value does not exceed the range of the first frame message transmission duration, it is determined that the first frame message transmission duration meets the preset duration condition.

[0143] Furthermore, when it is determined that the target duration value exceeds the range of the first frame message transmission duration, the type of the target duration value exceeding the range of the first frame message transmission duration can be determined. This type is used to indicate that the target duration value exceeds the upper limit and / or lower limit of the range of the first frame message transmission duration.

[0144] As can be seen, implementing this optional embodiment can determine whether there are target interaction results that do not meet the preset functional conditions in the communication message interaction results after obtaining the communication message interaction results by judging whether the sending duration of the first frame message meets the preset duration condition. This facilitates the determination of the cause of the target interaction result in subsequent testing, and thus proposes functional testing optimization schemes and functional debugging optimization schemes for the domain controller. This is beneficial to improving the accuracy of functional testing of the domain controller and the accuracy of determining the real-time functional operating status of the domain controller.

[0145] Furthermore, the aforementioned functional anomaly factors that determine whether the target interaction result does not meet the preset functional conditions may include the following operations:

[0146] To determine whether the communication message exchange link meets the abnormal communication connection conditions, the communication message exchange link includes software configuration links and hardware configuration links, such as... Figure 6 As shown, the hardware configuration link includes CANoe devices, low-voltage programmable power supplies, and domain controllers.

[0147] When it is determined that the communication message interaction link meets the abnormal communication connection conditions, the first verification information of the target connection node corresponding to each target object in the communication message interaction link and the target connection node corresponding to each target object are set, and the control CANoe device is re-triggered to send the first message to the domain controller, so as to trigger the domain controller to continuously send the second message to the CANoe device, and obtain at least one second verification information.

[0148] Determine whether there is at least one target verification message among all the second verification messages. If it is determined that there is at least one target verification message among all the second verification messages, then the target object corresponding to each target verification message is identified as a communication anomaly object. The target verification message does not match any of the first verification messages.

[0149] All communication anomalies are identified as functional anomalies where the target interaction result does not meet the preset functional conditions.

[0150] As can be seen, implementing this optional embodiment can determine the functional anomaly factor that the target interaction result does not meet the preset functional conditions by judging whether the communication message interaction link meets the abnormal communication connection conditions. This can improve the accuracy of determining the functional anomaly factor, thereby determining the cause of the target interaction result, and proposing functional test optimization schemes and functional debugging optimization schemes for the domain controller. This is beneficial to improving the accuracy of functional test of the domain controller and the accuracy of determining the real-time functional operation status of the domain controller, so that the domain controller can run the corresponding functions more completely and stably.

[0151] In this optional embodiment, the above-mentioned setting of the target connection node corresponding to each target object in the communication message interaction link and the first verification information of the target connection node corresponding to each target object may include the following operations:

[0152] An electrical detection device is installed at the connection node where each target object is electrically connected to the others in the hardware configuration link.

[0153] The first detection information is determined based on the real-time detection information from the electrical detection device.

[0154] The electrical detection device includes, but is not limited to, sensitive ammeters and voltmeters.

[0155] Furthermore, re-triggering the CANoe device to send the first message to the domain controller, thereby triggering the domain controller to continuously send the second message to the CANoe device, and obtaining at least one second authentication message may include the following operations:

[0156] The CANoe device is retried to send a first message to the domain controller, which in turn triggers the domain controller to continuously send a second message to the CANoe device in order to obtain the second detection information from the electrical detection device.

[0157] In this optional embodiment, optionally, setting the target connection node corresponding to each target object in the communication message interaction link and the first verification information of the target connection node corresponding to each target object may further include:

[0158] Set output log information at each target object in the software configuration chain.

[0159] The target objects mentioned above include, but are not limited to, classes, functions, containers, etc.

[0160] As can be seen, this optional embodiment can provide specific methods for judging whether the communication message interaction link meets the abnormal communication connection conditions from both hardware configuration link and software configuration link aspects. This can improve the accuracy of determining whether the communication message interaction link meets the abnormal communication connection conditions, thereby improving the accuracy of identifying communication abnormal objects, and thus improving the accuracy of identifying functional abnormal factors. This is beneficial to improving the accuracy of functional testing of the domain controller and the accuracy of determining the real-time functional operating status of the domain controller.

[0161] 204. When it is determined that the target interaction result exists in the communication message interaction result, the functional abnormality factor that the target interaction result does not meet the preset functional conditions is determined.

[0162] 205. Based on the functional anomaly factors, determine the functional optimization reference strategy for the domain controller.

[0163] 206. Based on the functional anomaly factor and functional optimization reference strategy, determine the functional test results corresponding to the domain controller.

[0164] 207. When it is determined that the target interaction result does not exist in the communication message interaction result, the communication message interaction result is determined as the functional test result corresponding to the domain controller.

[0165] As can be seen, the real-time embodiments of the present invention can, after obtaining the communication message interaction results, further determine whether there are target interaction results in the communication message interaction results that do not meet the preset functional conditions, thereby determining whether there are target interaction results that do not meet the preset functional conditions in the communication message interaction results. This facilitates the determination of the cause of the occurrence of the target interaction results in the subsequent testing process, and proposes functional testing optimization schemes and functional debugging optimization schemes for the domain controller. This is beneficial to improving the accuracy of functional testing of the domain controller and improving the accuracy of determining the real-time functional operating status of the domain controller.

[0166] In this embodiment of the invention, as an optional implementation, after determining the communication message interaction results between the domain controller and the CANoe device, the method may further include the following operations:

[0167] The communication voltage range is determined based on the communication stop voltage and the communication resume voltage.

[0168] Determine whether the communication voltage range matches the preset voltage range. If the communication voltage range matches the preset voltage range, then the communication message interaction result is determined as the functional test result of the domain controller.

[0169] When it is determined that the communication voltage range does not match the preset voltage range, the communication voltage configuration function is determined based on the communication voltage range, and it is determined whether the communication voltage configuration function matches the preset voltage configuration function to obtain the judgment result. Based on the judgment result, the communication voltage configuration function and the preset voltage configuration function, the functional optimization reference strategy of the domain controller is determined, and the corresponding functional test result of the domain controller is determined based on the functional optimization reference strategy.

[0170] As can be seen, implementing this optional embodiment can determine the communication voltage range by using the communication stop voltage and communication recovery voltage, and then determine the corresponding functional test results of the domain controller by using the communication voltage range. Furthermore, when the communication voltage range does not match the preset voltage range, the functional optimization reference strategy of the domain controller can be determined by the communication voltage range, which is beneficial to improving the accuracy of the functional test of the domain controller and improving the accuracy of determining the real-time functional operating status of the domain controller.

[0171] In this optional embodiment, as an optional implementation, when it is determined that the communication voltage range does not match the preset voltage range, the method may further include the following operations:

[0172] Identify the anomaly type where the communication stop voltage range does not match the preset voltage range. This anomaly type indicates that the upper limit of the communication stop voltage range does not match the upper limit of the preset voltage range and / or the lower limit of the communication stop voltage range does not match the lower limit of the preset voltage range.

[0173] When the upper limit of the communication stop voltage range is determined to be inconsistent with the upper limit of the preset voltage range, it is determined whether the target voltage value corresponding to the upper limit of the communication stop voltage range exceeds the safe operating threshold. If the target voltage value exceeds the safe operating threshold, the domain controller protection mechanism is triggered. If the target voltage value does not exceed the safe operating threshold, the operation of determining the communication voltage configuration function based on the communication voltage range is triggered.

[0174] The domain controller protection mechanisms include, but are not limited to, communication isolation, power isolation, SoC frequency reduction, and physical explosion protection.

[0175] Specifically, triggering domain controller protection mechanisms may include:

[0176] Generate a first isolation control parameter to disconnect all external interfaces of the domain controller; or generate a second isolation control parameter to put all powered modules of the domain controller into standby mode.

[0177] As can be seen, this optional real-time embodiment can further determine whether the target voltage value corresponding to the upper limit of the communication stop voltage range exceeds the safe operating threshold when the upper limit of the communication stop voltage range is determined to be inconsistent with the upper limit of the preset voltage range. When the target voltage value exceeds the safe operating threshold, the domain controller protection mechanism is triggered to prevent abnormal communication voltage of the domain controller, which could cause varying degrees of damage to the domain controller or even endanger the life and health of test personnel. This can further improve the test safety and operational stability of the domain controller, based on improving the accuracy of functional testing and the accuracy of determining the real-time functional operating status of the domain controller.

[0178] Example 3

[0179] Please see Figure 3 , Figure 3 This is a schematic diagram of the structure of a domain controller functional testing device based on CANoe, as disclosed in an embodiment of the present invention. Figure 3 The CANoe-based domain controller functional testing device described herein can be applied to domain controller functional testing systems, as well as to functional testing benches or systems for corresponding domain controller application scenarios. This invention does not limit its application. Figure 3 As shown, the CANoe-based domain controller functional testing device may include:

[0180] The control module 301 is used to control the low-voltage programmable power supply to output the corresponding target test voltage to the domain controller and CANoe device according to the preset functional test strategy, so as to power the domain controller and CANoe device through the target test voltage. The preset functional test strategy is used to adjust the voltage value of the target test voltage.

[0181] The determination module 302 is used to determine the communication message interaction results between the domain controller and the CANoe device after the low-voltage programmable power supply provides the target test voltage to the domain controller and the CANoe device.

[0182] The determination module 302 is also used to determine the functional test results corresponding to the domain controller based on the communication message interaction results.

[0183] As can be seen, implementing the embodiments of the present invention can adjust the target test voltage output by the low-voltage programmable power supply to the domain controller and CANoe device according to the preset functional test strategy, and determine the communication message interaction results between the domain controller and the CANoe device based on the adjusted target test voltage, thereby determining the corresponding functional test results of the domain controller. This can improve the accuracy of the functional test of the domain controller and the accuracy of determining the real-time functional operating status of the domain controller. In this way, it can improve the efficiency and accuracy of determining whether the domain controller is operating normally, and is also conducive to improving the development efficiency of other functions of the domain controller in the future.

[0184] In this embodiment of the invention, as an optional implementation, the specific method by which the determining module 301 determines the communication message interaction results between the domain controller and the CANoe device includes:

[0185] The CANoe device is controlled to send a first message to the domain controller, which triggers the domain controller to continuously send a second message to the CANoe device.

[0186] The communication message interaction result between the CANoe device and the domain controller is determined based on the time interval between the sending time of the first message and the sending time of the first second message.

[0187] The communication message interaction result includes at least the duration of the first frame message transmission, which is equal to the interval between the transmission time of the first message and the transmission time of the first second message.

[0188] As can be seen, implementing this optional embodiment can send a first message to the domain controller via the CANoe device, triggering the domain controller to continuously send a second message to the CANoe device, thereby determining the duration of the first frame message transmission between the CANoe device and the domain controller. This can improve the accuracy of determining the domain controller's communication efficiency, thereby improving the accuracy of the domain controller's functional testing. It is also beneficial to improve the accuracy of determining the real-time functional operating status of the domain controller, as well as the efficiency and accuracy of determining whether the domain controller is operating normally. In turn, it is beneficial to improve the development efficiency of other functions of the domain controller in the future.

[0189] In this optional embodiment, as an optional implementation method, the control module 301 controls the low-voltage programmable power supply to output the corresponding target test voltage to the domain controller and CANoe device according to the preset functional test strategy in the following specific ways:

[0190] According to the preset functional test strategy, the low-voltage programmable power supply is controlled to output a target test voltage of the first voltage value to the domain controller and CANoe device.

[0191] Based on the preset voltage decrease step size and the first voltage value, the low-voltage programmable power supply is controlled to output a target test voltage with a second voltage value that matches the preset voltage decrease step size to the domain controller and CANoe device. The second voltage value is less than the first voltage value.

[0192] Furthermore, the specific method by which module 302 determines the communication message interaction results between the CANoe device and the domain controller also includes:

[0193] Determine whether the domain controller has stopped sending the second message to the CANoe device. When it is determined that the domain controller has stopped sending the second message to the CANoe device, determine the first target time when the domain controller stops sending the second message to the CANoe device, determine the third voltage value of the target test voltage corresponding to the first target time, and determine the communication message interaction result between the CANoe device and the domain controller based on the third voltage value.

[0194] The communication message exchange result also includes the communication stop voltage value, which is equal to the third voltage value.

[0195] As can be seen, implementing this optional embodiment can adjust the voltage value of the target test voltage according to the preset functional test strategy to determine the first target time when the domain controller stops sending the second message to the CANoe device, and thus determine the communication stop voltage of the domain controller. This can improve the accuracy of determining the domain controller's communication voltage operating range, thereby improving the accuracy of the domain controller's functional test. It is also beneficial to improve the accuracy of determining the real-time functional operating status of the domain controller, and to improve the efficiency and accuracy of determining whether the domain controller is operating normally. This, in turn, is beneficial to improving the development efficiency of other functions of the domain controller in the future.

[0196] In this optional embodiment, as another optional implementation, the control module 301 is further configured to, after a preset time period following the determination module 302 determining the communication message interaction result between the CANoe device and the domain controller based on the third voltage value, control the low-voltage programmable power supply to output a target test voltage of a fourth voltage value that matches the preset voltage increment step size to the domain controller and the CANoe device, wherein the fourth voltage value is greater than the third voltage value.

[0197] And, such as Figure 4 As shown, the device may further include:

[0198] The judgment module 303 is used to determine whether the domain controller should resend the second message to the CANoe device.

[0199] The determining module 302 is further configured to, when the judging module 303 determines that the domain controller resends the second message to the CANoe device, determine the second target time when the domain controller resends the second message to the CANoe device, determine the fifth voltage value of the target test voltage corresponding to the second target time, and determine the communication message interaction result between the CANoe device and the domain controller based on the fifth voltage value.

[0200] The communication message interaction result also includes the communication recovery voltage value, which is equal to the fifth voltage value.

[0201] As can be seen, implementing this optional embodiment can further adjust the target test voltage value based on the determined domain controller communication stop voltage, in order to determine the second target time when the domain controller resends the second message to the CANoe device, and thus determine the domain controller's communication recovery voltage. This can further improve the accuracy of determining the domain controller's communication voltage operating range, thereby improving the accuracy of the domain controller's functional testing, which is beneficial to improving the accuracy of determining the domain controller's real-time functional operating status, and also beneficial to improving the efficiency and accuracy of determining whether the domain controller is operating normally. This, in turn, is beneficial to improving the development efficiency of subsequent domain controller functions.

[0202] In this embodiment of the invention, as another optional implementation, the specific method by which the determining module 302 determines the functional test result corresponding to the domain controller based on the communication message interaction result includes:

[0203] Determine whether there is a target interaction result in the communication message interaction result that does not meet the preset functional conditions. If it is determined that there is a target interaction result in the communication message interaction result, then determine the functional abnormality factor that the target interaction result does not meet the preset functional conditions.

[0204] Based on the functional anomaly factors, determine the functional optimization reference strategy for the domain controller.

[0205] Based on the functional anomaly factor and functional optimization reference strategy, determine the functional test results corresponding to the domain controller.

[0206] If it is determined that the target interaction result is not present in the communication message interaction result, then the communication message interaction result is determined as the functional test result corresponding to the domain controller.

[0207] As can be seen, the real-time embodiments of the present invention can, after obtaining the communication message interaction results, further determine whether there are target interaction results in the communication message interaction results that do not meet the preset functional conditions, thereby determining whether there are target interaction results that do not meet the preset functional conditions in the communication message interaction results. This facilitates the determination of the cause of the occurrence of the target interaction results in the subsequent testing process, and proposes functional testing optimization schemes and functional debugging optimization schemes for the domain controller. This is beneficial to improving the accuracy of functional testing of the domain controller and improving the accuracy of determining the real-time functional operating status of the domain controller.

[0208] In this optional embodiment, as an optional implementation method, the specific way in which the determining module 302 determines whether there is a target interaction result in the communication message interaction result that does not meet the preset functional conditions includes:

[0209] Determine whether the transmission duration of the first frame message meets the preset duration condition. If it is determined that the transmission duration of the first frame message does not meet the preset duration condition, then it is determined that the target interaction result exists in the communication message interaction result.

[0210] If it is determined that the duration of the first frame message meets the preset duration condition, then it is determined that there is no target interaction result in the communication message interaction result.

[0211] Furthermore, the specific methods by which module 302 determines the functional anomaly factors that do not meet the preset functional conditions for the target interaction result include:

[0212] Determine whether the communication message exchange link meets the abnormal communication connection conditions. The communication message exchange link includes the software configuration link and the hardware configuration link. The hardware configuration link includes the CANoe device, the low-voltage programmable power supply, and the domain controller.

[0213] When it is determined that the communication message interaction link meets the abnormal communication connection conditions, the first verification information of the target connection node corresponding to each target object in the communication message interaction link and the target connection node corresponding to each target object are set, and the control CANoe device is re-triggered to send the first message to the domain controller, so as to trigger the domain controller to continuously send the second message to the CANoe device and obtain at least one second verification information.

[0214] Determine whether at least one target verification message exists among all the second verification messages. If at least one target verification message exists among all the second verification messages, then the target object corresponding to each target verification message is identified as a communication anomaly object. The target verification message does not match any of the first verification messages.

[0215] All communication anomalies are identified as functional anomalies where the target interaction result does not meet the preset functional conditions.

[0216] As can be seen, implementing this optional embodiment can determine the functional anomaly factor that the target interaction result does not meet the preset functional conditions by judging whether the communication message interaction link meets the abnormal communication connection conditions. This can improve the accuracy of determining the functional anomaly factor, thereby determining the cause of the target interaction result, and proposing functional test optimization schemes and functional debugging optimization schemes for the domain controller. This is beneficial to improving the accuracy of functional test of the domain controller and the accuracy of determining the real-time functional operation status of the domain controller, so that the domain controller can run the corresponding functions more completely and stably.

[0217] In this embodiment of the invention, as another optional implementation, the specific method by which the determining module 302 determines the functional test result corresponding to the domain controller based on the communication message interaction result includes:

[0218] The communication voltage range is determined based on the communication stop voltage and the communication resume voltage.

[0219] Determine whether the communication voltage range matches the preset voltage range. If the communication voltage range matches the preset voltage range, then the communication message interaction result is determined as the functional test result of the domain controller.

[0220] When it is determined that the communication voltage range does not match the preset voltage range, the communication voltage configuration function is determined based on the communication voltage range, and it is determined whether the communication voltage configuration function matches the preset voltage configuration function to obtain the judgment result. Based on the judgment result, the communication voltage configuration function and the preset voltage configuration function, the functional optimization reference strategy of the domain controller is determined, and the corresponding functional test result of the domain controller is determined based on the functional optimization reference strategy.

[0221] As can be seen, implementing this optional embodiment can determine the communication voltage range by using the communication stop voltage and communication recovery voltage, and then determine the corresponding functional test results of the domain controller by using the communication voltage range. Furthermore, when the communication voltage range does not match the preset voltage range, the functional optimization reference strategy of the domain controller can be determined by the communication voltage range, which is beneficial to improving the accuracy of the functional test of the domain controller and improving the accuracy of determining the real-time functional operating status of the domain controller.

[0222] Example 4

[0223] Please see Figure 5 , Figure 5 This is a schematic diagram of another CANoe-based domain controller functional testing device disclosed in an embodiment of the present invention. Figure 5 As shown, the CANoe-based domain controller functional testing device may include:

[0224] Memory 401 that stores executable program code.

[0225] Processor 402 coupled to memory 401.

[0226] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the CANoe-based domain controller function testing method described in Embodiment 1 or Embodiment 2 of the present invention.

[0227] Example 5

[0228] This invention discloses a computer storage medium storing computer instructions, which, when invoked, are used to execute the steps in the CANoe-based domain controller functional testing method described in Embodiment 1 or Embodiment 2 of this invention.

[0229] Example 6

[0230] This invention discloses a computer program product, which includes a non-transitory computer read storage medium storing a computer program, and the computer program is operable to cause a computer to perform the steps in the CANoe-based domain controller functional testing method described in Embodiment 1 or Embodiment 2.

[0231] The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0232] Through the detailed description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0233] Finally, it should be noted that the CANoe-based domain controller function testing method and apparatus disclosed in the embodiments of the present invention are merely preferred embodiments of the present invention and are only used to illustrate the technical solutions of the present invention, not to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A CANoe-based domain controller function test method, characterized in that, The method comprises: According to the preset function test strategy, the low-voltage programmable power supply outputs the corresponding target test voltage to the domain controller and the CANoe device to supply power to the domain controller and the CANoe device through the target test voltage, and the preset function test strategy is used to adjust the voltage value of the target test voltage; After the low-voltage programmable power supply provides the target test voltage to the domain controller and the CANoe device, the communication message interaction result between the domain controller and the CANoe device is determined, wherein the CANoe device sends a first message to the domain controller to trigger the domain controller to continuously send a second message to the CANoe device; the interval time between the sending time of the first message and the sending time of the first second message is determined according to the interval time between the sending time of the first message and the sending time of the first second message; wherein the communication message interaction result at least includes the first message sending time, and the first message sending time is equal to the interval time between the sending time of the first message and the sending time of the first second message; According to the communication message interaction result, the function test result corresponding to the domain controller is determined.

2. The CANoe-based domain controller function test method according to claim 1, characterized in that, According to the preset function test strategy, the low-voltage programmable power supply outputs the corresponding target test voltage to the domain controller and the CANoe device, comprising: According to the preset function test strategy, the low-voltage programmable power supply outputs the target test voltage with the first voltage value to the domain controller and the CANoe device; According to the preset voltage decrement step and the first voltage value, the low-voltage programmable power supply outputs the target test voltage with the second voltage value matched with the preset voltage decrement step to the domain controller and the CANoe device, and the second voltage value is less than the first voltage value; And, the determination of the communication message interaction result between the CANoe device and the domain controller further comprises: Determine whether the domain controller stops sending the second message to the CANoe device, when it is determined that the domain controller stops sending the second message to the CANoe device, determine the first target time when the domain controller stops sending the second message to the CANoe device, and determine the third voltage value of the target test voltage corresponding to the first target time, and determine the communication message interaction result between the CANoe device and the domain controller according to the third voltage value; Wherein, the communication message interaction result further comprises a communication stop voltage value, and the voltage value of the communication stop voltage is equal to the third voltage value.

3. The CANoe-based domain controller function test method according to claim 2, characterized in that, After determining the communication message interaction result between the CANoe device and the domain controller according to the third voltage value, the method further comprises: after a preset time length, according to a preset voltage increment step and the third voltage value, the low-voltage programmable power supply is controlled to output the target test voltage of a fourth voltage value matched with the preset voltage increment step to the domain controller and the CANoe device, the fourth voltage value being greater than the third voltage value; determining whether the domain controller re-sends the second message to the CANoe device, when it is determined that the domain controller re-sends the second message to the CANoe device, determining a second target time at which the domain controller re-sends the second message to the CANoe device, and determining a fifth voltage value corresponding to the target test voltage at the second target time, and determining the communication message interaction result between the CANoe device and the domain controller according to the fifth voltage value; wherein the communication message interaction result further includes a communication recovery voltage value, the communication recovery voltage value being equal to the fifth voltage value.

4. The CANoe-based domain controller function test method according to any one of claims 1-3, characterized in that, The determining of the function test result corresponding to the domain controller according to the communication message interaction result includes: determining whether there is a target interaction result that does not meet a preset function condition in the communication message interaction result, when it is determined that there is the target interaction result in the communication message interaction result, determining a function abnormal factor that the target interaction result does not meet the preset function condition; determining a function optimization reference strategy of the domain controller according to the function abnormal factor; determining the function test result corresponding to the domain controller according to the function abnormal factor and the function optimization reference strategy; when it is determined that there is no target interaction result in the communication message interaction result, determining the communication message interaction result as the function test result corresponding to the domain controller.

5. The CANoe-based domain controller function test method according to claim 4, characterized in that, The determining of whether there is a target interaction result that does not meet a preset function condition in the communication message interaction result includes: determining whether the first message sending time length meets a preset time length condition, when it is determined that the first message sending time length does not meet the preset time length condition, determining that there is a target interaction result in the communication message interaction result; when it is determined that the first message sending time length meets the preset time length condition, determining that there is no target interaction result in the communication message interaction result; and the determining of the function abnormal factor that the target interaction result does not meet the preset function condition includes: determining whether a communication message interaction link meets an abnormal communication connection condition, the communication message interaction link including a software configuration link and a hardware configuration link, the hardware configuration link including the CANoe device, the low-voltage programmable power supply and the domain controller; When it is judged that the communication message interaction link meets the abnormal communication connection condition, the target connection node corresponding to each target object in the communication message interaction link and the first verification information of each target connection node corresponding to the target object are set, and the operation of triggering the CANoe device to send a first message to the domain controller to trigger the domain controller to continuously send a second message to the CANoe device is retriggered, and at least one second verification information is obtained; It is judged whether there is at least one target verification information in all the second verification information, and when it is judged that there is at least one target verification information in all the second verification information, each target object corresponding to the target verification information is determined as a communication abnormal object; the target verification information does not match all the first verification information; All the communication abnormal objects are determined as functional abnormal factors that do not meet the preset function condition of the target interaction result.

6. The CANoe-based domain controller function test method according to claim 3, characterized in that, The function test result corresponding to the domain controller is determined according to the communication message interaction result, including: The communication voltage interval is determined according to the communication stop voltage and the communication recovery voltage; It is judged whether the communication voltage interval matches the preset voltage interval, and when it is judged that the communication voltage interval matches the preset voltage interval, the communication message interaction result is determined as the function test result corresponding to the domain controller; When it is judged that the communication voltage interval does not match the preset voltage interval, the communication voltage configuration function is determined according to the communication voltage interval, it is judged whether the communication voltage configuration function matches the preset voltage configuration function, a judgment result is obtained, the function optimization reference strategy of the domain controller is determined according to the judgment result, the communication voltage configuration function and the preset voltage configuration function, and the function test result corresponding to the domain controller is determined according to the function optimization reference strategy.

7. A CANoe-based domain controller function testing device, characterized in that, The device includes: The control module is configured to control a low-voltage programmable power supply to output a target test voltage corresponding to a domain controller and a CANoe device according to a preset function test strategy, so as to supply power to the domain controller and the CANoe device through the target test voltage, and the preset function test strategy is used to adjust the voltage value of the target test voltage. The determining module is configured to determine a communication message interaction result between the domain controller and the CANoe device after the low-voltage programmable power supply provides the target test voltage to the domain controller and the CANoe device, wherein the CANoe device is controlled to send a first message to the domain controller to trigger the domain controller to continuously send a second message to the CANoe device; the communication message interaction result between the CANoe device and the domain controller is determined according to an interval time length between a sending time of the first message and a sending time of the first second message; and the communication message interaction result at least includes a first message sending time length, and the first message sending time length is equal to the interval time length between the sending time of the first message and the sending time of the first second message. The determining module is further configured to determine a function test result corresponding to the domain controller according to the communication message interaction result.

8. A CANoe-based domain controller function test device, characterized by The apparatus comprises: a memory storing executable program codes; a processor coupled with the memory; the processor invokes the executable program codes stored in the memory to execute the CANoe-based domain controller function test method according to any one of claims 1-6.

9. A computer storage medium, characterized in that The computer storage medium stores computer instructions, and the computer instructions are invoked to execute the CANoe-based domain controller function test method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Test method, device and equipment and storage medium

    CN112099473A