Cabin network routing adjustment method, cabin network system, vehicle and storage medium

By adjusting the destination MAC address of the Ethernet switch and configuring the routing table, the problem of difficult use of the vehicle's internal network was solved, and stable switching of the vehicle network and simple network path adjustment were achieved.

CN120811977APending Publication Date: 2025-10-17ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510988158.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-17
Publication Date
2025-10-17

AI Technical Summary

Technical Problem

Issues with difficulty using the vehicle's internal network, particularly when the controller fails to successfully receive Wi-Fi connection or disconnection notifications, resulting in network traffic consumption or connection difficulties.

Method used

By adjusting the destination MAC address of the Ethernet switch and configuring the routing table of the first controller, the second controller can automatically switch to the wireless network, thereby achieving network path switching.

Benefits of technology

The stable switching of vehicle networks is achieved, and the problem of difficulty in using the network is reduced. The method is simple and highly stable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120811977A_ABST
    Figure CN120811977A_ABST
Patent Text Reader

Abstract

The invention relates to a cockpit network route adjusting method, a cockpit network system, a vehicle and a storage medium, a cockpit network architecture comprises an Ethernet switch, a first controller and a second controller, the first controller and the second controller are connected with the Ethernet switch, and the method comprises the following steps: under the condition that the first controller is connected with a wireless network, the first controller is connected with the wireless network; setting a destination MAC address in the Ethernet switch as the MAC address of the first controller; and configuring a routing table of the first controller based on the first routing information, so that the second controller accesses the wireless network based on a routing service provided by the first controller. The method can solve the problem that the vehicle network is difficult to use.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of vehicle-mounted network communication, and in particular to a cockpit network routing adjustment method, a cockpit network system, a vehicle and a storage medium. BACKGROUND

[0002] More and more vehicle electronic and electrical architectures adopt Ethernet connection. A vehicle networking module is arranged in the vehicle electronic and electrical architecture, the vehicle networking module can connect an external network through a 4G or 5G network, implement online function, connect various controllers in the vehicle and the vehicle networking module through an Ethernet switch, so that the default gateway of each controller in the vehicle is the vehicle networking module, thereby connecting the external network through the vehicle networking module to implement OTA (Over The Air) technology, cloud server connection, cloud music and video playing, network telephone dialing and other functions. However, connecting the external network through the vehicle networking module requires the vehicle owner to open an account and consume 4G or 5G network traffic based on the vehicle owner's account.

[0003] In related technologies, a WIFI module is arranged in the vehicle electronic and electrical architecture, and the WIFI module is used to implement online function to cope with network use scenarios of a large amount of data. Specifically, in the vehicle electronic and electrical architecture, a WIFI module is usually configured in a specific controller, and the specific controller sends a WIFI connection or WIFI disconnection notification to other controllers after connecting or disconnecting WIFI. After receiving the notification, the other controllers switch their gateways to access the Internet. However, in the actual communication process of the controllers, there may be a situation that some controllers fail to successfully receive the notification, which will cause these controllers to be unable to timely change their gateways. If the controller fails to receive the WIFI connection notification, the controller may continuously consume 4G or 5G network traffic until the traffic is exhausted; if the controller fails to receive the WIFI disconnection notification, the controller cannot be connected to the 4G or 5G network synchronously; resulting in the problem of difficult use of the internal network of the vehicle.

[0004] At present, there is no effective solution to the problem of difficult use of the internal network of the vehicle in related technologies. SUMMARY

[0005] Therefore, it is necessary to provide a cockpit network routing adjustment method, a cockpit network system, a vehicle and a storage medium capable of solving the problem of difficult use of the internal network of the vehicle.

[0006] In a first aspect, a cockpit network routing adjustment method is provided in the embodiments. The cockpit network architecture includes an Ethernet switch, a first controller and a second controller. The first controller and the second controller are connected with the Ethernet switch respectively. The method includes:

[0007] In a case where the first controller is connected with a wireless network, a destination MAC address in the Ethernet switch is set as a MAC address of the first controller.

[0008] A routing table of the first controller is configured based on first routing information, so that the second controller accesses the wireless network based on routing service provided by the first controller.

[0009] In some embodiments, the first routing information includes IP rules and network address translation rules.

