Vehicle communication flow processing method and device, cabin, automobile and storage medium

By setting source address conversion according to the historical configuration channel when the vehicle cockpit is turned on, the problem of traffic stolen flight is solved, traffic expense disputes are reduced, user experience is improved, and the flow distribution method of the cockpit remains unchanged.

CN119094996APending Publication Date: 2024-12-06GUANGZHOU XIAOPENG MOTORS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411088826.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

When the vehicle cockpit is turned on, the existing technology is prone to traffic run-off, resulting in traffic expense disputes and affecting users' online experience.

Method used

By detecting that when the vehicle cockpit is turned on, the messages sent by the application and the device are obtained, and the source address conversion is set according to the historical configuration channel, ensuring that the messages access the external network through the specified channel (non-system traffic channel or system traffic channel) and maintain the original There is a traffic distribution method to prevent all APPs or devices from accessing the Internet through a specific channel.

Benefits of technology

It avoids traffic run-offs, reduces traffic expense disputes, improves users' online experience, and ensures that the traffic distribution method of the vehicle cockpit is not affected.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094996A_ABST
    Figure CN119094996A_ABST
Patent Text Reader

Abstract

The invention relates to a vehicle communication flow processing method and device, a cabin, an automobile and a storage medium. The method comprises the steps of obtaining a first message which is sent by an application program in a vehicle cabin and is used for accessing an external network and obtaining a second message which is sent by equipment connected with a hotspot and is used for accessing the external network under the condition that it is detected that the hotspot of the vehicle cabin is opened; the external network is accessed according to historical configuration communication channels, the historical configuration communication channels comprise a first communication channel and a second communication channel, the first communication channel is a non-system flow channel, and the second communication channel is a system flow channel; and accessing the external network according to the first communication channel by using an obtained second message which is sent by the equipment connected with the hotspot and is used for accessing the external network. According to the scheme of the application, the situation of traffic stealing can be avoided, traffic cost disputes are reduced, and the internet surfing experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electric vehicles, and in particular to a vehicle communication traffic processing method, device, cockpit, vehicle and storage medium. Background Art

[0002] As vehicle intelligence technology continues to improve, the vehicle's smart cockpit can provide Internet access services. At present, the Internet traffic in most vehicles' cockpits can be divided into entertainment traffic and system traffic. Among them, the system traffic generated by vehicle navigation and vehicle system-level application Internet access is paid by the vehicle manufacturer; the entertainment traffic generated by entertainment APP (Application), such as music APP and video APP Internet access, is paid by the user.

[0003] See also Figure 1 , is a schematic diagram of realizing traffic differentiation in the related art. The Ethernet port eth0 of the vehicle's CDU (Central Display Unit) is assigned two IP addresses (for example, 192.168.2.1 and 192.168.2.2 respectively). The system selects the export IP address according to the uid (user identifier) ​​of the application in the TCP / IP (Transmission Control Protocol / Internet Protocol) protocol stack. The TBOX (Telemtrics Box, on-board communication module) side forwards the message to different APN (Access Point Name) exports to access the external network, for example, forwarding to APN1 or APN2 according to the export IP address.

[0004] When the hotspot is turned on on the large central control screen in the cockpit, after other devices are connected to the large screen hotspot, source address conversion is required when they access the Internet through CDU and TBOX. That is to say, all messages going out of the CDU must have their source addresses set to 192.168.2.1 or 192.168.2.2 according to the relevant firewall settings. At this time, all apps on the CDU and devices connected to the CDU can only access the Internet through one APN exit, for example, all through the source address 192.168.2.1 to access the Internet, that is, through the system traffic channel to access the Internet, and the vehicle manufacturer pays for the system traffic generated, or all through the source address 192.168.2.2 to access the Internet, that is, through the entertainment traffic channel to access the Internet, and the user pays for the entertainment traffic generated. In this way, the original traffic allocation rules are changed, and traffic may be stolen, resulting in disputes over traffic costs. For example, the OTA (Over The Air) of a vehicle generally requires Internet access through the system traffic channel. At this time, when the hotspot is turned on on the large screen in the cockpit, the user may access the Internet through the entertainment traffic channel, causing the user to pay the OTA traffic fee. OTA traffic is huge, so the vehicle manufacturer generally pays the OTA traffic fee. The above situation is likely to lead to disputes over traffic fees, cause user complaints, and affect the user's Internet experience. Summary of the invention

