VLAN (Virtual Local Area Network) configuration system and method for realizing Ethernet diagnosis of domain controller, and vehicle
By using gateways and diagnostic devices that support DOIP protocol in the VLAN configuration system of the domain controller, the VLAN configuration of the domain controller is dynamically adjusted, and the adaptation problem of Ethernet diagnosis between domain controllers of different models is solved, and the software packages are shared by multiple models is realized, which reduces the cost of vehicle development.
Patent Information
- Application Number
- CN202510022632.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-04-15
AI Technical Summary
The prior art is difficult to implement Ethernet diagnostics between domain controllers of different models, resulting in the inability to adapt to domain controllers of multiple models, increasing development costs and cycles.
By designing a VLAN configuration system, the gateway and diagnostic equipment that supports DOIP protocol are used, combined with CAN messages, the VLAN configuration of the domain controller is dynamically adjusted to enable Ethernet interaction with the gateway and diagnostic equipment.
It realizes Ethernet diagnostics for platform-based domain controllers that only support DOIP, reduces the cost of vehicle development, and supports multiple models and multiple platforms to share software packages.
Smart Images

Figure CN119835111A_ABST
Abstract
Description
Technical Field
[0001] The present invention provides a vehicle domain controller diagnosis method, specifically a VLAN configuration system, method and vehicle for realizing domain controller Ethernet diagnosis. Background Art
[0002] With the development and popularization of in-vehicle Ethernet, more and more domain controllers on the whole vehicle only support DOIP (Diagnosticcommunication over Internet Protocol, a diagnostic communication protocol based on Internet Protocol) for Ethernet diagnosis. When using DOIP for Ethernet diagnosis of domain controllers, it is necessary to ensure that the VLAN ID (Virtual Local Area Network ID, VLAN configuration) of the diagnostic request message sent by the diagnostic device is consistent with the DOIP diagnostic VLANID of the domain controller.
[0003] Since different car models may adopt different network architectures and configurations during design, the DOIP diagnostic VLAN IDs of different domain controllers are different; when the DoIP diagnostic VLAN IDs of different domain controllers are inconsistent, standard DoIP diagnostic equipment or software may not be able to directly identify and connect to the target domain controller, making it impossible to effectively diagnose and communicate with the domain controller. In order to adapt to domain controllers of different models, developers may need to develop or customize diagnostic tools for each model separately, which undoubtedly increases development costs and cycles. At present, there is no compatible solution in the industry for the problem of inconsistent VLAN IDs of domain controllers that can adapt to multiple models across platforms.
[0004] None of the above existing solutions consider the situation where there are multiple controllers with different diagnostic VLAN IDs on the same vehicle; and because the diagnostic VLAN IDs are inconsistent, Ethernet diagnosis of the domain controller cannot be implemented, and the domain controller needs to change the VLAN, increasing the cost of vehicle development. Summary of the invention
[0005] The present invention provides a VLAN configuration system, method and vehicle for realizing Ethernet diagnosis of a domain controller, which is applicable to Ethernet diagnosis of a platform domain controller that only supports DOIP, and realizes a common software package for multiple models and platforms without separately matching the model development software, thereby greatly reducing the development cost of the whole vehicle.
[0006] The technical solution of the present invention is: On the one hand, the present application provides a VLAN configuration system for implementing Ethernet diagnosis of a domain controller, including: a gateway supporting the DOIP protocol and having a switch, a diagnostic device supporting the DOIP protocol, and at least two domain controllers supporting only the DOIP protocol; The gateway is connected to at least two domain controllers and the diagnostic device via an Ethernet harness and a CAN harness; The gateway enters the vehicle configuration mode after receiving the vehicle configuration mode start instruction sent by the diagnostic device through the DOIP message; In vehicle configuration mode, the gateway receives the vehicle model configuration information sent by the diagnostic device via a DOIP message, and triggers at least two domain controllers to perform VLAN configuration according to the vehicle model configuration information in the form of a CAN message, so as to enable Ethernet interaction between the gateway and at least two domain controllers.
[0007] Preferably, the gateway enters the vehicle configuration mode after receiving the first DOIP message sent by the diagnostic device; the first DOIP message carries a vehicle configuration mode start instruction; In the vehicle configuration mode, the gateway first periodically sends a first CAN message to each of the domain controllers; the first CAN message carries information that the VLAN configuration is an invalid value; After receiving the second DOIP message carrying the vehicle type configuration information sent by the diagnostic device, the gateway periodically sends a second CAN message to each domain controller; the second CAN message carries a VLAN configuration value determined according to the vehicle type configuration information; Each of the domain controllers switches the VLAN configuration according to the second CAN message.
[0008] Preferably, the VLAN configuration of the gateway is different from the VLAN configuration of at least two of the domain controllers; or The VLAN configuration of the gateway is the same as the VLAN configuration of part of the domain controller.
[0009] Preferably, when the VLAN configuration of the gateway is different from the VLAN configurations of at least two of the domain controllers, after receiving the second DOIP message sent by the diagnostic device, the gateway switches the VLAN configuration according to the VLAN configuration value in the second DOIP message.
[0010] Preferably, each of the domain controllers determines whether VLAN configuration switching is required according to the current VLAN configuration value and the VLAN configuration value in the second CAN message; If VLAN configuration switching is not required, a third CAN message and a fourth CAN message are directly sent to the gateway; the third CAN message carries information that the VLAN configuration switching is completed, and the fourth CAN message carries the current VLAN configuration value; If VLAN configuration switching is required, VLAN configuration switching is performed according to the VLAN configuration value in the second CAN message, and the third CAN message and the fourth CAN message are sent to the gateway after the VLAN configuration switching is completed.
[0011] Preferably, after receiving the third CAN message and the fourth CAN message, the gateway feeds back a third DOIP message to the diagnostic device, wherein the third DOIP message carries information that the domain controller completes VLAN configuration switching; After receiving the fourth DOIP message sent by the diagnostic device, the gateway exits the vehicle configuration mode and stops sending the second CAN message to each domain controller; the fourth DOIP message carries a vehicle configuration mode exit instruction.
[0012] Preferably, the Ethernet harness between the gateway and the diagnostic device uses 100baseTX protocol.
[0013] Preferably, the Ethernet wiring harness between the gateway and each of the domain controllers adopts 100 base-T protocol or 1000base-T protocol.
[0014] On the other hand, the present application also provides a VLAN configuration diagnosis method for a domain controller, which is applied to the above-mentioned VLAN configuration system for realizing Ethernet diagnosis of a domain controller, and the method includes: After receiving the vehicle configuration mode start command sent by the diagnostic device through the DOIP message, the gateway enters the vehicle configuration mode; In vehicle configuration mode, after the gateway receives the vehicle model configuration information sent by the diagnostic device through the DOIP message, it triggers at least two domain controllers to perform VLAN configuration according to the vehicle model configuration information in the form of CAN messages, so as to enable Ethernet interaction between the gateway and at least two of the domain controllers.
[0015] On the other hand, the present application also provides a vehicle, including the above-mentioned VLAN configuration system for implementing domain controller Ethernet diagnosis.
[0016] The beneficial effects of the present invention are: By switching the VLAN configuration of the domain controller that is inconsistent with the vehicle model configuration, Ethernet diagnosis of the platform domain controller that only supports DOIP can be achieved, and a common software package for multiple models and platforms can be achieved without matching the vehicle model development software separately, greatly reducing the cost of vehicle development. In addition, when a vehicle replaces a new domain controller, if the VLANID of the newly replaced domain controller is inconsistent with the vehicle model configuration, the above method of this application can also achieve VLAN ID replacement for the newly replaced domain controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A structural block diagram of a VLAN configuration system for implementing Ethernet diagnosis of a domain controller in an embodiment of the present application; Figure 2 This is a flow chart of a VLAN configuration method for implementing Ethernet diagnosis of a domain controller in an embodiment of the present application. DETAILED DESCRIPTION
[0018] The method of the present invention is further described below in conjunction with the embodiments and accompanying drawings. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0019] In an embodiment of the present application, a VLAN configuration system for implementing Ethernet diagnosis of a domain controller is provided, and its main hardware components include: a gateway GW-Switch supporting the DOIP protocol and with a switch, a diagnostic device DCU supporting the DOIP protocol, and at least two domain controllers that only support the DOIP protocol.
[0020] After receiving the vehicle configuration mode start command sent by the diagnostic device through the DOIP message, the gateway enters the vehicle configuration mode.
[0021] In vehicle configuration mode, the gateway receives vehicle configuration information sent by the diagnostic device via DOIP messages, and triggers at least two domain controllers to perform VLAN configuration according to the vehicle configuration information in the form of CAN messages, so as to enable Ethernet interaction between the gateway and at least two domain controllers.
[0022] The VLAN configuration system for implementing Ethernet diagnosis of the domain controller in the embodiment of the present application switches the VLAN configuration of the domain controller whose VLAN configuration is inconsistent with the vehicle model configuration according to the vehicle model configuration information, thereby realizing a common software package for multiple vehicle models and platforms without separately matching the vehicle model development software, thereby greatly reducing the cost of vehicle development.
[0023] After receiving the first DOIP message sent by the diagnostic device, the gateway enters the vehicle configuration mode; the first DOIP message carries a vehicle configuration mode start instruction; In the vehicle configuration mode, the gateway first periodically sends a first CAN message to each domain controller; the first CAN message carries information that the VLAN configuration is an invalid value; After receiving the second DOIP message carrying the vehicle type configuration information sent by the diagnostic device, the gateway periodically sends a second CAN message to each domain controller; the second CAN message carries a VLAN configuration value determined according to the vehicle type configuration information; Each domain controller switches the VLAN configuration according to the second CAN message.
[0024] In the embodiment of the present application, each domain controller is a platform domain controller that only supports DOIP.
[0025] Among them, the interaction between the gateway GW-Switch, each domain controller and the diagnostic device DCU is carried out through Ethernet and CAN.
[0026] exist Figure 1 There are at least two domain controllers, namely: the first domain controller XDC1 that only supports DOIP, and the second domain controller XDU2 that only supports DOIP; therefore, the gateway GW-Switch, the first domain controller XDU1, the second domain controller XDU2, and the diagnostic device DCU interact with each other through Ethernet and CAN; the gateway GW-Switch, the first domain controller XDU1, and the second domain controller XDU2 use the 100 / 1000base-T protocol, and the gateway GW-Switch and the diagnostic device DCU use the 100baseTX protocol.
[0027] In the embodiment of the present application, the VLAN configuration of the gateway is different from the VLAN configuration of at least two of the domain controllers, or the VLAN configuration of the gateway is the same as the VLAN configuration of some domain controllers (for example Figure 1 In the embodiment of the present application, the VLAN configuration of the domain controller and the VLAN configuration of the gateway specifically refer to the VLAN ID.
[0028] This application Figure 1 In the embodiment, the VLAN ID of the first domain controller XDU1 is 1x, the VLAN ID of the second domain controller XDU2 is 2x, and the VLAN ID of the gateway GW-Switch is 2x.
[0029] Among them, the gateway GW-Switch is the edge node of the vehicle DOIP. The fourth port (i.e. port4) of the switch in the gateway GW-Switch is connected to the Ethernet diagnostic port of the vehicle OBD (On-Board Diagnostics, vehicle automatic diagnostic system), and the diagnostic device DCU is connected to the Ethernet diagnostic port of the vehicle OBD.
[0030] Among them, after receiving the second DOIP message from the diagnostic device DCU, the gateway GW-Switch sends the vehicle configuration information to the MCU of the first domain controller XDU1 and the MCU of the second domain controller XDU2 through the first CAN message. After receiving the vehicle configuration information, the MCU of the first domain controller XDU1 performs the VLAN ID switching configuration of the first domain controller XDU1, so that the VLANID is switched from 1x to 2x. The MCU of the second domain controller XDU2 recognizes that the current VLANID is consistent with the vehicle configuration information, and there is no need to switch the VLAN ID. After the VLAN ID is switched, the first domain controller XDU1 can realize Ethernet interaction with the second domain controller XDU2, the gateway GW-Switch and the diagnostic device DCU.
[0031] Reference Figure 1 At this time, the first domain controller XDU1, the second domain controller XDU2 and the gateway GW have been physically assembled. After the diagnostic device DCU and the gateway GW-Switch complete the Ethernet physical connection, they can use the DOIP protocol to communicate; the gateway GW-Switch, as the vehicle DOIP diagnostic edge node, is responsible for completing the security authentication work with the diagnostic device DCU; the first DOIP message sent by the diagnostic device DCU to the gateway GW-Switch does not carry a VLAN ID. After completing the security authentication, the switch in the gateway GW-Switch needs to add VLAN ID 2X to the message entering Port4.
[0032] Since the VLAN IDs of the gateway GW-Switch and the second domain controller XDU2 are the same, Ethernet diagnosis can be implemented between the gateway GW-Switch and the second domain controller XDU2; however, since the VLAN IDs of the gateway GW-Switch and the first domain controller XDU1 are inconsistent, Ethernet diagnosis cannot be implemented between the gateway GW-Switch, the second domain controller XDU2 and the first domain controller XDU1.
[0033] Reference Figure 2 , so that Ethernet diagnosis can be performed between the gateway GW-Switch, the second domain controller XDU2 and the first domain controller XDU1. In the embodiment of the present application, the diagnostic device DCU sends a first DOIP message carrying a vehicle configuration mode start instruction to allow the gateway GW-Switch to enter the vehicle configuration mode.
[0034] In vehicle configuration mode, before receiving the vehicle configuration information sent by the diagnostic device DCU, the gateway GW-Switch periodically sends the first CAN message to the first domain controller XDU1. The first CAN message carries information that the VLAN configuration is an invalid value. The first CAN message corresponds to Figure 2and the XDU1_VLAN configuration message XDU1_VmVlanSet in Table 1 that contains an invalid value (ie, 0x0 = invalid).
[0035] The diagnostic device DCU sends the vehicle configuration information (such as VM-2X) to the gateway GW-Switch through the second DOIP message. After receiving the vehicle configuration information (such as VM-2X), the gateway GW-Switch stores it locally; then sends the second CAN message to the first domain controller XDU1 through the CAN channel (the second CAN message corresponds to Figure 2 The XDU1_VLAN configuration message XDU1_VmVlanSet containing valid values in Table 1 and the XDU1_VmVlanSet containing valid values (i.e., one of 0x1=WLAN configuration 1, 0x2=WLAN configuration 2, 0x3=WLAN configuration 3) in Table 1), the message ID and signal name of the second CAN message can be set by the OEM. The following Table 1 provides a design reference.
Claims
1. A VLAN configuration system for realizing Ethernet diagnosis of a domain controller, characterized in that: include: A gateway with a switch that supports the DOIP protocol, a diagnostic device that supports the DOIP protocol, and at least two domain controllers that only support the DOIP protocol; The gateway is connected to at least two domain controllers and the diagnostic device via an Ethernet harness and a CAN harness; The gateway enters the vehicle configuration mode after receiving the vehicle configuration mode start instruction sent by the diagnostic device through the DOIP message; In vehicle configuration mode, the gateway receives the vehicle model configuration information sent by the diagnostic device via a DOIP message, and triggers at least two domain controllers to perform VLAN configuration according to the vehicle model configuration information in the form of a CAN message, so as to enable Ethernet interaction between the gateway and at least two domain controllers.
2. The VLAN configuration system for realizing Ethernet diagnosis of a domain controller according to claim 1, characterized in that: The gateway enters the vehicle configuration mode after receiving the first DOIP message sent by the diagnostic device; the first DOIP message carries a vehicle configuration mode start instruction; In the vehicle configuration mode, the gateway first sends a first CAN message to each of the domain controllers at a regular period; The first CAN message carries information that the VLAN configuration is an invalid value; After receiving the second DOIP message carrying the vehicle model configuration information sent by the diagnostic device, the gateway periodically sends a second CAN message to each of the domain controllers; The second CAN message carries a VLAN configuration value determined according to the vehicle model configuration information; Each of the domain controllers switches the VLAN configuration according to the second CAN message.
3. The VLAN configuration system for realizing Ethernet diagnosis of a domain controller according to claim 2, characterized in that: The VLAN configuration of the gateway is different from the VLAN configuration of at least two of the domain controllers; or The VLAN configuration of the gateway is the same as the VLAN configuration of part of the domain controller.
4. The VLAN configuration system for realizing Ethernet diagnosis of a domain controller according to claim 3, characterized in that: When the VLAN configuration of the gateway is different from the VLAN configurations of at least two of the domain controllers, after receiving the second DOIP message sent by the diagnostic device, the gateway switches the VLAN configuration according to the VLAN configuration value in the second DOIP message.
5. The VLAN configuration system for realizing Ethernet diagnosis of a domain controller according to claim 2, characterized in that: Each of the domain controllers determines whether VLAN configuration switching is required according to the current VLAN configuration value and the VLAN configuration value in the second CAN message; If VLAN configuration switching is not required, directly sending the third CAN message and the fourth CAN message to the gateway; The third CAN message carries information that the VLAN configuration switching is completed, and the fourth CAN message carries the current VLAN configuration value; If VLAN configuration switching is required, VLAN configuration switching is performed according to the VLAN configuration value in the second CAN message, and the third CAN message and the fourth CAN message are sent to the gateway after the VLAN configuration switching is completed.
6. The VLAN configuration system for realizing Ethernet diagnosis of a domain controller according to claim 5, characterized in that: After receiving the third CAN message and the fourth CAN message, the gateway feeds back a third DOIP message to the diagnostic device, wherein the third DOIP message carries information that the domain controller completes VLAN configuration switching; After receiving the fourth DOIP message sent by the diagnostic device, the gateway exits the vehicle configuration mode and stops sending the second CAN message to each domain controller; the fourth DOIP message carries a vehicle configuration mode exit instruction.
7. The VLAN configuration system for realizing Ethernet diagnosis of a domain controller according to claim 1, characterized in that: The Ethernet harness between the gateway and the diagnostic device uses the 100baseTX protocol.
8. The VLAN configuration system for implementing Ethernet diagnosis of a domain controller according to claim 1, characterized in that: The Ethernet wiring harness between the gateway and each of the domain controllers adopts the 100 base-T1 protocol or the 1000 base-T1 protocol.
9. A VLAN configuration diagnosis method for a domain controller, characterized in that: The VLAN configuration system for implementing Ethernet diagnosis of a domain controller according to any one of claims 1 to 8, the method comprising: After receiving the vehicle configuration mode start command sent by the diagnostic device through the DOIP message, the gateway enters the vehicle configuration mode; In vehicle configuration mode, after the gateway receives the vehicle model configuration information sent by the diagnostic device through the DOIP message, it triggers at least two domain controllers to perform VLAN configuration according to the vehicle model configuration information in the form of CAN messages, so as to enable Ethernet interaction between the gateway and at least two of the domain controllers.
10. A vehicle, characterized in that: The invention comprises a VLAN configuration system for realizing Ethernet diagnosis of a domain controller as described in any one of claims 1 to 8.