[0010] In some embodiments, setting the destination MAC address in the Ethernet switch as the MAC address of the first controller includes:

[0011] Obtaining a register in the Ethernet switch corresponding to the destination MAC address;

[0012] Modifying a configuration value of the register according to the MAC address of the first controller.

[0013] In some embodiments, the cockpit network architecture further includes a vehicle Internet module for connecting a mobile network. The vehicle Internet module is connected with the Ethernet switch. The method further includes:

[0014] In a case where the connection between the first controller and the wireless network is disconnected, a target MAC address in the Ethernet switch is set as a MAC address of the vehicle Internet module.

[0015] A routing table of the first controller is configured based on second routing information, so that the first controller does not provide routing service.

[0016] In some embodiments, the method further includes:

[0017] In a case where it is monitored that the first controller is connected with a wireless network, first preset information is generated. In response to the first preset information, the destination MAC address in the Ethernet switch is set as the MAC address of the first controller, and the routing table of the first controller is configured based on first routing information.

[0018] In a case where it is monitored that the first controller is not connected to a wireless network, second preset information is generated, and in response to the second preset information, the destination MAC address in the Ethernet switch is set to the MAC address of the vehicle networking module, and a routing table of the first controller is configured based on the second routing information.

[0019] In some embodiments, setting the destination MAC address in the Ethernet switch to the MAC address of the vehicle networking module comprises:

[0020] Obtaining a register in the Ethernet switch corresponding to the destination MAC address;

[0021] Modifying a configuration value of the register according to the MAC address of the vehicle networking module.

[0022] In a second aspect, a cockpit network system is provided in the embodiments, and the system comprises a processor, an Ethernet switch, a first controller, a second controller, and a vehicle networking module, wherein

[0023] The Ethernet switch is connected to the first controller, the second controller, and the vehicle networking module respectively;

[0024] The processor is connected to the Ethernet switch and the first controller respectively, and the processor is configured to execute the cockpit network routing method in the first aspect.

[0025] In some embodiments, the first controller is an intelligent cockpit domain controller, and the second controller comprises an automatic driving domain controller and a rear intelligent driving controller.

[0026] In a third aspect, a vehicle is provided in the embodiments, and the vehicle comprises the cockpit network system in the third aspect.

[0027] In a fourth aspect, a computer readable storage medium is provided in the embodiments, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the cockpit network routing method in the first aspect.

[0028] The cockpit network routing adjustment method, the cockpit network system, the vehicle, and the storage medium have the advantages that by adjusting the destination MAC address of the Ethernet switch and configuring the routing table of the first controller, the second controller can be automatically switched to a wireless network without adjusting the second controller, the method is simple, stable, and meets the network use requirements of the vehicle. BRIEF DESCRIPTION OF DRAWINGS

[0029] Figure 1 FIG. 1 is a hardware structure block diagram of a terminal for a cockpit network routing adjustment method in an embodiment.

[0030] Figure 2 a schematic diagram of a cockpit network architecture in an embodiment;

[0031] Figure 3 a schematic diagram of a cockpit network routing adjustment method in an embodiment;

[0032] Figure 4 a schematic diagram of a cockpit network architecture in another embodiment;

[0033] Figure 5 a schematic diagram of a cockpit network system in an embodiment;

[0034] Figure 6 a schematic diagram of a cockpit network system in another embodiment;

[0035] Figure 7 a schematic diagram of a vehicle network routing switching overall process in an embodiment;

[0036] Figure 8 a structural block diagram of a routing adjustment apparatus in an embodiment;

[0037] Figure 9 an internal structure diagram of a computer device in an embodiment. DETAILED DESCRIPTION

[0038] In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.

[0039] The method embodiments provided in the present embodiment can be executed in a terminal, a computer or a similar computing device. For example, the method embodiments are run on a terminal, Figure 1 is a hardware structure block diagram of a terminal of a cockpit network routing adjustment method of an embodiment of the present application. As shown in Figure 1 , the terminal can include one or more (only one is shown in Figure 1 ) processor 102 and memory 104 for storing data, wherein the processor 102 can include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal can also include a transmission device 106 for communication function and an input and output device 108. Those skilled in the art can understand that Figure 1 the structure shown is only schematic, which does not limit the structure of the above terminal. For example, the terminal can include more or fewer components than those shown in Figure 1 , or have a different configuration from that shown in Figure 1 .