[0005] In order to solve or partially solve the problems existing in the related technology, the present application provides a vehicle communication traffic processing method, device, cockpit, car and storage medium, which can avoid traffic theft, reduce traffic fee disputes, and improve the user's Internet experience.

[0006] A first aspect of the present application provides a vehicle communication traffic processing method, the method comprising:

[0007] When detecting that a hotspot is turned on in a vehicle cabin, obtaining a first message for accessing an external network sent by an application in the vehicle cabin and obtaining a second message for accessing an external network sent by a device connected to the hotspot;

[0008] Access the external network according to a historically configured communication channel using the first message sent by the vehicle in-cabin application program for accessing the external network, wherein the historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel and the second communication channel is a system traffic channel;

[0009] The obtained second message for accessing the external network sent by the device connected to the hotspot is used to access the external network according to the first communication channel.

[0010] Optionally, the acquiring the second message for accessing the external network sent by the device connected to the hotspot, and accessing the external network through the first communication channel, includes:

[0011] Setting a preset identifier for a second message sent by a device connected to the hotspot and used to access an external network;

[0012] Convert the source address of the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the first communication channel;

[0013] The second message after the source address translation is accessed to the external network through the first communication channel.

[0014] Optionally, the step of setting a preset identifier for the acquired second message sent by the device connected to the hotspot for accessing the external network includes:

[0015] After the acquired second message for accessing the external network sent by the device connected to the hotspot passes through the FORWARD chain of the firewall, it jumps to the first custom chain;

[0016] A preset identifier is set for the second message in the first custom chain.

[0017] Optionally, performing source address conversion on the second message after the preset identifier is set so that the converted source address corresponds to the source address of the first communication channel includes:

[0018] After the second message with the preset identifier is set passes through the POSTROUTING chain of the firewall, it jumps to the second custom chain;

[0019] In the second custom chain, the second message is converted into a source address according to the preset identifier, so that the converted source address corresponds to the source address of the first communication channel.

[0020] Optionally, the acquiring a second message sent by a device connected to the hotspot for accessing an external network includes:

[0021] After identifying that the device connected to the hotspot requests to access the external network, a second message for accessing the external network sent by the device through the PREROUTING chain of the firewall is obtained.

[0022] A second aspect of the present application provides a vehicle communication traffic processing device, the device comprising:

[0023] A message acquisition module, used for acquiring, when detecting that a hotspot is turned on in a vehicle cabin, a first message sent by an application in the vehicle cabin for accessing an external network and a second message sent by a device connected to the hotspot for accessing an external network;

[0024] a first processing module, configured to access the external network according to a historically configured communication channel for the first message sent by the vehicle cabin application for accessing the external network, wherein the historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel and the second communication channel is a system traffic channel;

[0025] The second processing module is used to access the external network through the first communication channel based on the second message for accessing the external network sent by the device connected to the hotspot.

[0026] Optionally, the second processing module includes:

[0027] An identification submodule, used for setting a preset identification for a second message for accessing an external network sent by a device connected to the hotspot;

[0028] An address conversion submodule, configured to convert the source address of the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the first communication channel;

[0029] The access submodule is used to allow the second message after the source address conversion to access the external network through the first communication channel.

[0030] Optionally, the identification submodule jumps to the first custom chain after the second message for accessing the external network sent by the device connected to the hotspot passes through the FORWARD chain of the firewall; and sets a preset identifier for the second message in the first custom chain.

[0031] A third aspect of the present application provides a vehicle cockpit, comprising the vehicle communication traffic processing device as described above.

