Vehicle-mounted network sharing method and device, in-vehicle infotainment system and vehicle
By setting up the first vehicle-machine subnet in the vehicle-machine system and controlling the device's access to the public network based on attribute information, the problem of poor convenience and security of vehicle equipment networking is solved, and high-security, low-cost vehicle network sharing is achieved.
Patent Information
- Application Number
- CN202411014777.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-11
AI Technical Summary
The external equipment mounted on the vehicle has poor networking convenience and security, and the cost is high. It is difficult for existing technology to effectively solve the complex distribution network problems and low networking security of drone platforms, highway inspection equipment, vehicle lighting, vehicle broadcasting and other equipment. question.
Set up the first vehicle-machine subnet in the vehicle's vehicle-machine system, access external devices through the USB port, and control the device to access the public network through the vehicle's gateway and wireless network connection device based on the device's attribute information and pre-configured data forwarding rules. Realize virtual LAN networking and network traffic control to ensure networking security and convenience.
By plugging external devices into the USB port, you can achieve highly secure and convenient networking, which reduces the cost of networking, avoids the need for users to build their own networking equipment, and improves the convenience and security of networking.
Smart Images

Figure CN118764510A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and more specifically, to a vehicle network sharing method, device, vehicle system and vehicle. Background Art
[0002] As the proportion of time occupied by vehicles in people's lives gradually increases and the level of intelligence of vehicles gradually improves, people have a lot of work to do inside the vehicle, and even the vehicle itself has become the most important work tool. Therefore, it is usually necessary to build users' own equipment in the car, such as laptops, smart phones, drone platforms, highway inspection equipment, vehicle lights, vehicle radios, vehicle screens and other equipment.
[0003] At present, vehicle networking services are usually provided for daily consumer behaviors, such as navigation, remote vehicle control, emergency rescue services, multimedia services, social services, etc., while for working equipment such as drone platforms, highway inspection equipment, vehicle lights, vehicle radios, and vehicle screens, a complex network configuration process is required, the networking security is low, and some working equipment even does not have the ability to connect to the wireless network. In addition, there are also cases where users build networking equipment by themselves, which leads to equipment layout problems and traffic cost problems.
[0004] Therefore, it is necessary to provide a vehicle network sharing method that is convenient to connect to and highly secure. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a vehicle network sharing method, device, vehicle system and vehicle to solve the problems of poor networking convenience and security and high cost of external devices carried by vehicles in the prior art.
[0006] To achieve the above technical objectives, the present application provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present specification provides a vehicle network sharing method, which is applied to a vehicle system of a vehicle, wherein the vehicle system is provided with a first vehicle subnet, and the first vehicle subnet is used for connecting an external device to the network; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is respectively connected to a gateway and a wireless network connection device of the vehicle, and the method comprises:
[0008] When an external device accesses the first vehicle subnet through the USB port, based on the first attribute information of the external device and the pre-configured data forwarding rules, the external device is controlled to access the public network of the vehicle through the gateway and / or wireless network connection device of the vehicle; the first attribute information is used to characterize the networking security level requirements of the external device.
[0009] Optionally, when the external device is connected to the first vehicle subnet through the USB port, the method further includes:
[0010] Based on the second attribute information of the external device and the pre-configured virtual local area network networking rules, the external device is networked into a virtual local area network; the second attribute information is used to characterize the data interaction requirements and / or networking security level requirements of the external device.
[0011] Optionally, after the external device is networked into a virtual local area network, the method further includes:
[0012] When there are multiple virtual local area networks, the interconnection or isolation between different virtual local area networks is controlled based on a pre-configured first network traffic control rule.
[0013] Optionally, when the external device is connected to the first vehicle subnet through the USB port, the method further includes:
[0014] Acquire target interaction data between each vehicle-machine application in a second vehicle-machine subnet of the vehicle and the first vehicle-machine subnet; the second vehicle-machine subnet is used for connecting the vehicle-machine application to the network;
[0015] Based on the third attribute information of the target interaction data and the pre-configured second network traffic control rule, when it is determined that the target interaction data meets the conditions for transmission between the vehicle-machine application and the first vehicle-machine subnet, the vehicle-machine application corresponding to the target interaction data is controlled to access the first vehicle-machine subnet.
[0016] Optionally, it also includes:
[0017] When it is detected that a port expansion device is inserted into the USB port, network configuration information of each device connection port in the port expansion device is generated in the first vehicle subnet, and the network configuration information of the target USB port in the first vehicle subnet is updated to the network configuration information of each device connection port;
[0018] Among them, the device connection port is used to connect the external device, the target USB port is the USB port into which the port expansion device is inserted, and the network configuration information of the target USB port is generated during the network configuration process of the first vehicle subnet.
[0019] Optionally, after updating the network configuration information of the target USB port in the first vehicle subnet to the network configuration information of each of the device connection ports, the method further includes:
[0020] When it is detected that the port expansion device is unplugged from the target USB port, traverse the network connection status of each device connection port;
[0021] When it is determined based on the network connection status of each of the device connection ports that the port expansion device is successfully unplugged from the target USB port, the network configuration information of each of the device connection ports is updated to the network configuration information of the target USB port.
[0022] Optionally, it also includes:
[0023] During the network configuration process of the first vehicle subnet, a domain name system server is configured for the first vehicle subnet.
[0024] In a second aspect, an embodiment of the present specification provides a vehicle network sharing device, which is applied to a vehicle system of a vehicle, wherein the vehicle system is provided with a first vehicle subnet, and the first vehicle subnet is used for connecting external devices to the network; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is respectively connected to a gateway and a wireless network connection device of the vehicle, and the device includes:
[0025] A data processing module is used to control the external device to access the public network of the vehicle through the gateway and / or wireless network connection device of the vehicle when the external device is connected to the first vehicle-machine subnet through the USB port, based on the first attribute information of the external device and a pre-configured data forwarding rule; the first attribute information is used to characterize the networking security level requirement of the external device.
[0026] In a third aspect, an embodiment of the present specification provides a vehicle system, wherein the vehicle system is provided with a first vehicle subnet, and the first vehicle subnet is used for connecting external devices to the Internet; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is respectively connected to a gateway and a wireless network connection device of the vehicle;
[0027] The vehicle system is used to control the external device to access the public network of the vehicle through the vehicle's gateway and / or wireless network connection device based on the first attribute information of the external device and pre-configured data forwarding rules when the external device accesses the first vehicle subnet through the USB port; the first attribute information is used to characterize the networking security level requirements of the external device.
[0028] In a fourth aspect, an embodiment of the present specification provides a vehicle, wherein the vehicle includes the vehicle system as described above.
[0029] In a fifth aspect, an embodiment of the present specification provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the vehicle network sharing method as described in any one of the above items is implemented.
[0030] In a sixth aspect, an embodiment of the present specification provides a computer program product or a computer program, wherein the computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium; the processor of the computer device reads the computer program from the computer-readable storage medium, and when the processor executes the computer program, it implements the vehicle network sharing method as described in any one of the above items.
[0031] It can be seen from the above technical scheme that the embodiment of the present application provides a vehicle-mounted network sharing method, device, vehicle-mounted system and vehicle, wherein the vehicle-mounted network sharing method is applied to the vehicle-mounted system of the vehicle, the vehicle-mounted system is provided with a first vehicle-mounted subnet, the first vehicle-mounted subnet is used for connecting external devices to the Internet, the first vehicle-mounted subnet is provided with a USB port, and the first vehicle-mounted subnet is connected to the gateway and wireless network connection device of the vehicle, when the external device accesses the first vehicle-mounted subnet through the USB port, based on the first attribute information of the external device and the pre-configured data forwarding rules, the external device is controlled to access the public network of the vehicle through the gateway and / or wireless network connection device of the vehicle, the first attribute information is used to characterize the networking security level requirement of the external device, so that the external device can access the public network of the vehicle by inserting the external device into the USB port, the networking is convenient and the security is high, at the same time, the vehicle's own network sharing capability is used to connect external devices to the Internet, and users do not need to build networking devices themselves, which further improves the convenience of networking and reduces the cost of networking. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0033] Figure 1 A flowchart of a vehicle network sharing method provided for one embodiment of this specification;
[0034] Figure 2 A schematic diagram of the structure of a vehicle network sharing device provided for one embodiment of this specification;
[0035] Figure 3 A schematic diagram of the structure of a vehicle system provided for one embodiment of the present specification. DETAILED DESCRIPTION
[0036] Unless otherwise defined, the technical terms or scientific terms used in the embodiments of this specification shall have the common meanings understood by persons with ordinary skills in the field to which this specification belongs. The words "first", "second" and similar words used in the embodiments of this specification do not indicate any order, quantity or importance, but are only used to avoid confusion of constituent elements.
[0037] Unless the context requires otherwise, throughout the specification, "plurality" means "at least two", and "including" is interpreted as an open, inclusive meaning, that is, "including, but not limited to". In the description of the specification, the terms "one embodiment", "some embodiments", "exemplary embodiments", "examples", "specific examples" or "some examples" are intended to indicate that a particular feature, structure, material or characteristic associated with the embodiment or example is included in at least one embodiment or example of the specification. The schematic representation of the above terms does not necessarily refer to the same embodiment or example.
[0038] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0039] Overview
[0040] As the proportion of time occupied by vehicles in people's lives gradually increases and the level of intelligence of vehicles gradually improves, people have a lot of work to do inside the vehicle, and even the vehicle itself has become the most important work tool. Therefore, it is usually necessary to build users' own equipment in the car, such as laptops, smart phones, drone platforms, highway inspection equipment, vehicle lights, vehicle radios, vehicle screens and other equipment.
[0041] At present, vehicle networking services are usually provided for daily consumer behaviors, such as navigation, remote vehicle control, emergency rescue services, multimedia services, social services, etc., while for working equipment such as drone platforms, highway inspection equipment, vehicle lights, vehicle radios, and vehicle screens, a complex network configuration process is required, and some working equipment does not even have the ability to connect to the Internet wirelessly. At the same time, even if the working equipment can connect to the Internet, since these working equipment are usually weak computing power equipment, they cannot enhance the security of the network through algorithms and can only rely on the security of the network itself, resulting in low network security; in addition, there are also cases where users build networking equipment by themselves, which has equipment layout problems, poor networking convenience, and networking equipment costs and traffic costs, resulting in high networking costs.
[0042] Therefore, it is necessary to provide a vehicle network sharing method that is convenient to connect to and highly secure.
[0043] In order to solve the problem of poor networking convenience and security of external devices carried by vehicles, in the technology of the present application, an on-board network sharing method is applied to the vehicle's on-board system. The on-board system is provided with a first on-board subnet, and the first on-board subnet is used for connecting external devices to the Internet. The first on-board subnet is provided with a USB port, and the first on-board subnet is connected to the vehicle's gateway and wireless network connection device. When the external device accesses the first on-board subnet through the USB port, based on the first attribute information of the external device and the pre-configured data forwarding rules, the external device is controlled to access the vehicle's public network through the vehicle's gateway and / or wireless network connection device. The first attribute information is used to characterize the networking security level requirement of the external device, so that the external device can access the vehicle's public network by inserting the external device into the USB port, which is convenient and secure. At the same time, the vehicle's own network sharing capability is used to connect external devices to the Internet, and users do not need to build networking devices themselves, which further improves the convenience of networking and reduces the cost of networking.
[0044] Based on the above-mentioned inventive concept, the vehicle network sharing method provided in the embodiment of this specification is exemplarily described below.
[0045] Exemplary Methods
[0046] The embodiment of the present specification provides a vehicle network sharing method, which is applied to a vehicle system of a vehicle, wherein the vehicle system is provided with a first vehicle subnet, and the first vehicle subnet is used for connecting external devices to the network; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is connected to a gateway and a wireless network connection device of the vehicle respectively, such as Figure 1 As shown, the method includes:
[0047] S101. When an external device accesses the first vehicle-machine subnet through the USB port, based on the first attribute information of the external device and a pre-configured data forwarding rule, the external device is controlled to access the public network of the vehicle through the gateway and / or wireless network connection device of the vehicle; the first attribute information is used to characterize the networking security level requirement of the external device.
[0048] Specifically, the vehicle's onboard system may be provided with a first onboard subnet, which is used for connecting external devices to the Internet. External devices are user devices and / or working devices built in the vehicle, such as laptop computers, smart phones, drone platforms, highway inspection equipment, vehicle lights, vehicle radios, vehicle screens, etc. It is understandable that the vehicle system may also be provided with a second onboard subnet, which is used for connecting the vehicle's onboard application to the Internet. The second onboard subnet and the first onboard subnet may be two independent networks, thereby achieving isolation between external devices and onboard applications and ensuring the security of external devices in the process of connecting to the Internet.
[0049] The first vehicle subnet can be created by creating a new virtual network card in the vehicle system. For example, the newly created virtual network card can be used as the gateway of the first vehicle subnet. The first vehicle subnet can be provided with a USB port, which can be used to connect an external device, and the first vehicle subnet is respectively connected to the vehicle's gateway and the vehicle's wireless network connection device, which can include a wireless network card and a wireless access point (AP).
[0050] During implementation, the RJ45 adapter can be inserted into the USB port via a USB cable, and the RJ45 adapter and external device can be connected via a network cable, so that the security and stability of the external device networking can be effectively guaranteed through wired connection, and the equipment cost of the USB port and the RJ45 adapter is extremely low.
[0051] When an external device accesses the first vehicle-machine subnet through a USB port, the external device can be controlled to access the vehicle's public network through the vehicle's gateway and / or wireless network connection device based on the first attribute information of the external device and the pre-configured data forwarding rules. The first attribute information is used to characterize the networking security level requirements of the external device. For example, the first attribute information may include the networking security level requirements of the external device, and may also include the networking security level requirements corresponding to different types of interactive data of the external device. The configuration of the data forwarding rules can be completed when the network configuration of the first vehicle-machine subnet is performed. The data forwarding rules may include the correspondence between the first attribute information and the data forwarding channel. The data forwarding channel may include a first channel and a second channel. The first channel may include the vehicle's gateway, and the second channel may include the wireless network connection device. It can be understood that a security policy can be configured in the vehicle's gateway, whereby the network security of the vehicle's gateway is higher than the network security of the wireless network connection device.
[0052] During implementation, when the networking security level requirement of the external device is higher than the first preset level, the external device can be controlled to access the vehicle's public network through the vehicle's gateway; when the networking security level requirement of the external device is lower than or equal to the first preset level, the external device can be controlled to access the vehicle's public network through the vehicle's wireless network connection device; and when the networking security level requirement of the external device is lower than or equal to the first preset level, the external device can be controlled to access the vehicle's public network through the vehicle's gateway or wireless network connection device based on the data transmission properties of the vehicle's gateway and wireless network connection device, such as current traffic, current data transmission speed, etc.
[0053] In addition, according to the networking security level requirements corresponding to the target interaction data of the external device, the external device can be controlled to access the vehicle's public network through the vehicle's gateway and / or wireless network connection device, so that the network configuration can be flexibly performed according to the networking security requirements of different external devices, and then, on-board network sharing can be flexibly provided for external devices while ensuring the networking security of the external devices.
[0054] Therefore, according to the method of this embodiment, by inserting an external device into a USB port, the external device can access the vehicle's public network, which makes networking convenient and highly secure. At the same time, the vehicle's own network sharing capabilities are used to connect external devices to the network, and users do not need to build networking equipment themselves, which further improves the convenience of networking and makes maintenance easier. There is no need for networking equipment fees and traffic fees. Only low-cost USB ports and RJ45 adapters need to be added, which greatly reduces networking costs.
[0055] In order to further improve the networking security of the external device, in one embodiment of the present specification, when the external device is connected to the first vehicle subnet through the USB port, the method further includes:
[0056] Based on the second attribute information of the external device and the pre-configured virtual local area network networking rules, the external device is networked into a virtual local area network; the second attribute information is used to characterize the data interaction requirements and / or networking security level requirements of the external device.
[0057] Specifically, when an external device is connected to the first vehicle subnet through a USB port, a virtual local area network can be formed for the external device based on the second attribute information of the external device and the pre-configured virtual local area network networking rules. The second attribute information of the external device can be used to characterize the data interaction requirements and / or networking security level requirements of the external device. For any external device, the data interaction requirements of the external device, i.e., the device that the external device needs to interact with during operation, can also include the frequency of data interaction with the device. In addition, the second attribute information can also include the networking security level requirements of the external device.
[0058] When the network configuration of the first vehicle subnet is performed, the configuration of the virtual LAN networking rules can be completed. The virtual LAN networking rules may include the corresponding relationship between the second attribute information and the virtual LAN networking mode. For example, each external device with a data interaction frequency greater than the preset frequency can be added to the same virtual LAN. Thus, when multiple devices are required to complete the same task together, multiple devices can be added to the same virtual LAN, thereby meeting the data interaction requirements between different external devices. In addition, it is also possible to separately network external devices that require a networking security level higher than the second preset level to achieve isolation of the external device from other external devices in the virtual LAN during the networking process, thereby improving the networking security of the external device. It is also possible to separately network external devices that have a data interaction frequency less than or equal to the preset frequency and a networking security level higher than the second preset frequency, thereby meeting the data interaction requirements between different external devices while improving the networking security of the external device, thereby further improving the flexibility of network configuration.
[0059] In a feasible implementation manner, after the external device is networked into a virtual local area network, the method further includes:
[0060] When there are multiple virtual local area networks, the interconnection or isolation between different virtual local area networks is controlled based on a pre-configured first network traffic control rule.
[0061] Specifically, after the external devices are networked into virtual local area networks, when there are multiple virtual local area networks, the intercommunication or isolation between different virtual local area networks can be controlled based on the pre-configured first network traffic control rules. The configuration of the first network traffic control rules can be completed when the network configuration of the first vehicle subnet is performed. The first network traffic control rules can include the corresponding relationship between the target attribute of the interactive data and whether the data is allowed to be transmitted. For any external device, the target attribute of the interactive data of the external device can include the data category of the interactive data, etc.
[0062] For example, when the interactive data to be sent by the external device to the target device is allowed to be transmitted, the virtual local area network where the external device is located is controlled to be interconnected with the virtual local area network where the target device is located; when the interactive data to be sent by the external device to the target device is not allowed to be transmitted, the virtual local area network where the external device is located is controlled to be isolated from the virtual local area network where the target device is located. The target device is an external device in a different virtual local area network from the external device. Therefore, the data interaction needs between different external devices can be met while ensuring the networking security of each external device, thereby ensuring the flexibility of communication between different external devices.
[0063] In a feasible implementation manner, when the external device is connected to the first vehicle subnet through the USB port, the method further includes:
[0064] Acquire target interaction data between each vehicle-machine application in a second vehicle-machine subnet of the vehicle and the first vehicle-machine subnet; the second vehicle-machine subnet is used for connecting the vehicle-machine application to the network;
[0065] Based on the third attribute information of the target interaction data and the pre-configured second network traffic control rule, when it is determined that the target interaction data meets the conditions for transmission between the vehicle-machine application and the first vehicle-machine subnet, the vehicle-machine application corresponding to the target interaction data is controlled to access the first vehicle-machine subnet.
[0066] Specifically, when an external device is connected to the first vehicle subnet through a USB port, the target interaction data between each vehicle application in the second vehicle subnet and the first vehicle subnet can also be obtained. The target interaction data may include control instructions to be sent by the vehicle application to the external device, and may also include operation data sent by the external device to the vehicle application, etc.
[0067] Among them, the second vehicle-machine subnet can be used for the vehicle-machine application to connect to the Internet. The vehicle-machine application can include the application programs carried by the vehicle itself, such as navigation, multimedia services, equipment operating programs, etc.
[0068] The third attribute information of the target interaction data may include the data category of the target interaction data, etc., wherein the configuration of the second network traffic control rule can be completed when the network configuration of the first vehicle-machine subnet is performed, and the second network traffic control rule may include the correspondence between the third attribute information of the interaction data and whether the data is allowed to be transmitted.
[0069] During implementation, it can be determined whether the target interaction data is allowed to be transmitted between the vehicle-machine application and the first vehicle-machine subnet based on the third attribute information of the target interaction data and the pre-configured second network traffic control rule. If allowed, it is determined that the target interaction data meets the conditions for transmission between the vehicle-machine application and the first vehicle-machine subnet. At this time, the vehicle-machine application corresponding to the target interaction data can be controlled to access the first vehicle-machine subnet to realize the transmission of the target interaction data between the vehicle-machine application and the corresponding external device. This can meet the data interaction requirements between the vehicle-machine application and the external devices while ensuring the networking security of each external device, thereby ensuring the flexibility of network communication between the vehicle-machine application and the first vehicle-machine subnet, and then the external devices can be controlled through the vehicle-machine application to perform corresponding operations.
[0070] In a feasible implementation, it also includes:
[0071] When it is detected that a port expansion device is inserted into the USB port, network configuration information of each device connection port in the port expansion device is generated in the first vehicle subnet, and the network configuration information of the target USB port in the first vehicle subnet is updated to the network configuration information of each device connection port;
[0072] Among them, the device connection port is used to connect the external device, the target USB port is the USB port into which the port expansion device is inserted, and the network configuration information of the target USB port is generated during the network configuration process of the first vehicle subnet.
[0073] Specifically, after the vehicle system is started, it can monitor in real time whether there is a port expansion device inserted into the USB port. The port expansion device is used to increase the number of devices that can be connected to the USB port, for example, it can be a USB adapter.
[0074] When a port expansion device is detected to be inserted into a USB port, network configuration information of each device connection port in the port expansion device can be generated in the first vehicle subnet. The device connection port is used to connect external devices. The network configuration information may include the data transmission speed of the port, the data transmission mode of the port (such as full-duplex mode, half-duplex mode, etc.), the flow control strategy of the port, etc.
[0075] At the same time, the network configuration information of the target USB port in the first vehicle subnet can be updated to the network configuration information of each device connection port, so as to add each device connection port to the first vehicle subnet, thereby enabling effective networking of external devices connected to each device connection port. The target USB port is the USB port in the first vehicle subnet into which the port expansion device is inserted.
[0076] It is understandable that the network configuration information of the target USB port can be generated when the network configuration of the first vehicle subnet is performed.
[0077] In a feasible implementation manner, after the network configuration information of the target USB port in the first vehicle subnet is updated to the network configuration information of each of the device connection ports, the method further includes:
[0078] When it is detected that the port expansion device is unplugged from the target USB port, traverse the network connection status of each device connection port;
[0079] When it is determined based on the network connection status of each of the device connection ports that the port expansion device is successfully unplugged from the target USB port, the network configuration information of each of the device connection ports is updated to the network configuration information of the target USB port.
[0080] Specifically, after the network configuration information of the target USB port in the first vehicle-machine subnet is updated to the network configuration information of each device connection port, it is also possible to monitor in real time whether the port expansion device is unplugged from the target USB port.
[0081] When the port expansion device is unplugged from the target USB port, the network connection status of each device connection port can be traversed, and the network connection status can include an online state and an offline state. Based on the network connection status of each device connection port, it is determined whether the port expansion device is successfully unplugged from the target USB port. For example, if the network connection status of at least one device connection port is an online state, it is determined that the port expansion device has failed to be unplugged from the target USB port, and the port expansion device can continue to be unplugged from the target USB port. If the network connection status of each device connection port is an offline state, it is determined that the port expansion device has been successfully unplugged from the target USB port. At this time, the network configuration information of each device connection port can be updated to the network configuration information of the target USB port, that is, each device connection port is removed from the first vehicle subnet, so that when the target USB port is connected to an external device, the external device can be effectively connected to the network.
[0082] In a feasible implementation, it also includes:
[0083] During the network configuration process of the first vehicle subnet, a domain name system server is configured for the first vehicle subnet.
[0084] Specifically, in the process of performing network configuration on the first vehicle subnet, a domain name system (Domain Name System, DNS) server can also be configured for the first vehicle subnet. By configuring the domain name system server for the first vehicle subnet, when external devices are connected to the network, domain name resolution can be performed according to the domain name system server configured for the first vehicle subnet, without the need to perform domain name resolution through the vehicle's gateway or wireless network connection device. This effectively avoids the risk of external devices being unable to connect to the network safely and effectively due to attacks during domain name resolution through the vehicle's gateway or wireless network connection device, thereby further improving the security and effectiveness of external device networking.
[0085] During implementation, the network configuration of the first vehicle subnet can be performed when the vehicle system is started. It can also be determined whether the network configuration data of the first vehicle subnet is updated when the vehicle system is started, and the network configuration of the first vehicle subnet can be performed when the network configuration data of the first vehicle subnet is updated.
[0086] As a preferred implementation, when the vehicle system is started, the network configuration data of the first vehicle subnet can be pulled from the configuration server through the vehicle's gateway. For example, the network configuration data of the first vehicle subnet can be pulled from the configuration server based on the vehicle's identification information. The vehicle's identification information may include the vehicle's VIN (Vehicle Identification Number), and the vehicle's gateway is connected to the configuration server.
[0087] Among them, the network configuration data may include first sub-configuration data, second sub-configuration data, third sub-configuration data, fourth sub-configuration data and fifth sub-configuration data, and the first sub-configuration data, second sub-configuration data, third sub-configuration data, fourth sub-configuration data and fifth sub-configuration data are respectively used to configure data forwarding rules, virtual LAN networking rules, first network traffic control rules, second network traffic control rules and domain name system servers.
[0088] When the network configuration data of the first vehicle subnet is pulled, the network configuration data can be parsed, and the data forwarding rules, virtual LAN networking rules, first network traffic control rules, second network traffic control rules and domain name system server of the first vehicle subnet can be configured according to the parsed network configuration data. At the same time, the network configuration information of each USB port can also be generated, so that the configuration of the first vehicle subnet can be automatically completed each time the vehicle system is started. Therefore, during the operation of the vehicle, network sharing can be safely and effectively provided for external devices plugged into the USB port.
[0089] Exemplary device, vehicle system and vehicle
[0090] refer to Figure 2 The embodiment of the specification also provides a vehicle network sharing device, which is applied to a vehicle system of a vehicle, wherein the vehicle system is provided with a first vehicle subnet, and the first vehicle subnet is used for connecting external devices to the network; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is respectively connected to a gateway and a wireless network connection device of the vehicle, and the device comprises:
[0091] The data processing module 201 is used to control the external device to access the public network of the vehicle through the gateway and / or wireless network connection device of the vehicle based on the first attribute information of the external device and the pre-configured data forwarding rules when the external device accesses the first vehicle-machine subnet through the USB port; the first attribute information is used to characterize the networking security level requirements of the external device.
[0092] In a feasible implementation manner, when the external device is connected to the first vehicle subnet through the USB port, the data processing module 201 is further used to:
[0093] Based on the second attribute information of the external device and the pre-configured virtual local area network networking rules, the external device is networked into a virtual local area network; the second attribute information is used to characterize the data interaction requirements and / or networking security level requirements of the external device.
[0094] In a feasible implementation manner, after the data processing module 201 performs virtual local area network networking on the external device, it is further used to:
[0095] When there are multiple virtual local area networks, the interconnection or isolation between different virtual local area networks is controlled based on a pre-configured first network traffic control rule.
[0096] In a feasible implementation manner, when the external device is connected to the first vehicle subnet through the USB port, the data processing module 201 is further used to:
[0097] Acquire target interaction data between each vehicle-machine application in a second vehicle-machine subnet of the vehicle and the first vehicle-machine subnet; the second vehicle-machine subnet is used for connecting the vehicle-machine application to the network;
[0098] Based on the third attribute information of the target interaction data and the pre-configured second network traffic control rule, when it is determined that the target interaction data meets the conditions for transmission between the vehicle-machine application and the first vehicle-machine subnet, the vehicle-machine application corresponding to the target interaction data is controlled to access the first vehicle-machine subnet.
[0099] In a feasible implementation manner, the data processing module 201 is further used for:
[0100] When it is detected that a port expansion device is inserted into the USB port, network configuration information of each device connection port in the port expansion device is generated in the first vehicle subnet, and the network configuration information of the target USB port in the first vehicle subnet is updated to the network configuration information of each device connection port;
[0101] Among them, the device connection port is used to connect the external device, the target USB port is the USB port into which the port expansion device is inserted, and the network configuration information of the target USB port is generated during the network configuration process of the first vehicle subnet.
[0102] In a feasible implementation manner, after the data processing module 201 updates the network configuration information of the target USB port in the first vehicle subnet to the network configuration information of each device connection port, it is further used to:
[0103] When it is detected that the port expansion device is unplugged from the target USB port, traverse the network connection status of each device connection port;
[0104] When it is determined based on the network connection status of each of the device connection ports that the port expansion device is successfully unplugged from the target USB port, the network configuration information of each of the device connection ports is updated to the network configuration information of the target USB port.
[0105] In a feasible implementation manner, the data processing module 201 is further used for:
[0106] During the network configuration process of the first vehicle subnet, a domain name system server is configured for the first vehicle subnet.
[0107] The vehicle network sharing device provided in this embodiment belongs to the same application concept as the vehicle network sharing method provided in the above embodiments of this application, and can execute the vehicle network sharing method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of executing the vehicle network sharing method. For technical details not fully described in this embodiment, please refer to the specific processing content of the vehicle network sharing method provided in the above embodiments of this application, and will not be repeated here.
[0108] The embodiment of this specification also provides a vehicle system, wherein the vehicle system is provided with a first vehicle subnet, and the first vehicle subnet is used for connecting external devices to the Internet; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is connected to a gateway and a wireless network connection device of the vehicle respectively;
[0109] The vehicle system is used to control the external device to access the public network of the vehicle through the vehicle's gateway and / or wireless network connection device based on the first attribute information of the external device and pre-configured data forwarding rules when the external device accesses the first vehicle subnet through the USB port; the first attribute information is used to characterize the networking security level requirements of the external device.
[0110] The structure of the vehicle system of the present application is described in detail below through an optional implementation.
[0111] refer to Figure 3 The vehicle system 300 is provided with a first vehicle subnet 301 and a second vehicle subnet 302. The first vehicle subnet 301 is provided with a virtual network card 303. The virtual network card 303 is used as a gateway of the first vehicle subnet 301. The virtual network card 303 is connected to one or more USB ports 304 ( Figure 3The USB port 304 is used to connect an external device 305; the second vehicle subnet 302 is used to connect the vehicle application 306 to the network ( Figure 3 The example includes three vehicle-mounted applications 306).
[0112] Among them, the virtual gateway and the second vehicle subnet 302 are connected to the vehicle's public network through two channels. The first channel includes a vehicle access point 307 and a vehicle gateway 308, and the second channel includes a wireless network card 309 and a wireless access point 310. The vehicle gateway 308 is also connected to a configuration server 311.
[0113] The method for the vehicle system 300 to provide vehicle network sharing for the external device 305 may include:
[0114] When the vehicle system 300 is started, the network configuration data of the first vehicle subnet 301 is pulled from the configuration server 311 through the vehicle gateway 308, and the network configuration data is parsed to configure the data forwarding rules, virtual LAN networking rules, first network traffic control rules, second network traffic control rules and domain name system server of the first vehicle subnet 301 according to the parsed network configuration data. At the same time, the network configuration information of each USB port 304 is generated to add each USB port 304 to the first vehicle subnet 301. Therefore, inserting the external device 305 into the USB port 304 can provide vehicle network sharing for the external device 305.
[0115] When the external device 305 is connected to the first vehicle subnet 301 through the USB port 304 ( Figure 3 In the example of connecting two external devices 305 to a USB port 304, the external device 305 is networked into a virtual local area network based on the second attribute information of the external device 305 and the pre-configured virtual local area network networking rules, and when there are multiple virtual local area networks, the intercommunication or isolation between different virtual local area networks is controlled based on the pre-configured first network traffic control rules; at the same time, based on the third attribute information of the target interactive data between each vehicle-machine application 306 in the second vehicle-machine subnet 302 and the first vehicle-machine subnet 301 and the pre-configured second network traffic control rules, the intercommunication or isolation between the vehicle-machine application 306 corresponding to the target interactive data and the first vehicle-machine subnet 301 is controlled. In addition, the virtual network card 303 resolves the domain name input by the external device 305 based on the pre-configured domain name system server, and selects the first channel and the second channel based on the first attribute information of the external device 305 and the pre-configured data forwarding rules, so as to access the public network of the vehicle through the selected first channel and / or second channel, so as to realize the vehicle-mounted network sharing of the external device 305.
[0116] In addition, after the vehicle system 300 is started, it monitors in real time whether there is a port expansion device inserted in the USB port 304. When it is detected that the port expansion device is inserted in the USB port 304, the network configuration information of each device connection port in the port expansion device is generated in the first vehicle subnet 301, and the network configuration information of the USB port 304 into which the port expansion device is inserted is updated to the network configuration information of each device connection port, so as to add each device connection port to the first vehicle subnet 301.
[0117] After adding each device connection port to the first vehicle-machine subnet 301, monitor in real time whether the port expansion device is unplugged from the USB port 304, and when it is detected that the port expansion device is unplugged from the USB port 304, traverse the network connection status of each device connection port, so that when the network connection status of each device connection port is offline, update the network configuration information of each device connection port to the network configuration information of the USB port 304 from which the port expansion device is unplugged, so as to remove each device connection port from the first vehicle-machine subnet 301.
[0118] The embodiments of this specification also provide a vehicle, which includes the vehicle system as described in the above embodiment.
[0119] Exemplary computer program products and storage media
[0120] In addition to the above-mentioned methods and devices, the in-vehicle network sharing method provided in the embodiments of this specification may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the in-vehicle network sharing method according to various embodiments of this specification described in the above "Exemplary Method" section of this specification.
[0121] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present specification, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0122] In addition, an embodiment of the present specification also provides a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the vehicle network sharing method according to various embodiments of the present specification described in the above "Exemplary Method" section of the present specification.
[0123] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this specification can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0124] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0125] The above-mentioned embodiments only express several implementation methods of this specification, and the descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the solutions provided by the embodiments of this specification. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of this specification, which all belong to the protection scope of this specification. Therefore, the protection scope of the patent of this specification shall be based on the attached claims.
Claims
1. A vehicle network sharing method, It is characterized in that A vehicle system applied to a vehicle, the vehicle system is provided with a first vehicle subnet, the first vehicle subnet is used for connecting external devices to the Internet; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is respectively connected to a gateway and a wireless network connection device of the vehicle, the method comprising: When an external device accesses the first vehicle subnet through the USB port, based on the first attribute information of the external device and the pre-configured data forwarding rules, the external device is controlled to access the public network of the vehicle through the gateway and / or wireless network connection device of the vehicle; the first attribute information is used to characterize the networking security level requirements of the external device.
2. The method according to claim 1, It is characterized in that When the external device is connected to the first vehicle subnet through the USB port, the method further includes: Based on the second attribute information of the external device and the pre-configured virtual local area network networking rules, the external device is networked into a virtual local area network; the second attribute information is used to characterize the data interaction requirements and / or networking security level requirements of the external device.
3. The method according to claim 2, It is characterized in that After the external device is networked into a virtual local area network, the method further includes: When there are multiple virtual local area networks, the interconnection or isolation between different virtual local area networks is controlled based on a pre-configured first network traffic control rule.
4. The method according to claim 1, It is characterized in that When the external device is connected to the first vehicle subnet through the USB port, the method further includes: Acquire target interaction data between each vehicle-machine application in a second vehicle-machine subnet of the vehicle and the first vehicle-machine subnet; the second vehicle-machine subnet is used for connecting the vehicle-machine application to the network; Based on the third attribute information of the target interaction data and the pre-configured second network traffic control rule, when it is determined that the target interaction data meets the conditions for transmission between the vehicle-machine application and the first vehicle-machine subnet, the vehicle-machine application corresponding to the target interaction data is controlled to access the first vehicle-machine subnet.
5. The method according to any one of claims 1 to 4, It is characterized in that Also includes: When it is detected that a port expansion device is inserted into the USB port, network configuration information of each device connection port in the port expansion device is generated in the first vehicle subnet, and the network configuration information of the target USB port in the first vehicle subnet is updated to the network configuration information of each device connection port; Among them, the device connection port is used to connect the external device, the target USB port is the USB port into which the port expansion device is inserted, and the network configuration information of the target USB port is generated during the network configuration process of the first vehicle subnet.
6. The method according to claim 5, It is characterized in that After the network configuration information of the target USB port in the first vehicle subnet is updated to the network configuration information of each device connection port, the method further includes: When it is detected that the port expansion device is unplugged from the target USB port, traverse the network connection status of each device connection port; When it is determined based on the network connection status of each of the device connection ports that the port expansion device is successfully unplugged from the target USB port, the network configuration information of each of the device connection ports is updated to the network configuration information of the target USB port.
7. The method according to any one of claims 1 to 4, It is characterized in that Also includes: During the network configuration process of the first vehicle subnet, a domain name system server is configured for the first vehicle subnet.
8. A vehicle network sharing device, It is characterized in that A vehicle system for a vehicle, wherein the vehicle system is provided with a first vehicle subnet, and the first vehicle subnet is used for connecting external devices to the network; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is respectively connected to a gateway and a wireless network connection device of the vehicle, and the device comprises: A data processing module is used to control the external device to access the public network of the vehicle through the gateway and / or wireless network connection device of the vehicle when the external device is connected to the first vehicle-machine subnet through the USB port, based on the first attribute information of the external device and a pre-configured data forwarding rule; the first attribute information is used to characterize the networking security level requirement of the external device.
9. A vehicle system, It is characterized in that The vehicle system is provided with a first vehicle subnet, and the first vehicle subnet is used for connecting external devices to the Internet; the first vehicle subnet is provided with a USB port, and the first vehicle subnet is respectively connected to the vehicle's gateway and the wireless network connection device; The vehicle system is used to control the external device to access the public network of the vehicle through the vehicle's gateway and / or wireless network connection device based on the first attribute information of the external device and pre-configured data forwarding rules when the external device accesses the first vehicle subnet through the USB port; the first attribute information is used to characterize the networking security level requirements of the external device.
10. A vehicle, It is characterized in that The vehicle comprises the vehicle system as claimed in claim 9.