[0040] Memory 104 can be used to store computer programs, such as application software programs and modules, such as the computer program corresponding to the cockpit network routing adjustment method in this embodiment. Processor 102 executes the computer programs stored in memory 104 to execute various functional applications and data processing, thereby implementing the aforementioned method. Memory 104 may include high-speed random access memory (RAM) and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0041] Transmission device 106 is used to receive or transmit data via a network. This network may include a wireless network provided by the terminal's communications provider. In one embodiment, transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0042] The cockpit network routing adjustment method provided in the embodiment of the present application can be applied to Figure 2 In the cockpit network architecture shown in Figure 2 As shown, the cockpit network architecture includes an Ethernet switch, a first controller, and a second controller, each of which is connected to the Ethernet switch. The first controller and the second controller are vehicle controllers. Optionally, the first controller is a controller in the vehicle cockpit with wireless communication capabilities, and the second controller is one or more controllers without wireless communication capabilities. The second controller can be an autonomous driving domain controller, a rear smart cockpit controller, etc. The functions of the second controller are not limited here.

[0043] In one embodiment, Figure 3 As shown, a cockpit network routing adjustment method is provided, which is applied to Figure 1 Taking this as an example, the following steps are included:

[0044] Step S302: When the first controller is connected to a wireless network, the destination MAC address in the Ethernet switch is set to the MAC address of the first controller.

[0045] The first controller has the capability of accessing the wireless network. Optionally, the first controller comprises a wireless communication module supporting the access to the wireless network, and the first controller implements the network access function through the wireless communication module. The MAC address of the first controller is a hardware address used for identifying the first controller.

[0046] The Ethernet switch can be connected to multiple different devices and allows the devices connected to the Ethernet switch to communicate with each other. When the Ethernet switch receives a packet, the Ethernet switch obtains the destination MAC address of the packet, and finds the port corresponding to the destination MAC address in the MAC address table of the Ethernet switch, so as to forward the packet to the device (controller) connected to the port corresponding to the destination MAC address.

[0047] Optionally, after setting the destination MAC address in the Ethernet switch as the MAC address of the first controller, the Ethernet switch receives the packet sent by the second controller and forwards the packet to the first controller.

[0048] In step S304, the routing table of the first controller is configured based on the first routing information, so that the second controller accesses the wireless network based on the routing service provided by the first controller.

[0049] The routing table is used for storing path information and determining the forwarding path of a packet from a source address to a destination address. After the routing table of the first controller is configured based on the first routing information, the first controller can provide the routing service, i.e., actively forwards the packet of the second controller to the wireless network according to the information in the routing table.

[0050] Optionally, the first controller comprises a network interface for connecting the intranet and a network interface for connecting the extranet. Based on the first routing information, one or more routing entries in the routing table of the first controller can be modified, added or deleted by a static routing or dynamic routing configuration method. The routing entry can include: a destination network address, a subnet mask, a next hop address, an interface from which the packet is sent by the controller, etc.

[0051] In the above cockpit network routing adjustment method, the switching of the network routing path is realized by adjusting the destination MAC address of the Ethernet switch, and the first controller provides the routing service by configuring the routing table of the first controller, so that the second controller can automatically switch to the wireless network, which meets the use demand of the vehicle network and the method is simple.

[0052] In one embodiment, the first routing information includes an IP rule and a network address translation rule. The IP rule is used to limit the message processing method of the first controller, and the IP rule can take the message source IP address, destination IP address, protocol type and the like as the judgment object, and trigger a preset action based on the judgment result. The network address translation rule is a rule for modifying the address information in the message header.

[0053] Optionally, the first controller includes a network interface for connecting an internal network and a network interface for connecting an external network, and the routing table of the first controller is configured based on the first routing information, including: enabling the first controller forwarding function based on the IP rule, and determining the next hop address of the message forwarding; configuring the network address translation protocol based on the network address translation rule, and allowing the second device to access the wireless network.

[0054] In this embodiment, the routing table of the first controller is configured by the IP rule and the network address translation rule, so that the first controller has the routing service of accessing the wireless network of the second controller.