[0032] A fourth aspect of the present application provides a vehicle, comprising:

[0033] Processor; and

[0034] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0035] A fifth aspect of the present application provides a computer-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of a vehicle, the processor is caused to execute the method as described above.

[0036] The technical solution provided by this application may have the following beneficial effects:

[0037] In the technical solution of the present application, when it is detected that the hotspot in the vehicle cockpit is turned on, the first message sent by the application in the vehicle cockpit for accessing the external network is obtained, and the external network is accessed according to the historically configured communication channel, and the historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel and the second communication channel is a system traffic channel; the second message sent by the device connected to the hotspot for accessing the external network is obtained, and the external network is accessed according to the first communication channel. Through the above processing, when the hotspot in the vehicle cockpit is turned on, the present application maintains the original traffic distribution method of the cockpit unchanged, and sets the Internet access method of the device connected to the hotspot to access the Internet through a non-system traffic channel (such as an entertainment traffic channel), which can prevent all APPs from accessing the Internet through the system traffic channel or all through the non-system traffic channel. In this way, when the hotspot in the vehicle cockpit is turned on, traffic leakage can be avoided, and the vehicle's OTA can be prevented from accessing the Internet through a non-system traffic channel, thereby reducing disputes over traffic charges and improving the user's Internet experience.

[0038] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and other objects, features and advantages of the present application will become more apparent by describing in more detail exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0040] Figure 1 It is a schematic diagram of realizing flow differentiation in the related art;

[0041] Figure 2 It is a first flow chart of a vehicle communication traffic processing method shown in an embodiment of the present application;

[0042] Figure 3 is a second flow chart of the vehicle communication traffic processing method shown in an embodiment of the present application;

[0043] Figure 4 It is a schematic diagram of an application framework of a vehicle communication traffic processing method shown in an embodiment of the present application;

[0044] Figure 5 is a first structural schematic diagram of a vehicle communication flow processing device shown in an embodiment of the present application;

[0045] Figure 6is a second structural schematic diagram of a vehicle communication flow processing device shown in an embodiment of the present application;

[0046] Figure 7 It is a schematic diagram of the structure of a car shown in an embodiment of the present application. DETAILED DESCRIPTION

[0047] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0048] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0049] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0050] Related technologies When the hotspot is turned on on the large central control screen in the cockpit, the original traffic allocation rules are changed, which may lead to traffic leakage and traffic fee disputes. For example, the vehicle's OTA accesses the Internet through the entertainment traffic channel, which leads to traffic fee disputes, user complaints, and affects the user's Internet experience.

[0051] In response to the above problems, an embodiment of the present application provides a vehicle communication traffic processing method, which can avoid traffic theft, reduce traffic fee disputes, and improve the user's Internet experience.

[0052] The technical solution of the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0053] Figure 2 It is a first flow chart of the vehicle communication traffic processing method shown in an embodiment of the present application.

[0054] like Figure 2 As shown, the method includes:

[0055] Step 201, when it is detected that a hotspot is turned on in a vehicle cabin, a first message for accessing an external network sent by an application in the vehicle cabin and a second message for accessing an external network sent by a device connected to the hotspot are obtained.

[0056] Among them, obtaining the second message sent by the device connected to the hotspot for accessing the external network may include: after identifying that the device connected to the hotspot requests access to the external network, obtaining the second message sent by the device through the PREROUTING chain of the firewall for accessing the external network.

[0057] Step 202, access the external network according to the historically configured communication channel by acquiring the first message sent by the application in the vehicle cabin for accessing the external network, the historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel, and the second communication channel is a system traffic channel.

[0058] The method of acquiring a first message sent by an application program in a vehicle cabin for accessing an external network and accessing the external network according to a historically configured communication channel may include:

[0059] In the case where the in-cabin application includes vehicle navigation and a system-level application of the vehicle, the first message sent by the in-cabin application for accessing the external network is obtained, and the external network is accessed through the second communication channel (system traffic channel);

