Vehicle-mounted network processing method and device, storage medium, electronic equipment and vehicle
By obtaining the in-vehicle network communication status and driving information to determine the link switching conditions, the system switches to the backup Ethernet link to resolve communication interruptions caused by in-vehicle Ethernet link failures, ensuring vehicle safety and normal functions and reducing maintenance costs.
Patent Information
- Application Number
- CN202410323974.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-20
- Publication Date
- 2025-09-23
AI Technical Summary
In the existing technology, failure of the in-vehicle Ethernet link causes the domain controllers to be unable to communicate with each other, affecting the functions of the entire vehicle and the vehicle driving safety.
By obtaining the communication status information of the vehicle network and analyzing the vehicle driving information, the link switching conditions are determined, and when the conditions are met, a link switching instruction is sent to the domain controller to switch to the backup Ethernet link for data communication.
It realizes adaptive switching when the Ethernet link fails, ensuring the transmission of critical data, ensuring the normal function of the entire vehicle, avoiding safety accidents, and saving maintenance costs.
Smart Images

Figure CN120692145A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to an in-vehicle network processing method, device, storage medium, electronic equipment, and vehicle. Background Art
[0002] With the continuous application of new automotive technologies, especially with the rise of autonomous driving technology, the vehicle's requirements for communication bandwidth are becoming increasingly higher, so the application of in-vehicle Ethernet technology in the vehicle is becoming increasingly widespread.
[0003] In-vehicle Ethernet can be used in the vehicle's backbone network. Currently, data communication between domain controllers is carried out through in-vehicle Ethernet. Two domain controllers can be connected via a single Ethernet link, and each Ethernet link is limited to unidirectional data communication. However, each Ethernet link carries a significant data communication burden. If an Ethernet link fails, data communication between domain controllers will be disrupted, significantly impacting vehicle functionality and, consequently, driving safety. Summary of the Invention
[0004] In view of this, the present application provides an in-vehicle network processing method, storage medium, electronic device and vehicle, the main purpose of which is to improve the technical problem in the current existing technology that when an Ethernet link fails, data communication between domain controllers cannot be carried out, affecting the function of the entire vehicle and the safety of vehicle driving.
[0005] In a first aspect, the present application provides a vehicle network processing method, which can be applied to a control node for execution, including:
[0006] Obtaining communication status information of an in-vehicle network, the in-vehicle network including a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication;
[0007] If it is determined that a faulty Ethernet link exists based on the communication status information, determining whether a link switching condition is met by analyzing the vehicle driving information;
[0008] When the link switching condition is met, a link switching instruction is sent to the multiple domain controllers, wherein the link switching instruction is used to instruct the domain controller to switch a backup link, and the backup link is used to communicate data between the domain controllers through other Ethernet links except the faulty Ethernet link.
[0009] In a second aspect, the present application provides a vehicle network processing method, which can be applied to a domain controller for execution, including:
[0010] receiving a link switching instruction sent by a control node, the link switching instruction being sent by the control node when the control node determines, based on status information of an in-vehicle network, that a faulty Ethernet link exists and when the control node determines, based on analysis of vehicle driving information, that a link switching condition is satisfied, the in-vehicle network including a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication;
[0011] Switching the backup link of the domain controller is performed according to the link switching instruction, and the backup link is used for data communication between the domain controllers through other Ethernet links except the failed Ethernet link.
[0012] In a third aspect, the present application provides a vehicle network processing device, which can be applied to a control node, including:
[0013] an acquisition module configured to acquire status information of an in-vehicle network, the in-vehicle network including a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication;
[0014] a determination module configured to, if it is determined according to the status information that a faulty Ethernet link exists, determine whether a link switching condition is met by analyzing vehicle driving information;
[0015] The sending module is configured to send a link switching instruction to the multiple domain controllers when a link switching condition is met, and the link switching instruction is used to instruct the domain controller to switch a backup link, and the backup link is used to communicate data between the domain controllers through other Ethernet links except the faulty Ethernet link.
[0016] In a fourth aspect, the present application provides an in-vehicle network processing device, which can be applied to a domain controller, including:
[0017] a receiving module configured to receive a link switching instruction sent by a control node, the link switching instruction being sent by the control node when the control node determines, based on status information of an in-vehicle network, that a faulty Ethernet link exists and when the control node determines, based on analysis of vehicle driving information, that a link switching condition is satisfied, the in-vehicle network including a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication;
[0018] The switching module is configured to switch the backup link of the domain controller according to the link switching instruction, where the backup link is used for data communication between the domain controllers through other Ethernet links except the failed Ethernet link.
[0019] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect or the method described in the second aspect.
[0020] In a sixth aspect, the present application provides an electronic device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein when the processor executes the computer program, the method described in the first aspect or the method described in the second aspect is implemented.
[0021] In a seventh aspect, the present application provides a vehicle comprising: the device as described in the third aspect, or the device as described in the fourth aspect, or the electronic device as described in the sixth aspect.
[0022] By means of the above technical solution, the present application provides an in-vehicle network processing method, device, storage medium, electronic device and vehicle. First, communication status information in the in-vehicle network is obtained. The in-vehicle network includes multiple domain controllers connected in a ring shape through multiple Ethernet links, and the Ethernet links support bidirectional data communication. If it is determined based on the communication status information that there is a faulty Ethernet link, the vehicle driving information is analyzed to determine whether a link switching condition is met. If the link switching condition is met, a link switching instruction is sent to the multiple domain controllers. The link switching instruction is used to instruct the domain controller to switch to a backup link. The backup link is used to communicate data between the domain controllers through other Ethernet links other than the faulty Ethernet link. Compared with the prior art, each Ethernet link can only perform one-way data communication. The in-vehicle network in the present application is a ring connection structure, and each Ethernet link supports bidirectional communication. When an Ethernet link in the in-vehicle network fails, the faulty Ethernet link can be bypassed and adaptively switched to the backup link. Other Ethernet links are selected for data communication forwarding, ensuring the transmission of critical data, realizing data communication between domain controllers, ensuring that the function of the entire vehicle is not affected, avoiding major safety accidents, and ensuring the safety of vehicle driving. It can also enable the vehicle to continue to operate normally in the event of an Ethernet link failure, saving the cost of repairs such as towing.
[0023] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0026] Figure 1 A schematic diagram showing a flow chart of a vehicle network processing method provided by an embodiment of the present application is shown;
[0027] Figure 2 A schematic diagram showing an application example provided by an embodiment of the present application is shown;
[0028] Figure 3 A schematic diagram of a process flow of an application example provided by an embodiment of the present application is shown;
[0029] Figure 4 A schematic diagram showing a flow chart of another vehicle network processing method provided by an embodiment of the present application is shown;
[0030] Figure 5 A schematic diagram showing an application example provided by an embodiment of the present application is shown;
[0031] Figure 6 A schematic diagram showing an application example provided by an embodiment of the present application is shown;
[0032] Figure 7 A schematic diagram showing an application example provided by an embodiment of the present application is shown;
[0033] Figure 8 A schematic diagram showing an application example provided by an embodiment of the present application is shown;
[0034] Figure 9 A schematic diagram showing an application example provided by an embodiment of the present application is shown;
[0035] Figure 10 A schematic diagram showing an application example provided by an embodiment of the present application is shown;
[0036] Figure 11 A schematic diagram showing an application example provided by an embodiment of the present application is shown;
[0037] Figure 12 A schematic structural diagram of a vehicle network processing device provided in an embodiment of the present application is shown;
[0038] Figure 13 A structural diagram of another vehicle network processing device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0039] In order to more clearly understand the above-mentioned objectives, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that, in the absence of conflict, the embodiments of the present application and the features therein can be combined with each other.
[0040] In order to improve the technical problem in the existing technology that when the Ethernet link fails, the domain controllers cannot communicate data, which affects the function of the whole vehicle and the safety of vehicle driving. This embodiment provides a vehicle network processing method that can be applied to the control node side, such as Figure 1 As shown, the method includes:
[0041] Step 101: Acquire communication status information within the vehicle network.
[0042] The in-vehicle network includes multiple domain controllers connected in a ring via multiple Ethernet links. The Ethernet links support bidirectional data communication. Status information can be used to determine whether there are any faults in the Ethernet links of the in-vehicle network.
[0043] In some examples, vehicle domain controllers are connected via physical network lines. To avoid data flooding, the ring links need to be isolated using virtual local area networks (VLANs). Figure 2 As shown, each domain controller node in the ring link can have two links for communication with adjacent nodes. The link that directly communicates with the adjacent node can be used as the primary link, and the link forwarded through another node can be used as the backup link. For example, between domain controllers A and B, the link that communicates via link A can be used as the primary link, and the links that communicate between domain controllers A and B via links B and C can be used as backup links.
[0044] Specifically, each domain controller node has at least one microcontroller unit (MCU) or system on chip (SOC) connected to an Ethernet switch (Switch), wherein the MCU or SOC can manage the switch through a stable communication method (SMI / SPI / I2C, etc.). The control node of the ring link (also called the main node or Master node, etc.) can be deployed in the domain controller connected to the off-board diagnostic instrument interface. The control node can collect communication status information within the vehicle network, including information such as faulty Ethernet links. In this way, when the vehicle is sent to the factory for maintenance, the relevant faulty Ethernet link information can be directly read from the control node through the off-board diagnostic instrument interface, which is convenient for rapid maintenance.
[0045] Communication between domain controllers uses data packets. Through these data packets, the control node can obtain communication status information within the vehicle network, which may include the communication status of each Ethernet link. Based on the communication status of these Ethernet links, it can then determine whether there is a faulty Ethernet link.
[0046] Step 102: If it is determined based on the communication status information that a faulty Ethernet link exists, then by analyzing the vehicle driving information, it is determined whether a link switching condition is met.
[0047] Vehicle driving information may include vehicle speed, gear used, user driving behavior, and navigation information. To ensure vehicle safety during link switching, it is necessary to analyze vehicle driving information in advance to determine whether link switching conditions are met. If the link switching conditions are not met, it means that link switching will affect vehicle safety. In this case, it is recommended to wait until the link switching conditions are met before switching.
[0048] Step 103: When the link switching condition is met, a link switching instruction is sent to multiple domain controllers.
[0049] The link switching instruction is used to instruct the domain controller to switch to a backup link, where the backup link is used to perform data communication between domain controllers via other Ethernet links except the failed Ethernet link.
[0050] In this embodiment, upon detecting that a network link meets the switching conditions, the control node initiates a ring network link switching command. Each Ethernet ring network node then synchronously switches to the backup link and restarts the network. The control node sends link switching commands to nodes via different links based on the location of the fault. Furthermore, because link switching is controlled at the switch link level, it is not noticeable to upper-layer software applications. Furthermore, the backup link cannot completely replace the primary link. Therefore, when a link switch occurs, the control node can trigger an Ethernet fault report to alert the vehicle owner that the vehicle is faulty and requires repair.
[0051] Compared to the existing technology where each Ethernet link can only carry out unidirectional data communication, the vehicle network in this embodiment has a ring connection structure, and each Ethernet link supports bidirectional communication. When the Ethernet link of the vehicle network fails, it can bypass the failed Ethernet link and adaptively switch to the backup link, selecting other Ethernet links for data communication forwarding, ensuring the transmission of critical data and realizing data communication between domain controllers. For example, after the Ethernet link of the vehicle network fails and communication is impossible, the vehicle diagnoses the link breakpoint location in real time and switches to the corresponding backup link based on the breakpoint location to enable each Ethernet node to continue communicating. The upper-layer application software of the controller is unaware of the link switching, ensuring that the entire vehicle function is not affected and major safety accidents are avoided. It can also enable the vehicle to continue to operate normally in the event of an Ethernet link failure, saving the maintenance costs of the trailer.
[0052] Further, as a refinement and expansion of the above embodiment, in order to fully illustrate the specific implementation process of the method of this embodiment, optionally, step 102 may include: obtaining the vehicle's travel speed and the vehicle's current gear from the vehicle driving information; judging whether the link switching condition is met based on the vehicle's travel speed and the vehicle's current gear; if the vehicle's travel speed is 0 and the vehicle's current gear is the parking gear, it is determined that the link switching condition is met.
[0053] For example, when a vehicle is in normal driving mode and the network link is suddenly switched, the controller may be disconnected from the network for a short time, resulting in the loss of critical communication data and potentially causing unknown risks. Therefore, before switching the network link, the Master node needs to determine whether the current vehicle meets the following conditions:
[0054] The vehicle's speed is 0; the vehicle's current gear is parking (P).
[0055] If the above conditions are met, it means that the vehicle is not moving and is in a parked state. At this time, switching the link will not affect the driving safety of the vehicle, and the switching of the backup link can be triggered.
[0056] Furthermore, step 102 may also include triggering the output of a prompt message if the link switching conditions are not met, which notifies the user that the vehicle network has failed and prompts the user to stop the vehicle and engage park. This prompt can promptly remind the user to prepare for the link switch, improving the efficiency of link switching and allowing the user to understand that the vehicle network has failed and that subsequent maintenance is required.
[0057] To accurately notify each domain controller to switch to a backup link, step 103 may optionally include: obtaining the location information of the faulty Ethernet link in the vehicle network; analyzing the location information to obtain multiple Ethernet links and target VLAN types for sending link switching instructions, where the multiple Ethernet links do not include the faulty Ethernet link; and sending a link switching instruction of the target VLAN type to the domain controller via the multiple Ethernet links. Because the ring links in this vehicle network are isolated using VLANs, communication with each domain controller uses communication instructions of the corresponding VLAN type. The target VLAN type can be the VLAN type used in the event of a faulty Ethernet link. Using this target VLAN type ensures that the link switching instruction is accurately sent to these domain controllers.
[0058] For example, the Ethernet link connectivity diagnosis mechanism and unique diagnostic activation / response messages can be used to achieve real-time diagnosis of the vehicle's Ethernet link connectivity, thereby quickly locating the vehicle's fault point, providing vehicle fault warnings, and avoiding major safety issues. Figure 3 As shown in the figure, when link A fails, the Master node can use VLAN3 to send the link switching command to domain controller C through link B, and domain controller C then sends the link switching command to domain controller B through link C; when link B fails, the Master node can use VLAN4 to send the link switching command to domain controller B through link A, and domain controller B then sends the link switching command to domain controller C through link C; when link C fails, the Master node can use VLAN2 to send the link switching command to domain controller B through link A, and send the link switching command to domain controller C through link B.
[0059] Based on the fact that the Ethernet link in this vehicle network supports bidirectional communication, optionally, after step 103, the method of this embodiment may further include: receiving a target message of successful reception of a link switching instruction fed back by the domain controller through multiple Ethernet links, wherein the target message is a message of the target VLAN type, so as to determine whether these domain controllers have successfully received the link switching instruction, thereby facilitating determination of whether the subsequent backup link switching is successful; after determining that the backup link switching is successful, sending a port shutdown instruction through multiple Ethernet links, the port shutdown instruction is used to instruct the domain controller to shut down the Ethernet communication function of the target port corresponding to the faulty Ethernet link.
[0060] For example, a node (SOC / MCU) in the domain controller can manage the switch through some non-Ethernet method (SPI / I2C / SMI, etc.). This node can configure the switch's forwarding MAC address table, VLAN, and port status. Information related to the backup link is pre-stored in the management node's memory. After receiving the switch command, the controller node waits for 1 second and then randomly writes the backup link information to the switch through the management protocol. To prevent the sudden recovery of a faulty link from causing loop data broadcast flooding, the Ethernet communication function of the node switch port corresponding to the faulty link needs to be disabled after the link is switched.
[0061] For example, when link A fails, the communication function between Port 1 of the switch in domain controller A and Port 5 of the switch in domain controller B is shut down. When link B fails, the communication function between Port 2 of the switch in domain controller A and Port 3 of the switch in domain controller C is shut down. When link C fails, the communication function between Port 6 of the switch in domain controller B and Port 4 of the switch in domain controller C is shut down.
[0062] In order to illustrate the processing process of the domain controller, further, this embodiment also provides a vehicle network processing method that can be applied to the domain controller side. Figure 4 As shown, the method includes:
[0063] Step 201: Receive a link switching instruction sent by a control node.
[0064] Among them, the link switching instruction is sent by the control node when it determines that there is a faulty Ethernet link based on the status information of the vehicle network and determines that the link switching conditions are met by analyzing the vehicle driving information. The vehicle network includes multiple domain controllers connected in a ring shape through multiple Ethernet links. The Ethernet links support two-way data communication.
[0065] In this embodiment, the instruction transmission is based on the User Datagram Protocol (UDP). In which, a master node, i.e., a control node, is deployed in domain controller A, and domain controllers B and C can be regarded as slave nodes (also called Slave nodes). After the Slave node receives the link switching node command, if link A fails, node C needs to forward the link switching instruction to node B. After node B returns the message to node C, node C returns the messages of nodes B and C to node A together; if link B fails, node B needs to forward the link switching instruction to node C. After node C returns the message to node B, node B returns the messages of nodes B and C to node A together; if link C fails, nodes B and C do not need to forward the link switching instruction. After receiving the instruction, each node will send a successful reception message to node A. The above method can achieve synchronization of link switching messages when a link fails.
[0066] Step 202: Switch the backup link of the domain controller according to the link switching instruction.
[0067] The backup link is used for data communication between domain controllers through other Ethernet links except the failed Ethernet link.
[0068] The specific implementation process can be found in the relevant description of step 103 of the embodiment and will not be repeated here. This embodiment can implement a self-recovery mechanism of the Ethernet link, switching to different backup links according to the location of the loop breakpoint, so that the vehicle can still be driven after a ring link failure, thereby preventing the vehicle from being trapped and shut down due to the failure.
[0069] Compared to existing technologies, this embodiment can adaptively switch network links when an Ethernet link in the vehicle network fails, ensuring critical data transmission, ensuring that vehicle functions are not affected and preventing major safety incidents. It also allows the vehicle to continue operating normally even in the event of an Ethernet link failure, saving the cost of repairing a trailer.
[0070] Optionally, step 201 may include: receiving a link switching instruction of a target VLAN type sent by a control node, the link switching instruction including node identifiers of multiple domain controllers; further optionally, after step 201, the method of this embodiment may also include: determining whether the node identifier includes a target node identifier of a target domain controller, the target domain controller being a domain controller adjacent to the domain controller that receives the link switching instruction, wherein the target domain controller and the domain controller that receives the link switching instruction are connected via a target Ethernet link; if the node identifier includes a target node identifier, the link switching instruction of the target VLAN type is forwarded to the target domain controller via the target Ethernet link.
[0071] For example, the format of the instruction interaction message can be as follows: Figure 5 As shown, the command type can be divided into two types, 0x01 represents the standby link switching command, and 0x02 represents the successful response of the switching command. The node identifier of the domain controller can be the node ID that performs the link switching (developers can set the ID of the domain control node in the vehicle by themselves). After receiving the switching command, the slave node needs to match the command ID, and the reply message needs to carry the matching command ID if it is successfully received. The command end identifier of 0x00 indicates that the command message has not ended, and there are other node sub-node IDs after this byte; the command end identifier of 0x01 indicates that the command message has ended, and no sub-node information is included after this byte.
[0072] Optionally, step 202 may include: obtaining pre-stored backup link related information, the backup link related information including the backup MAC address table and backup link VLAN table corresponding to the domain controller; writing the backup link related information into the Ethernet switch of the domain controller through the management protocol to perform backup link switching of the domain controller.
[0073] For example, the MAC address table of each control node may be as shown in Table 1:
[0074] Table 1
[0075] Controller Node Node MAC address Domain Controller A-MCU 01-00-00-00-00-01 Domain Controller A-SOC 01-00-00-00-00-02 Domain Controller B-MCU 02-00-00-00-00-01 Domain Controller B-SOC 02-00-00-00-00-02 Domain Controller C-MCU 03-00-00-00-00-01 Domain Controller C-SOC 03-00-00-00-00-02
[0076] like Figure 6 As shown in Figure 2, when link A fails, the backup MAC address table corresponding to the domain controller is as shown in Table 2:
[0077] Table 2
[0078]
[0079]
[0080] For example, when link A fails, the backup link VLAN table corresponding to the domain controller is shown in Table 3, and the VLAN distribution on the main link and the backup link is as follows: Figure 7 shown.
[0081] Table 3
[0082]
[0083] like Figure 8 As shown in Figure 4, when link B fails, the backup MAC address table corresponding to the domain controller is as shown in Table 4:
[0084] Table 4
[0085]
[0086]
[0087] For example, when link B fails, the backup link VLAN table corresponding to the domain controller is shown in Table 5, and the VLAN distribution on the main link and the backup link is as follows: Figure 9 shown.
[0088] Table 5
[0089]
[0090] like Figure 10 As shown in Figure 4, when link C fails, the backup MAC address table corresponding to the domain controller is as shown in Table 4:
[0091] Table 6
[0092]
[0093]
[0094] For example, when link C fails, the backup link VLAN table corresponding to the domain controller is shown in Table 7, and the VLAN distribution on the main link and the backup link is as follows: Figure 11 shown.
[0095] Table 7
[0096]
[0097] In summary, the method of this embodiment implements switching of the ring link backup link of the domain controller by pre-stored MAC address table and VLAN table information of the backup link and writing them into the Ethernet switch of the domain controller through the management protocol.
[0098] Further, as Figure 1 The specific implementation of the method shown in this embodiment provides a vehicle network processing device that can be applied to the control node side, such as Figure 12 As shown, the device includes: an acquisition module 31, a judgment module 32, and a sending module 33.
[0099] an acquisition module 31 configured to acquire communication status information within an in-vehicle network, the in-vehicle network comprising a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication;
[0100] The judgment module 32 is configured to, if it is determined according to the communication status information that a faulty Ethernet link exists, determine whether a link switching condition is met by analyzing the vehicle driving information;
[0101] The sending module 33 is configured to send a link switching instruction to the multiple domain controllers when the link switching condition is met. The link switching instruction is used to instruct the domain controller to switch the backup link, and the backup link is used to communicate data between the domain controllers through other Ethernet links except the faulty Ethernet link.
[0102] In some examples, the judgment module 32 is specifically configured to obtain the vehicle speed and the current gear of the vehicle from the vehicle driving information; if the vehicle speed is 0 and the current gear of the vehicle is the parking gear, it is determined that the link switching condition is met.
[0103] In some examples, the judgment module 32 is further configured to trigger output of a prompt message when the link switching condition is not met, wherein the prompt message is used to prompt the user that the vehicle network has failed and to perform a parking operation.
[0104] In some examples, the sending module 33 is specifically configured to obtain location information of the faulty Ethernet link in the vehicle network; perform analysis based on the location information to obtain multiple Ethernet links and target VLAN types used to send the link switching instruction, wherein the multiple Ethernet links do not include the faulty Ethernet link; and send the link switching instruction of the target VLAN type to the multiple domain controllers through the multiple Ethernet links.
[0105] In some examples, the sending module 33 is specifically configured to, after sending the link switching instruction to the domain controller, receive a target message fed back by the domain controller through the multiple Ethernet links indicating successful receipt of the link switching instruction, wherein the target message is a message of the target VLAN type; after determining that the backup link switching is successful, send a port shutdown instruction through the multiple Ethernet links, wherein the port shutdown instruction is used to instruct the domain controller to shut down the Ethernet communication function of the target port corresponding to the faulty Ethernet link.
[0106] It should be noted that for other corresponding descriptions of the functional units involved in the vehicle network processing device provided in this embodiment, please refer to Figure 1 The corresponding description in will not be repeated here.
[0107] Further, as Figure 4 The specific implementation of the method shown in this embodiment provides a vehicle network processing device that can be applied to the domain controller side, such as Figure 13 As shown, the device includes: a receiving module 41 and a switching module 42.
[0108] a receiving module 41 configured to receive a link switching instruction sent by a control node, the link switching instruction being sent by the control node when the control node determines, based on status information of an in-vehicle network, that a faulty Ethernet link exists and when, based on analysis of vehicle driving information, the control node determines that a link switching condition is satisfied, the in-vehicle network comprising a plurality of Ethernet links connected in a ring to a domain controller, the Ethernet links supporting bidirectional data communication;
[0109] The switching module 42 is configured to switch the backup link of the domain controller according to the link switching instruction, where the backup link is used for data communication between the domain controllers via other Ethernet links except the failed Ethernet link.
[0110] In some examples, the switching module 42 is specifically configured to obtain pre-stored backup link related information, which includes a backup MAC address table and a backup link VLAN table corresponding to the domain controller; and write the backup link related information into the Ethernet switch of the domain controller through a management protocol to perform backup link switching of the domain controller.
[0111] In some examples, the receiving module 41 is specifically configured to receive a link switching instruction of a target VLAN type sent by a control node, wherein the link switching instruction includes node identifiers of multiple domain controllers; after receiving the link switching instruction sent by the control node, the method further includes: determining whether the node identifier includes a target node identifier of a target domain controller, wherein the target domain controller is a domain controller adjacent to the domain controller that receives the link switching instruction, wherein the target domain controller is connected to the domain controller that receives the link switching instruction through a target Ethernet link; if the node identifier includes the target node identifier, the link switching instruction of the target VLAN type is forwarded to the target domain controller through the target Ethernet link.
[0112] It should be noted that for other corresponding descriptions of the functional units involved in the vehicle network processing device provided in this embodiment, please refer to Figure 4 The corresponding description in will not be repeated here.
[0113] Based on the above Figure 1 or Figure 4 The method shown in FIG. 1 is a method for performing the above-mentioned steps. Accordingly, this embodiment further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned steps are performed. Figure 1 or Figure 4 The method shown.
[0114] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0115] Based on the above Figure 1 or Figure 4 The method shown, and Figure 12 or Figure 13 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides an electronic device that can be configured on the vehicle (such as a new energy vehicle) side, the device including a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 or Figure 4 The method shown.
[0116] Optionally, the physical device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. The user interface may include a display, an input unit such as a keyboard, and the like. The optional user interface may also include a USB interface, a card reader interface, and the like. The network interface may optionally include a standard wired interface, a wireless interface (such as a Wi-Fi interface), and the like.
[0117] Furthermore, this embodiment also provides a vehicle, which may include Figure 12 and Figure 13 The device shown may include the above-mentioned electronic device.
[0118] Those skilled in the art will understand that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0119] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device, supporting the execution of information processing programs and other software and / or programs. The network communication module is used to enable communication between components within the storage medium, as well as with other hardware and software within the physical information processing device.
[0120] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. By applying the solution of this embodiment, when the Ethernet link of the vehicle network fails and cannot communicate, the network link can be adaptively switched to ensure the transmission of critical data, and the upper-layer application software of the controller is unaware of the link switching, ensuring that the function of the entire vehicle is not affected and avoiding major safety accidents. It can also enable the vehicle to still have the ability to drive normally in the event of an Ethernet link failure, saving the maintenance cost of the trailer.
[0121] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article or device. In the absence of further limitations, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0122] The above are merely specific embodiments of the present application, which are intended to enable those skilled in the art to understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to these embodiments herein, but rather is intended to conform to the widest scope consistent with the principles and novel features of the present application.
Claims
1. A vehicle network processing method, characterized in that: include: Obtaining communication status information of an in-vehicle network, the in-vehicle network including a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication; If it is determined that a faulty Ethernet link exists based on the communication status information, determining whether a link switching condition is met by analyzing the vehicle driving information; When the link switching condition is met, a link switching instruction is sent to the multiple domain controllers, wherein the link switching instruction is used to instruct the domain controller to switch a backup link, and the backup link is used to communicate data between the domain controllers through other Ethernet links except the faulty Ethernet link.
2. The method according to claim 1, characterized in that The step of analyzing the vehicle driving information to determine whether the link switching condition is met includes: Obtaining the vehicle's speed and current gear position from the vehicle driving information; If the vehicle's traveling speed is 0 and the vehicle's current gear is the parking gear, it is determined that the link switching condition is met.
3. The method according to claim 1, characterized in that The method further comprises: When the link switching condition is not met, a prompt message is triggered to output, where the prompt message is used to prompt the user that the vehicle network fails and to execute a parking operation.
4. The method according to claim 1, wherein The sending link switching instructions to the multiple domain controllers includes: Obtaining location information of the faulty Ethernet link in the vehicle network; performing analysis based on the location information to obtain a plurality of Ethernet links and target VLAN types used for sending the link switching instruction, wherein the plurality of Ethernet links does not include the faulty Ethernet link; Send link switching instructions of the target VLAN type to the multiple domain controllers through the multiple Ethernet links.
5. The method according to claim 4, characterized in that After sending the link switching instruction to the domain controller, the method further includes: receiving a target message fed back by the domain controller through the multiple Ethernet links indicating successful receipt of the link switching instruction, wherein the target message is a message of the target VLAN type; After determining that the backup link is switched successfully, a port closing instruction is sent through the multiple Ethernet links, where the port closing instruction is used to instruct the domain controller to close the Ethernet communication function of the target port corresponding to the failed Ethernet link.
6. A vehicle network processing method, characterized in that: include: receiving a link switching instruction sent by a control node, the link switching instruction being sent by the control node when the control node determines, based on communication status information of an in-vehicle network, that a faulty Ethernet link exists and when the control node determines, based on analysis of vehicle driving information, that a link switching condition is satisfied, the in-vehicle network including a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication; Switching the backup link of the domain controller is performed according to the link switching instruction, and the backup link is used for data communication between the domain controllers through other Ethernet links except the failed Ethernet link.
7. The method according to claim 6, characterized in that The switching of the backup link of the domain controller according to the link switching instruction includes: Obtaining pre-stored backup link related information, the backup link related information including a backup MAC address table and a backup link VLAN table corresponding to the domain controller; The backup link related information is written into the Ethernet switch of the domain controller through a management protocol to perform backup link switching of the domain controller.
8. The method according to claim 6, characterized in that The receiving a link switching instruction sent by the control node includes: receiving a link switching instruction of a target VLAN type sent by a control node, wherein the link switching instruction includes node identifiers of multiple domain controllers; After the link switching instruction sent by the receiving control node, the method further includes: determining whether the node identifier includes a target node identifier of a target domain controller, where the target domain controller is a domain controller adjacent to the domain controller that receives the link switching instruction, wherein the target domain controller and the domain controller that receives the link switching instruction are connected via a target Ethernet link; If the node identifier includes the target node identifier, the link switching instruction of the target VLAN type is forwarded to the target domain controller via the target Ethernet link.
9. A vehicle network processing device, characterized in that: include: an acquisition module configured to acquire communication status information of an in-vehicle network, the in-vehicle network including a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication; a determination module configured to, if it is determined based on the communication status information that a faulty Ethernet link exists, determine whether a link switching condition is met by analyzing vehicle driving information; The sending module is configured to send a link switching instruction to the multiple domain controllers when a link switching condition is met, and the link switching instruction is used to instruct the domain controller to switch a backup link, and the backup link is used to communicate data between the domain controllers through other Ethernet links except the faulty Ethernet link.
10. A vehicle network processing device, characterized in that: include: a receiving module configured to receive a link switching instruction sent by a control node, the link switching instruction being sent by the control node when the control node determines, based on communication status information of an in-vehicle network, that a faulty Ethernet link exists and when the control node determines, based on analysis of vehicle driving information, that a link switching condition is satisfied, the in-vehicle network including a plurality of domain controllers connected in a ring shape via a plurality of Ethernet links, the Ethernet links supporting bidirectional data communication; The switching module is configured to switch the backup link of the domain controller according to the link switching instruction, where the backup link is used for data communication between the domain controllers through other Ethernet links except the failed Ethernet link.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
12. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.
13. A vehicle, characterized in that: include: The apparatus according to claim 9 or 10, or the electronic device according to claim 12.
Citation Information
Cited By
Electric loader domain centralized electronic and electrical architecture based on vibration self-adaption and control method
CN121486387A