[0055] In one embodiment, the destination MAC address in the Ethernet switch is set to the MAC address of the first controller, including: obtaining a register corresponding to the destination MAC address in the Ethernet switch; and modifying the configuration value of the register according to the MAC address of the first controller.

[0056] The register in the Ethernet switch is used to record and manage the MAC address table, and the MAC address table contains the mapping relationship between the port and the MAC address. Optionally, the register corresponding to the destination MAC address can be determined according to the specific chip model of the Ethernet switch, and the destination MAC address in the MAC address table recorded by the register is modified to the MAC address of the first controller.

[0057] Further, the register corresponding to the destination MAC address in the Ethernet switch is obtained, and the firmware in the Ethernet switch is determined, the configuration value of the register is modified according to the MAC address of the first controller, and the firmware is updated, so that the firmware version supports the modification of the destination MAC address.

[0058] In this embodiment, the destination MAC address in the Ethernet switch is quickly and simply modified to the MAC address of the first controller by modifying the register configuration.

[0059] In one embodiment, the cockpit network architecture further comprises a vehicle networking module, the vehicle networking module is configured to connect to a mobile network, the vehicle networking module is connected to the Ethernet switch, and the method further comprises: in the case that the connection between the first controller and the wireless network is disconnected, setting a target MAC address in the Ethernet switch as a MAC address of the vehicle networking module; and configuring a routing table of the first controller based on the second routing information, so that the first controller does not provide routing services.

[0060] The vehicle networking module can be connected to an external network through a 4G or 5G network to realize the online function. After configuring the routing table of the first controller based on the second routing information, the forwarding path of the data is adjusted, so that the first controller does not participate in the message forwarding across the network.

[0061] Figure 4 Another schematic diagram of a cockpit network architecture is provided, as shown in Figure 4 The cockpit network architecture comprises an Ethernet switch, a first controller, a second controller and a vehicle networking module, and the first controller, the second controller and the vehicle networking module are connected to the Ethernet switch. In the case of using a mobile network, the vehicle networking module can serve as a default gateway of the first controller and the second controller, so that the first controller and the second controller are connected to the network.

[0062] In the embodiment, in the case that the connection between the first controller and the wireless network is disconnected, the second controller cannot be connected to the wireless network through the first controller. By setting the target MAC address in the Ethernet switch as the MAC address of the vehicle networking module, the first controller and the second controller can be connected to the mobile communication network based on the vehicle networking module.

[0063] Further, in one embodiment, setting the target MAC address in the Ethernet switch as the MAC address of the vehicle networking module comprises: obtaining a register corresponding to the destination MAC address in the Ethernet switch; and modifying the configuration value of the register according to the MAC address of the vehicle networking module.

[0064] The MAC address of the vehicle networking module is a unique hardware address for identifying the vehicle networking module. Optionally, the register corresponding to the destination MAC address can be determined according to the specific chip model of the Ethernet switch, and the destination MAC address in the MAC address table recorded in the register is modified as the MAC address of the vehicle networking module. Optionally, the firmware in the Ethernet switch can also be determined, and the firmware is updated so that the firmware version supports the modification of the destination MAC address; and the register corresponding to the destination MAC address in the Ethernet switch is obtained, and the configuration value of the register is modified according to the MAC address of the first controller.

[0065] In this embodiment, the modification of the destination MAC address in the Ethernet switch to the MAC address of the vehicle networking module can be quickly and simply realized by modifying the register configuration.

[0066] In one embodiment, in the case of monitoring that the first controller is connected to the wireless network, the first preset information is generated, and in response to the first preset information, the destination MAC address in the Ethernet switch is set to the MAC address of the first controller, and the routing table of the first controller is configured based on the first routing information; in the case of monitoring that the first controller is not connected to the wireless network, the second preset information is generated, and in response to the second preset information, the destination MAC address in the Ethernet switch is set to the MAC address of the vehicle networking module, and the routing table of the first controller is configured based on the second routing information.