[0060] In the case where the in-cabin application includes an entertainment APP, the first message sent by the in-cabin application for accessing the external network is obtained, and the external network is accessed according to the first communication channel (non-system traffic channel).

[0061] In this way, the original traffic zone mode in the cockpit can be kept intact. For example, vehicle navigation and vehicle system-level application Internet access still belong to system traffic, and the traffic fee is paid by the vehicle manufacturer; entertainment APP (Application), such as music APP and video APP Internet access, still belong to entertainment traffic, and the traffic fee is paid by the user.

[0062] Step 203: Access the external network through the first communication channel using the second message sent by the device connected to the hotspot for accessing the external network.

[0063] This step 203 may include:

[0064] Setting a preset identifier for a second message sent by the device connected to the hotspot for accessing an external network;

[0065] Convert the source address of the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the first communication channel;

[0066] The second message after the source address translation is accessed to the external network through the first communication channel.

[0067] The step of setting a preset identifier for the acquired second message sent by the device connected to the hotspot for accessing the external network may include:

[0068] After the second message for accessing the external network sent by the device connected to the hotspot passes through the FORWARD chain of the firewall, it jumps to the first custom chain;

[0069] A preset identifier is set for the second message in the first custom chain.

[0070] The step of performing source address conversion on the second message after the preset identifier is set so that the converted source address corresponds to the source address of the first communication channel may include:

[0071] The second message after setting the preset identifier passes through the POSTROUTING chain of the firewall and then jumps to the second custom chain;

[0072] In the second custom chain, according to the preset identifier, the source address of the second message is converted so that the converted source address corresponds to the source address of the first communication channel.

[0073] It should be noted that step 202 and step 203 can be executed simultaneously without a necessary order relationship.

[0074] Through this embodiment, it can be found that in the technical solution of the present application, when it is detected that the hotspot in the vehicle cockpit is turned on, the first message sent by the application in the vehicle cockpit for accessing the external network is obtained, and the external network is accessed according to the historically configured communication channel. The historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel and the second communication channel is a system traffic channel; the second message sent by the device connected to the hotspot for accessing the external network is obtained, and the external network is accessed according to the first communication channel. Through the above processing, when the hotspot in the vehicle cockpit is turned on, the present application maintains the original traffic distribution method of the cockpit unchanged, and sets the Internet access method of the device connected to the hotspot to access the Internet through the non-system traffic channel, which can prevent all APPs from accessing the Internet through the system traffic channel or all through the non-system traffic channel. In this way, when the hotspot in the vehicle cockpit is turned on, traffic stealing can be avoided, and the vehicle's OTA can be prevented from accessing the Internet through the non-system traffic channel, thereby reducing traffic fee disputes and improving the user's Internet experience.

[0075] Figure 3 It is a second flow chart of the vehicle communication traffic processing method shown in an embodiment of the present application.

[0076] like Figure 3 As shown, the method includes:

[0077] Step 301, when it is detected that a hotspot is turned on in a vehicle cabin, a first message for accessing an external network sent by an application in the vehicle cabin is obtained.

[0078] Step 302 , access the external network according to the historically configured communication channel using the first message sent by the in-cabin application program for accessing the external network. The historically configured communication channel includes an entertainment traffic channel and a system traffic channel.

[0079] In this step, when the in-cabin application includes vehicle navigation and vehicle system-level application, the first message for accessing the external network sent by the in-cabin application is obtained, and the external network is accessed according to the system traffic channel;

[0080] In the case where the in-cabin application includes an entertainment APP, the first message for accessing the external network sent by the in-cabin application is obtained, and the external network is accessed according to the entertainment traffic channel.

[0081] In this way, the original traffic zone mode in the cockpit can be kept intact. For example, vehicle navigation and vehicle system-level application Internet access still belong to system traffic, and the traffic fee is paid by the vehicle manufacturer; entertainment APP (Application), such as music APP and video APP Internet access, still belong to entertainment traffic, and the traffic fee is paid by the user.

