Domain controller network test system, method and device
By connecting the domain controller to the bus controller and Ethernet switch, rapid switching and signal forwarding are achieved, which solves the cumbersome problems of the testing process in the prior art, improves the testing efficiency and coverage, and reduces costs.
Patent Information
- Application Number
- CN202411041809.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-07-31
AI Technical Summary
When testing communication between multiple domain controllers, the process is complicated and requires frequent replacement of bus controllers, resulting in increased time and cost of device connection transformation, making it difficult to efficiently collect data and fault analysis.
By connecting the domain controller to the test to the bus controller and Ethernet switch, channel configuration and signal forwarding are realized, using multi-interface channel hardware and configuration instructions for rapid switching, reducing the device connection transformation process, and using the VLAN of Ethernet switches and Mirroring function for data isolation and forwarding.
It realizes quick connection and testing between multi-domain controllers, simplifies the fault testing process, improves test coverage and scalability, and reduces test costs.
Smart Images

Figure CN119094387A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of vehicle network testing, and in particular relates to a domain controller network testing system, method and device. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] With the development of intelligent vehicles, especially the rapid development of advanced assistance and autonomous driving technologies, the electronic control unit (ECU) of vehicles is becoming more and more important. A complete vehicle network system includes the collaborative work between multiple domain controllers to realize the data interaction processing of each control domain and complete the normal operation of various functions of the vehicle.
[0004] As the level of automobile intelligence increases, the number of on-board domain controllers is gradually increasing, and the communication network topology in the domain controllers has become very complex. The transmission and interaction of a large amount of data has increased the probability of ECU communication failure. In order to verify the reliability of communication between domain controllers and fault analysis, it is necessary to perform communication tests on on-board equipment. Physically cut off the connection between domain controllers and connect the bus controller in series, and then perform automobile data collection and communication fault analysis. This makes communication testing between numerous electronic control units relatively cumbersome. Summary of the invention
[0005] In order to more efficiently realize data collection and fault analysis of domain controllers, the present invention provides a domain controller network testing system, method and device. By connecting the domain controller to be tested to a bus controller and an Ethernet switch, channel configuration can be arbitrarily performed to meet various testing requirements, reducing the modification time and modification cost used in communication measurements of different devices.
[0006] To achieve the above-mentioned purpose, a first aspect of the present invention provides a multi-domain controller network testing system, comprising a plurality of vehicle-mounted Ethernet converters, Ethernet switches and a bus controller; each of the vehicle-mounted Ethernet converters is respectively connected to a domain controller to be tested, and each of the vehicle-mounted Ethernet converters is connected to the Ethernet switch; each domain controller to be tested is also respectively connected to the bus controller; the Ethernet switch and the bus controller are both connected to a host computer; the host computer is configured to: receive an on / off configuration for a channel between the Ethernet switch and at least one of the domain controllers; receive a test request and send a test signal to the bus controller; and obtain messages sent and received by a specified bus listening port or a mirror port to obtain a test result.
[0007] In some embodiments, the host computer is connected to a CANoe device via the bus controller.
[0008] In some embodiments, after the host computer sends a test signal to the bus controller, it also receives a transmission signal captured by the bus controller based on a monitoring port, and determines whether the sent test signal is consistent with the monitored transmission signal. If they are consistent, it is considered that the forwarding is correct.
[0009] In some embodiments, the host computer also sends a confirmation signal to the domain controller that establishes the channel connection. If a feedback signal is received, it is considered that the channel is successfully established.
[0010] In some embodiments, the test signal sent by the host computer to the bus controller is a fault test signal. Based on the set fault test set, the corresponding vehicle response signal set is determined, and the response signal of the mirror port corresponding to each channel is obtained based on the Ethernet switch to determine whether the vehicle response to the fault is correct.
[0011] A second aspect of the present invention provides a testing method based on the multi-domain controller network testing system, comprising:
[0012] Receiving an on / off configuration for a channel between the Ethernet switch and at least one of the domain controllers;
[0013] Receive test requirements and send test signals to the bus controller;
[0014] Get the messages sent and received by the specified bus listening port or mirror port to get the test results.
[0015] In some embodiments, after sending a test signal to the bus controller, the bus controller also receives a transmission signal captured by a monitoring port to determine whether the sent test signal is consistent with the monitored transmission signal. If they are consistent, it is considered that the forwarding is correct.
[0016] In some embodiments, the test signal sent to the bus controller is a fault test signal. Based on the set fault test set, the corresponding vehicle response signal set is determined, and the response signal of the mirror port corresponding to each channel is obtained based on the Ethernet switch to determine whether the vehicle response to the fault is correct.
[0017] A third aspect of the present invention provides a testing device based on the multi-domain controller network testing system, comprising:
[0018] A channel configuration module, configured to receive an on / off configuration for a channel between the Ethernet switch and at least one of the domain controllers;
[0019] A test requirement confirmation module is configured to receive a test requirement and send a test signal to the bus controller;
[0020] The test analysis module is configured to obtain the messages sent and received by the designated bus listening port or mirror port to obtain the test results.
[0021] Some embodiments further include a report generation module configured to generate a test report based on the test requirements and test results in response to the report acquisition instruction.
[0022] One or more of the above technical solutions have the following beneficial effects:
[0023] By integrating the domain controller to be tested into the bus controller and Ethernet switch, using multi-interface channel hardware and setting corresponding configuration instructions, fast switching of connections between multiple domain controllers is achieved, reducing the device connection modification process required to test different domain controllers, which helps in subsequent data capture, fault testing and programmable control logic testing between the in-vehicle Ethernet and the bus network. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0025] Figure 1 This is an overall architecture diagram of a multi-domain controller network test system in an embodiment of the present invention;
[0026] Figure 2 The figure is a flow chart of the testing method in the embodiment of the present invention. DETAILED DESCRIPTION
[0027] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0028] In the description of the embodiments of the present application, the term “including” and similar terms should be understood as open inclusion, that is, “including but not limited to.” The term “based on” should be understood as “based at least in part on.”
[0029] At present, the electronic and electrical architecture of various OEM models is in the process of developing from domain / domain fusion to central integration. The vehicle uses Ethernet as the backbone network to form information exchange between domains, and the sub-network within the domain uses CAN as the communication network. CAN FD is very compatible with the existing CAN network, and the bus load is reduced under high bandwidth and high transmission rate, so CAN is gradually changing to CAN-FD.
[0030] When the smart car is started, there will be a lot of information interaction, including information interaction between each domain controller and related sensors, and information interaction between each domain controller. For example, the autonomous driving domain controller needs to receive data from a variety of on-board sensors (cameras, millimeter-wave radars, lidars, etc.), and formulate corresponding strategies through sensor data processing and multi-sensor information fusion, as well as appropriate working models, to make decisions and plans. During the analysis process, it also involves real-time vehicle positioning and path planning, which involves information interaction with the cockpit domain controller. During the interaction process, if a sensor or a controller is abnormal, it will cause errors in data transmission, which will affect functional safety. In order to test the data transmission process, as described in the background technology, the existing test method is usually to physically cut off the connection between the domain controller to be tested and other domain controllers, and connect the bus controller in series, and then perform a series of communication tests. When another group of domain controllers needs to be tested for communication, the bus controller is connected in series between the group of domain controllers. Obviously, when the number of domain controllers to be tested is large, the above operations need to be performed repeatedly, and the process is cumbersome.
[0031] It can be understood that the "domain controller" referred to in one or more embodiments of the present invention can be any functional domain controller such as the power domain, chassis domain, cockpit domain, intelligent driving domain, body domain, etc., or it can be a central domain controller, and no specific limitation is made here.
[0032] In order to solve the above technical problems, one or more embodiments of the present invention provide a multi-domain controller network testing system, including multiple vehicle-mounted Ethernet converters, Ethernet switches and bus controllers; each of the vehicle-mounted Ethernet converters is connected to a domain controller to be tested, and each of the vehicle-mounted Ethernet converters is connected to the Ethernet switch; each domain controller to be tested is also connected to the bus controller; the Ethernet switch and the bus controller are both connected to a host computer; the host computer is configured to: receive the on-off configuration of the channel between the Ethernet switch and at least one of the domain controllers; receive a test request and send a test signal to the bus controller; and obtain the messages sent and received by the specified bus listening port or mirror port to obtain the test results.
[0033] By connecting the domain controller to be tested to an Ethernet switch via an on-board Ethernet converter, the channel configuration can be performed to achieve soft connection between any domain controllers, thereby achieving free switching communication and testing between different domain networks, and performing truncation and forwarding of communication data. At the same time, the consistency between sent and received messages can be achieved through the bus controller, and fault injection can be performed, etc. After the above system is connected and configured, it can perform comprehensive testing on vehicle communications, which is more convenient and faster than existing testing methods.
[0034] Specifically, the Ethernet data between multiple domain controllers is extended by connecting the on-board Ethernet converter to RJ45 and connecting to the Ethernet switch. Each of the domain controllers has identification information, such as the controller ID. At the same time, port VLAN division is performed to divide different domain controllers into different VLANs to avoid conflicts between data flows between different domains. By specifying the connection of the lines between the Ethernet switch and each domain controller, the connection between any domain controllers can be achieved. As an example, after the Ethernet of the controller to be tested is connected to the switch, the switch background can be logged in through SSH in the host computer, or the background management can be logged in from the switch IP. The Ethernet isolation, forwarding, truncation and mirroring functions between different domains are controlled by configuring the host computer, wherein the mirroring function can ensure data monitoring, channel matching and automated testing during the communication between domains. The VLAN function of the Ethernet converter realizes data isolation between different domain controllers, and simulates a domain controller through the host computer, which can complete the data forwarding, truncation and specified data of other domain controllers to interact with other domain controllers.
[0035] After the channel configuration is completed, the host computer further performs the channel connection confirmation step: sending confirmation signals to the domain controllers that establish the channel connection respectively. If a feedback signal is received, the channel is considered to be successfully established. Through the channel setting, the control board or switch accurately forwards the flow of control data after the source control data is sent. At the same time, the automated test module can be loaded to perform functions such as data recording and fault library injection.
[0036] To obtain the data transmitted on the specified channel, configure the mirror port, mirror the port that needs data monitoring, and use tools such as Wireshark to capture it in the host computer. The truncation function can be implemented by using the access control list of the switch to truncate the transmission of specified data.
[0037] Through the data mirroring function of the Ethernet switch, the data transmitted between the two specified domain controllers can be obtained, and the communication process can be judged whether it is abnormal based on the sent signals and the feedback signals. For example, the intelligent driving domain controller needs to obtain the grip state of the steering wheel. At this time, the intelligent driving computing center ADCC and the steering wheel hands-off detection system HOD need to interact with each other. At this time, the channel between the intelligent driving domain controller and the cockpit domain controller can be configured to be connected, and the signals sent by both parties to each other can be intercepted to determine whether the command is responded to correctly. Table 1 shows some message examples.
[0038] Table 1 Some message examples
[0039]
[0040]
[0041] The bus controller is specifically a CAN FD bus controller, which is used for data interception and forwarding of the CAN FD bus. The CAN FD bus controller is connected to each domain controller via the CAN FD bus. The domain controller and the vehicle Ethernet converter, as well as the vehicle Ethernet converter and the Ethernet switch, are connected via a NET interface.
[0042] In order to establish a connection between the bus controller and the host computer, it is necessary to connect the control board supporting the CAN FD protocol to the host computer, and install the control board driver on the host computer to ensure that the host computer can identify the control board, and can view the interface status with other domain controller devices through instructions; after configuring the data transmission baud rate and working mode, data frame format and other parameters, the interface can be started to start the communication connection. In addition, a CANoe device is connected between the bus controller and the host computer, and the supporting CANoe software is installed on the host computer. The electronic controller can be simulated through the CANoe device, and CAPL scripts can be written to send messages.
[0043] Based on the CANoe device and its supporting software, the host computer can be configured to send a test signal to the bus controller in response to the user's test requirements, and at the same time, receive the bus transmission signal captured by the bus controller based on the monitoring port, and determine whether the sent test signal is consistent with the monitored transmission signal. If they are consistent, it is considered that the forwarding is correct. Based on this, it can be determined whether the control signal, sensor signal, etc. forwarded by the bus controller are correctly forwarded to the subsequent process.
[0044] On the basis of testing whether the signal can be correctly forwarded and the test is fault-free, a fault injection test can be performed, that is, the test signal sent by the host computer to the bus controller is a fault test signal. A fault test set is set, and the fault test set includes a fault and a vehicle response signal set corresponding to the fault, wherein the vehicle response signal set includes response signals transmitted between different domain controllers in response to the specified fault. For example, when the fault signal sent to the central domain controller via the bus controller is a failure of the intelligent driving function, the vehicle response signal corresponding to the fault includes a reminder signal sent by the central domain controller to the dashboard or the large screen of the cockpit domain controller, and a deceleration signal sent to the power domain controller, etc. Based on this, it can be tested whether various functions are normal. As a specific implementation method, according to the fault to be tested, the channel connection between the relevant domain controllers is configured. When the test signal sent by the host computer to the bus controller is a fault test signal, based on the set fault test set, the corresponding vehicle response signal set is determined, and the response signal of the mirror port corresponding to each channel is obtained based on the Ethernet switch to determine whether the vehicle response to the fault is correct.
[0045] In one or more of the above embodiments, by integrating the test domain controller into the bus controller and the switch, using multi-interface channel hardware and setting corresponding configuration instructions to achieve the fast switching connection capability of the multi-domain controller, reducing the device connection modification process required for testing different domain controllers, helping to reduce the steps required to switch different logic test units, and facilitating the subsequent capture, fault testing, and programmable control logic testing of data between the vehicle Ethernet and the CAN FD network. In addition, the test process is simplified, making fault injection and simulation data injection more convenient, and improving test coverage.
[0046] The domain controller can perform hardware-in-the-loop testing during testing, cascade different ECUs, and perform signal data transmission and control across domain controllers.
[0047] Integration is achieved between different domain controllers through CANFD bus controller and Ethernet converter. CANFD bus controller and Ethernet converter are used as data forwarding nodes, and the host computer is used as the controller to control the forwarding node, which simplifies the connection complexity and makes full use of the VLAN and data mirroring functions of the Ethernet switch to achieve isolation, data forwarding, data capture and fault simulation interaction between domain controllers. The specified channel connection is completed by configuring the switch, which improves the scalability of the test system and reduces the test cost.
[0048] Based on the above multi-domain controller network test system, one or more embodiments of the present invention further provide a test method, which is applied to the host computer and includes:
[0049] Receiving an on / off configuration for a channel between the Ethernet switch and at least one of the domain controllers;
[0050] Receive test requirements and send test signals to the bus controller;
[0051] Get the messages sent and received by the specified bus listening port or mirror port to get the test results.
[0052] After sending the test signal to the bus controller, the bus controller also receives the transmission signal captured by the monitoring port to determine whether the sent test signal is consistent with the monitored transmission signal. If they are consistent, it is considered that the forwarding is correct.
[0053] The test signal sent to the bus controller is a fault test signal. Based on the set fault test set, the corresponding vehicle response signal set is determined. Based on the Ethernet switch, the response signal of the corresponding mirror port of each channel is obtained to determine whether the vehicle response to the fault is correct.
[0054] Based on the above multi-domain controller network test system, one or more embodiments of the present invention further provide a test device, characterized in that it includes:
[0055] A channel configuration module, configured to receive an on / off configuration for a channel between the Ethernet switch and at least one of the domain controllers;
[0056] A test requirement confirmation module is configured to receive a test requirement and send a test signal to the bus controller;
[0057] The test analysis module is configured to obtain the messages sent and received by the designated bus listening port or mirror port to obtain the test results.
[0058] After receiving the test requirement, the test requirement confirmation module further determines the channels that need to be connected based on the test requirement, verifies the connected channels, and issues a reminder if there are channels that need to be connected but are not connected.
[0059] The device also includes a fault test set management module configured to edit the faults in the fault test set and their vehicle response signal sets. The editing includes adding new fault test items, and deleting and modifying existing fault test items.
[0060] The device also includes a report generating module configured to generate a test report based on the test requirements and the test results in response to the report obtaining instruction.
[0061] Based on the above device, various test requirements can be built in to meet different application scenarios, realizing automated testing and automatic generation of test reports.
[0062] One or more embodiments of the present invention further provide a host computer, which can be used to implement the test method in the above embodiments. The host computer includes one or more processors, one or more memories coupled to the processors, and a communication module coupled to the processors.
[0063] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the application. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.
[0064] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A multi-domain controller network testing system, It is characterized in that The system comprises a plurality of vehicle-mounted Ethernet converters, an Ethernet switch and a bus controller; each of the vehicle-mounted Ethernet converters is respectively connected to a domain controller to be tested, and each of the vehicle-mounted Ethernet converters is connected to the Ethernet switch; each of the domain controllers to be tested is also respectively connected to the bus controller; the Ethernet switch and the bus controller are both connected to a host computer; the host computer is configured to: receive an on / off configuration for a channel between the Ethernet switch and at least one of the domain controllers; Receive test requirements and send test signals to the bus controller; And obtain the messages sent and received by the designated bus listening port or mirror port to obtain the test results.
2. The multi-domain controller network testing system according to claim 1, It is characterized in that The host computer is connected to a CANoe device via the bus controller.
3. The multi-domain controller network testing system according to claim 1, It is characterized in that After the host computer sends the test signal to the bus controller, it also receives the transmission signal captured by the bus controller based on the monitoring port, and determines whether the sent test signal is consistent with the monitored transmission signal. If they are consistent, it is considered that the forwarding is correct.
4. The multi-domain controller network testing system according to any one of claims 1 to 3, It is characterized in that The host computer also sends confirmation signals to the domain controllers that establish the channel connection. If a feedback signal is received, it is considered that the channel is successfully established.
5. The multi-domain controller network testing system as claimed in claim 3, It is characterized in that The test signal sent by the host computer to the bus controller is a fault test signal. Based on the set fault test set, the corresponding vehicle response signal set is determined. Based on the Ethernet switch, the response signal of the mirror port corresponding to each channel is obtained to determine whether the vehicle response to the fault is correct.
6. A testing method based on the multi-domain controller network testing system according to any one of claims 1 to 5, It is characterized in that include: Receiving an on / off configuration for a channel between the Ethernet switch and at least one of the domain controllers; Receive test requirements and send test signals to the bus controller; Get the messages sent and received by the specified bus listening port or mirror port to get the test results.
7. The test method according to claim 6, It is characterized in that After sending the test signal to the bus controller, the bus controller also receives the transmission signal captured by the monitoring port to determine whether the sent test signal is consistent with the monitored transmission signal. If they are consistent, it is considered that the forwarding is correct.
8. The multi-domain controller network testing system as claimed in claim 7, It is characterized in that The test signal sent to the bus controller is a fault test signal. Based on the set fault test set, the corresponding vehicle response signal set is determined. Based on the Ethernet switch, the response signal of the corresponding mirror port of each channel is obtained to determine whether the vehicle response to the fault is correct.
9. A testing device based on the multi-domain controller network testing system according to any one of claims 1 to 5, It is characterized in that include: A channel configuration module, configured to receive an on / off configuration for a channel between the Ethernet switch and at least one of the domain controllers; A test requirement confirmation module is configured to receive a test requirement and send a test signal to the bus controller; The test analysis module is configured to obtain the messages sent and received by the designated bus listening port or mirror port to obtain the test results.
10. The testing device according to claim 9, It is characterized in that The system also includes a report generating module, which is configured to generate a test report based on the test requirements and the test results in response to the report obtaining instruction.
Citation Information
Patent Citations
Vehicle-mounted multifunctional electronic control platform device
CN111781915A
Test system and test method for vehicle body domain controller
CN115599076A
One-to-many networking test system and method based on intelligent driving domain controller
CN115729219A
Function safety test method and device for domain controller of vehicle
CN116820064A
Test method and system of intelligent cockpit domain controller and storage medium
CN117193239A
Cited By
Communication evaluation method, device and equipment of vehicle-mounted domain control unit, and medium
CN119906647A
Communication evaluation method, device and equipment of vehicle-mounted domain control unit, and medium
CN119906647B