[0067] In one embodiment, in the case of monitoring that the first controller is connected to the wireless network, the first preset information is generated, and in response to the first preset information, the destination MAC address in the Ethernet switch is set to the MAC address of the first controller, and the routing table of the first controller is configured based on the first routing information; in the case of monitoring that the first controller is not connected to the wireless network, the second preset information is generated, and in response to the second preset information, the destination MAC address in the Ethernet switch is set to the MAC address of the vehicle networking module, and the routing table of the first controller is configured based on the second routing information.

[0068] In this embodiment, the wireless network connection state of the first controller can be obtained in real time through the monitoring method, and the network switching speed is improved.

[0069] Based on the same inventive concept, the present application also provides a cockpit network system for implementing the cockpit network routing adjustment method described above. The implementation scheme of the problem solving provided by the system is similar to the implementation scheme described in the above method, so the specific limitations in one or more cockpit network system embodiments provided below can refer to the limitations of the cockpit network routing adjustment method in the above text, which will not be repeated here.

[0070] Figure 5 A schematic diagram of a cockpit network system is provided, as shown in Figure 5 The system includes a processor, an Ethernet switch, a first controller, a second controller, and a vehicle networking module; wherein the Ethernet switch is connected to the first controller, the second controller, and the vehicle networking module respectively; the processor is connected to the Ethernet switch and the first controller respectively, and the processor is used to implement the steps in each of the method embodiments described above.

[0071] Further, in one embodiment, the first controller is an intelligent cockpit domain controller, and the second controller includes an automatic driving domain controller and a rear intelligent driving controller. The intelligent cockpit domain controller is configured to integrate and process functions of multiple systems in the vehicle. Optionally, the intelligent cockpit domain controller can perform one or more of the following functions: instrument panel display control, support interaction between multiple display screens in the vehicle, voice recognition and interaction, etc. The automatic driving domain controller is configured to manage functions related to automatic driving. The rear intelligent driving controller is configured to provide intelligent services and experiences for passengers in the rear of the vehicle.

[0072] In the related art, in order to implement the in-vehicle network, a Wi-Fi module is arranged in the intelligent cockpit domain controller, and the Wi-Fi module is used to implement the online function. When the Wi-Fi of the intelligent cockpit domain controller is connected to the Wi-Fi hotspot, the vehicle networking module, the automatic driving domain controller, and the rear intelligent driving controller are notified that the Wi-Fi hotspot has been connected. The vehicle networking module, the automatic driving domain controller, and the rear intelligent driving controller change their respective default gateways, so as to switch the default gateway to the intelligent cockpit domain controller. A three-layer NAT (Network Address Translation) route is configured in the intelligent cockpit domain controller. Although the related art can implement online through the Wi-Fi, the associated controllers (the vehicle networking module, the automatic driving domain controller, and the rear intelligent driving controller) that have online needs need to modify the default gateway, and the intelligent cockpit domain controller needs other controllers to communicate and report the Wi-Fi network status. Because the range of devices that need to be adjusted is large, the following problems are prone to occur: if the other controllers do not receive the Wi-Fi connection notification due to various reasons, the network will not be switched, resulting in the inability to go online; after the Wi-Fi network is disconnected, if the other controllers do not receive the notification, the network connection will fail.

[0073] Therefore, in one embodiment, Figure 6Another schematic diagram of the cockpit network system is provided, which can realize network switching by adjusting the Ethernet Switch configuration through the intelligent cockpit domain controller, and other controllers do not need to make any changes and are not aware of the network change. After the intelligent cockpit domain controller is connected to the network through Wi-Fi, the destination MAC address of the Ethernet Switch is changed from the address MAC A of the vehicle networking module to the address MAC B of the intelligent cockpit domain controller, so that the Ethernet Switch sends the message to the intelligent cockpit domain controller. The modification of the destination MAC address can be realized by configuring the internal register of the Ethernet Switch. According to different models of the Ethernet Switch, the firmware of the Ethernet Switch needs to be modified if necessary to support the adjustment of the destination MAC address through the configuration register. The routing capability of the intelligent cockpit domain controller is configured to enable the intelligent cockpit domain controller to support the NAT protocol. After the intelligent cockpit domain controller is disconnected from the network through Wi-Fi, the modification of the destination MAC address is removed, that is, the destination MAC address of the Ethernet Switch is changed from the address MAC B of the intelligent cockpit domain controller to the address MAC A of the vehicle networking module, so that the message is forwarded according to the default gateway path. The routing setting of the intelligent cockpit domain controller is restored through the configuration of the Ethernet Switch register.