[0082] The cockpit Internet access paths involved in step 301 and step 302 can be simultaneously referred to Figure 4 As shown in the dotted box 2 circled in the figure. Figure 4 It is a schematic diagram of the application framework of the vehicle communication traffic processing method shown in the embodiment of the present application.

[0083] Step 303, when it is detected that the hotspot in the vehicle cabin is turned on, a second message for accessing an external network sent by a device connected to the hotspot is obtained.

[0084] It should be noted that step 301 and step 303 can be executed simultaneously without a necessary order relationship.

[0085] Also see Figure 4 In step 303, after identifying that the device connected to the hotspot requests to access the external network, the second message for accessing the external network sent by the device through the PREROUTING chain of the firewall can be obtained. If the device connected to the hotspot, such as a mobile phone, is not accessing the local device, it means that it is requesting to access the external network, so the message can be forwarded to the FORWARD chain.

[0086] Figure 4 In the above diagram, the PREROUTING chain, INPUT chain, FORWARD chain, OUTPUT chain, and POSTROUTING chain are all firewall chains. The forwarding path of the message sent by the device connected to the hotspot through the hotspot is as follows: Figure 4 As shown in the solid line frame 1, the cockpit Internet access path is as follows Figure 4 As shown in the dotted box 2 circled in the figure.

[0087] It should be noted that iptables rules are a configuration method of the Linux firewall system, which is used to set, maintain and check the IP packet filtering rules of the Linux kernel. Iptables rules can control the entry, exit and forwarding of network data packets, and realize the management and security protection of network traffic. Iptables rules can include four tables, namely filter (filter table), nat (address translation table), mangle (modification table) and raw (tracking table), each of which has different functions and scopes. To convert the source address through iptables rules, nat (address translation table) can be mainly used.

[0088] Generally, you can use the "nat table" of iptables to set nat rules. The nat table can include multiple chains: PREROUTING chain, INPUT chain, FORWARD chain, OUTPUT chain, and POSTROUTING chain. Among them, you can select the appropriate chain to add rules according to user needs.

[0089] Step 304: Set a preset identifier for the acquired second message sent by the device connected to the hotspot for accessing the external network.

[0090] Step 304 may include:

[0091] Step 3041, after the second message for accessing the external network sent by the device connected to the hotspot passes through the FORWARD chain of the firewall, it jumps to the first custom chain.

[0092] In order to solve the problem of traffic leakage when the cockpit hotspot is turned on, this application adds the following rules to the cockpit network firewall but is not limited to this.

[0093] For example, add a jump rule to the FORWARD chain as follows:

[0094] iptables -t mangle -A FORWARD -j tetherctrl_mangle_FORWARD.

[0095] The function of the jump rule is to jump to the first custom chain. This application adds a jump rule in the FORWARD chain of iptables, according to which all messages passing through the FORWARD chain can be jumped to a custom chain named "tetherctrl_mangle_FORWARD" for further processing, which can be called the first custom chain.

[0096] Step 3042: Set a preset identifier for the second message in the first custom chain.

[0097] In this step, all messages passing through the tetherctrl_mangle_FORWARD table are set with a preset mark in the first custom chain, such as a preset label or other form of mark. The preset label may be, for example, mark 0x1000 but is not limited thereto:

[0098] iptables -t mangle -A tetherctrl_mangle_FORWARD -i wlan0 -j MARK --set -xmark 0x1000.

[0099] Among them, wlan0 is a network port used to connect to a mobile terminal such as a mobile phone.

[0100] The purpose of this iptables command is to mark all packets passing through the "tetherctrl_mangle_FORWARD" table with a specific mark, such as "mark 0x1000" but not limited to this, and can also be other marks. This mark can be used for subsequent packet processing, such as policy routing or packet filtering.

[0101] Step 305 , performing source address conversion on the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the entertainment traffic channel.

[0102] Step 305 may include:

[0103] Step 3051, after the second message with the preset identifier is set passes through the POSTROUTING chain of the firewall, and then jumps to the second custom chain.

