Network node switching method, system, medium and equipment
By utilizing switches in the digital cockpit system to achieve intelligent switching of network data, the compatibility risks caused by collaborative modifications of multiple ECUs during vehicle terminal network switching are resolved, ensuring the stability and continuity of vehicle networking services.
Patent Information
- Application Number
- CN202511506432.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-21
- Publication Date
- 2026-01-23
AI Technical Summary
In the prior art, the default gateway of the vehicle electronic control unit (ECU) is the cellular network corresponding to the telematics controller (TCAM). If the ECU configuration is modified to adapt to the WiFi network, problems such as switching delay and configuration conflict will occur due to the complexity of coordinating parameters of multiple devices.
By using the switch on the digital cockpit system (DHU) as a forwarding end, the microcontroller (MCU) controls the switch to switch the target address of network data based on different communication protocols. When the local communication network is available, the address is changed to the WiFi network, and when it is unavailable, the original address is retained, thereby realizing intelligent scheduling of data traffic between WiFi and cellular networks.
It achieves intelligent scheduling between WiFi and cellular networks, avoids compatibility risks of multiple ECUs coordinating parameter modifications, and ensures the stability and continuity of vehicle terminal network services.
Smart Images

Figure CN121397671A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle-mounted terminal communication technology, and in particular to a network node switching method, system, medium, and device. Background Technology
[0002] With the rapid development of the Internet of Vehicles (IoV), vehicles are increasingly demanding more and more connected services. By installing a terminal with mobile connectivity in the vehicle, the vehicle can stably connect to the IoV network. This not only allows the vehicle to upload key data such as engine speed, fuel consumption, mileage, and tire pressure to the platform server in real time, enabling dynamic monitoring of the vehicle's safety status, but also provides users with a wealth of services such as precise navigation and infotainment.
[0003] With the continuous expansion of vehicle-to-everything (V2X) application scenarios, vehicles need to ensure the continuity and efficiency of network services in complex mobile environments. Therefore, there is a clear requirement for the intelligent switching mechanism between WiFi and cellular networks (3G / 4G / 5G): The wireless local area network (WiFi) module integrated in the Digital Cockpit Head Unit (DHU) needs to monitor its own network status in real time. When it successfully connects to an external hotspot and the network is available, it should prioritize forwarding the traffic of each ECU in the vehicle to the WiFi channel. If the WiFi does not connect to an external hotspot, or if it connects to a hotspot but the network is unavailable, it should seamlessly switch to the cellular network module integrated in the Telematics Control Unit (TCAM) to carry the traffic.
[0004] Since the default gateway for the Electronic Control Unit (ECU) is TCAM, modifying the ECU configuration to adapt to the WiFi network may cause switching delays and configuration conflicts due to the complexity of coordinating parameters of multiple devices. Summary of the Invention
[0005] The purpose of this invention is to address the shortcomings of existing technologies by proposing a network node switching method, system, medium, and device.
[0006] To achieve the above objectives, in a first aspect, the present invention provides a method for switching vehicle terminal networks, applied to a microcontroller in a digital cockpit system, comprising: Receive network packet data forwarded by the switch, the network packet data being used to indicate whether the local area communication network is available; When the local communication network is available, the control switch changes the destination address of the received network data to switch the network data from being sent through the default mobile communication network to being sent through the local communication network. When the local communication network is unavailable, the control switch does not modify the destination address of the received network data, so as to send the network data from the default mobile communication network.
[0007] In some embodiments, the microcontroller receives the network packet data based on a first communication protocol. When it determines that the local area communication network is available based on the network packet data, it generates a modification instruction based on a second communication protocol and sends it to the switch. The switch changes the destination address of the received network data based on the modification instruction so that the network data is selected to be sent by the local area communication network.
[0008] In some embodiments, the microcontroller receives the network packet data based on a first communication protocol. When it determines that the local communication network is unavailable based on the network packet data, it generates a shutdown command based on a second communication protocol and sends it to the switch. The switch does not change the destination address of the received network data based on the shutdown command and sends the network data using the default mobile communication network.
[0009] In some embodiments, before determining whether the local area communication network is available, a configuration initialization process for the switch is included. After successful configuration initialization, the availability of the local area communication network is determined based on the network packet data.
[0010] In some embodiments, the first communication protocol is the IPCP protocol, and / or the second communication protocol is the SPI protocol.
[0011] In some embodiments, the local communication network is a WiFi network, and / or the mobile communication network is a cellular network.
[0012] Secondly, the present invention also provides a method for switching in-vehicle terminal networks, applied to a switch in a digital cockpit system, comprising: The system forwards network packet data sent by the system-on-a-chip to the microcontroller, the network packet data being used to indicate whether the local area communication network is available; When the local communication network is available, the microcontroller receives a modification instruction to change the target address of the received network data, so as to switch the network data from being sent through the default mobile communication network to being sent through the local communication network. When the local communication network is unavailable, the receiving microcontroller shutdown command does not modify the target address of the received network data, so that the network data is sent from the default mobile communication network.
[0013] In some embodiments, the switch forwards the network packet data based on a first communication protocol, and the switch receives modification or shutdown instructions based on a second communication protocol, wherein the first communication protocol is the IPCP protocol, and / or the second communication protocol is the SPI protocol.
[0014] In some embodiments, the local communication network is a WiFi network, and / or the mobile communication network is a cellular network.
[0015] Thirdly, the present invention also provides an in-vehicle terminal network switching system, applicable to a digital cockpit system, wherein the digital cockpit system includes a system-on-a-chip, a switch, and a microcontroller; The microcontroller receives network packet data sent by the system-on-a-chip, the network packet data being used to indicate whether the local area communication network is available; When the microcontroller determines that the local communication network is available, it controls the switch to change the destination address of the network data received from the autonomous driving domain controller, so as to switch the network data from the default mobile communication network to the local communication network. When the microcontroller determines that the local communication network is unavailable, it controls the switch to not modify the target address of the network data received from the autonomous driving domain controller and sends the network data from the default mobile communication network.
[0016] Fourthly, the present invention also includes a computer-readable storage medium having a computer program stored thereon, wherein the computer program causes a computer to perform the switching method as described in any of the above technical solutions.
[0017] Fifthly, the present invention also includes an electronic device comprising: One or more processors; memory, and One or more programs, wherein the one or more programs are stored in the memory, the programs including a switching method as described in any one of the above technical solutions.
[0018] The present invention has the following beneficial effects: In this invention, the internet access parameters of each digital cockpit system in the vehicle are not changed. Instead, a switch is used as a forwarding end. When the local communication network can access the internet, the destination address of the received network data is changed through the switch, which can switch the network data from the default mobile communication network to the local communication network. When the local communication network cannot access the internet, the destination address of the received network data is not modified, and the network data is sent from the default mobile communication network. This realizes intelligent scheduling of data traffic between WiFi and cellular networks, which not only meets the communication needs of multi-network convergence and avoids the compatibility risks of multi-ECU collaborative parameter modification, but also ensures the stability and continuity of the vehicle terminal network service. Attached Figure Description
[0019] Figure 1 This is a flowchart illustrating the network node switching method proposed in this invention. Figure 1 ; Figure 2 This is a flowchart illustrating the network node switching method proposed in this invention. Figure 2 ; Figure 3 This is a flowchart illustrating the network node switching method proposed in this invention. Figure 3 ; Figure 4 This is a flowchart illustrating the network node switching method proposed in this invention. Figure 4 ; Figure 5 This is a flowchart illustrating the network node switching method proposed in this invention. Figure 5 ; Figure 6 This is a schematic diagram of the network node switching system proposed in this invention. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] This application provides a network node switching method, system, medium, and device, solving the problems in the prior art where the default gateway of the Electronic Control Unit (ECU) is the cellular network (3G / 4G / 5G) corresponding to the Telematics Control Unit (TCAM). If the ECU configuration is modified to adapt to the WiFi network, problems such as switching delays and configuration conflicts arise due to the complexity of coordinating parameters across multiple devices. In this application, the internet access parameters of each digital cockpit system in the vehicle are not changed. Instead, the switch on the digital cockpit system (DHU) is used as a forwarding end to achieve intelligent scheduling of data traffic between the WiFi and cellular networks. This satisfies the communication needs of multi-network convergence, avoids the compatibility risks of collaborative parameter modification among multiple ECUs, and ensures the stability and continuity of the vehicle terminal's network service.
[0022] Please refer to the following examples for details: Reference Figures 1-4 and Figure 6 An embodiment of an in-vehicle terminal network switching method provided by the present invention is used in a microcontroller of a digital cockpit system, comprising: S100A receives network packet data forwarded by the switch. The network packet data is used to indicate whether the local area communication network is available. S200A, when the local communication network is available, controls the switch to change the destination address of the received network data in order to switch the network data from the default mobile communication network to the local communication network. When the local communication network is unavailable, the control switch does not modify the destination address of the received network data, and instead sends the network data from the default mobile communication network.
[0023] It should be explained in detail that the microcontroller (MCU) receives network packet data based on the first communication protocol. When it is determined that the local area communication network (WiFi network) is available based on the network packet data, it generates a modification instruction (DMAC Modify Enable signal in this application) based on the second communication protocol and sends it to the switch. The switch then controls the switch to change the target address of the received network data based on the modification instruction, so as to select the local area communication network (WiFi network) to send the network data.
[0024] Correspondingly, the microcontroller (MCU) receives network packet data based on the first communication protocol. When it is determined from the network packet data that the local communication network (WiFi network) is unavailable, it generates a shutdown command (DMAC Modify Disable signal in this application) based on the second communication protocol and sends it to the switch. This controls the switch to not change the target address of the received network data based on the shutdown command, so that the network data is sent using the default mobile communication network (cellular network).
[0025] Please continue reading. Figures 1-6 Before determining whether a local area communication network is available, the following steps are also taken: S000 handles the configuration initialization of the switch. After successful configuration initialization, it determines whether the local area communication network is available based on network packet data.
[0026] It should be noted in detail that the switch initialization process includes: S010, Read the preset configuration information, send a test message to represent the data, and determine whether the target network address configuration initialization process has been executed successfully; S020A, if successful, obtain network packet representation data; S020B: If execution fails, log printing will be triggered and the process will be terminated.
[0027] For example, after reading the preset configuration information, the test message characterization data is sent to the switch through the autonomous driving domain controller (ADCU). This can simulate the initial data frame under normal business scenarios, so that the target address (DMAC) of the Internet data is preset to the data address of the remote information controller (TCAM). Then, by verifying whether the forwarding path of the test message conforms to the preset rules and whether the preset configuration information matches the actual hardware status, it is determined whether the target network address configuration initialization process has been successfully executed.
[0028] If the preset configuration information is read successfully, the test packet forwarding path is correct, and the hardware register configuration is complete, the initialization is considered successful. This indicates that the switch has correctly loaded the basic forwarding rules and the port-address mapping relationship is correct. At this time, the switch enters the ready state. If the preset configuration information is read incorrectly, the test packet forwarding path is abnormal, or the hardware register configuration conflicts, the initialization is considered to have failed. The specific error information is printed in the log, and the entire process is terminated immediately to avoid the risk of subsequent data forwarding errors due to initialization abnormalities.
[0029] It should be explained in detail that the microcontroller (MCU) on the digital cockpit system (DHU) determines whether the local area communication network (WiFi network) is available based on the local area communication network (WiFi network) characterization data sent by the system-on-a-chip (SOC) through the Internet Protocol Control (IPCP) protocol forwarded by the switch. Correspondingly, the microcontroller (MCU) on the digital cockpit system (DHU) sends modification or shutdown commands through the Serial Peripheral Interface (SPI) protocol. For example, if the local area communication network (WiFi network) is successfully connected and can access the Internet normally after processes such as DNS resolution and PING test, it indicates that the network is available. At this time, the microcontroller (MCU) sends a DMACModify Enable signal to the switch, thereby controlling the switch to change the destination address of the received network data. If the local area communication network (WiFi network) cannot be connected or cannot access the Internet normally after processes such as DNS resolution and PING test, it indicates that the network is unavailable. At this time, the microcontroller (MCU) sends a DMAC Modify Disable signal to the switch, thereby controlling the switch not to change the destination address of the received network data. Furthermore, when the local area communication network (WiFi network) is available, for the destination MAC address (DMAC) of the internet access data sent by the autonomous driving domain controller (ADCU), the microcontroller (MCU) changes the destination address of the received network data at the L2 layer through a switch. The original destination MAC address (DMAC) pointing to the remote information controller (TCAM) is modified to the MAC address corresponding to the system-on-a-chip (SOC), so that the network data transmission shifts from the default mobile communication network (WiFi network). Figure 6 The L1 dashed path shown in the diagram) is sent to the local area communication network ( Figure 6 The L2 dashed path shown in the diagram is used to send data, enabling the switching from cellular network (3G / 4G / 5G) to WiFi network. This allows the Internet access data sent by the autonomous driving domain controller (ADCU) to be forwarded by the switch to the system-on-a-chip (SOC) for transmission via WiFi network. Correspondingly, when the local communication network (WiFi network) is unavailable, the microcontroller (MCU) does not change the destination address of the internet data sent by the autonomous driving domain controller (ADCU), i.e., it keeps the destination MAC address (DMAC) unchanged, so that the network data is still sent according to the default mobile communication network. Figure 6The L1 dashed path shown in the diagram is used to send data, enabling the Internet access data sent by the Autonomous Driving Domain Controller (ADCU) to be forwarded by the Switch to the Remote Information Controller (TCAM) for transmission via the cellular network (3G / 4G / 5G).
[0030] Reference Figure 5 and Figure 6 The present invention also provides an embodiment of a vehicle-mounted terminal network switching method, for a switch in a digital cockpit system, comprising: S100B forwards network packet data sent by the system-on-a-chip to the microcontroller. The network packet data is used to indicate whether the local area communication network is available. When the local communication network is available, the S200B receives a microcontroller modification instruction to change the destination address of the received network data, thereby switching the network data transmission from the default mobile communication network to the local communication network. When the local communication network is unavailable, the receiving microcontroller shutdown command does not modify the target address of the received network data, so that the network data is sent from the default mobile communication network.
[0031] It needs to be explained in detail that, Specifically, the first communication protocol is the IPCP protocol, and / or the second communication protocol is the SPI protocol; enabling the switch to forward network packet data sent by the system-on-a-chip (SOC) to the microcontroller (MCU) based on the first communication protocol (IPCP protocol), and to receive modification instructions (DMACModify Enable signal) or disabling instructions (DMAC Modify Disable signal) sent by the microcontroller (MCU) based on the second communication protocol (SPI). Correspondingly, the local communication network is a WiFi network, and / or the mobile communication network is a cellular network (3G / 4G / 5G); this allows the Switch to send network data through the switched local communication network (WiFi network) or through the default mobile communication network (cellular network).
[0032] For example, when obtaining network packet representation data through a network monitoring mechanism, the network packet data here specifically refers to message data representing the network status of the local area communication network (WiFi network) sent by the system-on-a-chip (SoC) via the Internet Protocol Control Protocol (IPCP) forwarding, which is forwarded by the switch on the Digital Cockpit System (DHU). This message data includes the current WiFi network connection status and network reachability, sequentially identifying whether an external hotspot has been successfully connected and whether the external network can be accessed normally, thereby determining whether the current local area communication network (WiFi network) is available. Correspondingly, the microcontroller (MCU) on the DHU sends modification or shutdown commands to the switch via the Serial Peripheral Interface (SPI) protocol. Furthermore, when the local area communication network (WiFi network) is available, for the destination media access control address (DMAC) of the internet data sent by the autonomous driving domain controller (ADCU), the microcontroller (MCU) on the digital cockpit system (DHU) changes the destination address of the received network data through a switch, so that the network data is sent from the default "Autonomous Driving Control Unit (ADCU) → Switch → Telematics Control Unit (TCAM) → Cellular Network (3G / 4G / 5G)". Figure 6 The L1 dashed path shown in the diagram switches to "Autonomous Driving Control Unit (ADCU) → Switch → System on Chip (SOC) → WiFi Network" for transmission. Figure 6 The L2 dashed path shown in the diagram enables local communication network transmission. When the local communication network (WiFi network) is unavailable, the microcontroller (MCU) on the Digital Cockpit System (DHU) does not change the destination address (DMAC) of the Internet access data sent by the Autonomous Driving Control Unit (ADCU). The network data is still sent according to the default "ADCU→Switch→TCAM→Cellular Network (3G / 4G / 5G)".
[0033] Understandably, through the above technical solution, the internet access parameters of each digital cockpit system in the vehicle remain unchanged, instead using a switch as a forwarding end. When the local communication network can access the internet, the destination address of the received network data is changed through the switch, switching the network data transmission from the default mobile communication network to the local communication network. When the local communication network cannot access the internet, the destination address of the received network data is not modified, and the network data is transmitted from the default mobile communication network. This enables intelligent scheduling of data traffic between WiFi and cellular networks (3G / 4G / 5G), satisfying the communication needs of multi-network convergence, avoiding the compatibility risks of multi-ECU collaborative parameter modification, and ensuring the stability and continuity of the vehicle terminal's network service.
[0034] Reference Figure 6 This application also provides an embodiment of an in-vehicle terminal network switching system, applicable to a digital cockpit system (DHU), which includes a system-on-a-chip (SOC), a microcontroller (MCU), and a switch. The microcontroller (MCU) receives network packet data sent by the system-on-a-chip (SoC) through a switch; the network packet data is used to indicate whether the local area communication network (WiFi network) is available, and the local area communication network (WiFi network) and the system-on-a-chip (SoC) are connected. When the microcontroller (MCU) determines that the local communication network (WiFi network) is available, it changes the destination address of the network data received from the Autopilot Domain Controller (ADCU) through the control switch to switch the network data transmission from the default mobile communication network (cellular network) to the local communication network (WiFi network). When the microcontroller (MCU) determines that the local communication network (WiFi network) is unavailable, it controls the switch to not modify the destination address of the network data received from the Autopilot Domain Controller (ADCU) so that the network data can be sent from the default mobile communication network (cellular network).
[0035] For example, a switch can use its data ports ( Figure 6 The PortX port shown in the diagram) and the system-on-a-chip (SoC) Figure 6 Port8 port shown in the diagram), autonomous driving domain controller ( Figure 6 Port5 port shown in the diagram), remote information controller ( Figure 6 The diagram shows the Port6 port and the microcontroller. Figure 6 The Port9 port (shown in the diagram) is electrically connected.
[0036] For example, when a microcontroller (MCU) receives an IPCP message from a system-on-a-chip (SoC) indicating the availability of a local area communication network (WiFi network) forwarded by a switch, the MCU sends a modification command (DMAC Modify Enable signal) to the switch. This causes the switch to change the destination address of the received network data at Layer 2, modifying the destination MAC address (DMAC) of the remote information controller (TCAM) to the MAC address corresponding to the SoC. Figure 6 The MAC address of the TCAM (02:00:00:00:11:01) should be changed to the corresponding SOC address (02:00:00:00:10:0F) from the default mobile communication network. Figure 6 The L1 dashed path shown in the diagram) is sent to the local area communication network ( Figure 6 The L2 dashed path shown in the diagram is used to send data, enabling the switching from cellular network (3G / 4G / 5G) to WiFi network. This allows the Internet access data sent by the autonomous driving domain controller (ADCU) to be forwarded by the switch to the system-on-a-chip (SOC) for transmission via WiFi network. Correspondingly, when the microcontroller (MCU) receives an IPCP message forwarded by the switch indicating that the local communication network (WiFi network) is unavailable from the system-on-a-chip (SoC), the MCU sends a disable command (DMAC Modify Disable signal) to the switch. This prevents the switch from changing the destination address of the received network data, thus keeping the destination MAC address (DMAC) of the autonomous driving domain controller (ADCU) unchanged, ensuring that network data transmission still follows the default mobile communication network. Figure 6 The L1 dashed path shown in the diagram is used to send data, enabling the Internet access data sent by the Autonomous Driving Domain Controller (ADCU) to be forwarded by the Switch to the Remote Information Controller (TCAM) for transmission via the cellular network (3G / 4G / 5G).
[0037] Through the above technical solution, this application can realize intelligent scheduling of data traffic between WiFi networks and cellular networks (3G / 4G / 5G) based on the real-time status of WiFi networks and cellular networks (3G / 4G / 5G). On the one hand, it does not require modification of the Internet access parameters of each ECU in the vehicle, effectively avoiding compatibility risks such as configuration conflicts and switching delays that may be caused by multiple ECUs coordinating parameter modifications. On the other hand, by using a switch to modify MAC addresses and switch data transmission paths, it ensures that the vehicle terminal can maintain stable operation of network services when the network environment changes, and guarantees the continuity of core functions such as autonomous driving data upload and cabin entertainment services.
[0038] This application also provides an embodiment of a computer-readable storage medium having a computer program stored thereon, wherein the computer program causes a computer to perform a switching method as described in any of the above technical solutions.
[0039] In one exemplary embodiment, the aforementioned computer-readable storage medium can be a computer storage medium or a communication medium. A communication medium includes any medium that facilitates the transfer of a computer program from one location to another. A computer storage medium can be any available medium accessible to a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the ASIC can reside in a user equipment. Of course, the processor and the computer-readable storage medium can also exist as discrete components in a communication device.
[0040] Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.
[0041] This application also provides an embodiment of an electronic device, comprising: One or more processors; memory, and One or more programs, wherein the programs are stored in memory, and the programs include control methods for performing any of the above-described technical solutions.
[0042] In one exemplary embodiment, the electronic device is intended to represent a computer device of various forms of digital electronics, such as a laptop computer, desktop computer, workbench, personal digital assistant, server, blade server, mainframe computer, quantum computer, and other suitable computer.
[0043] Memory is used to store computer programs. This memory may include high-speed random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.
[0044] A processor is used to execute a computer program stored in memory to implement the selection method described in the above embodiments. The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0045] Optionally, the memory can be either standalone or integrated with the processor. When the memory is a device independent of the processor, the electronic device may also include a bus. This bus is used to connect the memory and the processor. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc.
[0046] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A method for switching networks on a vehicle-mounted terminal, characterized in that, Microcontrollers used in digital cockpit systems include: Receive network packet data forwarded by the switch, the network packet data being used to indicate whether the local area communication network is available; When the local communication network is available, the control switch changes the destination address of the received network data to switch the network data from being sent through the default mobile communication network to being sent through the local communication network. When the local communication network is unavailable, the control switch does not modify the destination address of the received network data, so as to send the network data from the default mobile communication network.
2. The switching method according to claim 1, characterized in that, The microcontroller receives the network packet data based on a first communication protocol. When it determines that the local area communication network is available based on the network packet data, it generates a modification instruction based on a second communication protocol and sends it to the switch. The switch changes the target address of the received network data based on the modification instruction so that the network data is selected to be sent by the local area communication network.
3. The switching method according to claim 1, characterized in that, The microcontroller receives the network packet data based on the first communication protocol. When it determines that the local communication network is unavailable based on the network packet data, it generates a shutdown command based on the second communication protocol and sends it to the switch. The switch does not change the destination address of the received network data based on the shutdown command and sends the network data using the default mobile communication network.
4. The switching method according to claim 1, characterized in that, Before determining whether the local area communication network is available, the process also includes configuration initialization of the switch. After successful configuration initialization, the availability of the local area communication network is determined based on the network packet data.
5. A method for switching networks on a vehicle-mounted terminal, characterized in that, Switches used in digital cockpit systems include: The system forwards network packet data sent by the system-on-a-chip to the microcontroller, the network packet data being used to indicate whether the local area communication network is available; When the local communication network is available, the microcontroller receives a modification instruction to change the target address of the received network data, so as to switch the network data from being sent through the default mobile communication network to being sent through the local communication network. When the local communication network is unavailable, the receiving microcontroller shutdown command does not modify the target address of the received network data, so that the network data is sent from the default mobile communication network.
6. The switching method according to claim 5, characterized in that, The switch forwards network packet data based on a first communication protocol, and receives modification or shutdown instructions based on a second communication protocol, wherein the first communication protocol is IPCP and / or the second communication protocol is SPI.
7. The switching method according to claim 5, characterized in that, The local communication network is a WiFi network, and / or the mobile communication network is a cellular network.
8. A vehicle-mounted terminal network switching system, characterized in that, Suitable for digital cockpit systems, which include system-on-a-chip, switches, and microcontrollers; The microcontroller receives network packet data sent by the system-on-a-chip via a switch. The network packet data is used to indicate whether the local area communication network is available. The local area communication network is connected to the system-on-a-chip. When the microcontroller determines that the local communication network is available, it controls the switch to change the destination address of the network data received from the autonomous driving domain controller, so as to switch the network data from the default mobile communication network to the local communication network. When the microcontroller determines that the local communication network is unavailable, it controls the switch to not modify the destination address of the network data received from the autonomous driving domain controller, so as to send the network data from the default mobile communication network.
9. A computer-readable storage medium, characterized in that, It stores a computer program for performing the switching method as described in any one of claims 1-6.
10. An electronic device, characterized in that, include: One or more processors; Memory, and One or more programs, wherein the one or more programs are stored in the memory, the programs including methods for performing the switching method as described in any one of claims 1-6.