[0074] Further reference is made to Figure 6 The vehicle networking module is connected to the Ethernet Switch through port 1, the intelligent cockpit domain controller is connected to the Ethernet Switch through port 1, the rear cockpit controller is connected to the Ethernet Switch through port 3, and the autonomous driving module is connected to the Ethernet Switch through port 4. The vehicle networking module is also connected to the MCU through VHAL (Vehicle Hardware Abstraction Layer), and the MCU is connected to the Ethernet Switch through SMI (Serial Management Interface).

[0075] Exemplarily, the address MAC A of the vehicle networking module is 198.18.43.17; the address MAC B of the intelligent cockpit domain controller is 198.18.43.01; the address MAC C of the rear cockpit controller is 198.18.43.x; and the address MAC D of the autonomous driving domain controller is 198.18.43.49, which are taken as examples for illustration.

[0076] The intelligent cockpit domain controller establishes a connection with Wi-Fi. After devices connected with port 2, port 3 and port 4 of the intelligent cockpit domain controller initiate Internet access, a message is sent, in which the SIP (Source IP, source IP address) is 192.18.43.X; the DIP (Destination IP, destination IP address) is the address of the DNS server 198.18.43.17 / 8.8.8.8. The DMAC (Destination MAC, destination MAC address) is the gateway MAC A VLANID=11. Among them, VLANID is the Virtual Local Area Network Identifier. The Ethernet Switch receives and modifies the destination MAC address of the message, and thus sends the modified message to the intelligent cockpit domain controller. In the modified message, the SIP and DIP remain unchanged, and the DMAC is modified to the gateway DHU MAC B VLANID=11. Among them, DHU is a network management protocol. The intelligent cockpit domain controller sends a request message to the wireless network server based on DNS (Domain Name System), in which the SIP is 192.18.43.01; the DIP is the address of the DNS server 198.18.43.17 / 8.8.8.8; and the DMAC is the MAC address of the DNS server. In the reply message, the SIP is the DNS server 198.18.43.17 / 8.8.8.8; the DIP is 198.18.43.01; and the DMAC is the DHU MAC B. Based on this, taking the network connection of the rear intelligent cockpit controller as an example, the intelligent cockpit domain controller sends a message to the Ethernet Switch, in which the SIP is the DNS server 198.18.43.17 / 8.8.8.8; the DIP is 198.18.43.x; and the DMAC is the DHU MAC C. The Ethernet Switch receives the message SIP: DNS server 198.18.43.17 / 8.8.8.8; DIP: 198.18.43.x; DMAC: DHU MAC C, analyzes and obtains the DNS: 39.156.66.10, and sends it to the rear intelligent cockpit controller. The rear intelligent cockpit controller can further send a message to the Ethernet Switch, which is not described here. It can be understood that the above addresses change according to different actual application scenarios.

[0077] In the embodiment, the intelligent cockpit domain controller switches the network routing path by controlling the Ethernet Switch, only affects the intelligent cockpit domain controller, other controllers do not need to make any changes, the influence range is small, the reliability is high, and the various inconvenient problems of using 4G or 5G network before the vehicle is sold can be solved.

[0078] Based on the same inventive concept, the embodiments of the present application also provide a vehicle for implementing the cockpit network routing adjustment method described above. The vehicle provides a solution to the implementation scheme similar to the implementation scheme described in the above method, so the specific limitations in one or more vehicle embodiments provided below can refer to the limitations of the cockpit network routing adjustment method described above, which will not be repeated here.

[0079] In one embodiment, the vehicle includes the cockpit network system described in any of the above embodiments.