[0104] In this step, you can add the following redirection rules to the POSTROUTING chain:

[0105] iptables -t nat -A POSTROUTING -j tetherctrl_nat_POSTROUTING.

[0106] The purpose of this jump rule is to jump to the second custom chain. The purpose of this iptables command is to add a jump rule in the "POSTROUTING" chain. According to this jump rule, all messages passing through this chain can be jumped to a custom chain named "tetherctrl_nat_POSTROUTING" for processing. This custom chain can be called the second custom chain.

[0107] Step 3052: In the second custom chain, the source address of the second message is converted according to the preset identifier, so that the converted source address corresponds to the source address of the entertainment traffic channel.

[0108] In this step, the second custom chain performs source address translation on the second message according to the above-mentioned label "mark 0x1000", that is, performs source address translation on all hotspot traffic:

[0109] iptables -t nat -A tetherctrl_nat_POSTROUTING -o eth0 -m mark--mark0x1000-j MASQUERADE.

[0110] The purpose of this iptables command is to convert the source address of all hotspot traffic passing through the "tetherctrl_nat_POSTROUTING" table in the second custom chain according to the previously added label (mark0x1000), so that the converted source address corresponds to the source address of the entertainment traffic channel, so that they can access the external network normally through the Ethernet port (eth0 network port).

[0111] Through the above processing, the embodiment of the present application performs source address conversion on all traffic passing through the cabin hotspot, but does not affect the original traffic differentiation logic.

[0112] Step 306: The second message after the source address translation is accessed to the external network through the entertainment traffic channel.

[0113] After translating the source address of all hotspot traffic passing through the "tetherctrl_nat_POSTROUTING" table in the previous step, the second message after the source address translation can access the external network through the entertainment traffic channel, that is, it can access the external network normally through the Ethernet port (eth0 network port).

[0114] Through this embodiment, it can be found that in the related technology, when the hotspot is turned on in the cockpit, all messages passing through the POSTROUTING chain are subjected to source address conversion. The embodiment of the present application only converts the source address of the messages marked with a label in the FORWARDING chain, and does not affect the original CDU Internet access channel. This prevents all APPs on the large screen from using entertainment traffic or system traffic after the hotspot is turned on. Only the traffic using the hotspot is set to use entertainment traffic. The original traffic differentiation scheme of the cockpit is not affected, which avoids the behavior of stealing traffic in some environments, such as avoiding the situation where OTA traffic uses entertainment traffic, thereby reducing disputes over traffic costs and improving the user's Internet experience.

[0115] The vehicle communication traffic processing method of the present application is introduced in detail above, and the embodiments of the present application correspondingly provide a vehicle communication traffic processing device, a vehicle cabin and a car.

[0116] Figure 5 It is a first structural schematic diagram of a vehicle communication traffic processing device shown in an embodiment of the present application.

[0117] like Figure 5 As shown, the vehicle communication traffic processing device 50 provided in the present application includes: a message acquisition module 51, a first processing module 52, and a second processing module 53.

[0118] The message acquisition module 51 is used to acquire a first message sent by an application in the vehicle cabin for accessing an external network and a second message sent by a device connected to the hotspot for accessing an external network when detecting that a hotspot is turned on in the vehicle cabin.

[0119] After identifying that the device connected to the hotspot requests to access the external network, the message acquisition module 51 may acquire a second message for accessing the external network sent by the device through the PREROUTING chain of the firewall.

[0120] The first processing module 52 is used to access the external network through a historically configured communication channel for acquiring a first message sent by an application program in the vehicle cabin for accessing the external network. The historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel and the second communication channel is a system traffic channel.

[0121] The first processing module 52 may access the external network through the second communication channel (system traffic channel) for the first message sent by the vehicle in-cabin application for accessing the external network when the vehicle in-cabin application includes vehicle navigation and vehicle system-level application;

[0122] In the case where the in-cabin application includes an entertainment APP, the first message sent by the in-cabin application for accessing the external network is obtained, and the external network is accessed according to the first communication channel (non-system traffic channel).

