Communication test system and method based on vehicle-mounted Ethernet, medium and electronic equipment
By adopting switches and dual-model architectures in the HIL test system, the high cost and uncontrollable Ethernet testing equipment in the prior art are solved, and efficient and controllable testing of on-board Ethernet communication is achieved.
Patent Information
- Application Number
- CN202411197883.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-17
AI Technical Summary
The existing HIL test system mainly supports CAN/CANFD bus communication testing, and the Ethernet test equipment is expensive, and a single Ethernet device is uncontrollable during the SOME/IP SD subscription process.
Using switch and dual model architecture, the switch provides multiple Ethernet interfaces to realize communication connection between the upper computer and the domain controller and the lower computer, simulates the SOME/IP SD subscription logic of the simulation node and the domain controller to ensure the domain controller. The SOME/IP SD subscription process with the simulation node is controllable.
It reduces the overall cost of the equipment, realizes efficient testing of on-board Ethernet communication, meets the Ethernet communication testing needs of domain controllers that lack SOME/IP SD functions, and improves test controllability.
Smart Images

Figure CN119155207A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a communication test system, method, medium and electronic equipment based on vehicle-mounted Ethernet. Background Art
[0002] Today, automobiles are developing very rapidly. Pure mechanical systems have now been largely replaced by advanced digital systems, gradually transforming vehicles into mobile data centers. Therefore, rigorous testing of in-vehicle Ethernet networks and components is essential. Existing mainstream HIL (Hardware-in-the-Loop) test systems generally only support CAN (Controller Area Network) bus communication testing, while Ethernet testing mostly uses CANOE devices, which can support HIL systems for Ethernet testing.
[0003] In the prior art, the existing mainstream HIL test systems generally only support CAN / CANFD bus communication tests, and the price of CANOE devices is expensive, while the subscription process of other single Ethernet devices SOME / IP SD is uncontrollable. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the first object of the present invention is to provide a communication test system based on vehicle Ethernet, which can reduce the overall cost of the equipment by adopting a switch, and realize the controllable subscription process of SOME / IP SD between the domain controller and the simulation node by adopting a dual model.
[0005] The second object of the present invention is to provide a communication test method based on vehicle-mounted Ethernet.
[0006] A third object of the present invention is to provide a non-volatile computer-readable storage medium.
[0007] A fourth objective of the present invention is to provide an electronic device.
[0008] In order to achieve the above-mentioned purpose, the communication test system based on vehicle Ethernet proposed in the first aspect of the present invention includes: a lower computer, the lower computer is configured with a first environment simulation model and a second environment simulation model, the first environment simulation model is at least used to simulate the SOME / IP SD subscription logic of the simulation node, and the second environment simulation model is at least used to simulate the SOME / IP SD subscription logic of the domain controller when it is determined that the domain controller lacks the SOME / IP SD function; a domain controller, the I / O port of the domain controller is suitable for communication connection with the lower computer; a switch, the switch is provided with multiple Ethernet interfaces, and the multiple Ethernet interfaces are respectively used to communicate and connect with the lower computer, the upper computer and the domain controller. The upper computer, the upper computer, the lower computer and the switch are all connected by a network cable, and the upper computer is used to control the lower computer, the switch and the domain controller through the network cable to perform vehicle Ethernet communication test.
[0009] According to the communication test system based on vehicle Ethernet proposed in the embodiment of the present invention, based on the architecture of the host computer, the slave computer, the domain controller and the switch, the communication connection between the host computer and the domain controller and between the slave computer and the domain controller can be established simultaneously by configuring the switch and providing multiple Ethernet interfaces, so that the host computer can control the slave computer to perform vehicle Ethernet communication test through the switch and the domain controller. And by configuring and running dual models, it can simulate the SOME / IP SD subscription logic of the simulation node and the SOME / IP SD subscription logic of the domain controller, which can meet the Ethernet communication test of the domain controller lacking the SOME / IPSD function, and realize the controllable subscription process of the SOME / IP SD between the domain controller and the simulation node.
[0010] In addition, the network hardware used by the vehicle-mounted Ethernet-based communication test system proposed in the embodiment of the present invention to support Ethernet communication testing is mainly Ethernet cards and switches, which can greatly reduce equipment costs compared to the use of CANOE and other devices in the prior art.
[0011] In some embodiments of the present invention, the multiple Ethernet interfaces include: a first Ethernet interface, which is suitable for communicating and connecting with the simulation interface of the first environment simulation model in the lower computer; a second Ethernet interface, which is suitable for communicating and connecting with the simulation interface of the second environment simulation model in the lower computer; a third Ethernet interface, which is suitable for communicating and connecting with the lower computer; and a fourth Ethernet interface, which is suitable for communicating and connecting with the domain controller.
[0012] In some embodiments of the present invention, the lower computer includes: a HIL simulation platform, in which a real-time simulation system is configured, and the real-time simulation system is used to run the first environment simulation model and the second environment simulation model; a board box, which is connected to the HIL simulation platform and is provided with at least one of an Ethernet card, an I / O board card and a CAN card.
[0013] In some embodiments of the present invention, the communication test system based on vehicle Ethernet also includes: a first CAN channel, the first CAN channel is used to connect the lower computer and the domain controller, and the first CAN channel is used to transmit the model simulated CAN messages issued by the lower computer and the CAN communication signals issued by the domain controller; a second CAN channel, the second CAN channel is used to connect the upper computer and the domain controller, and the second CAN channel is used to transmit the CAN diagnostic messages, CAN calibration messages and CAN diagnostic signals issued by the domain controller.
[0014] In some embodiments of the present invention, in the communication test system based on vehicle-mounted Ethernet, the Ethernet card is suitable for being communicatively connected with the first Ethernet interface and the second Ethernet interface of the switch, and the Ethernet card is used to send Ethernet test messages, and / or receive Ethernet signals issued by the domain controller; the I / O board is suitable for being communicatively connected with the I / O port of the domain controller, and the I / O board is used to send and receive I / O signals; the CAN card is suitable for being communicatively connected with the first CAN channel, and the CAN card is used to send the model simulation CAN messages, and / or receive the CAN communication signals issued by the domain controller.
[0015] In some embodiments of the present invention, the network cable includes a first network cable, a second network cable and a third network cable; the upper computer is configured with: a model configuration module, the model configuration module is connected to the HIL simulation platform through the first network cable, and the model configuration module is used to load the first environment simulation model and the second environment simulation model into the lower computer; a communication interface configuration module, the communication interface configuration module is connected to the board box through the second network cable, and the communication interface configuration module is used to configure the hardware interface of the board box, the simulation interface of the first environment simulation model and the simulation interface of the second environment simulation model; a switch configuration module, the switch configuration module is connected to the switch through the third network cable, and the switch configuration module is used to control the first Ethernet interface and the second Ethernet interface inside the switch to be disconnected and the first Ethernet interface and the third Ethernet interface to be connected when the first environment simulation model simulates the SOME / IP SD subscription logic of the simulation node, and the switch configuration module is also used to determine that the domain controller lacks SOME / IP When the SD function is used, the first Ethernet interface and the second Ethernet interface inside the switch are controlled to be connected; a communication test module, the communication test module is communicatively connected to the third Ethernet interface of the switch, and the communication test module is used to respond to the communication test control instruction to control the lower computer and the switch to perform the SOME / IP communication test on the domain controller.
[0016] In order to achieve the above-mentioned purpose, the second aspect of the embodiment of the present invention proposes a communication testing method based on vehicle-mounted Ethernet, including: building a first environment simulation model and a second environment simulation model, and obtaining switch configuration data and lower computer communication interface configuration data; loading the first environment simulation model, the second environment simulation model and the lower computer communication interface configuration data to the lower computer, and loading the switch configuration data to the switch to control the establishment of a communication connection between the lower computer, the switch and the domain controller; controlling the operation of the first environment simulation model and the second environment simulation model to perform vehicle-mounted Ethernet communication testing and generate a test report.
[0017] According to the communication capability test method based on vehicle Ethernet proposed in the embodiment of the present invention, when used in the automated test system based on vehicle Ethernet as described in any of the above embodiments, by setting a switch, it is possible to simultaneously establish communication connections between the upper computer and the domain controller, and between the lower computer and the domain controller, so that the upper computer can control the lower computer to perform vehicle Ethernet communication test through the switch and the domain controller. And by configuring and running dual models, it is possible to simulate the SOME / IP SD subscription logic of the simulation node and the SOME / IP SD subscription logic of the domain controller, which can meet the Ethernet communication test of the domain controller that lacks the SOME / IP SD function, and realize the controllability of the SOME / IP SD subscription process between the domain controller and the simulation node.
[0018] In some embodiments of the present invention, controlling the first environment simulation model and the second environment simulation model to run, for executing a vehicle Ethernet communication test and generating a test report, includes: controlling the first environment simulation model to run, the lower computer to establish SOME / IP communication with the domain controller through a switch, executing the vehicle Ethernet communication test and generating the test report; or, when it is determined that the domain controller lacks the SOME / IP SD function, controlling the first environment simulation model and the second environment simulation model to run, the lower computer and the switch to execute the vehicle Ethernet communication test and generate the test report.
[0019] In order to achieve the above-mentioned purpose, a third aspect of the present invention proposes a non-volatile computer-readable storage medium having a computer program stored thereon. When the computer program is executed, the communication test method based on vehicle Ethernet as described in any one of the above items is implemented.
[0020] According to the non-volatile computer-readable storage medium proposed in the embodiment of the present invention, when the computer program stored thereon is executed by the processor, the communication test method based on the vehicle Ethernet of the above second aspect of the embodiment can be implemented, and communication between the domain controller and the simulation node can be established. In addition, by controlling the operation of the dual model, the SD service subscription process of the domain controller can be simulated, and the SD service subscription process of the simulation node can also be simulated, which can meet the Ethernet communication test of the domain controller lacking the SOME / IP SD function, and realize the controllability of the SOME / IP SD subscription process between the domain controller and the simulation node.
[0021] In order to achieve the above-mentioned purpose, the third aspect of the present invention proposes an electronic device, comprising: at least one processor; a memory communicatively connected to at least one of the processors; a computer program executable by the processor is stored in the memory, and when the computer program is executed by the processor, a communication test method based on vehicle Ethernet as described in any one of the above items is implemented.
[0022] According to the electronic device proposed in the embodiment of the present invention, when the computer program stored in the memory is executed by at least one processor, the Ethernet switch can be configured to establish communication between the domain controller and the simulation node. In addition, by controlling the operation of the dual model, the SD service subscription process of the domain controller can be simulated, and the SD service subscription process of the simulation node can also be simulated, which can meet the Ethernet communication test of the domain controller lacking the SOME / IP SD function, and realize the controllability of the SOME / IP SD subscription process between the domain controller and the simulation node.
[0023] In addition, the electronic device proposed in the embodiment of the present invention uses network hardware mainly including Ethernet cards and switches to support Ethernet communication testing, which can greatly reduce the equipment cost compared with the use of CANOE and other equipment in the prior art.
[0024] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0026] Figure 1 A block diagram of a communication test system based on vehicle Ethernet according to an embodiment of the present invention;
[0027] Figure 2 is a block diagram of a lower computer according to an embodiment of the present invention;
[0028] Figure 3 is a block diagram of a first environment simulation model and a second environment simulation model according to an embodiment of the present invention;
[0029] Figure 4 A block diagram of a communication test system based on vehicle Ethernet according to another embodiment of the present invention;
[0030] Figure 5 A flow chart of a communication test method based on vehicle Ethernet according to an embodiment of the present invention;
[0031] Figure 6FIG. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
[0032] Reference numerals:
[0033] Electronic device 100;
[0034] Processor 1001, memory 1002;
[0035] Communication test system based on vehicle Ethernet1;
[0036] A lower computer 10, a switch 20, a domain controller 30, an upper computer 40, a first CAN channel 50, and a second CAN channel 60;
[0037] HIL simulation platform 101, board box 102, model configuration module 401, communication interface configuration module 402, switch configuration module 403, communication test module 404;
[0038] A first network cable n1, a second network cable n2, a third network cable n3, a first Ethernet interface a1, a second Ethernet interface a2, a third Ethernet interface a3, and a fourth Ethernet interface a4. DETAILED DESCRIPTION
[0039] Embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. Embodiments of the present invention are described in detail below.
[0040] In the prior art, vehicles have complex high-bandwidth applications, and improve safety and reduce fuel consumption, while providing a rich network experience for drivers and passengers. New digital systems are one of the most important factors for success in a highly competitive market, but this puts forward new requirements for automobile manufacturers: the need to ensure that these in-vehicle networks provide the best service quality and reliability. When the domain controller is used as the object under test, the domain controller can be connected to a virtual test platform or test system, so that the domain controller can be fully tested in an efficient and low-cost manner. It is a development and testing technology for complex device controllers. By connecting to a real controller, a real-time simulation model is used or partially used to simulate the controlled object and the system operating environment to achieve simulation testing of the entire system. An embodiment of the present invention proposes a communication test system based on in-vehicle Ethernet, which can realize the controllable subscription process of SOME / IP SD between the domain controller and the simulation node. The following reference Figure 1-Figure 4 A communication test system based on in-vehicle Ethernet according to an embodiment of the present invention is described.
[0041] In some embodiments of the present invention, Figure 1 FIG. 4 is a block diagram of a communication test system based on vehicle Ethernet according to an embodiment of the present invention.
[0042] The communication test system 1 based on vehicle Ethernet includes a lower computer 10 , a switch 20 , a domain controller 30 and a host computer 40 .
[0043] Specifically, it can be combined Figure 1 and Figure 2 Understand the lower computer 10 of the present invention, as Figure 2 FIG. 1 is a block diagram of a lower computer according to an embodiment of the present invention. Figure 1 The HIL simulation platform 101 and the board box 102 are not shown.
[0044] Among them, Figure 2 As shown, the lower computer 10 includes a HIL simulation platform 101 and a board box 102. It is understandable that a real-time simulation system is provided in the HIL simulation platform 101, and the real-time simulation system is an RTI real-time machine, which can perform high-reliability real-time detection with a response time of ≤100us. The simulation model is run in the real-time simulation system to simulate the running state of the vehicle. By receiving the signal sent by the object under test, that is, the domain controller 30, and simulating the signal received by the object under test, the simulation environment run by the real-time simulation system can form a closed loop with the object under test, thereby providing the necessary basis for HIL automated testing.
[0045] The board box 102 is connected to the HIL simulation platform 101, wherein at least one of an Ethernet card, an I / O board card and a CAN card is arranged in the board box 102. The Ethernet card is used to transmit Ethernet signals, the I / O board card is used to transmit digital signals and / or analog signals, and the CAN card is used to transmit CAN signals.
[0046] The domain controller 30 refers to at least one server in the "domain" mode that is responsible for the verification of each computer and user connected to the network, and can also be called DC (Domain Controller). The I / O port of the domain controller 30 is suitable for communication with the lower computer 10. Among them, in the I / O interface communication test solution, the I / O interface can be used as a simulated resistance output signal channel, an analog input and output channel, a PWM input and output channel, and a digital input and output channel, and can be used to perform I / O communication tests.
[0047] The switch 20 can provide an exclusive electrical signal path for any two network nodes connected to the switch 20, so that data transmission between multiple port pairs can be achieved at the same time. Specifically, the switch 20 is provided with multiple Ethernet interfaces, which are respectively used to connect to the lower computer 10, the upper computer 40 and the domain controller 30. The switch 20 supports multi-port 100 / 1000BASE-T1 conversion, the message delay is less than 2 microseconds, and the message can be timestamped with a 40ns accuracy.
[0048] The upper computer 40 is connected to the lower computer 10 and the switch 20 via a network cable, which is at least used to build the first environment simulation model and the second environment simulation model and load them into the lower computer 10, and control the lower computer 10, the switch 20 and the domain controller 30 via the network cable to perform the vehicle Ethernet communication test.
[0049] Specifically, the HIL simulation platform 101 uses a workstation as the host computer 40. The host computer 40 is connected to the domain controller 30 via the vehicle Ethernet switch 20. The host computer 40 can interact with each node and capture communication messages between nodes in a mirroring manner.
[0050] Furthermore, the real-time simulation system configured in the HIL simulation platform 101 is used to run the first environment simulation model and the second environment simulation model. The first environment simulation model is at least used to simulate the SOME / IP SD subscription logic of the simulation node, establish a service-based connection with the domain controller 30, and simulate the vehicle environment to form a closed-loop system with the domain controller 30. The second environment simulation model is at least used to simulate the SOME / IP SD subscription logic of the domain controller 30 when it is determined that the domain controller 30 lacks the SOME / IP SD function.
[0051] Among them, it can be combined Figure 3 Understand the first environment simulation model and the second environment simulation model of the embodiment of the present invention. Figure 3 4 is a block diagram of a first environment simulation model and a second environment simulation model according to an embodiment of the present invention.
[0052] Specifically, the first environment simulation model is the main model, and the second environment simulation model is the secondary model. The first environment simulation model may include a power control module, a vehicle dynamics model, a driver control model, an I / O simulation model, a CAN communication model, and a first ETH communication model, etc. Specifically, the power control module is used to set the output voltage value and the current value; the vehicle dynamics model is mainly composed of sub-simulation modules such as a battery module, a motor module, a transmission module, a vehicle module, a DCDC module, a vacuum pump module, and an energy consumption calculation module; the function of the driver model is to simulate the driver's operation of some operable devices of the vehicle and the influence of the external environment on the vehicle, as a necessary input for the dynamics simulation model. The I / O simulation model is used to simulate I / O signals; the CAN communication model is used to simulate CAN messages; the first ETH communication model is used to simulate the SOME / IP SD subscription process and the SOME / IP message. The embodiment of the present invention aims to establish SOME / IP communication between the domain controller 30 and the simulation node.
[0053] The second environment simulation model at least includes a second ETH communication model, which is used to simulate the SOME / IP message and SOME / IP SD subscription function of the domain controller 30. The function of the second ETH communication model is to simulate the SD subscription process of the domain controller 30 when the domain controller 30 lacks the SOME / IP SD subscription function, thereby completing the service subscription with the simulation node. In this case, the SOME / IP communication between the domain controller 30 and the simulation node is actually implemented by the first environment simulation model and the second environment simulation model.
[0054] According to the communication test system 1 based on vehicle Ethernet proposed in the embodiment of the present invention, based on the architecture of the upper computer 40, the lower computer 10, the domain controller 30 and the switch 20, the communication connection between the upper computer 40 and the domain controller 30, and between the lower computer 10 and the domain controller 30 can be established simultaneously by configuring the switch 20 and providing multiple Ethernet interfaces, so that the upper computer 40 can control the lower computer 10 to perform vehicle Ethernet communication test through the switch 20 and the domain controller 30. And by configuring and running the dual model, it can simulate the SOME / IP SD subscription logic of the simulation node and the SOME / IPSD subscription logic of the domain controller 30, which can meet the Ethernet communication test of the domain controller 30 that lacks the SOME / IP SD function, and realize the controllability of the subscription process of the SOME / IP SD between the domain controller 30 and the simulation node.
[0055] In addition, the network hardware used by the vehicle-mounted Ethernet-based communication test system 1 proposed in the embodiment of the present invention to support Ethernet communication testing is mainly Ethernet card and switch 20, which can greatly reduce the equipment cost compared with the use of CANOE and other devices in the prior art.
[0056] In some embodiments of the present invention, Figure 4 As shown, it is a block diagram of a communication test system based on vehicle Ethernet according to another embodiment of the present invention, wherein the multiple Ethernet interfaces on the switch 20 include a first Ethernet interface a1, a second Ethernet interface a2, a third Ethernet interface a3 and a fourth Ethernet interface a4.
[0057] Among them, the first Ethernet interface a1 is suitable for communication connection with the simulation interface b1 of the first environment simulation model in the lower computer 10. The first Ethernet interface a1 is a SOME / IP communication interface. When the first environment simulation model simulates the SOME / IP SD subscription logic of the simulation node, the first Ethernet interface a1 can be used to transmit the Ethernet SOME / IP communication message of the simulation node of the first environment simulation model and the data sent by the domain controller 30.
[0058] And, the second Ethernet interface a2 is suitable for communication connection with the simulation interface b2 of the second environment simulation model in the lower computer 10. The second Ethernet interface a2 is a SOME / IP communication interface. When the second environment simulation model simulates the SOME / IP SD subscription logic of the domain controller, the second Ethernet interface a2 can be used to transmit the Ethernet SOME / IP communication message of the second environment simulation model simulating the domain controller and the Ethernet SOME / IP communication message of the first environment simulation model simulating the simulation node.
[0059] The third Ethernet interface a3 is suitable for communication connection with the host computer 40. The third Ethernet interface a3 is a SOME / IP communication interface, which can be used to transmit Ethernet SOME / IP communication messages to the host computer 40, and receive the switch communication interface configuration instruction sent by the host computer 40. When the switch 20 responds to the switch communication interface configuration instruction, it can reconfigure the conduction status of the first Ethernet interface a1, the second Ethernet interface a2, the third Ethernet interface a3 and the fourth Ethernet interface a4 inside the switch 20. Further, the third Ethernet interface a3 is required to have the ability to mirror the Ethernet SOME / IP messages sent and received by the first Ethernet interface a1 and the second Ethernet interface a2, and the interface is connected to the host computer 40 through a network cable.
[0060] The fourth Ethernet interface a4 is suitable for communication connection with the domain controller 30. That is, the fourth Ethernet interface a4 of the switch 20 is connected to the Ethernet interface of the domain controller 30 through an Ethernet cable, so as to realize information transmission with the domain controller 30.
[0061] More specifically, the Ethernet cable used to connect the lower computer 10 with the first Ethernet interface a1 and the second Ethernet interface a2, and the Ethernet cable used to connect the domain controller 30 with the fourth Ethernet interface a4, can both adopt ETH-T1 Ethernet cable, which is used to realize the information transmission between the lower computer 10 and the switch 20 and the domain controller 30. And, the Ethernet cable used to connect the third Ethernet interface a3 and the upper computer 40 can adopt ETH-TX Ethernet cable. Among them, ETH-T1 Ethernet cable and ETH-TX Ethernet cable are both used to transmit Ethernet signals. Specifically, ETH-T1 usually refers to the T1 circuit of 1.544Mbps, which is a transmission medium with a slower transmission rate, mainly used for transmitting voice and data, and is usually used for long-distance transmission. ETH-TX is a physical layer transmission medium with a faster transmission rate than ETH-T1, which can transmit data of different rates such as 10Mbps, 100Mbps, 1Gbps, etc.
[0062] Further, the first Ethernet interface a1, the second Ethernet interface a2, the third Ethernet interface a3 and the fourth Ethernet interface a4 set by the switch 20 and the Ethernet interface of the domain controller 30 are the same VLAN (Virtual Local Area Network), and when the first environment simulation model simulates the SOME / IP SD subscription logic of the simulation node, the first Ethernet interface a1 and the second Ethernet interface a2 inside the switch 20 are not connected, and the first Ethernet interface a1 and the third Ethernet interface a3 inside the switch 20 are connected. And, when it is determined that the domain controller 30 lacks the SOME / IP SD function, the first Ethernet interface a1 and the second Ethernet interface a2 inside the switch 20 are connected.
[0063] In some embodiments of the invention, Figure 4 As shown, the vehicle Ethernet-based communication test system 1 also includes a first CAN channel 50 and a second CAN channel 60. It can be understood that the CAN card in the card box 102 of the test system 1 proposed in the embodiment of the present invention actually integrates two CAN cards corresponding to the first CAN channel 50 and the second CAN channel 60 respectively.
[0064] Specifically, the first CAN channel 50 is used to connect the lower computer 10 and the domain controller 30, and the first CAN channel 50 is used to transmit the CAN message of the model simulation sent by the lower computer 10 and the CAN communication signal sent by the domain controller 30. Specifically, when performing the CAN communication test, the upper computer 40 controls the lower computer 10 through the network cable, and the lower computer 10 controls the domain controller 30 through the first CAN channel 50. Therefore, the Ethernet-based communication test system 1 proposed in the embodiment of the present invention connects the lower computer 10 and the domain controller 30 by setting the first CAN channel 50 to receive and send CAN communication signals, so that the test system 1 can realize the CAN communication test of the domain controller 30. According to the above embodiment, it can be seen that the first CAN channel 50 of the embodiment of the present invention will not interfere with the Ethernet and I / O communication equipment, so that while performing the CAN communication test on the domain controller 30, the upper computer 40 can control the lower computer 10 to simultaneously realize the SOME / IP communication test and I / O communication test of the domain controller 30.
[0065] And, the second CAN channel 60 is used to connect the host computer 40 and the domain controller 30, and the second CAN channel is used to transmit the CAN diagnostic message, CAN calibration message and CAN diagnostic signal sent by the host computer 40 and the domain controller 30. The host computer 40, the switch 20, the domain controller 30 and the second CAN channel 60 together constitute the hardware architecture of the CAN communication diagnostic test. Specifically, the second CAN channel 60 is used to connect the host computer 40 and the domain controller 30, and the second CAN channel 60 is used to transmit the CAN diagnostic message, CAN calibration message and CAN diagnostic signal sent by the host computer 40 and the domain controller 30; the host computer 40 is used to perform at least one of the CAN communication diagnostic test and the calibration automation test on the domain controller 30 through the second CAN channel 60.
[0066] Understandably, calibration refers to the process of fine-tuning various vehicle systems to ensure they perform to design specifications. This may involve adjusting software settings, calibrating sensors, or modifying mechanical components to achieve the expected results; calibration ensures that different vehicle systems work in harmony and efficiently. Proper calibration can optimize fuel consumption, maximize performance, reduce emissions, and enhance safety features. Without regular calibration, vehicles may not perform as expected, resulting in inefficiencies and potential safety risks. Calibration in the automotive industry plays a vital role in ensuring that vehicles operate at optimal performance and safety.
[0067] According to the Ethernet-based automated test system 1 proposed in the embodiment of the present invention, by setting the second CAN channel 60 to connect to the host computer 40, for UDSonCAN diagnostic messages and calibration messages, etc., the test system 1 can implement CAN communication diagnostic test and calibration test. According to the above embodiment, the second CAN channel 60 of the embodiment of the present invention and the first CAN channel 50, Ethernet, and I / O communication equipment will not interfere with each other, so while performing CAN communication diagnostic test and / or calibration test on the domain controller 30, the SOME / IP communication test and I / O communication test of the domain controller 30 can also be implemented at the same time, that is, multiple communication tests and multiple diagnostic tests and calibration tests can be implemented at the same time, which can greatly improve the test efficiency.
[0068] In other embodiments of the present invention, the board box 102 of the embodiment of the present invention can be further understood in combination with the above-mentioned embodiments. Specifically, the Ethernet card is suitable for being communicated and connected with the first Ethernet interface a1 and the second Ethernet interface a2 of the switch 20, and the Ethernet card is used to send Ethernet test messages and / or receive Ethernet signals sent by the domain controller 30. The I / O board card is suitable for being communicated and connected with the I / O port of the domain controller 30, and the I / O board card is used to send and receive I / O signals; the CAN card is suitable for being communicated and connected with the first CAN channel 50, and the CAN card is used to send model simulation CAN messages and / or receive CAN communication signals sent by the domain controller 30.
[0069] In some embodiments of the present invention, Figure 3 and Figure 4 Understanding the network cables of the embodiment of the present invention. The network cables include a first network cable n1, a second network cable n2, and a third network cable n3.
[0070] In some embodiments of the present invention, Figure 4 As shown, the host computer 40 is configured with a model configuration module 401 , a communication interface configuration module 402 , a switch configuration module 403 and a communication test module 404 .
[0071] The model configuration module 401 is connected to the HIL simulation platform 101 via the first network cable n1, and is used to load the first environment simulation model and the second environment simulation model into the lower computer 10. The model configuration module 401 can be commercial software such as MATLAB software, which is used for the development and offline simulation of dual models.
[0072] The communication interface configuration module 402 is connected to the board box 102 via the second network cable n2, and the communication interface configuration module 402 is used to configure the hardware interface of the board box 102, the simulation interface b1 of the first environment simulation model, and the simulation interface b2 of the second environment simulation model. The communication interface configuration module 402 can use HIL configuration software to separate the I / O hardware configuration from the simulation model building, and is used for the association configuration between the hardware board and the dual model.
[0073] Furthermore, the first network cable n1 and the second network cable n2 may be the same network cable to implement signal interaction between the upper computer 40 and the lower computer 10 .
[0074] The switch configuration module 403 is connected to the switch 20 via the third network cable n3, wherein the switch configuration module 403 is actually a switch configuration software, which is used to set the switch of the switch interface and the number of mirror interfaces. The switch configuration module 403 can provide an exclusive electrical signal path for any two network nodes connected to the switch 20 via the third network cable n3, so that data transmission between multiple port pairs can be achieved at the same time. The switch configuration module 403 is used to remotely control the first Ethernet interface a1 and the second Ethernet interface a2 inside the switch 20 to be disconnected when the SOME / IP SD subscription logic of the simulation node of the first environment simulation model is simulated, and to control the first Ethernet interface a1 and the third Ethernet interface a3 inside the switch 20 to be connected. Specifically, the first Ethernet interface a1 is a SOME / IP communication interface, which can be used to transmit the Ethernet SOME / IP communication message of the simulation node of the first environment simulation model and the data sent by the domain controller 30, etc.
[0075] And, the switch configuration module 403 is also used to remotely control the first Ethernet interface a1 and the second Ethernet interface a2 inside the switch 20 to be turned on when it is determined that the domain controller 30 lacks the SOME / IP SD function. Specifically, the second Ethernet interface a2 is a SOME / IP communication interface, which can be used to transmit the Ethernet SOME / IP communication message of the simulation domain controller of the second environment simulation model and the Ethernet SOME / IP communication message of the simulation node of the first environment simulation model. Specifically, the switch configuration module 403 can be the Wireshark software configured in the host computer, which can receive ETH_Tx, that is, the Ethernet SOME / IP message forwarded by the third Ethernet interface a3 of the switch 20. Through the switch configuration module 403, the switches of the first Ethernet interface a1, the second Ethernet interface a2, and the third Ethernet interface a3 can be remotely controlled.
[0076] The communication test module 404 is communicatively connected to the third Ethernet interface a3 of the switch 20, and the communication test module 404 is used to respond to the communication test control instruction to control the lower computer 10 and the switch 20 to perform the SOME / IP communication test on the domain controller 30. The communication test module 404 can use commercial software such as Wireshark software to collect and analyze vehicle Ethernet SOME / IP and SOME / IP SD messages.
[0077] In some embodiments of the present invention, a communication test method based on vehicle Ethernet is also proposed, such as Figure 5 As shown, it is a flow chart of a communication test method based on vehicle Ethernet according to an embodiment of the present invention, wherein the communication test method based on vehicle Ethernet includes steps S1-S3, which are specifically as follows.
[0078] S1, build a first environment simulation model and a second environment simulation model, and obtain switch configuration data and lower computer communication interface configuration data.
[0079] Specifically, you must first connect the physical device, which can be done as follows: Figure 4 The hardware architecture shown connects the physical interfaces of the host computer, HIL simulation platform, switch, CAN card, Ethernet card and domain controller according to the contents in the above embodiments, and then builds the first model simulation environment and the second environment simulation model, such as vehicle dynamics model, driver control model, I / O simulation model, CAN and Ethernet models of simulation nodes, etc.
[0080] S2, loading the first environment simulation model, the second environment simulation model and the lower computer communication interface configuration data to the lower computer, and loading the switch configuration data to the switch, so as to control the establishment of a communication connection between the lower computer, the switch and the domain controller.
[0081] Among them, the simulation model is initially stored in the host computer. When the model environment is installed, the host computer configures the model interface, compiles the simulation model and generates executable code, which is downloaded to the real-time simulation system of the lower computer through the network cable. The host computer runs the first environment simulation model and the second environment simulation model as needed and generates C code, which is then downloaded to the real-time simulation system of the lower computer through the network cable.
[0082] At the same time, the host computer also needs to configure the switch, that is, the SOME / IP data in the Ethernet line can communicate with the domain controller through the switch, but the first Ethernet interface and the third Ethernet interface, the first Ethernet interface and the second Ethernet interface inside the switch are not connected, and the MAC address, IP address, logical address, port number and other parameters of the host computer are set at the same time, so that the host computer and the controller establish a TCP connection. Among them, the setting of each Ethernet port in the switch is also implemented by the host computer, and the specific implementation method can also be in the form of first processing the software for setting the switch interface in the host computer to generate an executable code, and then download it to the switch through the network cable to configure the switch.
[0083] S3, controlling the first environment simulation model and the second environment simulation model to run, so as to perform the vehicle Ethernet communication test and generate a test report.
[0084] Specifically, in some embodiments, the first environment simulation model is controlled to run, and the lower computer establishes SOME / IP communication with the domain controller through the switch, performs the vehicle Ethernet communication test and generates a test report; or, when it is determined that the domain controller lacks the SOME / IP SD function, the first environment simulation model and the second environment simulation model are controlled to run, and the lower computer and the switch perform the vehicle Ethernet communication test and generate a test report. When the communication test is completed, the test report is automatically output, and the test report is analyzed, and then this round of testing ends.
[0085] In addition, the operation of the first environment simulation model and the second environment simulation model can be understood in combination with the above embodiments, and will not be described in detail here.
[0086] According to the communication test method based on vehicle Ethernet proposed in the embodiment of the present invention, when used in the automated test system based on vehicle Ethernet as described in any of the above embodiments, by setting a switch, it is possible to simultaneously establish communication connections between the host computer and the domain controller, and between the lower computer and the domain controller, so that the upper computer can control the lower computer to perform vehicle Ethernet communication test through the switch and the domain controller. And by configuring and running dual models, it is possible to simulate the SOME / IP SD subscription logic of the simulation node and the SOME / IP SD subscription logic of the domain controller, which can meet the Ethernet communication test of the domain controller that lacks the SOME / IPSD function, and realize the controllability of the SOME / IP SD subscription process between the domain controller and the simulation node.
[0087] In some embodiments of the present invention, a non-volatile computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed, a communication test method based on vehicle-mounted Ethernet as described in any one of the above items is implemented.
[0088] According to the non-volatile computer-readable storage medium proposed in the embodiment of the present invention, when the computer program stored thereon is executed by the processor, the communication test method based on the vehicle Ethernet of the above second aspect of the embodiment can be implemented, and communication between the domain controller and the simulation node can be established. In addition, by controlling the operation of the dual model, the SD service subscription process of the domain controller can be simulated, and the SD service subscription process of the simulation node can also be simulated, which can meet the Ethernet communication test of the domain controller lacking the SOME / IP SD function, and realize the controllability of the SOME / IP SD subscription process between the domain controller and the simulation node.
[0089] In some embodiments of the present invention, an electronic device is also provided, such as Figure 6, which is a block diagram of an electronic device according to an embodiment of the present invention, wherein the electronic device 100 includes at least one processor 1001 and a memory 1002, wherein the memory 1002 is communicatively connected to the at least one processor 1001. The memory stores a computer program executable by the processor, and when the computer program is executed by the processor, the communication test method based on the vehicle Ethernet as described above is implemented.
[0090] According to the electronic device 100 proposed in the embodiment of the present invention, when the computer program stored in the memory 1002 is executed by at least one processor 1001, the communication between the domain controller 30 and the simulation node can be realized by configuring the Ethernet switch 20. In addition, by controlling and running the dual model, the SD service subscription process of the domain controller 30 can be simulated, and the SD service subscription process of the simulation node can also be simulated, which can meet the Ethernet communication test of the domain controller 30 lacking the SOME / IP SD function, and realize the controllability of the SOME / IP SD subscription process between the domain controller 30 and the simulation node.
[0091] In addition, the electronic device 100 proposed in the embodiment of the present invention mainly uses Ethernet cards and switches 20 as network hardware to support Ethernet communication testing, which can greatly reduce equipment costs compared to the use of CANOE and other equipment in the prior art.
[0092] Other structures and operations of the vehicle Ethernet-based communication test system 1 and the electronic device 100 according to the embodiment of the present invention are known to those skilled in the art and will not be described in detail here.
[0093] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.
[0094] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A communication test system based on vehicle Ethernet, characterized in that: include: A lower computer, wherein the lower computer is configured with a first environment simulation model and a second environment simulation model, wherein the first environment simulation model is at least used to simulate the SOME / IP SD subscription logic of the simulation node, and the second environment simulation model is at least used to simulate the SOME / IP SD subscription logic of the domain controller when it is determined that the domain controller lacks the SOME / IP SD function; A domain controller, wherein the I / O port of the domain controller is suitable for communication connection with the lower computer; A switch is provided with a plurality of Ethernet interfaces, and the plurality of Ethernet interfaces are respectively used for communication connection with the lower computer, the upper computer and the domain controller. The host computer, the host computer, the slave computer and the switch are all connected via a network cable, and the host computer is used to control the slave computer, the switch and the domain controller via the network cable to perform an in-vehicle Ethernet communication test.
2. The communication test system based on vehicle Ethernet according to claim 1, characterized in that: The plurality of Ethernet interfaces include: A first Ethernet interface, wherein the first Ethernet interface is suitable for communicating with a simulation interface of the first environment simulation model in the lower computer; A second Ethernet interface, wherein the second Ethernet interface is suitable for communicating with a simulation interface of the second environment simulation model in the lower computer; A third Ethernet interface, the third Ethernet interface is suitable for communication connection with the lower computer; A fourth Ethernet interface, wherein the fourth Ethernet interface is suitable for communicating with the domain controller.
3. The communication test system based on vehicle Ethernet according to claim 2, characterized in that: The lower computer comprises: A HIL simulation platform, wherein the HIL simulation platform is configured with a real-time simulation system, and the real-time simulation system is used to run the first environment simulation model and the second environment simulation model; A board box is connected to the HIL simulation platform, and at least one of an Ethernet card, an I / O board card and a CAN card is arranged in the board box.
4. The communication test system based on vehicle Ethernet according to claim 3, characterized in that: Also includes: A first CAN channel, wherein the first CAN channel is used to connect the lower computer and the domain controller, and the first CAN channel is used to transmit the CAN message of the model simulation sent by the lower computer and the CAN communication signal sent by the domain controller; The second CAN channel is used to connect the host computer and the domain controller, and the second CAN channel is used to transmit CAN diagnostic messages and CAN calibration messages sent by the host computer and CAN diagnostic signals sent by the domain controller.
5. The communication test system based on vehicle Ethernet according to claim 4, characterized in that: The Ethernet card is adapted to be communicatively connected with the first Ethernet interface and the second Ethernet interface of the switch, and the Ethernet card is used to send an Ethernet test message and / or receive an Ethernet signal sent by the domain controller; The I / O board is suitable for communication connection with the I / O port of the domain controller, and the I / O board is used for sending and receiving I / O signals; The CAN card is suitable for being communicatively connected with the first CAN channel, and the CAN card is used to send the model simulation CAN message and / or receive the CAN communication signal sent by the domain controller.
6. The communication test system based on vehicle Ethernet according to claim 3, characterized in that: The network cables include a first network cable, a second network cable and a third network cable; The host computer is configured with: A model configuration module, the model configuration module is connected to the HIL simulation platform through the first network cable, and the model configuration module is used to load the first environment simulation model and the second environment simulation model into the lower computer; a communication interface configuration module, the communication interface configuration module being connected to the board box via the second network cable, the communication interface configuration module being used to configure the hardware interface of the board box, the simulation interface of the first environment simulation model, and the simulation interface of the second environment simulation model; a switch configuration module, the switch configuration module being connected to the switch through the third network cable, the switch configuration module being used to control the first Ethernet interface inside the switch to be disconnected from the second Ethernet interface and to be connected to the third Ethernet interface when the first environment simulation model simulates the SOME / IP SD subscription logic of the simulation node, and the switch configuration module being further used to control the first Ethernet interface inside the switch to be connected to the second Ethernet interface when it is determined that the domain controller lacks the SOME / IP SD function; A communication test module, wherein the communication test module is communicatively connected to the third Ethernet interface of the switch, and the communication test module is used to respond to a communication test control instruction to control the lower computer and the switch to perform the SOME / IP communication test on the domain controller.
7. A communication test method based on vehicle-mounted Ethernet, characterized in that: include: Build a first environment simulation model and a second environment simulation model, and obtain switch configuration data and lower computer communication interface configuration data; Loading the first environment simulation model, the second environment simulation model and the lower computer communication interface configuration data to the lower computer, and loading the switch configuration data to the switch, so as to control the lower computer, the switch and the domain controller to establish a communication connection; The first environment simulation model and the second environment simulation model are controlled to run, so as to perform an in-vehicle Ethernet communication test and generate a test report.
8. The communication test method based on vehicle-mounted Ethernet according to claim 7, characterized in that: Controlling the first environment simulation model and the second environment simulation model to run, so as to perform an in-vehicle Ethernet communication test and generate a test report, including: Controlling the operation of the first environment simulation model, the lower computer establishing SOME / IP communication with the domain controller through a switch, executing the vehicle Ethernet communication test and generating the test report; Alternatively, when it is determined that the domain controller lacks the SOME / IP SD function, the first environment simulation model and the second environment simulation model are controlled to run, and the vehicle Ethernet communication test is performed by the lower computer and through the switch to generate the test report.
9. A non-volatile computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the communication test method based on vehicle-mounted Ethernet as described in any one of claims 7 or 8 is implemented.
10. An electronic device, characterized in that: include: at least one processor; a memory communicatively coupled to at least one of the processors; The memory stores a computer program that can be executed by the processor. When the computer program is executed by the processor, the communication test method based on vehicle Ethernet as described in any one of claims 7 or 8 is implemented.