[0080] Optionally, taking the vehicle operating system as an example, AAOS (Android Automotive Operating System) is described. Figure 7 A schematic diagram of the overall process of vehicle network routing switching is provided, as shown in Figure 7 BusinessService is a custom service, which is to monitor whether the intelligent cockpit domain controller is connected to the Wi-Fi hotspot; NetworkManagerService is a component of AAOS, responsible for network management of the system; Carlib is a component of AAOS, used to communicate with CarService component; CarService is a component of AAOS, responsible for information management and transmission related to the vehicle (including vehicle status, in-vehicle entertainment audio and video, communication management, safety management, etc.); VehicleHal is a component of AAOS, responsible for management and transmission of vehicle signals; change_Wi-Fi_switch.sh modifies the network routing configuration of the intelligent cockpit domain controller; MCU is a microcontroller that communicates with the vehicle, which is responsible for power management, network communication with the vehicle, control and modification of the registers of the Ethernet switch. Among them, the vehicle network includes one or more of CAN (Controller Area Network), Flexray in-vehicle network, LIN bus (local connection network) and other networks.

[0081] Step S701, NetwoManagerService notifies BusinessService that the network connection state has changed. When the intelligent cockpit domain controller connects or disconnects the Wi-Fi hotspot, NetwoManagerService will notify BusinessService.

[0082] Step S702, BusinessService monitors the connection state of the intelligent cockpit domain controller and the Wi-Fi hotspot, and notifies Carlib, CarService, VehicleHal.

[0083] Step S703, Carlib, CarService, VehicleHal inform MCU to modify the register configuration value of Ethernet Switch. Wherein, the register configuration value is obtained according to the Ethernet Switch chip model and Firmware.

[0084] Step S704, BusinessService informs init process to execute change_Wi-Fi_switch.sh script by modifying system attribute, to configure the routing table of intelligent cockpit domain controller. Optionally, when the intelligent cockpit domain controller needs to provide routing service, BusinessService informs init process to execute change_Wi-Fi_switch.sh script by modifying system attribute vendor.Wi-Fi.switch to true; when the intelligent cockpit domain controller does not need to provide routing service, BusinessService informs init process to execute change_Wi-Fi_switch.sh script by modifying system attribute vendor.Wi-Fi.switch to false, to restore the routing table of intelligent cockpit domain controller.

[0085] In this embodiment, when the intelligent cockpit domain controller is connected to Wi-Fi network, the network routing path of other controllers connected to Ethernet Switch is automatically switched by controlling Ethernet Switch, to automatically switch to Wi-Fi network, to solve the problem of difficult use of vehicle network.

[0086] Based on the same inventive concept, the embodiment of the present application also provides a cockpit network routing adjustment device for implementing the cockpit network routing adjustment method described above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more cockpit network routing adjustment device embodiments provided below can be referred to the limitations of the cockpit network routing adjustment method in the above text, which will not be repeated here.

[0087] In one embodiment, as Figure 8As shown, a cockpit network routing adjustment apparatus is provided, the cockpit network architecture includes an Ethernet switch, a first controller and a second controller, the first controller and the second controller are connected with the Ethernet switch respectively, the apparatus includes: an address switching module and a routing configuration module; wherein the address switching module is configured to set a destination MAC address in the Ethernet switch as a MAC address of the first controller in a case that the first controller is connected with a wireless network; the routing configuration module is configured to configure a routing table of the first controller based on first routing information, so that the second controller accesses the wireless network based on a routing service provided by the first controller. Optionally, the first routing information includes an IP rule and a network address translation rule.

[0088] In one embodiment, the address switching module sets the destination MAC address in the Ethernet switch as the MAC address of the first controller, including: obtaining a register corresponding to the destination MAC address in the Ethernet switch; modifying a configuration value of the register according to the MAC address of the first controller.

[0089] In one embodiment, the cockpit network architecture further includes a vehicle networking module, the vehicle networking module is configured to connect with a mobile network, and the vehicle networking module is connected with the Ethernet switch. The address switching module is further configured to set the destination MAC address in the Ethernet switch as a MAC address of the vehicle networking module in a case that the connection between the first controller and the wireless network is disconnected; the routing configuration module is further configured to configure the routing table of the first controller based on second routing information in the case that the connection between the first controller and the wireless network is disconnected, so that the first controller does not provide routing service.

[0090] In one embodiment, the vehicle networking module generates first preset information in a case that the first controller is connected with the wireless network, and sets the destination MAC address in the Ethernet switch as the MAC address of the first controller and configures the routing table of the first controller based on the first routing information in response to the first preset information; the routing configuration module generates second preset information in a case that the first controller is not connected with the wireless network, and sets the destination MAC address in the Ethernet switch as the MAC address of the vehicle networking module and configures the routing table of the first controller based on the second routing information in response to the second preset information.