[0123] The second processing module 53 is used to access the external network through the first communication channel based on the second message for accessing the external network sent by the device connected to the hotspot.

[0124] The second processing module 53 can set a preset identifier for the second message sent by the device connected to the hotspot for accessing the external network; perform source address conversion on the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the first communication channel; and access the external network through the first communication channel for the second message after the source address conversion.

[0125] The device provided by the present application, when detecting that a hotspot is turned on in the vehicle cockpit, accesses the external network through a historically configured communication channel for a first message sent by an application in the vehicle cockpit for accessing an external network, wherein the historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel and the second communication channel is a system traffic channel; and accesses the external network through the first communication channel for a second message sent by a device connected to the hotspot for accessing an external network. Through the above processing, when the hotspot is turned on in the vehicle cockpit, the present application maintains the original traffic allocation method of the cockpit unchanged, and sets the Internet access method of the device connected to the hotspot to access the Internet through a non-system traffic channel, which can prevent all APPs from accessing the Internet through the system traffic channel or all through the non-system traffic channel. In this way, when the hotspot is turned on in the vehicle cockpit, traffic stealing can be avoided, and the vehicle's OTA can be prevented from accessing the Internet through a non-system traffic channel, thereby reducing disputes over traffic charges and improving the user's Internet experience.

[0126] Figure 6 It is a second structural schematic diagram of the vehicle communication traffic processing device shown in an embodiment of the present application.

[0127] like Figure 6 As shown, the vehicle communication traffic processing device 50 provided in the present application includes: a message acquisition module 51, a first processing module 52, and a second processing module 53.

[0128] The functions of the message acquisition module 51, the first processing module 52, and the second processing module 53 can be found in Figure 5 Described in .

[0129] In one embodiment, the second processing module 53 may include: an identification submodule 531 , an address conversion submodule 532 , and an access submodule 533 .

[0130] The identification submodule 531 is used to set a preset identification for the second message sent by the device connected to the hotspot for accessing the external network.

[0131] The identification submodule 531 can jump the second message for accessing the external network sent by the device connected to the hotspot to the first custom chain after passing through the FORWARD chain of the firewall; and set a preset identifier for the second message in the first custom chain.

[0132] The address conversion submodule 532 is used to convert the source address of the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the first communication channel.

[0133] The address conversion submodule 532 can jump the second message after setting the preset identifier through the POSTROUTING chain of the firewall to the second custom chain; in the second custom chain, the source address of the second message is converted according to the preset identifier, so that the converted source address corresponds to the source address of the first communication channel.

[0134] The access submodule 533 is used to allow the second message after the source address translation to access the external network through the first communication channel.

[0135] The device provided in the present application only performs source address conversion on the messages labeled in the FORWARDING chain, without affecting the original CDU Internet access channel. This prevents all APPs on the large screen from using entertainment traffic or system traffic after the hotspot is turned on. Only the traffic using the hotspot is set to use entertainment traffic, and the original traffic differentiation scheme of the cockpit is not affected. This avoids traffic stealing in some environments, such as preventing OTA traffic from using entertainment traffic, thereby reducing disputes over traffic charges and improving users' Internet experience.

[0136] The present application also provides a vehicle cockpit, comprising the above Figure 5 or Figure 6 The vehicle communication traffic processing device 50 is shown.

[0137] Figure 7 It is a schematic diagram of the structure of a car shown in an embodiment of the present application.

[0138] See also Figure 7 , the car 700 includes a memory 701 and a processor 702 .

[0139] The processor 702 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0140] The memory 701 may include various types of storage units, such as system memory, read-only memory (ROM) and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 702 or other modules of the computer. The permanent storage device can be a readable and writable storage device. The permanent storage device can be a non-volatile storage device that will not lose the stored instructions and data even if the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device can be a removable storage device (such as a floppy disk, optical drive). The system memory can be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory can store some or all instructions and data required by the processor at runtime.

