A network connection method and device, a vehicle terminal and a storage medium
By obtaining vehicle configuration information and network card routing rules during the target operating system startup process, disabling or retaining the default network card, and selecting the appropriate target network card for network configuration, the problem of network communication interruption on the vehicle terminal was solved, and normal connection between the vehicle terminal and the network terminal was achieved, saving development costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- PATEO CONNECT (NANJING) CO LTD
- Filing Date
- 2024-12-17
- Publication Date
- 2026-06-19
AI Technical Summary
The vehicle's infotainment network architecture does not support VLAN services, causing network communication between the vehicle's infotainment system and network terminals to be interrupted, affecting internet access services.
During the target operating system startup process, the priority of obtaining vehicle configuration information and network card routing rules is determined. The default network card is disabled or retained at the software level, and a suitable target network card is selected for network configuration to ensure network connectivity between the vehicle's infotainment system and the network terminal.
It achieves normal network connectivity between the vehicle-mounted system and the network terminal through software-level logical judgment and network configuration without changing the hardware architecture, thus saving development costs.
Smart Images

Figure CN122248044A_ABST
Abstract
Description
Technical Field
[0001] This application relates to, but is not limited to, the field of vehicle networking technology, and particularly to a network connection method, device, vehicle terminal, and storage medium. Background Technology
[0002] Currently, some in-vehicle operating systems offer Virtual LAN (VLAN) services. VLAN services can isolate internet access services, thereby improving network security, optimizing network performance, and simplifying network management.
[0003] However, some car manufacturers' in-vehicle infotainment systems do not support VLAN services. In this case, if the aforementioned in-vehicle operating system is used, all services will share a single network, which could lead to network communication interruptions between the in-vehicle infotainment system and network terminals, thereby affecting internet access on the in-vehicle infotainment system. Summary of the Invention
[0004] One objective of this application is to provide a network connection method, the advantage of which is that during the target operating system startup process, vehicle configuration information that can indicate the network configuration status of the vehicle is obtained, and then the vehicle is configured to connect to the network according to the priority of the routing rules of multiple network cards set in the target operating system and / or the vehicle configuration information. Thus, even without using VLAN service to isolate different Internet access services, the network connection between the vehicle terminal and the network terminal can be guaranteed at the software level without any hardware-related modifications, saving development costs.
[0005] Another objective of this application is to provide a network connection method. Its advantage lies in that, in response to the vehicle having a second configuration word, the network configuration information of the first network card (NIC) defaulted during the target operating system's startup process is retained; that is, no operation is performed, and the vehicle-mounted terminal network configuration is achieved through the target operating system's network configuration information. If the vehicle has a first configuration word, the network configuration information corresponding to the first NIC is disabled, and the target operating system achieves vehicle-mounted terminal network configuration through the network configuration information corresponding to the second NIC. This ensures network connection between the vehicle-mounted terminal and the network terminal at the software level. The first NIC is the default Ethernet NIC of the target operating system. Since the first NIC is an Ethernet NIC, even if the vehicle-mounted terminal's network architecture does not support VLAN services, this application allows the vehicle-mounted terminal to still use internet services normally through the second NIC by disabling the first NIC, without changing the hardware architecture. Logical judgment and network configuration are performed only at the software level through the vehicle configuration word, which is very cost-effective.
[0006] Another objective of this application is to provide a network connection method, the advantage of which is that during the startup process of the target operating system, the target operating system can configure the network interface of the default network card and add the routing rules of the default network card to the routing table of the target operating system, thereby meeting the initial network connection configuration requirements between the vehicle terminal and the network terminal.
[0007] Another objective of this application is to provide a network connection method, the advantage of which is that by selecting a target network card corresponding to the vehicle configuration information based on priority, and executing the network configuration policy corresponding to the target network card, the network configuration of the vehicle-mounted system is completed. This achieves the determination of the vehicle-mounted system's network connection policy based on the priority of routing rules and the vehicle configuration information, thereby improving network configuration performance.
[0008] Another objective of this application is to provide a network connection method, the advantage of which is that the corresponding target network card can be determined through the vehicle's configuration word, so that when the vehicle has any configuration word, a suitable target network card can be configured for it, thereby realizing the provision of suitable network solutions for vehicles with different configurations.
[0009] Another objective of this application is to provide a network connection method, the advantage of which is that, through a network configuration service, the network configuration file of the target network card can be loaded. Then, the network interface of the target network card can be configured according to the configuration information recorded in the network configuration file, and the original routing rules in the routing table of the target operating system can be cleared, while the routing rules corresponding to the target network card can be added to the routing table of the target operating system, thereby completing the network connection configuration of the vehicle-mounted system.
[0010] Another objective of this application is to provide a network connection method with the advantage of obtaining the interface network parameters and routing network parameters of the target network card's network interface from its network configuration file through a network configuration service. After obtaining the interface network parameters, the network interface can be configured accordingly. Furthermore, after obtaining the routing network parameters, the routing rules determined by the target operating system's kernel layer can be added to the target operating system's routing table using the interface provided by the routing network parameters. This enables network configuration for the vehicle's infotainment system at the software level. Even if the vehicle's network architecture does not support VLAN services, this application allows the vehicle's infotainment system to still use internet services normally by clearing the original routing rules and reconfiguring a suitable target network card. No hardware changes are required; logical judgments and network configuration are performed solely at the software level through vehicle configuration keys, resulting in significant cost savings.
[0011] To achieve the above objectives, the technical solution of this application embodiment is implemented as follows:
[0012] In a first aspect, embodiments of this application provide a network connection method applied to a vehicle, the vehicle including a vehicle-mounted terminal and a network terminal, the vehicle-mounted terminal being configured with a target operating system. The method includes: during the startup process of the target operating system, acquiring vehicle configuration information; wherein the target operating system includes routing rules corresponding to multiple network interface cards (NICs), and the routing rules corresponding to the multiple NICs have priorities; and configuring the vehicle-mounted terminal for network connectivity based on the vehicle configuration information and / or priorities, enabling the vehicle-mounted terminal to access the network terminal for network communication through the network interface corresponding to the target NIC.
[0013] Secondly, embodiments of this application provide a network connection device applied to a vehicle. The vehicle includes a vehicle-mounted terminal and a network terminal, and the vehicle-mounted terminal is configured with a target operating system. The device includes: an acquisition module, used to acquire vehicle configuration information during the startup process of the target operating system; wherein the target operating system includes routing rules corresponding to multiple network interface cards (NICs), and the routing rules corresponding to the multiple NICs have priorities; and a configuration module, used to configure the vehicle-mounted terminal for network connectivity based on the vehicle configuration information and / or priorities, enabling the vehicle-mounted terminal to access the network terminal for network communication through the network interface corresponding to the target NIC.
[0014] Thirdly, embodiments of this application provide an in-vehicle terminal, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the program to implement some or all of the steps in the above-described method.
[0015] Fourthly, embodiments of this application provide a computer storage medium storing one or more computer programs, which can be executed by one or more processors to implement some or all of the steps in the above method.
[0016] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of this application. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with this application and, together with the specification, serve to explain the technical solutions of this application.
[0018] Figure 1 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application.
[0019] Figure 2 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application.
[0020] Figure 3This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application.
[0021] Figure 4 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application.
[0022] Figure 5 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application.
[0023] Figure 6 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application.
[0024] Figure 7 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application.
[0025] Figure 8 This is a schematic diagram of a network connection device provided in an embodiment of this application.
[0026] Figure 9 This is a schematic diagram of the hardware entity of an in-vehicle terminal provided in an embodiment of this application. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application are further described in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0028] In the following description, references to "some embodiments" refer to a subset of all possible embodiments. It is understood that "some embodiments" may be the same or different subsets of all possible embodiments and may be combined with each other without conflict. The terms "first / second / third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains. The terminology used herein is for descriptive purposes only and is not intended to limit the scope of this application.
[0030] The vehicle networking system in this embodiment includes a vehicle-mounted infotainment system and a network terminal. In some embodiments, it may also include a mobile application and a backend system. The vehicle-mounted infotainment system can be used for audio-visual entertainment and vehicle information display; the network terminal can be used to communicate with the backend system / mobile application to display and control vehicle information. In vehicles designed by automakers, the interaction between the vehicle-mounted infotainment system and the network terminal is generally achieved through a Universal Serial Bus (USB) to Ethernet converter.
[0031] In recent years, with the implementation and popularization of intelligent driving, automakers, while retaining the original universal serial bus, have added a USB-to-Ethernet adapter to enable network communication within the vehicle, including the infotainment system, controllers, and gateways. However, to ensure uniformity across all models, automakers have not used VLANs to isolate different internet access services. This means all network addresses (IP addresses) are on the same network segment, with routing policies handled by the network terminal. Without VLAN isolation, all services share the same network, which can cause communication interruptions with the in-vehicle network (TBOX) when a WLAN connection is established, thus affecting related service functions. Therefore, the Ethernet network configuration with the TBOX needs to use VLANs to isolate the network used for general entertainment applications.
[0032] If the network architecture of the car manufacturer's in-vehicle infotainment system does not support VLAN services, and the target operating system is used on the in-vehicle infotainment system, but the target operating system has VLAN services, then all services will share a single network. When a wireless local area network (WLAN) is connected, it will cause the network communication between the in-vehicle infotainment system and the network terminal to be interrupted, thereby affecting the in-vehicle infotainment system's Internet access services, such as over-the-air (OTA) upgrade services.
[0033] Firstly, to address the aforementioned technical problems, embodiments of this application provide a network connection method. (Refer to...) Figure 1 , Figure 1 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application. This method can be executed by the vehicle's in-vehicle infotainment system. Here, it will be combined with... Figure 1 The steps shown are explained.
[0034] Step S101: During the startup process of the target operating system, obtain the vehicle configuration information.
[0035] It is understandable that a vehicle includes a vehicle-mounted infotainment system and a network terminal. The target operating system can be configured on the vehicle-mounted infotainment system, meaning the target operating system runs on the vehicle-mounted infotainment system. The vehicle-mounted infotainment system can obtain the vehicle's configuration information while the target operating system is in the boot process.
[0036] In some embodiments, the target operating system can be a program system that manages and controls in-vehicle hardware and software resources. It is the underlying software configured on the in-vehicle infotainment system (IVS) hardware, and upper-layer software, HMI (Human Machine Interface), data connections, etc., must all run with the support of the target operating system. The target operating system acts as the interface between the user and the in-vehicle infotainment system. In one embodiment, the target operating system facilitates communication between the user and the in-vehicle infotainment system by providing a user interface, managing resources, abstracting resources, and handling interrupts and exceptions.
[0037] In some embodiments, the target operating system boot process may include processes such as loading the bootloader, loading the kernel, and initializing the kernel. During these processes, tasks such as loading critical components, setting configuration information, and setting drivers can be performed.
[0038] In one embodiment, during the target operating system startup process, network configuration services can be invoked and created to ensure the initialization and configuration of the vehicle's network connectivity. These network configuration services reside within the target operating system; they are part of the operating system and are responsible for managing network interfaces and configuration.
[0039] In one embodiment, the network configuration service can read the target operating system's configuration file to obtain the target operating system's network configuration information.
[0040] In this embodiment, the target operating system is an operating system that provides VLAN services. For example, it could be HarmonyOS, AndroidOS, etc.
[0041] In one embodiment, the target operating system's configuration file contains network configuration information, Address Resolution Protocol (ARP) information, and other information.
[0042] In one example, the target operating system's configuration file can be a Cloud Connect Network (CCN) configuration file, such as CCNConfig.xml.
[0043] In one embodiment, the network configuration service can also configure the network card's IP address, subnet mask, default gateway, and routing rules corresponding to the network card based on the target operating system's network configuration information.
[0044] In some embodiments, the network terminal can be an intelligent terminal device that integrates vehicle network and wireless communication functions. By connecting the Controller Area Network (CAN) bus and an external cloud platform, it enables communication and data exchange between vehicles (V2V), vehicles (V2I), and vehicles (V2N).
[0045] In some embodiments, the target operating system includes routing rules corresponding to multiple network interface cards (NICs), and the routing rules corresponding to the multiple NICs have priorities.
[0046] As is understandable, routing rules are used to determine the path of data packets through the network. When a target operating system is configured with multiple network interface cards (NICs), each NIC can be configured with different routing rules to handle data packets passing through it. These routing rules are typically defined based on the packet's IP address, source IP address, interface type, or other network parameters. The routing rules corresponding to the multiple NICs of the target operating system have priorities, meaning that when multiple NICs' routing rules apply to a single data packet, the target operating system will select the target routing rule based on its priority, allowing the target operating system to communicate using the NIC corresponding to the target routing rule.
[0047] In one example, the routing rules and priorities of the target operating system can be stored in a routing table. The routing table can be as shown in Table 1.
[0048] Table 1
[0049]
[0050] Understandably, a routing table can record routing rules for different network cards and the priority of each routing rule.
[0051] In some embodiments, when a data packet arrives, the target operating system can check each routing rule according to the priority in Table 1 until a matching target routing rule is found. The target operating system can then use the network interface card corresponding to the target routing rule to send the data packet.
[0052] In some embodiments, vehicle configuration information can be stored in a vehicle configuration file, and the vehicle configuration information can be obtained by accessing the vehicle configuration file through the vehicle's physical interface or network interface.
[0053] In some embodiments, vehicle configuration information includes: vehicle hardware configuration, software version, personalization settings, and other information.
[0054] In some embodiments, vehicle configuration information may include: vehicle network configuration information, such as vehicle network protocols, IP address and subnet mask of vehicle network modules, gateway and Domain Name System Server (DNS), wireless network configuration, network device version, and network encryption configuration.
[0055] In one embodiment, when the vehicle has a network terminal, the vehicle configuration information also includes: Subscriber Identity Module (SIM) information, network operator settings, data usage policies, and other information.
[0056] Step S102: Configure the vehicle terminal for network connectivity based on vehicle configuration information and / or priority, so that the vehicle terminal can access the network terminal for network communication through the network interface corresponding to the target network card.
[0057] It is understandable that after obtaining the vehicle configuration information and routing rule priority through step S101, the vehicle terminal can determine the target network card based on the vehicle configuration information and / or priority, and then access the network terminal through the network interface corresponding to the target network card to conduct network communication, thereby realizing the network configuration of the vehicle terminal and ensuring the network connection between the vehicle terminal and the network terminal.
[0058] It is understandable that in step S102, the default network card of the target operating system is not used to configure the vehicle terminal for network connection. Instead, the target network card is determined based on the vehicle configuration information and / or priority, and then the vehicle terminal is configured for network connection based on the target network card, so as to ensure that the vehicle terminal establishes a network connection with the network terminal first.
[0059] In some embodiments, based on vehicle configuration information, the target network card required for the vehicle-mounted terminal to establish a network connection with the network terminal, as well as the routing rules corresponding to the target network card, can be determined.
[0060] In some embodiments, the target network card required for the vehicle-mounted device to establish a network connection with the network terminal and the corresponding routing rules can be determined based on the priority of the routing rules.
[0061] In some embodiments, the target network card required for the vehicle-mounted terminal to establish a network connection with the network terminal and the corresponding routing rules can be jointly determined based on vehicle configuration information and the priority of routing rules.
[0062] In one example, when a data packet arrives, the target operating system can check each routing rule according to the priority in Table 2 until a routing rule matching the vehicle configuration information is found. The target operating system can then use the network card corresponding to that routing rule to send the data packet.
[0063] In some embodiments, configuring the vehicle-mounted system for network connectivity includes writing routing rules for the target network card into the network configuration file of the target operating system, thereby ensuring that data packets can be correctly routed to their destination.
[0064] In this embodiment, during the target operating system startup process, vehicle configuration information can be obtained. Then, based on the priority of routing rules corresponding to multiple network cards in the target operating system and the vehicle configuration information, the target network card and its routing rules can be obtained. Finally, the vehicle-mounted system is configured for network connectivity based on the target network card and its routing rules. This ensures network connectivity between the vehicle-mounted system and the network terminal solely through software, without any hardware modifications, thus saving development costs.
[0065] In some embodiments, Figure 2 This is a schematic diagram illustrating the implementation flow of a network connection method provided in an embodiment of this application. Step S102 includes steps S201 and S202. Steps S201 and S202 are optional and have no specific order of execution, depending on the configuration information contained in the vehicle configuration information.
[0066] Step S201: In response to the vehicle configuration information including the first configuration word, disable the network interface of the first network card and clear the routing rules corresponding to the first network card in the routing table of the target operating system; through the network configuration service of the target operating system, configure the network interface of the second network card according to the network configuration file of the second network card, and add the routing rules corresponding to the second network card to the routing table of the target operating system. The first network card is the default Ethernet network card of the target operating system.
[0067] Understandably, when the target operating system's default network interface card (NIC) is the first NIC, during the startup process of the target operating system on the vehicle-mounted system, the network configuration service automatically configures the network interface of the first NIC and adds the corresponding routing rules to the target operating system's routing table. The vehicle-mounted system, responding to the vehicle configuration information including the first configuration term, can determine that its network connection configuration is not yet complete. At this point, the vehicle-mounted system disables the network interface of the first NIC and clears the routing rules corresponding to the first NIC from its routing table. Then, through the network configuration service, based on the network configuration file of the second NIC, it configures the network interface of the second NIC and adds the corresponding routing rules to the target operating system's routing table, enabling the vehicle-mounted system to communicate with the network terminal through the network interface corresponding to the second NIC.
[0068] In some embodiments, the configuration word can be an encoding method used to describe various configuration options of a vehicle. The specific configuration of the vehicle can be determined through the configuration word. In one embodiment, the configuration word can be pre-set in a specific field to distinguish different configurations of the vehicle, such as differentiating between a high-end and low-end vehicle. As an example, a high-end vehicle can be a model with advanced driver assistance features, while a low-end vehicle does not have these features.
[0069] In some embodiments, the first network card may be one of a plurality of network cards in the target operating system, and the first network card may be the default network card of the target operating system.
[0070] Understandably, Ethernet cards can be directly integrated into a vehicle's hardware system, providing a more stable and faster network connection. Ethernet cards can also connect directly to the vehicle's in-vehicle network system, supporting high-speed data transmission and making them suitable for applications requiring large amounts of data exchange.
[0071] In some embodiments, the vehicle with the first configuration word does not support Ethernet communication but supports Universal Serial Bus to Ethernet communication. The second network card can be a USB virtual network card. It is understood that the USB virtual network card can be a network interface simulated by software. The advantages of a USB virtual network card are lower cost and ease of installation and configuration.
[0072] In some embodiments, the second configuration word may indicate that the vehicle is a high-end vehicle, and the first configuration word may indicate that the vehicle is a low-end vehicle.
[0073] It's understandable that when the vehicle configuration information is set to "First Configuration Word," it indicates that the vehicle's infotainment system does not support network communication with the network terminal via the Ethernet network interface corresponding to the first network card. In this case, the network interface of the first network card is disabled, and the already configured network configuration information is changed. The infotainment system can first clear the routing rules corresponding to the first network card in the routing table. Then, through the network configuration service, it configures the network interface of the second network card according to the network configuration file of the second network card and adds the routing rules corresponding to the second network card to the routing table of the target operating system.
[0074] In step S202, in response to the vehicle configuration information including the second configuration word, it is determined that the vehicle terminal network configuration is complete, so that the vehicle terminal can communicate with the network terminal through the network interface corresponding to the first network card.
[0075] Understandably, when the target operating system's default network interface card (NIC) is the first NIC, during the startup process of the target operating system on the vehicle's infotainment system, the network configuration service automatically configures the network interface of the first NIC and adds the corresponding routing rules to the target operating system's routing table. Upon receiving vehicle configuration information including the second configuration word, the vehicle's infotainment system can confirm that its network configuration is complete, enabling it to communicate with network terminals through the network interface corresponding to the first NIC.
[0076] In some embodiments, the vehicle having the second configuration word supports Ethernet communication, and the first network card may be an Ethernet card.
[0077] It is understandable that when the vehicle configuration information is the second configuration word, it indicates that the vehicle's infotainment system supports network communication with the network terminal via the network interface corresponding to the first network card. In this case, the network connection configuration of the vehicle's infotainment system can be achieved without changing the already configured network configuration information.
[0078] Understandably, after the vehicle-mounted infotainment system disables the network interface of the first network card through network configuration services, the target operating system no longer starts the system's built-in VLAN service. The vehicle-mounted infotainment system connects to the network terminal through the network interface of the second network card, thereby enabling the network terminal to implement different routing policies for different internet access services. This allows network compatibility logic to be completed at the software level even without using VLAN services to isolate different internet access services.
[0079] In some embodiments, disabling the network interface of the first network card includes: calling a system command to disable the network interface of the first network card.
[0080] Understandably, when the vehicle configuration information is set to the first configuration word, the vehicle's infotainment system can control the use of the second network card to achieve network connectivity. In this case, the infotainment system can disable the network interface of the first network card by calling a system command.
[0081] In one embodiment, a system command can set all network interfaces that match the first mode (e.g., the default mode) to a closed state.
[0082] In this embodiment, in response to the vehicle having a second configuration word, the network configuration information of the first network card by default during the startup of the target operating system is retained, that is, no operation is performed, and the vehicle-mounted terminal network connection configuration is achieved through the default network configuration information of the target operating system; in response to the vehicle having a first configuration word, the network configuration information corresponding to the first network card is disabled, and the target operating system achieves the vehicle-mounted terminal network connection configuration through the network configuration information corresponding to the second network card. This achieves network connection between the vehicle-mounted terminal and the network terminal without changing the hardware architecture, and only by performing logical judgment and network configuration at the software level through the vehicle configuration word, which is very cost-effective.
[0083] In some embodiments, Figure 3 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application. During the target operating system startup process, the method further includes:
[0084] Step S301: Initialize the network configuration service of the target operating system, and load the first network configuration file of the first network card through the network configuration service.
[0085] It is understandable that during the startup process of the target operating system, the vehicle-mounted system can initialize the network configuration service of the target operating system, and determine the default network card (first network card) of the target operating system through the network configuration service, as well as load the first network configuration file of the first network card.
[0086] It is understandable that the first network interface card (NIC) can be the default Ethernet NIC of the target operating system. The configuration information of the first NIC will be loaded and applied on the target operating system first to ensure the normal establishment of network connections. Compared with the approach of determining the target NIC and then determining the corresponding network configuration policy, in this embodiment, the default first NIC is directly loaded to implement routing, thereby improving network configuration efficiency.
[0087] Step S302: Through the network configuration service, configure the network interface of the first network card according to the network configuration file of the first network card, and add the routing rules corresponding to the first network card to the routing table of the target operating system.
[0088] Understandably, the vehicle-mounted infotainment system can load the network configuration file of the first network card into the target operating system via the network configuration service. Subsequently, the system can configure the network interface of the first network card according to the configuration information in the target operating system's configuration file, and add the routing rules corresponding to the first network card to the routing table of the target operating system, thus completing the network connection configuration of the vehicle-mounted infotainment system.
[0089] In some embodiments, configuring the network interface of the first network card includes a network configuration service reading the network configuration file of the first network card and applying the configuration information in the file to the network interface of the first network card.
[0090] In this embodiment of the application, during the startup process of the target operating system, the target operating system can configure the network interface of the default network card and add the routing rules of the default network card to the routing table of the target operating system, thereby meeting the network configuration requirements of the vehicle terminal and the network terminal.
[0091] In some embodiments, Figure 4This is a schematic diagram of the implementation process of a network connection method provided in an embodiment of this application. Step S102, which configures the vehicle terminal to connect to the network according to the vehicle configuration information and priority, includes steps S401 to S402.
[0092] Step S401: Determine the target network card corresponding to the vehicle configuration information based on priority.
[0093] Understandably, the vehicle's infotainment system can determine the order of multiple routing rules based on their priority. Then, it can sequentially pair each routing rule with the vehicle's configuration information. Once a routing rule successfully pairs with the vehicle's configuration information, the network interface card (NIC) corresponding to that routing rule is identified as the target NIC.
[0094] Understandably, by matching the routing rules of multiple network cards in the target operating system with the vehicle configuration information, the target network card that matches the vehicle's infotainment system can be determined.
[0095] Step S402: Execute the network configuration policy corresponding to the target network card to complete the network configuration of the vehicle terminal.
[0096] Understandably, after the vehicle-mounted system determines the target network card through step S401, it can obtain the network configuration file corresponding to the target network card. Subsequently, it executes the corresponding network configuration policy according to the network configuration file, such as static IP setting, dynamic IP allocation, security settings, traffic management, etc., thereby completing the network configuration of the vehicle-mounted system.
[0097] In some embodiments, the network configuration policy is related to the network requirements of the vehicle terminal, network security measures, whether to obtain network credentials, and the network services enabled, etc., and this application embodiment does not limit this.
[0098] In this embodiment, the target network interface card (NIC) corresponding to the vehicle configuration information is selected based on priority, and the network configuration policy corresponding to the target NIC is executed to complete the network configuration of the vehicle-mounted system. This achieves the goal of determining the vehicle-mounted system's network configuration policy based on the priority of routing rules and the vehicle configuration information, thereby improving network configuration performance.
[0099] In some embodiments, Figure 5 This is a schematic diagram of the implementation process of a network connection method provided in an embodiment of this application. Step S401 includes steps S501 to S502.
[0100] Step S501: In response to the vehicle configuration information including the second configuration word, determine that the target network card corresponding to the second configuration word is the first network card.
[0101] It is understandable that the vehicle's infotainment system can obtain vehicle configuration information. If the vehicle configuration information indicates that the vehicle has a second configuration word, it can obtain the target network card that is compatible with the second configuration word, and then identify the target network card as the first network card.
[0102] In some embodiments, the configuration word can be an encoding method used to describe various configuration options of a vehicle. The specific configuration of the vehicle can be determined through the configuration word. In one embodiment, the configuration word can be pre-set in a specific field to distinguish different configurations of the vehicle, such as differentiating between a high-end and low-end vehicle. As an example, a high-end vehicle can be a model with advanced driver assistance features, while a low-end vehicle does not have these features.
[0103] In some embodiments, the first network interface card (NIC) may be one of multiple NICs in the target operating system, and the routing rule corresponding to the first NIC has the highest priority.
[0104] In some embodiments, the vehicle having the second configuration word supports Ethernet communication, and the first network card may be an Ethernet card.
[0105] Understandably, Ethernet cards can be directly integrated into a vehicle's hardware system, providing a more stable and faster network connection. Ethernet cards can also connect directly to the vehicle's in-vehicle network system, supporting high-speed data transmission and making them suitable for applications requiring large amounts of data exchange.
[0106] In step S502, in response to the vehicle configuration information including the first configuration word, the target network card corresponding to the first configuration word is determined to be the second network card.
[0107] It is understandable that the vehicle's infotainment system can obtain vehicle configuration information. If the vehicle configuration information indicates that the vehicle has a first configuration word, it can obtain a target network card that is compatible with the first configuration word, and then the target network card is determined to be the second network card.
[0108] In some embodiments, the second network interface card (NIC) may be one of multiple NICs in the target operating system, and the priority of the routing rule corresponding to the second NIC is lower than the priority of the routing rule corresponding to the first NIC.
[0109] In some embodiments, the vehicle with the first configuration word does not support Ethernet communication but supports Universal Serial Bus to Ethernet communication. The second network card can be a USB virtual network card. It is understood that the USB virtual network card can be a network interface simulated by software. The advantages of a USB virtual network card are lower cost and ease of installation and configuration.
[0110] In some embodiments, the second configuration word may indicate that the vehicle is a high-end vehicle, and the first configuration word may indicate that the vehicle is a low-end vehicle.
[0111] In this embodiment, the vehicle's network device can be determined based on the configuration word in the vehicle configuration information. Different network cards are selected based on the vehicle's network device to establish a connection between the vehicle's infotainment system and the network terminal, thereby providing suitable network solutions for vehicles with different configurations.
[0112] In some embodiments, before configuring the network according to the target network card, the existing routing rules in the target operating system are cleared and the appropriate target network card is reconfigured.
[0113] In some embodiments, Figure 6 This is a schematic diagram of the implementation process of a network connection method provided in an embodiment of this application. Step S402 includes steps S601 to S602.
[0114] Step S601: Initialize the network configuration service of the target operating system, and load the network configuration file of the target network card through the network configuration service.
[0115] Understandably, after obtaining the target network card according to step S401, the vehicle-mounted system can obtain the network configuration file corresponding to the target network card. Subsequently, the vehicle-mounted system can initialize the network configuration service of the target operating system, clear the original routing rules in the routing table, and load the network configuration file of the target network card through the network configuration service.
[0116] In one embodiment, the workflow of the network configuration service includes processes such as starting the service, loading the network configuration file, and initializing the network interface.
[0117] In some embodiments, the existing routing rules in the target operating system are cleared before loading the network configuration file of the target network card.
[0118] In some embodiments, the network configuration file can be a file used to define and control the settings of a network interface (such as an Ethernet card, a wireless network card, etc.). The network configuration file may include configuration information for the network interface, such as IP address, subnet mask, gateway, DNS server, etc.
[0119] In some embodiments, different network configuration services may use different network configuration file formats, and this application does not limit this.
[0120] Step S602: Through the network configuration service, configure the network interface of the target network card according to the network configuration file of the target network card, clear the original routing rules in the routing table of the target operating system, and add the routing rules corresponding to the target network card to the routing table of the target operating system.
[0121] Understandably, the vehicle-mounted infotainment system can load the target network card's network configuration file through the network configuration service. Subsequently, the system can configure the target network card's network interface according to the configuration information recorded in the network configuration file, and after clearing the original routing rules in the target operating system's routing table, add the routing rules corresponding to the target network card to the target operating system's routing table, thus completing the network connection configuration of the vehicle-mounted infotainment system.
[0122] In some embodiments, configuring the network interface of the target network card includes editing the network configuration file of the target operating system. In some embodiments, editing the network configuration file of the target operating system includes adding or modifying interface configurations.
[0123] In this embodiment of the application, the network interface of the target network card can be configured through the network configuration service of the target operating system and according to the network configuration file of the target network card, and the routing rules corresponding to the target network card can be added to the routing table of the target operating system, thereby enabling the target operating system to execute the network configuration corresponding to the target network card, and enabling the vehicle terminal to complete the network configuration.
[0124] In some embodiments, step S602 includes: obtaining network parameters in the network configuration file of the target network card through a network configuration service; configuring the network interface of the target network card according to the interface network parameters in the network parameters through a network configuration service; and adding the routing rules corresponding to the target network card to the routing table of the target operating system according to the routing network parameters in the network parameters through a routing service and using the interface provided by the kernel layer of the target operating system.
[0125] Understandably, through the network configuration service, the vehicle-mounted system can obtain the interface network parameters and routing network parameters of the target network interface card from its network configuration file. After obtaining the interface network parameters, the vehicle-mounted system can configure the network interface based on these parameters. After obtaining the routing network parameters, the vehicle-mounted system can also utilize the interfaces provided by the target operating system's kernel layer to add the routing rules determined by the routing network parameters to the target operating system's routing table.
[0126] In some embodiments, interface network parameters may include parameters such as IP address, subnet mask, default gateway, and DNS server.
[0127] In some embodiments, the in-vehicle infotainment system can configure the network interface by editing the target operating system's configuration file.
[0128] In some embodiments, the vehicle-mounted system can view the default network interface of the target operating system and compare it with the network interface corresponding to the target network card. If they are the same, the vehicle-mounted system can leave the target operating system's configuration file unchanged; if they are different, the vehicle-mounted system can modify the target operating system's configuration file, including clearing the original configuration file and writing the configuration file corresponding to the target network card.
[0129] In some embodiments, the vehicle-mounted system can also add the routing rules indicated in the routing network parameters corresponding to the target network card into the routing table of the target operating system.
[0130] In this embodiment, the interface network parameters and routing network parameters of the target network interface card (NIC) can be obtained from the NIC's network configuration file. After obtaining the interface network parameters, the NIC can be configured. After obtaining the routing network parameters, the routing rules determined by the routing network parameters can be added to the target operating system's routing table using the interface provided by the target operating system's kernel layer, thereby enabling network configuration for the vehicle-mounted system at the software level. In this process, even without using VLAN services to isolate different internet access services, network compatibility logic can be set at the software level through vehicle configuration words, thus adapting to internet access services for both high- and low-end vehicle models. No hardware architecture changes are required; logical judgments and network configurations are performed solely at the software level through vehicle configuration words, resulting in significant cost savings.
[0131] The network connection method in this application embodiment will be described below with a specific example. Figure 7 This is a schematic diagram illustrating the implementation process of a network connection method provided in an embodiment of this application. (See attached diagram.) Figure 7 As shown, network connection methods include:
[0132] Step S700: The target operating system starts.
[0133] Step S701: During the startup process of the target operating system, the routing rules corresponding to the first network card are written to the target operating system through the network configuration service, and then step S702 is executed.
[0134] It is understandable that during the startup process of the target operating system (initialization phase), the network configuration service can load the first network configuration file of the first network card, configure the network interface of the first network card according to the network configuration file of the first network card, and add the routing rules corresponding to the first network card to the routing table of the target operating system.
[0135] In one example, the first network interface card (NIC) can be an Ethernet card (denoted as eth*, where "eth" refers to the Ethernet interface and "*" is a wildcard that can represent any number). The first NIC can be the default NIC of the target operating system.
[0136] Step S702: Obtain the vehicle configuration information, and then proceed to step S703.
[0137] It is understandable that during the initialization (init) phase of the target operating system, the vehicle configuration information can be obtained through network configuration services at the kernel layer (e.g., the native code layer). Here, the vehicle configuration information can be configuration words.
[0138] Step S703: Determine whether the vehicle's configuration word is the second configuration word. If yes, proceed to step S704; otherwise, proceed to step S705.
[0139] Understandably, vehicles with a second configuration word can support Ethernet cards.
[0140] In step S704, the vehicle-mounted unit communicates with the network terminal through the network interface corresponding to the first network card.
[0141] Step S705: Disable the network interface of the first network card and clear the routing rules corresponding to the first network card in the routing table, and then execute step S706.
[0142] Understandably, the network interface of the first network card can be disabled by calling system commands.
[0143] In one example, the native layer service unloads the Ethernet card using a command to disable the Ethernet card.
[0144] Step S706: Write the routing rules corresponding to the second network card to the target operating system through the network configuration service, and then execute step S707.
[0145] Understandably, the network configuration service configures the network interface of the second network card according to the network configuration file of the second network card, and adds the routing rules corresponding to the second network card to the routing table of the target operating system.
[0146] In one example, the second network adapter could be a USB virtual network adapter. The routing rule corresponding to the second network adapter could be a default table routing rule.
[0147] In step S707, the vehicle-mounted unit communicates with the network terminal through the network interface corresponding to the second network card.
[0148] Step S708, process ends.
[0149] The implementation principles of the above steps S700 to S708 include:
[0150] First, the target operating system's CCN configuration file (such as CCNConfig.xml) contains information such as Ethernet (eth) IP and address resolution protocol. During the target operating system's boot process, the network configuration service can write routing rules to the target operating system.
[0151] Secondly, the target operating system defaults to routing via the Ethernet card, which has a higher priority than the routing tables corresponding to other network cards (such as the default table). Therefore, the default table routing rules cannot be used directly. This will prevent communication between the vehicle's infotainment system and the network terminal in lower-spec vehicles (where the network configuration only includes a USB virtual network card).
[0152] Thirdly, by uninstalling the Ethernet card, the target operating system will clear the routing rules in the table and enable the vehicle's infotainment system to communicate with the network terminal through the default table routing rules.
[0153] Based on the above implementation principles, during the system startup process of the target operating system, the vehicle configuration word can be obtained through the network configuration service at the native layer, and the vehicle's status can be obtained through the configuration word. If it is a high-configuration vehicle (i.e., the vehicle has an Ethernet module installed, also known as a high-spec vehicle), the Ethernet card is retained, and the Internet access function is achieved through the target operating system's own routing rules. If it is a low-configuration vehicle (i.e., the vehicle does not have an Ethernet module installed, and the Internet access is achieved through a USB to Ethernet adapter, also known as a low-spec vehicle), the target operating system's Ethernet card is unloaded through system commands, and the routing rules in the table are cleared, so that the target operating system can achieve the Internet access function through the default table.
[0154] In this embodiment, automakers can retain their existing network architecture and network configuration rules, reducing development costs for adapting to the target operating system. Even without using VLAN services to isolate different internet access services, network compatibility logic can be configured at the software level through vehicle configuration words, enabling the use of a single software solution applicable to both high-end and low-end vehicle models for internet access services.
[0155] Secondly, embodiments of this application provide a network connection device. Figure 8 This is a schematic diagram of a network connection device provided in an embodiment of this application. See also: Figure 8 As shown, the network connection device 800 includes:
[0156] The acquisition module 801 is used to acquire vehicle configuration information during the startup process of the target operating system; wherein, the target operating system includes routing rules corresponding to multiple network cards, and the routing rules corresponding to multiple network cards have priorities among them;
[0157] The configuration module 802 is used to configure the vehicle terminal to connect to the network based on the vehicle configuration information and / or priority, so that the vehicle terminal can access the network terminal for network communication through the network interface corresponding to the target network card.
[0158] In some embodiments, the configuration module 802 is further configured to, in response to the vehicle configuration information including the second configuration word, determine that the vehicle terminal network configuration is complete, enabling the vehicle terminal to communicate with the network terminal through the network interface corresponding to the first network card; wherein, the first network card is the default network card of the target operating system; in response to the vehicle configuration information including the first configuration word, disable the network interface of the first network card and clear the routing rules corresponding to the first network card in the routing table of the target operating system; configure the network interface of the second network card according to the network configuration file of the second network card through the network configuration service of the target operating system, and add the routing rules corresponding to the second network card to the routing table of the target operating system.
[0159] In some embodiments, the configuration module 802 is further configured to initialize the network configuration service of the target operating system, and load the first network configuration file of the first network card through the network configuration service; configure the network interface of the first network card according to the network configuration file of the first network card through the network configuration service, and add the routing rules corresponding to the first network card to the routing table of the target operating system.
[0160] In some embodiments, the configuration module 802 is also used to call system commands to disable the network interface of the first network card.
[0161] In some embodiments, the configuration module 802 is further configured to determine the target network card corresponding to the vehicle configuration information according to the priority; and execute the network configuration policy corresponding to the target network card to complete the network configuration of the vehicle terminal.
[0162] In some embodiments, the configuration module 802 is further configured to: if the vehicle configuration information is a second configuration word, determine that the target network card corresponding to the second configuration word is a first network card, wherein the routing rule corresponding to the first network card has the highest priority; if the vehicle configuration information is a first configuration word, determine that the target network card corresponding to the first configuration word is a second network card, wherein the multiple network cards include the first network card and the second network card, and the routing rule corresponding to the first network card has a higher priority than the routing rule corresponding to the second network card.
[0163] In some embodiments, the configuration module 802 is further configured to initialize the network configuration service of the target operating system, and load the network configuration file of the target network card through the network configuration service; configure the network interface of the target network card according to the network configuration file of the target network card through the network configuration service, and add the routing rules corresponding to the target network card to the routing table of the target operating system.
[0164] In some embodiments, the configuration module 802 is further configured to obtain network parameters in the network configuration file of the target network card through the network configuration service; configure the network interface of the target network card according to the interface network parameters in the network parameters through the network configuration service; and add the routing rules corresponding to the target network card to the routing table of the target operating system according to the routing network parameters in the network parameters through the network configuration service and the interface provided by the kernel layer of the target operating system.
[0165] Thirdly, embodiments of this application provide an in-vehicle terminal, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the program to implement some or all of the steps in the above-described method.
[0166] In some embodiments, the vehicle terminal can be any terminal on the vehicle capable of implementing the above-described network connection method, such as the vehicle infotainment system.
[0167] Fourthly, embodiments of this application provide a computer storage medium storing one or more computer programs, which can be executed by one or more processors to implement some or all of the steps in the above-described method. The storage medium can be transient or non-transient.
[0168] Fifthly, embodiments of this application provide a computer program including computer-readable code, wherein when the computer-readable code is run in an in-vehicle terminal, the processor in the in-vehicle terminal executes some or all of the steps in the above-described method.
[0169] Sixthly, embodiments of this application provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium; in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.
[0170] It should be noted that the descriptions of the various embodiments above tend to emphasize the differences between them, while their similarities or commonalities can be referred to interchangeably. The descriptions of the above embodiments of the device, storage medium, computer program, and computer program product are similar to the descriptions of the above method embodiments and have similar beneficial effects. For technical details not disclosed in the embodiments of the device, storage medium, computer program, and computer program product of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0171] Figure 9 This is a schematic diagram of the hardware entity of an in-vehicle terminal provided in an embodiment of this application, such as... Figure 9 As shown, the hardware entity of the vehicle terminal 900 includes a processor 901 and a memory 902. The memory 902 stores a computer program that can run on the processor 901. When the processor 901 executes the program, it performs the following steps: during the startup process of the target operating system, it obtains the vehicle configuration information; the target operating system includes routing rules corresponding to multiple network cards, and the routing rules corresponding to the multiple network cards have priorities; according to the vehicle configuration information and / or priorities, it configures the vehicle terminal to connect to the network terminal for network communication through the network interface corresponding to the target network card.
[0172] In other embodiments of this application, the processor 901 may also implement the steps of the network connection method as described in one or more of the above embodiments when executing the program.
[0173] The memory 902 stores computer programs that can run on the processor. The memory 902 is configured to store instructions and applications that can be executed by the processor 901. It can also cache data to be processed or already processed by the processor 901 and various modules in the vehicle terminal 900 (e.g., image data, audio data, voice communication data and video communication data). It can be implemented by flash memory or random access memory (RAM).
[0174] Specifically, when the processor 901 executes the program, it implements the steps of any of the above-mentioned scenario mode creation or scenario mode execution methods. The processor 901 typically controls the overall operation of the vehicle terminal 900.
[0175] This application provides a computer storage medium storing one or more programs that can be executed by one or more processors to implement the steps of the network connection method as described in any of the above embodiments.
[0176] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0177] The aforementioned processor can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), Controller, Microcontroller, and Microprocessor. It is understood that other electronic devices can also implement the functions of the aforementioned processor, and this application does not specifically limit the specific implementation.
[0178] The aforementioned computer storage media / memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM), etc.; or it can be various terminals that include one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0179] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above steps / processes do not imply a sequential order of execution; the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above embodiments of this application are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0180] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0181] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.
[0182] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0183] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0184] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory, magnetic disks, or optical disks.
[0185] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an in-vehicle terminal (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.
[0186] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. A network connection method, characterized in that, Applied to vehicles, the vehicles including in-vehicle infotainment systems and network terminals, the in-vehicle infotainment systems being configured with a target operating system, the method includes: During the startup process of the target operating system, the vehicle configuration information of the vehicle is obtained; wherein, the target operating system includes routing rules corresponding to multiple network cards, and the routing rules corresponding to the multiple network cards have priority among them; Based on the vehicle configuration information and / or the priority, the vehicle-mounted terminal is configured to connect to the network terminal for network communication through the network interface corresponding to the target network card.
2. The method according to claim 1, characterized in that, The step of configuring the vehicle-mounted system for network connectivity based on the vehicle configuration information includes: In response to the vehicle configuration information including a first configuration word, the network interface of the first network card is disabled, and the routing rules corresponding to the first network card in the routing table of the target operating system are cleared; through the network configuration service of the target operating system, the network interface of the second network card is configured according to the network configuration file of the second network card, and the routing rules corresponding to the second network card are added to the routing table of the target operating system, wherein the first network card is the default Ethernet network card of the target operating system.
3. The method according to claim 2, characterized in that, The step of configuring the vehicle-mounted system for network connectivity based on the vehicle configuration information also includes: In response to the vehicle configuration information including the second configuration word, it is determined that the vehicle terminal network configuration is complete, so that the vehicle terminal communicates with the network terminal through the network interface corresponding to the first network card.
4. The method according to any one of claims 1 to 3, characterized in that, During the boot process of the target operating system, the method further includes: Initialize the network configuration service of the target operating system, and load the first network configuration file of the first network card through the network configuration service; The network configuration service configures the network interface of the first network card according to the network configuration file of the first network card, and adds the routing rules corresponding to the first network card to the routing table of the target operating system.
5. The method according to claim 2, characterized in that, Disabling the network interface of the first network card includes: The system command is invoked to disable the network interface of the first network card.
6. The method according to claim 1, characterized in that, The step of configuring the vehicle-mounted system for network connectivity based on the vehicle configuration information and priority includes: The target network card corresponding to the vehicle configuration information is determined based on the priority. The network configuration policy corresponding to the target network card is executed to complete the network connection configuration of the vehicle terminal.
7. The method according to claim 6, characterized in that, The step of determining the target network card corresponding to the vehicle configuration information based on the priority includes: In response to the vehicle configuration information including a second configuration word, the target network card corresponding to the second configuration word is determined to be a first network card, wherein the routing rule corresponding to the first network card has the highest priority; Alternatively, in response to the vehicle configuration information including a first configuration word, the target network card corresponding to the first configuration word is determined to be a second network card, wherein the plurality of network cards includes the first network card and the second network card, and the priority of the routing rule corresponding to the first network card is higher than the priority of the routing rule corresponding to the second network card.
8. The method according to claim 6 or 7, characterized in that, The execution of the network configuration policy corresponding to the target network card includes: Initialize the network configuration service of the target operating system, and load the network configuration file of the target network card through the network configuration service; The network configuration service configures the network interface of the target network card according to the network configuration file of the target network card, clears the original routing rules in the routing table of the target operating system, and adds the routing rules corresponding to the target network card to the routing table of the target operating system.
9. The method according to claim 8, characterized in that, The step of configuring the network interface of the target network card according to the network configuration file of the target network card through the network configuration service, and adding the routing rules corresponding to the target network card to the routing table of the target operating system, includes: The network configuration service is used to obtain the network parameters from the network configuration file of the target network card; The network interface of the target network card is configured using the network configuration service according to the interface network parameters in the network parameters. Through the network configuration service, based on the routing network parameters in the network parameters, and using the interface provided by the kernel layer of the target operating system, the routing rules corresponding to the target network card are added to the routing table of the target operating system.
10. A network connection device, characterized in that, Applied to vehicles, the vehicles including in-vehicle infotainment systems and network terminals, the in-vehicle infotainment systems being configured with a target operating system, the device includes: The acquisition module is used to acquire vehicle configuration information of the vehicle during the startup process of the target operating system; wherein, the target operating system includes routing rules corresponding to multiple network cards, and the routing rules corresponding to the multiple network cards have priority among them; The configuration module is used to configure the vehicle terminal to connect to the network based on the vehicle configuration information and / or the priority, so that the vehicle terminal can access the network terminal for network communication through the network interface corresponding to the target network card.
11. A vehicle-mounted terminal, characterized in that, The vehicle-mounted terminal includes: a memory and a processor. The memory stores computer programs that can run on the processor. When the processor executes the program, it implements the network connection method as described in any one of claims 1 to 9.
12. A computer storage medium, characterized in that, The storage medium stores one or more computer programs, which can be executed by one or more processors to implement the network connection method as described in any one of claims 1 to 9.