[0091] Optionally, the address switching module sets the destination MAC address in the Ethernet switch as the MAC address of the vehicle networking module, including: obtaining a register corresponding to the destination MAC address in the Ethernet switch; modifying a configuration value of the register according to the MAC address of the vehicle networking module.

[0092] The modules in the cockpit network routing adjustment apparatus can be implemented by software, hardware, or a combination thereof. The modules can be embedded in or independent of a processor in a computer device in hardware form, or stored in a memory in the computer device in software form, so as to be invoked and executed by the processor to perform the operations corresponding to the modules.

[0093] In one embodiment, a computer device is provided, and an internal structure diagram of the computer device can be as shown in Figure 9 The computer device includes a processor, a memory, an input / output interface (I / O), and a communication interface. The processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The database of the computer device is configured to store message data sent by a controller. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to communicate with a terminal through a network connection. The computer program is executed by the processor to implement a cockpit network routing adjustment method.

[0094] Those skilled in the art can understand that Figure 9 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0095] In one embodiment, a computer device is provided, and an internal structure diagram of the computer device can be as shown in

[0096] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps in the above method embodiments.

[0097] In one embodiment, a computer program product is provided, and the computer program product includes a computer program. The computer program is executed by a processor to implement the steps in the above method embodiments.

[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.

[0099] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist, it should be considered as the scope of the present application.

[0100] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims

1. A cockpit network routing adjustment method, characterized in that: The cockpit network architecture includes an Ethernet switch, a first controller, and a second controller, wherein the first controller and the second controller are respectively connected to the Ethernet switch. The method includes: When the first controller is connected to a wireless network, setting the destination MAC address in the Ethernet switch to the MAC address of the first controller; A routing table of the first controller is configured based on the first routing information, so that the second controller accesses the wireless network based on a routing service provided by the first controller.

2. The method according to claim 1, characterized in that The first routing information includes IP rules and network address translation rules.

3. The method according to claim 1 or 2, characterized in that Setting the destination MAC address in the Ethernet switch to the MAC address of the first controller includes: Obtaining a register corresponding to the destination MAC address in the Ethernet switch; Modify the configuration value of the register according to the MAC address of the first controller.

4. The method according to claim 1, wherein The cockpit network architecture further includes a vehicle networking module, the vehicle networking module is used to connect to a mobile network, and the vehicle networking module is connected to the Ethernet switch. The method further includes: When the first controller is disconnected from the wireless network, setting the target MAC address in the Ethernet switch to the MAC address of the Internet of Vehicles module; A routing table of the first controller is configured based on the second routing information so that the first controller does not provide routing services.

5. The method according to claim 4, characterized in that The method further comprises: When detecting that the first controller is connected to a wireless network, generating first preset information, and in response to the first preset information, setting the destination MAC address in the Ethernet switch to the MAC address of the first controller, and configuring a routing table of the first controller based on the first routing information; When it is detected that the first controller is not connected to the wireless network, second preset information is generated, and in response to the second preset information, the destination MAC address in the Ethernet switch is set to the MAC address of the vehicle networking module, and the routing table of the first controller is configured based on the second routing information.

6. The method according to claim 4, characterized in that Setting the target MAC address in the Ethernet switch to the MAC address of the Internet of Vehicles module includes: Obtaining a register corresponding to the destination MAC address in the Ethernet switch; Modify the configuration value of the register according to the MAC address of the Internet of Vehicles module.

7. A cockpit network system, characterized in that: The system includes: a processor, an Ethernet switch, a first controller, a second controller and a vehicle networking module; wherein, The Ethernet switch is connected to the first controller, the second controller and the Internet of Vehicles module respectively; The processor is connected to the Ethernet switch and the first controller respectively, and the processor is used to execute the steps of any one of claims 1 to 6.

8. The system according to claim 7, characterized in that The first controller is an intelligent cockpit domain controller, and the second controller includes an autonomous driving domain controller and a rear-seat intelligent driving controller.

9. A vehicle, characterized in that: The vehicle includes the cockpit network system according to claim 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Network node switching method, system, medium and equipment

    CN121397671A