Internet access method, chip, switch, in-vehicle infotainment system, vehicle, medium and product
By deploying dual SoCs in the vehicle system and forwarding WiFi data using switches, the problem of only one SoC in the vehicle system can access the Internet is solved, and WiFi communication with dual SoCs is realized, improving system performance and reducing costs.
Patent Information
- Application Number
- CN202510441778.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-09
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, there is only one WiFi pass-through SoC in the automotive computer system, and it is unable to support another SoC to access the Internet through WiFi, resulting in limited system performance.
By deploying a dual SoC architecture in the vehicle system, the switch is used to forward downlink WiFi data to the SoC without direct WiFi, indirect communication is realized, and data transmission is carried out with the help of existing WiFi functions.
Without adding additional WiFi chips, dual SoCs are supported to access the Internet via WiFi, improving system performance and reducing costs.
Smart Images

Figure CN120343522A_ABST
Abstract
Description
Technical Field
[0001] This application relates to vehicle communication technology, and in particular to an Internet access method, a chip, a switch, a vehicle head unit system, a vehicle, a medium and a product. Background Art
[0002] With the improvement of the intelligence level of automobiles, traditional MCU chips can no longer meet the requirements of the vehicle head unit system for the throughput capacity of a large amount of heterogeneous data and faster data processing capabilities. Therefore, a system-on-chip (SoC) with higher data transmission efficiency and greater computing power has become an inevitable choice for the main control chip of the vehicle head unit system.
[0003] In order to further improve the performance of the vehicle head unit system, a dual SoC can be deployed. In the prior art, generally, only one WiFi in the vehicle head unit system is directly connected to one of the SoCs, so that the requirement for the SoC to access the Internet through WiFi can be realized. However, how to support the other SoC to access the Internet through WiFi has become an urgent problem to be solved. Summary of the Invention
[0004] This application provides an Internet access method, a chip, a switch, a vehicle head unit system, a vehicle, a medium and a product, which support dual SoCs to access the Internet through WiFi.
[0005] On the one hand, an embodiment of this application provides an Internet access method for a first system-on-chip of a vehicle head unit system. The vehicle head unit system further includes a second system-on-chip and a switch; the first system-on-chip and the second system-on-chip are both connected to the switch; the method includes:
[0006] Receiving downlink WiFi data; the downlink WiFi data includes a destination address;
[0007] If the destination address corresponds to the second system-on-chip, sending the downlink WiFi data to the switch, so that the switch forwards the downlink WiFi data to the second system-on-chip.
[0008] Optionally, the method further includes:
[0009] Obtaining the current network status, where the network status includes the WiFi connection status and the data traffic opening status;
[0010] Sending the current network status to the second system-on-chip, so that the second system-on-chip performs corresponding network configuration according to the current network status.
[0011] Optionally, the first system-on-chip includes a first virtual network card, and the receiving of the downlink WiFi data includes:
[0012] Receive downlink WiFi data through the first virtual network card;
[0013] Sending the downlink WiFi data to the switch includes:
[0014] Send the downlink WiFi data to the switch through the first virtual network card.
[0015] Optionally, the method further includes:
[0016] Receive the second uplink WiFi data sent by the second system - on - chip through the switch, and send the second uplink WiFi data to the cloud through the WiFi network.
[0017] Optionally, the in - vehicle system further includes a remote communication module or a WiFi hotspot, and the remote communication module is connected to the switch; sending the second uplink WiFi data to the cloud through the WiFi network includes:
[0018] Send the second uplink WiFi data to the remote communication module through the switch, so that the remote communication module sends the second uplink WiFi data to the cloud;
[0019] Or, send the second uplink WiFi data to the WiFi hotspot, so that the WiFi hotspot sends the second uplink WiFi data to the cloud.
[0020] Optionally, the first system - on - chip further includes a second virtual network card, and the method further includes:
[0021] Receive the first downlink traffic data through the second virtual network card.
[0022] Optionally, the method further includes:
[0023] If the current WiFi connection status is connected, configure the WiFi default gateway of the first system - on - chip as the address of the first virtual network card, and configure routing forwarding and address translation;
[0024] If the current data traffic opening status is on, configure the data traffic default gateway of the first system - on - chip as the address of the remote communication module.
[0025] Optionally, the method further includes:
[0026] If the current WiFi connection status is connected and the data traffic opening status is on, receive downlink WiFi data through the first virtual network card.
[0027] Optionally, the method further includes:
[0028] If the destination address corresponds to the first system-on-chip, send the downlink WiFi data to the first target application of the first system-on-chip.
[0029] On the one hand, an embodiment of the present application further provides an Internet access method for a second system-on-chip of a vehicle head unit system. The vehicle head unit system further includes a first system-on-chip and a switch; both the first system-on-chip and the second system-on-chip are connected to the switch; the method includes:
[0030] Receive the second downlink WiFi data sent by the first system-on-chip through the switch, and forward the second downlink WiFi data to the second target application of the second system-on-chip; the destination address of the second downlink WiFi data corresponds to the second system-on-chip.
[0031] Optionally, the method further includes:
[0032] Obtain the current network status of the first system-on-chip, where the network status includes the WiFi connection status and the data traffic activation status;
[0033] Perform corresponding network configuration according to the current network status of the first system-on-chip.
[0034] Optionally, the first system-on-chip includes a first virtual network card, and the first virtual network card is connected to the switch. The first virtual network card is used to receive downlink WiFi data; the performing corresponding network configuration according to the current network status of the first system-on-chip includes:
[0035] If the current WiFi connection status of the first system-on-chip is connected, configure the WiFi default gateway of the second system-on-chip as the address of the first virtual network card;
[0036] If the current data traffic activation status of the first system-on-chip is activated, configure the data traffic default gateway of the second system-on-chip as the address of the remote communication module.
[0037] Optionally, the second system-on-chip includes a third virtual network card and a fourth virtual network card; the receiving the second downlink WiFi data sent by the first system-on-chip through the switch includes:
[0038] Receive the second downlink WiFi data through the third virtual network card;
[0039] The method further includes:
[0040] Receive the first downlink traffic data through the fourth virtual network card.
[0041] Optionally, the method further includes:
[0042] Sending second uplink WiFi data to the first system-on-chip through the switch, so that the first system-on-chip sends the second uplink WiFi data to the cloud.
[0043] In another aspect, an embodiment of the present application further provides an Internet access method, which is applied to a switch of a vehicle-mounted system. The vehicle-mounted system further includes a first system-on-chip and a second system-on-chip, and both the first system-on-chip and the second system-on-chip are connected to the switch; the method includes:
[0044] Receiving second downlink WiFi data sent by the first system-on-chip and forwarding the second downlink WiFi data to the second system-on-chip; the destination address of the second downlink WiFi data corresponds to the second system-on-chip.
[0045] Optionally, the method further includes:
[0046] Receiving second uplink WiFi data sent by the second system-on-chip and forwarding the second uplink WiFi data to the first system-on-chip, so that the first system-on-chip sends the second uplink WiFi data to the cloud.
[0047] In another aspect, an embodiment of the present application further provides a first system-on-chip for a vehicle-mounted system. The vehicle-mounted system further includes a second system-on-chip and a switch, and both the first system-on-chip and the second system-on-chip are connected to the switch; the first system-on-chip includes:
[0048] A first receiving module, configured to receive downlink WiFi data; the downlink WiFi data includes a destination address;
[0049] A first sending module, configured to send the downlink WiFi data to the switch if the destination address corresponds to the second system-on-chip, so that the switch forwards the downlink WiFi data to the second system-on-chip.
[0050] In another aspect, an embodiment of the present application further provides a second system-on-chip for a vehicle-mounted system. The vehicle-mounted system further includes a first system-on-chip and a switch, and both the first system-on-chip and the second system-on-chip are connected to the switch; the second system-on-chip includes:
[0051] A second receiving module, configured to receive second downlink WiFi data sent by the first system-on-chip through the switch; the destination address of the second downlink WiFi data corresponds to the second system-on-chip;
[0052] A second sending module, configured to forward the second downlink WiFi data to a second target application of the second system-on-chip.
[0053] In another aspect, an embodiment of the present application further provides a switch for a vehicle-mounted system. The vehicle-mounted system further includes a first system-on-chip and a second system-on-chip, and both the first system-on-chip and the second system-on-chip are connected to the switch. The switch includes:
[0054] A third receiving module, configured to receive second downlink WiFi data sent by the first system-on-chip, where a destination address of the second downlink WiFi data corresponds to the second system-on-chip;
[0055] A third sending module, configured to forward the second downlink WiFi data to the second system-on-chip.
[0056] In another aspect, an embodiment of the present application further provides a vehicle-mounted system, including: the first system-on-chip, the second system-on-chip, and the switch as described above, and both the first system-on-chip and the second system-on-chip are connected to the switch.
[0057] In another aspect, an embodiment of the present application further provides a vehicle, including: the vehicle-mounted system as described above.
[0058] In another aspect, an embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method as described above.
[0059] In another aspect, an embodiment of the present application further provides a computer program product, including computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the method as described above.
[0060] In the Internet access method, chip, switch, vehicle-mounted system, vehicle, medium, and product provided by the present application, after the first system-on-chip receives the downlink WiFi data, it identifies whether the destination address of the downlink WiFi data corresponds to the second system-on-chip, and when the destination address of the downlink WiFi data corresponds to the second system-on-chip, it sends the downlink WiFi data to the second system-on-chip through the switch. Therefore, in the case where the second system-on-chip cannot directly access the Internet through WiFi, the second system-on-chip can receive data sent by the cloud through the WiFi network by virtue of the WiFi communication function of the first system-on-chip, so that in the case where there is only one WiFi chip in the vehicle-mounted system, it can support dual SoCs to access the Internet through WiFi, improve system performance, and there is no need to additionally increase WiFi chips, effectively reducing costs. Description of the Drawings
[0061] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0062] Figure 1 The schematic structural diagram of the vehicle-mounted system provided by the embodiments of the present application is exemplarily shown;
[0063] Figure 2 The schematic flowchart of the Internet access method provided by the embodiments of the present application is exemplarily shown;
[0064] Figure 3 The schematic diagram of the application scenario provided by the embodiments of the present application is exemplarily shown;
[0065] Figure 4 The schematic flowchart of the first system-on-chip network configuration provided by the embodiments of the present application is exemplarily shown;
[0066] Figure 5 The schematic structural diagram of the first system-on-chip provided by the embodiments of the present application is exemplarily shown;
[0067] Figure 6 The schematic structural diagram of the second system-on-chip provided by the embodiments of the present application is exemplarily shown;
[0068] Figure 7 The schematic structural diagram of the switch provided by the embodiments of the present application is exemplarily shown;
[0069] Figure 8 The schematic structural diagram of the electronic device provided by the embodiments of the present application is exemplarily shown.
[0070] Through the above-mentioned accompanying drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These accompanying drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Description of Specific Embodiments
[0071] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0072] The modules in this application refer to functional modules or logical modules. They can be in software form and achieve their functions by a processor executing program code, or in hardware form. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, both A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0073] First, the nouns involved in this application are explained:
[0074] gRPC communication protocol: It is a high-performance, open-source, and general RPC (Remote Procedure Call) framework that enables the client and the server to make remote calls as if they were calling local methods, without having to worry about the underlying communication details.
[0075] With the improvement of the intelligent level of automobiles, traditional MCU chips can no longer meet the requirements of the throughput capacity of a large amount of heterogeneous data and faster data processing capacity in in-vehicle systems. Therefore, SoC chips with higher data transmission efficiency and greater computing power have become the inevitable choice for the main control chips of in-vehicle systems.
[0076] To further improve the performance of in-vehicle systems, a dual-SoC can be deployed. In the prior art, generally, only one WiFi is directly connected to one of the SoCs in an in-vehicle system, so that the requirement for the SoC to access the Internet through WiFi can be realized. However, how to support the other SoC to access the Internet through WiFi has become an urgent problem to be solved.
[0077] The technical solutions of this application are illustrated below with specific embodiments. These several specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0078] The embodiments of this application provide an Internet access method. The execution subject of this method is the first system-level chip of the in-vehicle system. Figure 1 It is a schematic structural diagram of the in-vehicle system provided by the embodiments of this application. As Figure 1 shown, the in-vehicle system 100 includes a first system-level chip 10, a second system-level chip 20, a switch 30, and a WiFi chip 40. Both the first system-level chip 10 and the second system-level chip 20 are connected to the switch 30 through cables, and the first system-level chip 10 and the second system-level chip 20 can communicate with each other through the switch 30. The WiFi chip 40 is directly connected to the first system-level chip 10 to provide WiFi function support for the first system-level chip 10. Therefore, the first system-level chip 10 can communicate with the cloud through the WiFi network.
[0079] Figure 2A schematic flowchart of the Internet access method provided by the embodiment of the present application. The execution subject of this method is the first system-level chip of the in-vehicle system. As Figure 2 shown, the Internet access method provided by this embodiment may include:
[0080] S201. Receive downlink WiFi data; the downlink WiFi data includes a destination address;
[0081] S202. If the destination address corresponds to the second system-level chip, send the downlink WiFi data to the switch so that the switch forwards the downlink WiFi data to the second system-level chip.
[0082] In a specific implementation, the first system-level chip can communicate with the cloud, while the second system-level chip cannot directly communicate with the cloud. Therefore, the first system-level chip can receive the second downlink WiFi data sent by the cloud and forward the second downlink WiFi data to the second system-level chip, thereby realizing the indirect communication between the second system-level chip and the cloud, where the destination address of the second downlink WiFi data corresponds to the second system-level chip. Specifically, a forwarding rule can be set in the first system-level chip in advance. When the first system-level chip receives the downlink WiFi data, it obtains the destination address of the downlink WiFi data. If the destination address corresponds to the second system-level chip, it sends the downlink WiFi data to the switch, and the switch will forward the received downlink WiFi data to the second system-level chip. Thus, the second system-level chip can receive the downlink WiFi data sent by the cloud and access the Internet through WiFi.
[0083] In this embodiment, after the first system-level chip receives the downlink WiFi data, it identifies whether the destination address of the downlink WiFi data corresponds to the second system-level chip, and when the destination address of the downlink WiFi data corresponds to the second system-level chip, it sends the downlink WiFi data to the second system-level chip through the switch. Therefore, in the case where the second system-level chip cannot directly access the Internet through WiFi, the second system-level chip can utilize the WiFi communication function of the first system-level chip to receive the data sent by the cloud through the WiFi network. Thus, in the case where there is only one WiFi chip in the in-vehicle system, it can support dual SoCs to access the Internet through WiFi, improve the system performance, and without the need to additionally increase the WiFi chip, effectively reducing the cost.
[0084] In a possible implementation manner, the method further includes:
[0085] If the destination address corresponds to the first system-level chip, send the downlink WiFi data to the first target application of the first system-level chip.
[0086] In a specific implementation, the downlink WiFi data received by the first system-on-chip includes first downlink WiFi data and second downlink WiFi data. The destination address of the first downlink WiFi data corresponds to the first system-on-chip, and the destination address of the second downlink WiFi data corresponds to the second system-on-chip. Therefore, when the first system-on-chip recognizes that the destination address of the received downlink WiFi data corresponds to the first system-on-chip, it sends the downlink WiFi data to the first target application of the first system-on-chip.
[0087] In this embodiment, after the first system-on-chip receives the downlink WiFi data, it recognizes the destination address of the downlink WiFi data. When the destination address of the downlink WiFi data corresponds to the first system-on-chip, it directly forwards the downlink WiFi data to the first target application inside the chip to achieve WiFi Internet access.
[0088] In a possible implementation manner, the method further includes:
[0089] Obtain the current network status, where the network status includes the WiFi connection status and the data traffic enabled status;
[0090] Send the current network status to the second system-on-chip so that the second system-on-chip performs corresponding network configurations according to the current network status.
[0091] Figure 3 This is a schematic diagram of the application scenario provided by the embodiments of the present application. As Figure 3 shown, the first system-on-chip can send the current network status to the second system-on-chip through communication methods such as gRPC. When the current WiFi connection status of the first system-on-chip is connected, the second system-on-chip performs the configurations required for WiFi communication, so that the second system-on-chip can perform WiFi Internet access; when the current data traffic enabled status of the first system-on-chip is enabled, the second system-on-chip performs the configurations required for traffic communication, so that the second system-on-chip can perform traffic Internet access, realizing the synchronization of the network status of the first system-on-chip and the second system-on-chip.
[0092] Exemplarily, the first system-on-chip may further include a fifth virtual network card. The fifth virtual network card is connected to the switch and is used to communicate with the second system-on-chip. Sending the current network status to the second system-on-chip may include sending the current network status to the switch through the fifth virtual network card, so that the switch forwards the current network status of the first system-on-chip to the second system-on-chip.
[0093] As Figure 3As shown in the figure, the first system-on-chip includes at least one network card, which can be, for example, the first network card eth0. The first network card eth0 is connected to a switch. To achieve service isolation, the first network card eth0 can be virtualized to obtain the first virtual network card eth0.1. The first system-on-chip uses the first virtual network card eth0.1 to receive or send WiFi data for WiFi communication. Similarly, the first network card eth0 can also be virtualized to obtain the fifth virtual network card, and the fifth virtual network card is used to communicate with the second system-on-chip.
[0094] In a possible implementation, receiving downlink WiFi data includes:
[0095] Receiving downlink WiFi data through the first virtual network card;
[0096] Sending downlink WiFi data to the switch includes:
[0097] Sending downlink WiFi data to the switch through the first virtual network card.
[0098] In a specific implementation, the forwarding rule of the first virtual network card can be preset. When the first virtual network card receives downlink WiFi data, it identifies and analyzes the destination address of the downlink WiFi data. When the destination address of the downlink WiFi data corresponds to the first system-on-chip, the downlink WiFi data is forwarded to the first target application of the first system-on-chip; when the destination address of the downlink WiFi data corresponds to the second system-on-chip, the downlink WiFi data is sent to the switch, and the downlink WiFi data is forwarded to the second system-on-chip through the switch.
[0099] The above embodiments illustrate how to implement the downlink WiFi communication of the second system-on-chip. Next, how to implement the uplink WiFi communication of the second system-on-chip will be described. In a possible implementation, the method further includes:
[0100] Receiving the second uplink WiFi data sent by the second system-on-chip through the switch, and sending the second uplink WiFi data to the cloud through the WiFi network.
[0101] In a specific implementation, when the second system-on-chip needs to send the second uplink WiFi data to the cloud, it can first send the second uplink WiFi data to the first system-on-chip through the switch, and the first system-on-chip sends the received second uplink WiFi data to the cloud, thereby implementing the uplink WiFi communication of the second system-on-chip. Therefore, in the case where it cannot directly communicate with the WiFi network, the second system-on-chip can utilize the WiFi function of the first system-on-chip to achieve WiFi Internet access.
[0102] Exemplarily, sending the second uplink WiFi data to the cloud via the WiFi network includes:
[0103] Sending the second uplink WiFi data to the remote communication module via the switch, so that the remote communication module sends the second uplink WiFi data to the cloud;
[0104] Or, sending the second uplink WiFi data to the WiFi hotspot, so that the WiFi hotspot sends the second uplink WiFi data to the cloud.
[0105] In a specific implementation, as Figure 3 shown, the in-vehicle system may further include a remote communication module or a WiFi hotspot; wherein, the remote communication module is connected to the switch, and the first system-level chip and the second system-level chip can access the Internet through the remote communication module. A WiFi chip may be provided in the remote communication module. At this time, taking the uplink WiFi communication as an example, the uplink WiFi communication path of the first system-level chip is: the first virtual network card eth0.1 - switch - remote communication module - cloud. The WiFi chip may also be independent of the remote communication module. At this time, the first system-level chip further includes a wireless network card wlan0, and the in-vehicle system further includes a WiFi hotspot. Taking the uplink WiFi communication as an example, the uplink WiFi communication path of the first system-level chip is: the first virtual network card eth0.1 - wlan0 - WiFi hotspot - cloud.
[0106] Exemplarily, the remote communication module may be a Tbox (Telematics Box).
[0107] In a possible implementation manner, the method further includes:
[0108] Receiving the first downlink traffic data through the second virtual network card.
[0109] As Figure 3 shown, the second virtual network card eth0.2 can also be virtualized from the first network card eth0. The second virtual network card eth0.2 is connected to the switch. The second virtual network card eth0.2 can receive the first downlink traffic data sent by the cloud and can also send the first uplink traffic data to the cloud, thereby supporting the first system-level chip to access the Internet through traffic. Among them, taking the uplink traffic communication as an example, the uplink traffic communication path of the first system-level chip is: the second virtual network card eth0.2 - switch - remote communication module - cloud.
[0110] In a possible implementation manner, the method further includes:
[0111] If the current WiFi connection status is connected, configure the WiFi default gateway of the first system-level chip as the address of the first virtual network card, and configure routing forwarding and address translation;
[0112] If the current data traffic enabled status is enabled, configure the data traffic default gateway of the first system-level chip as the address of the remote communication module.
[0113] As Figure 3 shown, an EcarxConnectivityService can be set in the first system-level chip. The EcarxConnectivityService in the first system-level chip obtains the current network status of the first system-level chip, synchronizes the current network status of the first system-level chip to the second system-level chip, and performs corresponding network configurations according to the current network status of the first system-level chip. Among them, the EcarxConnectivityService can obtain the WiFi connection status of the first system-level chip from the WiFi framework (WiFi FMK) of the first system-level chip, and obtain the data traffic enabled status of the first system-level chip through the data traffic setting management application Setting APP. An EcarxConnectivityService can also be correspondingly set in the second system-level chip. The EcarxConnectivityService in the second system-level chip obtains the current network status of the first system-level chip and performs corresponding network configurations according to the current network status of the first system-level chip.
[0114] Figure 4 It is a schematic flowchart of the network configuration of the first system-level chip provided by the embodiment of the present application. As Figure 4 shown, if the current WiFi connection status is connected, configure the WiFi default gateway of the first system-level chip as the address of the first virtual network card, and configure routing forwarding and address translation; if the current data traffic enabled status is enabled, configure the data traffic default gateway of the first system-level chip as the address of the remote communication module; if the current WiFi connection status is disconnected, clear the routing forwarding and address translation configurations, and clear the WiFi default gateway configuration; if the current data traffic enabled status is disabled, clear the data traffic default gateway configuration.
[0115] Exemplarily, the method further includes:
[0116] If the current WiFi connection status is connected and the data traffic enabled status is enabled, receive downlink WiFi data through the first virtual network card.
[0117] In a specific implementation, the priority of setting up WiFi Internet access is higher than that of mobile data Internet access. Therefore, when the current WiFi connection status is connected and the mobile data connection status is enabled, the first system-on-chip receives downlink WiFi data through the first virtual network card and / or sends uplink WiFi data.
[0118] The embodiment of the present application also provides another Internet access method, and the execution subject of this method is Figure 1 the second system-on-chip shown. This method includes:
[0119] Receiving the second downlink WiFi data sent by the first system-on-chip through the switch, and forwarding the second downlink WiFi data to the second target application of the second system-on-chip; the destination address of the second downlink WiFi data corresponds to the second system-on-chip.
[0120] In a specific implementation, the first system-on-chip can communicate with the cloud, while the second system-on-chip cannot directly communicate with the cloud. Therefore, the cloud sends the second downlink WiFi data with the destination address corresponding to the second system-on-chip to the first system-on-chip, and the second system-on-chip receives the second downlink WiFi data sent by the first system-on-chip through the switch, thereby realizing the indirect communication between the second system-on-chip and the cloud and accessing the Internet through WiFi.
[0121] In a possible implementation manner, the method further includes:
[0122] Obtaining the current network status of the first system-on-chip, where the network status includes the WiFi connection status and the mobile data connection status;
[0123] Performing corresponding network configuration according to the current network status of the first system-on-chip.
[0124] In a specific implementation, the first system-on-chip can send the current network status to the second system-on-chip through communication methods such as gRPC. When the current WiFi connection status of the first system-on-chip is connected, the second system-on-chip performs the configuration required for WiFi communication, so that the second system-on-chip can access the Internet through WiFi; when the current mobile data connection status of the first system-on-chip is enabled, the second system-on-chip performs the configuration required for mobile data communication, so that the second system-on-chip can access the Internet through mobile data, realizing the synchronization of the network status of the first system-on-chip and the second system-on-chip.
[0125] As Figure 3 shown, the first system-on-chip includes a first virtual network card, and the first virtual network card is connected to the switch. The first virtual network card is used to receive downlink WiFi data. Exemplarily, performing corresponding network configuration according to the current network status of the first system-on-chip includes:
[0126] If the WiFi connection status of the current first system-on-chip is connected, configure the WiFi default gateway of the second system-on-chip as the address of the first virtual network card;
[0127] If the data traffic enabling status of the current first system-on-chip is enabled, configure the data traffic default gateway of the second system-on-chip as the address of the remote communication module.
[0128] Exemplarily, the second system-on-chip may further include a sixth virtual network card. The sixth virtual network card is connected to the switch and is used for communicating with the first system-on-chip; obtaining the current network status of the first system-on-chip may include receiving, through the sixth virtual network card, the current network status of the first system-on-chip forwarded by the switch.
[0129] In a possible implementation manner, receiving the second downlink WiFi data sent by the first system-on-chip through the switch includes:
[0130] Receiving the second downlink WiFi data through the third virtual network card;
[0131] The method further includes:
[0132] Receiving the downlink traffic data through the fourth virtual network card.
[0133] As Figure 3 shown, the second system-on-chip includes at least one network card. For example, it may be the second network card eth1. The second network card eth1 is connected to the switch. To achieve service isolation, the second network card eth1 can be virtualized to obtain the third virtual network card eth1.1 and the fourth virtual network card eth1.2. The second system-on-chip receives the second downlink WiFi data and / or sends the second uplink WiFi data through the third virtual network card eth1.1 to implement WiFi communication; the second system-on-chip receives the second downlink traffic data and / or sends the second uplink traffic data through the fourth virtual network card eth1.2 to implement traffic communication.
[0134] The above embodiments illustrate how to implement the downlink WiFi communication of the second system-on-chip. The following describes how to implement the uplink WiFi communication of the second system-on-chip. In a possible implementation manner, the method further includes:
[0135] Sending the second uplink WiFi data to the first system-on-chip through the switch, so that the first system-on-chip sends the second uplink WiFi data to the cloud.
[0136] In a specific implementation, when the second system-on-chip needs to send second uplink WiFi data to the cloud, it can first send the second uplink WiFi data to the first system-on-chip through a switch, and the first system-on-chip sends the received second uplink WiFi data to the cloud, so as to implement the uplink WiFi communication of the second system-on-chip. Therefore, in the case where it cannot directly communicate with the WiFi network, the second system-on-chip can use the WiFi function of the first system-on-chip to access the Internet via WiFi.
[0137] For the Internet access method provided by the embodiments of the present application, when the second system-on-chip needs to perform WiFi communication with the cloud, the cloud can send second downlink WiFi data corresponding to the target address of the second system-on-chip to the first system-on-chip, and the second system-on-chip receives the second downlink WiFi data sent by the first system-on-chip through the switch, so as to implement indirect communication between the second system-on-chip and the cloud and access the Internet via WiFi.
[0138] The embodiments of the present application provide another Internet access method, which is applied to Figure 1 the switch shown in the figure. The method includes:
[0139] Receiving second downlink WiFi data sent by the first system-on-chip and forwarding the second downlink WiFi data to the second system-on-chip; the destination address of the second downlink WiFi data corresponds to the second system-on-chip.
[0140] In a specific implementation, in the downlink WiFi communication of the second system-on-chip, the first system-on-chip receives second downlink WiFi data whose destination address corresponds to the second system-on-chip and sends the second downlink WiFi data to the switch. The switch forwards the received second downlink WiFi data to the second system-on-chip, so that the second system-on-chip can receive data sent by the cloud through the WiFi communication method.
[0141] In a possible implementation manner, the method further includes:
[0142] Receiving second uplink WiFi data sent by the second system-on-chip and forwarding the second uplink WiFi data to the first system-on-chip, so that the first system-on-chip sends the second uplink WiFi data to the cloud.
[0143] In a specific implementation, in the uplink WiFi communication of the second system-on-chip, the second system-on-chip sends the second uplink WiFi data to the switch, the switch forwards the received second uplink WiFi data to the first system-on-chip, and then the first system-on-chip sends the second uplink WiFi data to the cloud, so that the second system-on-chip can send data to the cloud through the WiFi communication method.
[0144] The Internet access method provided by the embodiment of the present application can realize two-way communication between the second system-on-chip and the cloud by forwarding the second downlink WiFi data and / or the second uplink WiFi data through a switch. Therefore, when there is only one WiFi chip in the in-vehicle system, it can support dual SoCs to access the Internet through WiFi, improve the system performance, and effectively reduce the cost without adding an extra WiFi chip.
[0145] The embodiment of the present application also provides a first system-on-chip, which is used for the in-vehicle system as Figure 1 shown. Figure 5 FIG. is a schematic structural diagram of the first system-on-chip provided by the embodiment of the present application. As Figure 5 shown, the first system-on-chip 10 includes:
[0146] A first receiving module 11, configured to receive downlink WiFi data; the downlink WiFi data includes a destination address;
[0147] A first sending module 12, configured to send the downlink WiFi data to a switch if the destination address corresponds to a second system-on-chip, so that the switch forwards the downlink WiFi data to the second system-on-chip.
[0148] It should be noted that the first system-on-chip is used to execute the Internet access method as described above, and its specific implementation is as described above, which will not be elaborated here.
[0149] The embodiment of the present application also provides a second system-on-chip, which is used for the in-vehicle system as Figure 1 shown. Figure 6 FIG. is a schematic structural diagram of the second system-on-chip provided by the embodiment of the present application. As Figure 6 shown, the second system-on-chip 20 includes:
[0150] A second receiving module 21, configured to receive the second downlink WiFi data sent by the first system-on-chip through a switch; the destination address of the second downlink WiFi data corresponds to the second system-on-chip;
[0151] A second sending module 22, configured to forward the second downlink WiFi data to the second target application of the second system-on-chip.
[0152] It should be noted that the second system-on-chip is used to execute the Internet access method as described above, and its specific implementation is as described above, which will not be elaborated here.
[0153] The embodiment of the present application also provides a switch, which is used for the in-vehicle system as Figure 1 shown. Figure 7 FIG. is a schematic structural diagram of the second system-on-chip provided by the embodiment of the present application.Figure 7 As shown, the switch 30 includes:
[0154] A third receiving module, configured to receive second downlink WiFi data sent by the first system-on-chip, where the destination address of the second downlink WiFi data corresponds to the second system-on-chip;
[0155] A third sending module, configured to forward the second downlink WiFi data to the second system-on-chip.
[0156] It should be noted that this switch is used to execute the Internet access method as described above, and its specific implementation is as described above, which will not be elaborated here.
[0157] An embodiment of the present application further provides a vehicle-mounted system, including: the first system-on-chip, the second system-on-chip, and the switch as described above, where the first system-on-chip and the second system-on-chip are both connected to the switch. This vehicle-mounted system is as Figure 1 shown.
[0158] It should be noted that this vehicle-mounted system is used to execute the Internet access method as described above, and its specific implementation is as described above, which will not be elaborated here.
[0159] An embodiment of the present application further provides a vehicle, including: the vehicle-mounted system as described above.
[0160] Figure 8 This is a schematic structural diagram of an electronic device provided in an embodiment of the present application. The electronic device can be the first system-on-chip or the second system-on-chip. As Figure 8 shown, the electronic device includes:
[0161] A processor 291, and the electronic device further includes a memory 292; it may further include a Network Interface Card 293 and a bus 294. Among them, the processor 291, the memory 292, and the network card 293 can communicate with each other through the bus 294. The network card 293 can be connected to a switch outside the electronic device for information transmission. The processor 291 can call the logical instructions in the memory 292 to execute the method of the above embodiment.
[0162] In addition, when the logical instructions in the above-mentioned memory 292 are implemented in the form of a software functional unit and sold or used as an independent product, they can be stored in a computer-readable storage medium.
[0163] The memory 292 serves as a computer-readable storage medium and can be used to store software programs and computer-executable programs, such as the program instructions / modules corresponding to the methods in the embodiments of the present application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, that is, to implement the methods in the above method embodiments.
[0164] The memory 292 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the terminal device, etc. In addition, the memory 292 may include high-speed random access memory and may also include non-volatile memory.
[0165] The embodiments of the present application also provide a non-temporary computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the method as described in the foregoing embodiments.
[0166] The embodiments of the present application also provide a computer program product, including computer-executable instructions, and when the computer-executable instructions are executed by a processor, they implement the methods provided in any of the above embodiments of the present application.
[0167] Those skilled in the art will readily think of other implementations of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include common general knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.
[0168] It should be understood that the present application is not limited to the exact structures already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.
Claims
1. A method for accessing the Internet, characterized in that, The first system - level chip for a vehicle infotainment system, the vehicle infotainment system further comprising a second system - level chip and a switch; both the first system - level chip and the second system - level chip are connected to the switch; the method includes: Receiving downlink WiFi data; the downlink WiFi data includes a destination address. If the destination address corresponds to the second system - level chip, sending the downlink WiFi data to the switch so that the switch forwards the downlink WiFi data to the second system - level chip.
2. The method according to claim 1, wherein The method further includes: Obtaining the current network status, the network status including the WiFi connection status and the data traffic enabled status. Sending the current network status to the second system - level chip so that the second system - level chip performs corresponding network configuration according to the current network status.
3. The method according to claim 2, wherein The first system - level chip includes a first virtual network card, and the receiving of the downlink WiFi data includes: Receiving the downlink WiFi data through the first virtual network card. The sending of the downlink WiFi data to the switch includes: Sending the downlink WiFi data to the switch through the first virtual network card.
4. The method according to claim 3, characterized in that, The method further includes: Receiving second uplink WiFi data sent by the second system - level chip through the switch, and sending the second uplink WiFi data to the cloud through the WiFi network.
5. The method according to claim 4, characterized in that, The vehicle infotainment system further includes a remote communication module or a WiFi hotspot, and the remote communication module is connected to the switch; sending the second uplink WiFi data to the cloud through the WiFi network includes: Sending the second uplink WiFi data to the remote communication module through the switch so that the remote communication module sends the second uplink WiFi data to the cloud; Or, sending the second uplink WiFi data to the WiFi hotspot so that the WiFi hotspot sends the second uplink WiFi data to the cloud.
6. The method according to claim 3, wherein The first system - level chip further includes a second virtual network card, and the method further includes: Receiving first downlink traffic data through the second virtual network card.
7. The method according to claim 6, wherein The method further includes: If the current WiFi connection status is connected, configuring the WiFi default gateway of the first system - level chip as the address of the first virtual network card, and configuring routing forwarding and address translation. If the current data traffic enabled status is enabled, configuring the data traffic default gateway of the first system - level chip as the address of the remote communication module.
8. The method according to claim 7, wherein The method further includes: If the current WiFi connection status is connected and the data traffic enabled status is enabled, receiving downlink WiFi data through the first virtual network card.
9. The method according to any one of claims 1-8, characterized in that, The method further includes: If the destination address corresponds to the first system - level chip, sending the downlink WiFi data to the first target application of the first system - level chip.
10. A method for accessing the Internet, characterized in that, The second system - level chip for a vehicle infotainment system, the vehicle infotainment system further comprising a first system - level chip and a switch; both the first system - level chip and the second system - level chip are connected to the switch; the method includes: Receive the second downlink WiFi data sent by the first system-on-chip through the switch, and forward the second downlink WiFi data to the second target application of the second system-on-chip; the destination address of the second downlink WiFi data corresponds to the second system-on-chip.
11. The method according to claim 10, wherein The method further includes: Obtain the current network status of the first system-on-chip, where the network status includes the WiFi connection status and the data traffic enabled status; Perform corresponding network configuration according to the current network status of the first system-on-chip.
12. The method according to claim 11, wherein The first system-on-chip includes a first virtual network card, and the first virtual network card is connected to the switch. The first virtual network card is used to receive downlink WiFi data; the performing corresponding network configuration according to the current network status of the first system-on-chip includes: If the current WiFi connection status of the first system-on-chip is connected, configure the WiFi default gateway of the second system-on-chip as the address of the first virtual network card; If the current data traffic enabled status of the first system-on-chip is enabled, configure the data traffic default gateway of the second system-on-chip as the address of the remote communication module.
13. The method according to claim 10, characterized in that, The second system-on-chip includes a third virtual network card and a fourth virtual network card; the receiving the second downlink WiFi data sent by the first system-on-chip through the switch includes: Receive the second downlink WiFi data through the third virtual network card; The method further includes: Receive the first downlink traffic data through the fourth virtual network card.
14. The method according to any one of claims 10-13, characterized in that, The method further includes: Send the second uplink WiFi data to the first system-on-chip through the switch, so that the first system-on-chip sends the second uplink WiFi data to the cloud.
15. A method for accessing the Internet, characterized in that Applied to a switch of a vehicle head unit system, the vehicle head unit system further includes a first system-on-chip and a second system-on-chip, and both the first system-on-chip and the second system-on-chip are connected to the switch; the method includes: Receive the second downlink WiFi data sent by the first system-on-chip, and forward the second downlink WiFi data to the second system-on-chip; the destination address of the second downlink WiFi data corresponds to the second system-on-chip.
16. The method according to claim 15, characterized in that, The method further includes: Receive the second uplink WiFi data sent by the second system-on-chip, and forward the second uplink WiFi data to the first system-on-chip, so that the first system-on-chip sends the second uplink WiFi data to the cloud.
17. A first system-on-chip, characterized in that, For a vehicle head unit system, the vehicle head unit system further includes a second system-on-chip and a switch, and both the first system-on-chip and the second system-on-chip are connected to the switch; The first system-on-chip includes: A first receiving module, configured to receive downlink WiFi data; the downlink WiFi data includes a destination address; A first sending module, configured to send the downlink WiFi data to a switch if the destination address corresponds to the second system-on-chip, so that the switch forwards the downlink WiFi data to the second system-on-chip.
18. A second system-on-chip, characterized in that, For a vehicle-mounted system, the vehicle-mounted system further includes a first system-on-chip and a switch, and both the first system-on-chip and the second system-on-chip are connected to the switch; The second system-on-chip includes: A second receiving module, configured to receive second downlink WiFi data sent by the first system-on-chip through the switch; the destination address of the second downlink WiFi data corresponds to the second system-on-chip; A second sending module, configured to forward the second downlink WiFi data to a second target application of the second system-on-chip.
19. A switch, characterized in that, For a vehicle-mounted system, the vehicle-mounted system further includes a first system-on-chip and a second system-on-chip, and both the first system-on-chip and the second system-on-chip are connected to the switch; the switch includes: A third receiving module, configured to receive second downlink WiFi data sent by the first system-on-chip, and the destination address of the second downlink WiFi data corresponds to the second system-on-chip; A third sending module, configured to forward the second downlink WiFi data to the second system-on-chip.
20. A vehicle-mounted system, characterized in that, Includes: The first system-on-chip according to claim 17, the second system-on-chip according to claim 18, and the switch according to claim 19, and both the first system-on-chip and the second system-on-chip are connected to the switch.
21. A vehicle, characterized in that, Includes: The vehicle-mounted system according to claim 20.
22. A computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1-16.
23. A computer program product, characterized in that, Includes computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method according to any one of claims 1-16.