[0141] In addition, the memory 701 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (e.g., DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and magnetic disks and / or optical disks may also be used. In some embodiments, the memory 701 may include a removable storage device that can be read and / or written, such as a laser disc (CD), a read-only digital versatile disk (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disk, an ultra-density optical disk, a flash memory card (e.g., SD card, min SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and instantaneous electronic signals transmitted wirelessly or wired.

[0142] The memory 701 stores executable codes, and when the executable codes are processed by the processor 702 , the processor 702 can execute part or all of the methods described above.

[0143] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0144] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-temporary machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of a car (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0145] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A vehicle communication traffic processing method, characterized in that: The method comprises: When detecting that a hotspot is turned on in a vehicle cabin, obtaining a first message for accessing an external network sent by an application in the vehicle cabin and obtaining a second message for accessing an external network sent by a device connected to the hotspot; Access the external network according to a historically configured communication channel using the first message sent by the vehicle in-cabin application program for accessing the external network, wherein the historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel and the second communication channel is a system traffic channel; The obtained second message for accessing the external network sent by the device connected to the hotspot is used to access the external network according to the first communication channel.

2. The method according to claim 1, characterized in that: The acquiring the second message for accessing the external network sent by the device connected to the hotspot, and accessing the external network through the first communication channel, comprises: Setting a preset identifier for a second message sent by a device connected to the hotspot and used to access an external network; Convert the source address of the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the first communication channel; The second message after the source address translation is accessed to the external network through the first communication channel.

3. The method according to claim 2, characterized in that The step of setting a preset identifier for the acquired second message sent by the device connected to the hotspot for accessing the external network includes: After the acquired second message for accessing the external network sent by the device connected to the hotspot passes through the FORWARD chain of the firewall, it jumps to the first custom chain; A preset identifier is set for the second message in the first custom chain.

4. The method according to claim 3, characterized in that The performing source address conversion on the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the first communication channel, includes: After the second message with the preset identifier is set passes through the POSTROUTING chain of the firewall, it jumps to the second custom chain; In the second custom chain, the second message is converted into a source address according to the preset identifier, so that the converted source address corresponds to the source address of the first communication channel.

5. The method according to any one of claims 1 to 4, characterized in that: The obtaining of a second message sent by a device connected to the hotspot for accessing an external network includes: After identifying that the device connected to the hotspot requests to access the external network, a second message for accessing the external network sent by the device through the PREROUTING chain of the firewall is obtained.

6. A vehicle communication traffic processing device, characterized in that: The device comprises: A message acquisition module, used for acquiring, when detecting that a hotspot is turned on in a vehicle cabin, a first message sent by an application in the vehicle cabin for accessing an external network and a second message sent by a device connected to the hotspot for accessing an external network; a first processing module, configured to access the external network according to a historically configured communication channel for the first message sent by the vehicle cabin application for accessing the external network, wherein the historically configured communication channel includes a first communication channel and a second communication channel, wherein the first communication channel is a non-system traffic channel and the second communication channel is a system traffic channel; The second processing module is used to access the external network through the first communication channel based on the second message for accessing the external network sent by the device connected to the hotspot.

7. The device according to claim 6, characterized in that The second processing module comprises: An identification submodule, used for setting a preset identification for a second message for accessing an external network sent by a device connected to the hotspot; An address conversion submodule, configured to convert the source address of the second message after the preset identifier is set, so that the converted source address corresponds to the source address of the first communication channel; The access submodule is used to allow the second message after the source address conversion to access the external network through the first communication channel.

8. The device according to claim 7, characterized in that: The identification submodule jumps to the first custom chain after the second message for accessing the external network sent by the device connected to the hotspot passes through the FORWARD chain of the firewall; and sets a preset identifier for the second message in the first custom chain.

9. A vehicle cockpit, characterized in that: It comprises the vehicle communication traffic processing device as described in any one of claims 6 to 8.

10. An automobile, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 5.

11. A computer-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of a vehicle, the processor is caused to execute the method according to any one of claims 1 to 5.