Communication methods, systems and electronic devices

By dividing and transmitting data from electronic devices in parallel, the problems of insufficient bandwidth and high latency in scenarios with poor signal coverage are solved, achieving more efficient communication capabilities.

CN115811748BActive Publication Date: 2025-11-14HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111069980.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-13
Publication Date
2025-11-14
Estimated Expiration
2041-09-13

AI Technical Summary

Technical Problem

In scenarios with poor signal coverage or high call volume, the communication capabilities of a single electronic device cannot meet user needs, especially in residential or tourist areas where bandwidth is insufficient and transmission latency is high.

Method used

By dividing the application data of the first electronic device into first source data and second source data, and connecting them respectively through its own network card and the network card of the second electronic device, parallel data transmission is achieved, thereby increasing bandwidth and reducing latency.

Benefits of technology

It increases uplink and downlink bandwidth, reduces uplink and downlink transmission latency, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115811748B_ABST
    Figure CN115811748B_ABST
Patent Text Reader

Abstract

This application provides a communication method, system, and electronic device. The method includes: dividing service data of an application in a first electronic device into first source data and second source data; then, on one hand, sending the first source data to a service server via a first network interface card (NIC) in the first electronic device; on the other hand, sending the second source data to a second NIC in the first electronic device, and then sending the second source data to a third NIC via a connection between the second NIC and a third NIC in the second electronic device; finally, the third NIC, through a fourth NIC in the second electronic device, sends the second source data to the service server. In this way, the first electronic device can interact with the service server in parallel based on its own data path and the data path of the second electronic device, thereby increasing bandwidth and reducing transmission latency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a communication method, system, and electronic device. Background Technology

[0002] With the development of electronic and communication technologies, as well as the improvement of people's living standards, electronic products (such as mobile phones and tablets) have long been popular in every household.

[0003] However, in many scenarios (for example, in residential areas with poor signal coverage, or in high-traffic scenarios such as tourist attractions), the communication capabilities of a single electronic device cannot meet the user's needs. Summary of the Invention

[0004] To address the aforementioned technical problems, this application provides a communication method, system, and electronic device. In this method, a first electronic device can coordinate its own communication capabilities with those of a second electronic device to interact with a server, thereby increasing bandwidth and reducing data transmission latency.

[0005] In a first aspect, embodiments of this application provide a communication method applied to a first electronic device. The method includes: firstly, dividing the service data of an application in the first electronic device into first source data and second source data. Next, on one hand, sending the first source data to a corresponding service server via a first network interface card (NIC) in the first electronic device; on the other hand, sending the second source data to a second NIC in the first electronic device, and then sending the second source data to a third NIC via a connection between the second NIC and a third NIC in the second electronic device, so that the third NIC can send the second source data to the service server via a fourth NIC in the second electronic device. In this way, the first electronic device can send data to the service server in parallel based on its own data path and the data path of the second electronic device, thereby increasing uplink bandwidth and reducing uplink transmission latency.

[0006] For example, the application is an application that supports multi-stream concurrency. An application that supports multi-stream concurrency can refer to an application that can establish multiple TCP / IP (Transmission Control Protocol / Internet Protocol) connections in parallel, such as video applications, game applications, live streaming applications, etc.

[0007] For example, the application can establish a TCP / IP connection with the business server through the first network card, and then send data to the business server through the first network card.

[0008] For example, the application can establish another TCP / IP connection with the business server through the second, third, and fourth network cards, and then send data to the business server in sequence through the second, third, and fourth network cards.

[0009] For example, the first electronic device includes mobile phones, tablets, PCs (Personal Computers), watches, etc.

[0010] For example, the second electronic device includes mobile phones, tablets, PCs (Personal Computers), watches, etc.

[0011] For example, the second electronic device includes a mobile phone case, a tablet case, a watch case, etc.

[0012] For example, the second source data is Figure 6a The source data in the middle.

[0013] For example, the second source data is Figure 7d The source data in the middle.

[0014] For example, the second source data is Figure 8a The source data in the middle.

[0015] According to the first aspect, the second source data includes one or more sets; the second electronic device includes one or more, and each set of second source data is sent to a third network interface card in a second electronic device.

[0016] According to the first aspect, or any implementation of the first aspect above, sending the second source data to the second network interface card in the first electronic device includes: encapsulating the second source data using the Internet Protocol IP address of the second network interface card as the source IP address and the IP address of the service server as the destination IP address to obtain the first transmission data; and sending the first transmission data to the second network interface card.

[0017] For example, the first transmitted data is Figure 6a Data A1 in the data.

[0018] For example, the first transmitted data is Figure 7d Data A1 in the data.

[0019] For example, the first transmitted data is Figure 8a Data A1 in the data.

[0020] According to the first aspect, or any implementation thereof, second source data is sent to the third network card via a connection between the second network card and the third network card in the second electronic device. The third network card then sends the second source data to the service server via a fourth network card in the second electronic device. This includes: sending first transmission data to the third network card via a connection between the second and third network cards; the third network card then sends the first transmission data to a network proxy service in the second electronic device; the network proxy service converts the source IP address of the first transmission data to the IP address of the fourth network card to obtain the second transmission data; and the second transmission data is then sent to the service server via the fourth network card. This enables the transmission of service data from the application in the first electronic device to the service server via the second electronic device.

[0021] For example, when there are multiple second electronic devices, the first electronic device may include multiple second network interface cards (NICs), each NIC being connected to a third NIC of a second electronic device. In this way, a set of second source data can be sent to the third NIC of a second electronic device through the connection between the second NIC and the third NIC of the second electronic device.

[0022] For example, the second transmitted data is Figure 8a Data A2 in the middle.

[0023] According to the first aspect, or any implementation of the first aspect above, the second source data is sent to the third network card through the connection between the second network card and the third network card in the second electronic device, so that the third network card can send the second source data to the service server through the fourth network card in the second electronic device. This includes: the second network card encapsulating the first transmission data using its own IP address as the source IP address and the third network card's IP address as the destination IP address to obtain the third transmission data; the third transmission data is sent to the third network card through the connection between the second and third network cards, so that the third network card can decapsulate the information encapsulated by the second network card in the third transmission data to obtain the fourth transmission data; and the fourth transmission data is sent to the network proxy service in the second electronic device, whereby the network proxy service converts the source IP address of the fourth transmission data to the IP address of the fourth network card, and the fourth network card sends the address-converted fourth transmission data to the service server.

[0024] For example, when there are multiple second electronic devices, the first electronic device includes multiple second network interface cards (NICs), and each second NIC is connected to a third NIC of a second electronic device. In this way, a set of second source data can be sent to the third NIC of a second electronic device through the connection between the second NIC and the third NIC of the second electronic device.

[0025] For example, when there are multiple second electronic devices, the first electronic device includes a second network card, which is connected to the third network cards of the multiple second electronic devices. In this way, it is possible to send a set of second source data to the third network card of a second electronic device.

[0026] For example, the third transmitted data is Figure 6a Data A2 in the middle, the fourth transmitted data is Figure 6a Data A3 in the data, the fourth transmission data after address translation is Figure 6a Data A4 in the document.

[0027] For example, the first transmitted data is Figure 7d Data A2 in the middle, the fourth transmitted data is Figure 7d Data A3 in the data, the fourth transmission data after address translation is Figure 7d Data A4 in the document.

[0028] According to the first aspect, or any implementation of the first aspect above, the first network interface card includes at least one of the following: a Wi-Fi network interface card and a cellular network interface card;

[0029] The second network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card;

[0030] The third network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card;

[0031] The fourth network card includes at least one of the following: a Wi-Fi network card or a cellular network card.

[0032] Optionally, the first network card is Figure 5b Cellular network card 1, the second network card is Figure 5b The USB (Universal Serial Bus) network card 1 and the third network card are... Figure 5b USB network adapter 2, the fourth network adapter is Figure 5b Cellular network card 2 in the middle.

[0033] According to the first aspect, or any implementation of the first aspect above, the second electronic device is a device protection device matched with the first electronic device; the device protection device includes a processor, a communication module, and a USB module.

[0034] For example, the second electronic device includes a mobile phone case, a tablet case, a watch case, etc.

[0035] For example, the processing power of the processor in the device protection device is lower than that of the processor in the first electronic device.

[0036] For example, the communication module of the device protection device includes a wireless communication module and / or a mobile communication module.

[0037] For example, a first electronic device and a device protection device can be connected via a USB data cable, with the first electronic device supplying power to the device protection device.

[0038] Secondly, embodiments of this application provide a communication method applied to a first electronic device. The method includes: receiving first transmission data sent by a service server via a first network interface card (NIC) in the first electronic device; and receiving second transmission data sent by a third NIC via a second NIC in the first electronic device, based on the connection between the second NIC and a third NIC in the second electronic device. The second transmission data is determined by the third NIC based on received third transmission data, obtained by performing network address translation on fourth transmission data, which is received by the fourth NIC of the second electronic device and sent by the service server. The first transmission data includes first source data, and the second, third, and fourth transmission data all include second source data. The first and second source data are obtained by the service server dividing service data. Next, the first transmission data is sent to a corresponding application in the first electronic device, and the second transmission data is also sent to a corresponding application in the first electronic device. In this way, the first electronic device can receive data sent by the service server in parallel based on its own data path and the data path of the second electronic device, increasing downlink bandwidth and reducing downlink transmission latency.

[0039] For example, the second transmitted data is Figure 6b Data B3 in the middle, the second source data is Figure 6b The source data in the middle.

[0040] For example, the second transmitted data is Figure 7d Data B3 in the middle, the second source data is Figure 7d The source data in the middle.

[0041] For example, the second transmitted data is Figure 8b Data B2 in the middle, the second source data is Figure 8b The source data in the middle.

[0042] For example, the third transmitted data is Figure 6b Data B2 in the middle, the fourth transmission data is Figure 6b Data B1 in the middle.

[0043] For example, the third transmitted data is Figure 7d Data B2 in the middle, the fourth transmission data is Figure 7d Data B1 in the middle.

[0044] For example, the first transmitted data may be a data packet sent by the business server, or data carried in a data packet sent by the business server.

[0045] For example, the fourth transmitted data may be a data packet sent by the business server, or data carried in a data packet sent by the business server.

[0046] According to the second aspect, the second transmitted data includes two layers of encapsulation information. The outermost encapsulation information is encapsulated by the third network card using the IP address of the third network card as the source IP address and the IP address of the second network card as the destination IP address. The third transmitted data is obtained by the network proxy service in the second electronic device converting the destination IP address in the fourth transmitted data received by the fourth network card into the IP address of the second network card. The fourth transmitted data is obtained by the service server encapsulating the second source data using the IP address of the service server as the source IP address and the IP address of the fourth network card as the destination IP address.

[0047] According to the second aspect, or any implementation of the second aspect above, sending the second transmission data to the corresponding application in the first electronic device includes: the second network card decapsulating the outermost encapsulation information of the second transmission data, and sending the decapsulated second transmission data to the corresponding application in the first electronic device.

[0048] For example, the decapsulated second transmission data is Figure 6b Data B4 in the middle.

[0049] For example, the decapsulated second transmission data is Figure 7d Data B4 in the middle.

[0050] Thirdly, embodiments of this application provide a communication method applied to a first electronic device. The method includes: firstly, dividing the service data of an application in the first electronic device into first source data and second source data; then, on one hand, sending the first source data to a corresponding service server via a first network interface card (NIC) in the first electronic device; on the other hand, sending the second source data to a second NIC in the first electronic device, and having the second NIC send the second source data to a third NIC in the first electronic device, and through a connection between the third NIC and a fourth NIC in the second electronic device, sending the second source data to the fourth NIC, and then having the fourth NIC send the second source data to the service server via a fifth NIC in the second electronic device. In this way, the first electronic device can send data to the service server in parallel based on its own data path and the data path of the second electronic device, increasing uplink bandwidth and reducing uplink transmission latency.

[0051] For example, the second source data is Figure 9c The source data in the middle.

[0052] According to the third aspect, the second source data includes one or more sets; the second electronic device includes one or more, and each set of second source data is sent to a third network interface card in a second electronic device.

[0053] According to the third aspect, or any implementation of the third aspect above, sending the second source data to the second network interface card (NIC) in the first electronic device and sending the second source data from the second NIC to the third NIC in the first electronic device includes: encapsulating the second source data using the Internet Protocol (IP) address of the second NIC as the source IP address and the IP address of the service server as the destination IP address to obtain the first transmission data; sending the first transmission data to the second NIC in the first electronic device and sending the first transmission data from the second NIC to the third NIC in the first electronic device.

[0054] For example, the first transmitted data is Figure 9c Data A1 in the data.

[0055] According to the third aspect, or any implementation thereof, the second source data is sent to the fourth network card in the second electronic device via a connection between the third network card and the fourth network card in the second electronic device. The fourth network card then sends the second source data to the service server via a fifth network card in the second electronic device. This includes: sending first transmission data to the fourth network card of the second electronic device via a connection between the third network card and the fourth network card in the second electronic device; the fourth network card then sends the first transmission data to a network proxy service in the second electronic device; the network proxy service converts the source IP address of the first transmission data to the IP address of the fifth network card to obtain the second transmission data; and the fifth network card then sends the second transmission data to the service server. This enables the transmission of application data from the first electronic device to the service server via the second electronic device.

[0056] For example, when there are multiple second electronic devices, the first electronic device includes multiple third network interface cards (NICs), and each third NIC is connected to a fourth NIC of a second electronic device. In this way, a set of second source data can be sent to the fourth NIC of a second electronic device through the connection between a third NIC and the fourth NIC of the second electronic device.

[0057] According to the third aspect, or any implementation thereof, the second source data is sent to the fourth network card via a connection between the third network card and the fourth network card in the second electronic device. The fourth network card then sends the second source data to the service server via the fifth network card in the second electronic device. This includes: the third network card encapsulating the first transmission data using its own IP address as the source IP address and the fourth network card's IP address as the destination IP address to obtain third transmission data; sending the third transmission data to the fourth network card of the second electronic device via the connection between the third and fourth network cards; decapsulating the information encapsulated by the third network card in the third transmission data using the fourth network card of the second electronic device to obtain fourth transmission data; and sending the fourth transmission data to a network proxy service in the second electronic device. The network proxy service in the second electronic device converts the source IP address of the fourth transmission data to the IP address of the fifth network card, and the fifth network card then sends the address-converted fourth transmission data to the service server. This enables the transmission of application data from the first electronic device to the service server via the second electronic device.

[0058] For example, when there are multiple second electronic devices, the first electronic device includes multiple third network interface cards (NICs), and each third NIC is connected to a fourth NIC of a second electronic device. In this way, a set of second source data can be sent to the fourth NIC of a second electronic device through the connection between a third NIC and the fourth NIC of the second electronic device.

[0059] For example, when there are multiple second electronic devices, the first electronic device includes a third network card, which is connected to the fourth network cards of the multiple second electronic devices. In this way, it is possible to send a set of second source data to the fourth network card of a second electronic device.

[0060] For example, the third transmitted data is Figure 9c Data A2 in the middle, the fourth transmitted data is Figure 9c In A3, the fourth transmitted data after conversion is Figure 9c Data A4 in the document.

[0061] According to the third aspect, or any implementation of the third aspect above, the first network card includes at least one of the following: a Wi-Fi network card and a cellular network card;

[0062] The third network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card;

[0063] The fourth network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card;

[0064] The fifth network card includes at least one of the following: Wi-Fi network card, cellular network card.

[0065] For example, the first network card is Figure 9b The Wi-Fi network card 1 and the third network card are... Figure 9b USB network adapter 1, the fourth network adapter is Figure 9b USB network adapter 1, the fifth network adapter is Figure 9b Cellular network card 2 in the middle.

[0066] According to the third aspect, or any implementation of the third aspect above, the fifth network card is a cellular network card, and the second network card is a virtual network card based on the fifth network card. The IP address of the second network card is obtained by offsetting the IP address of the fifth network card. In this way, when the first network card is a Wi-Fi network card, the authentication application in the first electronic device can interact with the service server through the second network card and the second electronic device, enabling the authentication application to access the network.

[0067] For example, the fifth network interface card is Figure 9b Cellular network card 2 in the middle, the second network card is Figure 9b The virtual cellular network card in the system.

[0068] According to the third aspect, or any implementation of the third aspect above, the second electronic device is a device protection device matched with the first electronic device; the device protection device includes a processor, a communication module, and a USB module.

[0069] Fourthly, embodiments of this application provide a communication method applied to a first electronic device. The method includes: receiving first transmission data sent by a service server via a first network interface card (NIC) in the first electronic device; and receiving second transmission data sent by a fourth NIC via a third NIC in the first electronic device, based on the connection between the third NIC and a fourth NIC in a second electronic device. The second transmission data is determined by the fourth NIC based on received third transmission data, obtained by performing network address translation on the fourth transmission data, and the fourth transmission data is received by a fifth NIC in the second electronic device and sent by the service server. The first transmission data includes first source data, and the second, third, and fourth transmission data all include second source data. The first and second source data are obtained by the service server dividing service data. Next, the first transmission data is sent to a corresponding application in the first electronic device, and the second transmission data is sent to the application via a second NIC in the first electronic device. In this way, the first electronic device can receive data sent by the service server in parallel based on its own data path and the data path of the second electronic device, increasing downlink bandwidth and reducing downlink transmission latency.

[0070] For example, the second source data is Figure 9d The source data in the middle.

[0071] For example, the second transmitted data is Figure 9d Data B3 in the middle.

[0072] For example, the third transmitted data is Figure 9d Data B2 in the middle, the fourth transmission data is Figure 9d Data B1 in the middle.

[0073] For example, the first transmitted data may be a data packet sent by the business server, or data carried in a data packet sent by the business server.

[0074] For example, the fourth transmitted data may be a data packet sent by the business server, or data carried in a data packet sent by the business server.

[0075] According to the fourth aspect, the second transmitted data includes two layers of encapsulation information. The outermost encapsulation information is the information encapsulated by the fourth network card into the third transmitted data, using the IP address of the fourth network card as the source IP address and the IP address of the third network card as the destination IP address. The third transmitted data is obtained by the network proxy service in the second electronic device converting the destination IP address in the fourth transmitted data received by the fifth network card into the IP address of the second network card. The fourth transmitted data is obtained by the service server encapsulating the second source data into the second source data, using the IP address of the service server as the source IP address and the IP address of the fifth network card as the destination IP address.

[0076] According to the fourth aspect, or any implementation of the fourth aspect above, the second transmission data is sent to the application through the second network card in the first electronic device, including: the third network card decapsulates the outermost encapsulation information of the second transmission data, and the second network card sends the decapsulated second transmission data to the corresponding application in the first electronic device.

[0077] For example, the decapsulated second transmission data is Figure 9d Data B4 in the middle.

[0078] Fifthly, embodiments of this application provide a communication method, which includes: firstly, dividing the service data of an application in a first electronic device into first source data and second source data; then, on one hand, sending the first source data to a corresponding service server via a first network interface card (NIC) in the first electronic device; on the other hand, sending the second source data to a second NIC in the first electronic device and sending the second source data to a third NIC in the first electronic device via the second NIC, and sending the second source data to a fourth NIC in the second electronic device via a connection between the third NIC and a fourth NIC in the second electronic device, so as to send the second source data to the service server via the fourth NIC of the second electronic device. In this way, the first electronic device can send data to the service server in parallel based on its own data path and the data path of the second electronic device, which can increase uplink bandwidth and reduce uplink transmission latency.

[0079] According to the fifth aspect, the first network card includes at least one of the following: a Wi-Fi network card and a cellular network card;

[0080] The second network card is a cellular network card;

[0081] The third network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card;

[0082] The fourth network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card.

[0083] In this way, the second network card can encapsulate the second source data into data that can be recognized by the modem in the second electronic device. Then, the second electronic device will receive the data through the fourth network card, pass it to the modem, and the modem will send it to the service server.

[0084] For example, the second network card is Figure 10a Cellular network card 2 in the middle.

[0085] Sixthly, embodiments of this application provide a communication method, comprising: receiving first transmission data sent by a service server through a first network interface card (NIC) in a first electronic device; and receiving second transmission data sent by a fourth NIC through a third NIC in the first electronic device based on the connection between the third NIC and a fourth NIC in a second electronic device; wherein the first transmission data includes first source data, the second transmission data is determined by the fourth NIC based on the received third transmission data, the third transmission data being sent by the service server, the first transmission data including first source data, and both the second and third transmission data including second source data, the first and second source data being obtained by the service server dividing service data; sending the first transmission data to a corresponding application in the first electronic device, and sending the second transmission data to the application through a second NIC in the first electronic device. In this way, the first electronic device can receive data sent by the service server in parallel based on its own data path and the data path of the second electronic device, thereby increasing downlink bandwidth and reducing downlink transmission latency.

[0086] For example, the first transmitted data may be a data packet sent by the business server, or data carried in a data packet sent by the business server.

[0087] For example, the third transmitted data may be a data packet sent by the business server, or data carried in a data packet sent by the business server.

[0088] In a seventh aspect, embodiments of this application provide a connection establishment method applied to a first electronic device. The method includes: when an application establishes a connection with a corresponding service server, obtaining the application type of the application and network interface card (NIC) performance information of multiple NICs in the first electronic device, the NICs including NICs that directly interact with the service server and NICs that interact with the service server through connections with NICs in a second electronic device; then, matching the application with the NIC with the best performance based on the application type and the NIC performance information of each NIC; and finally, establishing a connection between the application and the corresponding service server based on the NIC with the best performance matched to the application. In this way, the application can be assigned the NIC with the best performance to establish a connection with the service server according to the NIC's performance, thereby reducing data transmission latency and improving user experience.

[0089] According to the seventh aspect, when the application establishes a connection with the corresponding business server, the method further includes: if network interface card (NIC) configuration information corresponding to the application exists, then the NIC bound to the application is located based on the NIC configuration information, and a connection is established between the application and the corresponding business server based on the NIC bound to the application. The NIC configuration information is the information of the NIC bound to the application by the user. If no NIC configuration information corresponding to the application exists, then the step of obtaining the application type of the application and the NIC performance information of multiple NICs in the first electronic device is performed. In this way, NICs can be allocated to the application according to user settings, improving the user experience.

[0090] Eighthly, an embodiment of this application provides a communication system, which includes a first electronic device and a second electronic device, wherein: the first electronic device is used to divide the business data of an application in the first electronic device into first source data and second source data; to send the first source data to a corresponding business server through a first network interface card (NIC) in the first electronic device; and to send the second source data to a second NIC in the first electronic device, and to send the second source data to a third NIC in the second electronic device through a connection between the second NIC and a third NIC in the second electronic device; the second electronic device is used to send the second source data received by the third NIC to a fourth NIC in the second electronic device, and to send the second source data to the business server through the fourth NIC.

[0091] The eighth aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects corresponding to the eighth aspect and any implementation thereof are similar to those corresponding to the first aspect and any implementation thereof, and will not be repeated here.

[0092] Ninth aspect, an embodiment of this application provides a communication system, the communication system including a first electronic device and a second electronic device, wherein: the second electronic device is used to receive fourth transmission data sent by a service server through a fourth network interface card (NIC) in the second electronic device, then perform URL conversion on the fourth transmission data to obtain third transmission data, and then send the third transmission data to a third NIC in the second electronic device; then, the third NIC is invoked to determine second transmission data based on the third transmission data, and the second transmission data is sent to a second NIC of the first electronic device through the connection between the third NIC and the second NIC, wherein the second transmission data, the third transmission data, and the fourth transmission data all include second source data. The first electronic device is used to receive first transmission data sent by a service server through a first NIC in the first electronic device; and to receive second transmission data sent by a third NIC through a second NIC in the first electronic device based on the connection between the second NIC and the third NIC in the second electronic device; wherein the first transmission data includes first source data, the first source data and the second source data are obtained by the service server dividing service data; then, the first transmission data is sent to a corresponding application in the first electronic device, and the second transmission data is sent to a corresponding application in the first electronic device.

[0093] The ninth aspect and any implementation thereof correspond to the second aspect and any implementation thereof, respectively. The technical effects corresponding to the ninth aspect and any implementation thereof are similar to those corresponding to the second aspect and any implementation thereof, and will not be repeated here.

[0094] Tenthly, an embodiment of this application provides a communication system, the communication system including a first electronic device and a second electronic device, wherein: the first electronic device is used to divide the service data of an application in the first electronic device into first source data and second source data; to send the first source data to a corresponding service server through a first network interface card (NIC) in the first electronic device; and to send the second source data to a second NIC in the first electronic device, the second NIC then sends the second source data to a third NIC in the first electronic device, and the second source data is sent to a fourth NIC through a connection between the third NIC and a fourth NIC in the second electronic device; the second electronic device is used to send the second source data received by the fourth NIC to a fifth NIC in the second electronic device, and the second source data is sent to the service server through the fifth NIC.

[0095] The tenth aspect and any implementation thereof correspond to the third aspect and any implementation thereof, respectively. The technical effects corresponding to the tenth aspect and any implementation thereof are similar to those corresponding to the third aspect and any implementation thereof, and will not be repeated here.

[0096] Eleventhly, an embodiment of this application provides a communication system, comprising a first electronic device and a second electronic device, wherein: the second electronic device is used to receive fourth transmission data sent by a service server through a fifth network interface card (NIC) in the second electronic device, and then send the fourth transmission data to the fourth NIC in the second electronic device; next, network address translation is performed on the fourth transmission data to obtain third transmission data; then the fourth NIC is invoked to determine second transmission data based on the third transmission data, and the second transmission data is sent to the third NIC of the first electronic device through the connection between the fourth NIC and the third NIC, wherein the second transmission data, the third transmission data, and the fourth transmission data all include second source data. The first electronic device is used to receive first transmission data sent by a service server through a first NIC in the first electronic device; and to receive second transmission data sent by a fourth NIC through a third NIC in the first electronic device based on the connection between the third NIC and the fourth NIC; wherein the first transmission data includes first source data, and the first source data and the second source data are obtained by the service server dividing service data; the first transmission data is sent to a corresponding application in the first electronic device, and the second transmission data is sent to the application through the second NIC in the first electronic device.

[0097] The eleventh aspect and any implementation thereof correspond to the fourth aspect and any implementation thereof, respectively. The technical effects corresponding to the eleventh aspect and any implementation thereof can be found in the technical effects corresponding to the fourth aspect and any implementation thereof, and will not be repeated here.

[0098] In a twelfth aspect, an embodiment of this application provides a communication system, which includes a first electronic device and a second electronic device, wherein: the first electronic device is used to divide service data of an application in the first electronic device into first source data and second source data; to send the first source data to a corresponding service server through a first network interface card (NIC) in the first electronic device; and to send the second source data to a second NIC in the first electronic device and to send the second source data to a third NIC in the first electronic device through the second NIC, and to send the second source data to a fourth NIC through a connection between the third NIC and a fourth NIC in the second electronic device; the second electronic device is used to send the second source data to the service server through the fourth NIC.

[0099] The twelfth aspect and any implementation thereof correspond to the fifth aspect and any implementation thereof, respectively. The technical effects corresponding to the twelfth aspect and any implementation thereof are similar to those corresponding to the fifth aspect and any implementation thereof, and will not be repeated here.

[0100] In a thirteenth aspect, an embodiment of this application provides a communication system, comprising a first electronic device and a second electronic device. The second electronic device is configured to receive third transmission data sent by a service server via a fourth network interface card (NIC), and to determine second transmission data based on the third transmission data using the fourth NIC, and to send the second transmission data to a third NIC of the first electronic device via a connection between the fourth and third NICs. Both the second and third transmission data include second source data. The first electronic device is configured to receive first transmission data sent by a service server via a first NIC; and to receive second transmission data sent by a fourth NIC via a third NIC based on a connection between the third and fourth NICs. The first transmission data includes first source data, and the first and second source data are obtained by the service server dividing service data. The first transmission data is sent to a corresponding application in the first electronic device, and the second transmission data is sent to the application via the second NIC in the first electronic device.

[0101] The thirteenth aspect and any implementation thereof correspond to the sixth aspect and any implementation thereof, respectively. The technical effects corresponding to the thirteenth aspect and any implementation thereof are the same as those corresponding to the sixth aspect and any implementation thereof, and will not be repeated here.

[0102] In a fourteenth aspect, embodiments of this application provide an electronic device, including: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, cause the electronic device to perform the communication method in the first aspect or any possible implementation thereof.

[0103] The fourteenth aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects corresponding to the fourteenth aspect and any implementation thereof are similar to those corresponding to the first aspect and any implementation thereof, and will not be repeated here.

[0104] In a fifteenth aspect, embodiments of this application provide an electronic device, including: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, when executed by the processor, causing the electronic device to perform the communication method in the second aspect or any possible implementation of the second aspect.

[0105] The fifteenth aspect and any implementation thereof correspond to the second aspect and any implementation thereof, respectively. The technical effects of the fifteenth aspect and any implementation thereof are similar to those of the second aspect and any implementation thereof, and will not be repeated here.

[0106] In a sixteenth aspect, embodiments of this application provide an electronic device, including: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, cause the electronic device to perform a communication method in the third aspect or any possible implementation thereof.

[0107] The sixteenth aspect and any implementation thereof correspond to the third aspect and any implementation thereof, respectively. The technical effects of the sixteenth aspect and any implementation thereof are similar to those of the third aspect and any implementation thereof, and will not be repeated here.

[0108] In a seventeenth aspect, embodiments of this application provide an electronic device, including: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, cause the electronic device to perform the communication method in the fourth aspect or any possible implementation of the fourth aspect.

[0109] The seventeenth aspect and any implementation thereof correspond to the fourth aspect and any implementation thereof, respectively. The technical effects of the seventeenth aspect and any implementation thereof can be found in the technical effects of the fourth aspect and any implementation thereof, as described above, and will not be repeated here.

[0110] Eighteenthly, embodiments of this application provide an electronic device, including: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, when executed by the processor, causing the electronic device to perform the communication method in the fifth aspect or any possible implementation of the fifth aspect.

[0111] The eighteenth aspect and any implementation thereof correspond to the fifth aspect and any implementation thereof, respectively. The technical effects corresponding to the eighteenth aspect and any implementation thereof are similar to those corresponding to the fifth aspect and any implementation thereof, and will not be repeated here.

[0112] In a nineteenth aspect, embodiments of this application provide an electronic device, including: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, cause the electronic device to perform the communication method in the sixth aspect or any possible implementation thereof.

[0113] The nineteenth aspect and any implementation thereof correspond to the sixth aspect and any implementation thereof, respectively. The technical effects corresponding to the nineteenth aspect and any implementation thereof are similar to those corresponding to the sixth aspect and any implementation thereof, and will not be repeated here.

[0114] In a twentieth aspect, embodiments of this application provide an electronic device, including: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, when executed by the processor, causing the electronic device to perform the connection establishment method in the seventh aspect or any possible implementation thereof.

[0115] The twentieth aspect and any implementation thereof correspond to the seventh aspect and any implementation thereof, respectively. The technical effects corresponding to the twentieth aspect and any implementation thereof are similar to those corresponding to the seventh aspect and any implementation thereof, and will not be repeated here.

[0116] In a twentieth aspect, embodiments of this application provide a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the communication method in the first aspect or any possible implementation of the first aspect.

[0117] The twenty-first aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects corresponding to the twenty-first aspect and any implementation thereof are similar to those corresponding to the first aspect and any implementation thereof, and will not be repeated here.

[0118] In a twentieth aspect, embodiments of this application provide a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the communication method in the second aspect or any possible implementation of the second aspect.

[0119] The twenty-second aspect and any implementation thereof correspond to the second aspect and any implementation thereof, respectively. The technical effects corresponding to the twenty-second aspect and any implementation thereof are described above in the section on the technical effects corresponding to the second aspect and any implementation thereof, and will not be repeated here.

[0120] In a twentieth aspect, embodiments of this application provide a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the communication method in the third aspect or any possible implementation of the third aspect.

[0121] The twenty-third aspect and any implementation thereof correspond to the third aspect and any implementation thereof, respectively. The technical effects corresponding to the twenty-third aspect and any implementation thereof are similar to those corresponding to the third aspect and any implementation thereof, and will not be repeated here.

[0122] In a twentieth aspect, embodiments of this application provide a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the communication method in the fourth aspect or any possible implementation of the fourth aspect.

[0123] The twenty-fourth aspect and any implementation thereof correspond to the fourth aspect and any implementation thereof, respectively. The technical effects corresponding to the twenty-fourth aspect and any implementation thereof are similar to those corresponding to the fourth aspect and any implementation thereof, and will not be repeated here.

[0124] In a twentieth aspect, embodiments of this application provide a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the communication method in the fifth aspect or any possible implementation of the fifth aspect.

[0125] The 25th aspect and any implementation thereof correspond to the 5th aspect and any implementation thereof, respectively. The technical effects corresponding to the 25th aspect and any implementation thereof are similar to those corresponding to the 5th aspect and any implementation thereof, and will not be repeated here.

[0126] In a twentieth aspect, embodiments of this application provide a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the communication method in the sixth aspect or any possible implementation of the sixth aspect.

[0127] The twenty-sixth aspect and any implementation thereof correspond to the sixth aspect and any implementation thereof, respectively. The technical effects corresponding to the twenty-sixth aspect and any implementation thereof are similar to those corresponding to the sixth aspect and any implementation thereof, and will not be repeated here.

[0128] In a twentieth aspect, embodiments of this application provide a chip including one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the connection establishment method in the seventh aspect or any possible implementation of the seventh aspect.

[0129] The twenty-seventh aspect and any implementation thereof correspond to the seventh aspect and any implementation thereof, respectively. The technical effects corresponding to the twenty-seventh aspect and any implementation thereof are similar to those corresponding to the seventh aspect and any implementation thereof, and will not be repeated here.

[0130] In a twentieth aspect, embodiments of this application provide a computer storage medium storing a computer program that, when run on a computer or processor, causes the computer or processor to perform the communication method in the first aspect or any possible implementation thereof.

[0131] The twenty-eighth aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects corresponding to the twenty-eighth aspect and any implementation thereof are similar to those corresponding to the first aspect and any implementation thereof, and will not be repeated here.

[0132] In a twentieth aspect, embodiments of this application provide a computer storage medium storing a computer program that, when run on a computer or processor, causes the computer or processor to perform the communication method in the second aspect or any possible implementation thereof.

[0133] The twenty-ninth aspect and any implementation thereof correspond to the second aspect and any implementation thereof, respectively. The technical effects corresponding to the twenty-ninth aspect and any implementation thereof are described above in the section on the second aspect and any implementation thereof, and will not be repeated here.

[0134] In a thirtieth aspect, embodiments of this application provide a computer storage medium storing a computer program that, when run on a computer or processor, causes the computer or processor to perform the communication method in the third aspect or any possible implementation thereof.

[0135] The thirtieth aspect and any implementation thereof correspond to the third aspect and any implementation thereof, respectively. The technical effects corresponding to the thirtieth aspect and any implementation thereof can be found in the aforementioned technical effects corresponding to the third aspect and any implementation thereof, and will not be repeated here.

[0136] In a thirty-first aspect, embodiments of this application provide a computer storage medium storing a computer program that, when run on a computer or processor, causes the computer or processor to perform the communication method in the fourth aspect or any possible implementation thereof.

[0137] The thirty-first aspect and any implementation thereof correspond to the fourth aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-first aspect and any implementation thereof can be found in the aforementioned fourth aspect and any implementation thereof, and will not be repeated here.

[0138] In a thirty-second aspect, embodiments of this application provide a computer storage medium storing a computer program that, when run on a computer or processor, causes the computer or processor to perform the communication method in the fifth aspect or any possible implementation thereof.

[0139] The thirty-second aspect and any implementation thereof correspond to the fifth aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-second aspect and any implementation thereof can be found in the technical effects corresponding to the fifth aspect and any implementation thereof, as described above, and will not be repeated here.

[0140] In a thirty-third aspect, embodiments of this application provide a computer storage medium storing a computer program that, when run on a computer or processor, causes the computer or processor to perform the communication method in the sixth aspect or any possible implementation thereof.

[0141] The thirty-third aspect and any implementation thereof correspond to the sixth aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-third aspect and any implementation thereof are described above in the section on the sixth aspect and any implementation thereof, and will not be repeated here.

[0142] In a thirty-fourth aspect, embodiments of this application provide a computer storage medium storing a computer program that, when run on a computer or processor, causes the computer or processor to perform the connection establishment method in the seventh aspect or any possible implementation thereof.

[0143] The thirty-fourth aspect and any implementation thereof correspond to the seventh aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-fourth aspect and any implementation thereof are similar to those corresponding to the seventh aspect and any implementation thereof, and will not be repeated here.

[0144] In a thirty-fifth aspect, embodiments of this application provide a computer program product, which includes a software program that, when executed by a computer or processor, causes the steps of the method in the first aspect or any possible implementation thereof to be performed.

[0145] The thirty-fifth aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-fifth aspect and any implementation thereof are similar to those corresponding to the first aspect and any implementation thereof, and will not be repeated here.

[0146] In a thirty-sixth aspect, embodiments of this application provide a computer program product, which includes a software program that, when executed by a computer or processor, causes the steps of the method in the second aspect or any possible implementation thereof to be performed.

[0147] The thirty-sixth aspect and any implementation thereof correspond to the second aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-sixth aspect and any implementation thereof are similar to those corresponding to the second aspect and any implementation thereof, and will not be repeated here.

[0148] In a thirty-seventh aspect, embodiments of this application provide a computer program product, which includes a software program that, when executed by a computer or processor, causes the steps of the method in the third aspect or any possible implementation thereof to be performed.

[0149] The thirty-seventh aspect and any implementation thereof correspond to the third aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-seventh aspect and any implementation thereof can be found in the aforementioned technical effects corresponding to the third aspect and any implementation thereof, and will not be repeated here.

[0150] In a thirty-eighth aspect, embodiments of this application provide a computer program product, which includes a software program that, when executed by a computer or processor, causes the steps of the method in the fourth aspect or any possible implementation of the fourth aspect to be performed.

[0151] The thirty-eighth aspect and any implementation thereof correspond to the fourth aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-eighth aspect and any implementation thereof can be found in the technical effects corresponding to the fourth aspect and any implementation thereof, as described above; they will not be repeated here.

[0152] In a thirty-ninth aspect, embodiments of this application provide a computer program product, which includes a software program that, when executed by a computer or processor, causes the steps of the method in the fifth aspect or any possible implementation thereof to be performed.

[0153] The thirty-ninth aspect and any implementation thereof correspond to the fifth aspect and any implementation thereof, respectively. The technical effects corresponding to the thirty-ninth aspect and any implementation thereof can be found in the technical effects corresponding to the fifth aspect and any implementation thereof, as described above, and will not be repeated here.

[0154] In a fortieth aspect, embodiments of this application provide a computer program product, which includes a software program that, when executed by a computer or processor, causes the steps of the method in the sixth aspect or any possible implementation thereof to be performed.

[0155] Any implementation of aspect 40 corresponds to aspect 6 and any implementation of aspect 6, respectively. The technical effects corresponding to any implementation of aspect 40 and aspect 40 can be found in the technical effects corresponding to aspect 6 and any implementation of aspect 6 mentioned above, and will not be repeated here.

[0156] In the forty-first aspect, embodiments of this application provide a computer program product, which includes a software program that, when executed by a computer or processor, causes the steps of the method in the seventh aspect or any possible implementation thereof to be performed.

[0157] Each implementation of aspect 41 corresponds to aspect 7 and any implementation of aspect 7, respectively. The technical effects corresponding to any implementation of aspect 41 and aspect 41 can be found in the technical effects corresponding to aspect 7 and any implementation of aspect 7 mentioned above, and will not be repeated here. Attached Figure Description

[0158] Figure 1 A schematic diagram of the hardware structure of an electronic device as an example;

[0159] Figure 2 A schematic diagram of the software structure of an electronic device as an example;

[0160] Figure 3a This is a schematic diagram illustrating an application scenario;

[0161] Figure 3b This is an illustrative diagram of device connections.

[0162] Figure 3c This is a schematic diagram of a communication connection as an example.

[0163] Figure 4a The interface diagram is shown as an example.

[0164] Figure 4b This is a schematic diagram of a communication connection as an example.

[0165] Figure 5a This is a schematic diagram illustrating the connection as an example.

[0166] Figure 5b This is a schematic diagram of a communication connection as an example.

[0167] Figure 6a This is a schematic diagram illustrating data transmission as an example.

[0168] Figure 6b This is a schematic diagram illustrating data transmission as an example.

[0169] Figure 7a This is a schematic diagram illustrating the connection as an example.

[0170] Figure 7b This is a schematic diagram of a communication connection as an example.

[0171] Figure 7c This is a schematic diagram of a communication connection as an example.

[0172] Figure 7d A schematic diagram of data transmission is shown as an example;

[0173] Figure 7e A schematic diagram of data transmission is shown as an example;

[0174] Figure 8a A schematic diagram of data transmission is shown as an example;

[0175] Figure 8b A schematic diagram of data transmission is shown as an example;

[0176] Figure 9a This is a schematic diagram of a communication connection as an example.

[0177] Figure 9b This is a schematic diagram of a communication connection as an example.

[0178] Figure 9c This is a schematic diagram illustrating data transmission as an example.

[0179] Figure 9d This is a schematic diagram illustrating data transmission as an example.

[0180] Figure 10aThis is a schematic diagram of a communication connection as an example.

[0181] Figure 10b This is a schematic diagram of a communication connection as an example.

[0182] Figure 11 This is a schematic diagram illustrating the connection as an example.

[0183] Figure 12a The interface diagram is shown as an example.

[0184] Figure 12b This is a schematic diagram of a communication connection as an example.

[0185] Figure 13 This is a schematic diagram illustrating the connection as an example.

[0186] Figure 14 This is a schematic diagram illustrating the connection as an example.

[0187] Figure 15 An interface diagram is shown as an example;

[0188] Figure 16 This is a schematic diagram illustrating a data processing flow as an example.

[0189] Figure 17 This is a schematic diagram of the structure of an exemplary device. Detailed Implementation

[0190] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0191] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0192] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.

[0193] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0194] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.

[0195] Figure 1 A schematic diagram of the structure of the electronic device 100 is shown. It should be understood that... Figure 1 The electronic device 100 shown is merely an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 1 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0196] Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0197] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0198] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0199] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0200] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0201] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0202] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0203] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0204] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0205] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0206] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0207] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0208] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0209] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0210] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0211] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including WLAN (such as Wi-Fi), Bluetooth, GNSS, frequency modulation (FM), near-field communication (NFC), and infrared (IR). The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0212] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0213] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0214] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0215] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0216] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0217] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0218] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0219] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0220] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0221] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0222] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0223] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0224] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.

[0225] Figure 2 This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.

[0226] The layered architecture of the electronic device 100 divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime, the native framework layer, and the kernel layer.

[0227] The application layer can include a series of application packages.

[0228] like Figure 2 As shown, the application package can include applications such as camera, gallery, calendar, call, map, WLAN, Bluetooth, music, video, Huawei Share, etc.

[0229] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0230] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0231] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0232] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0233] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0234] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0235] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0236] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0237] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0238] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0239] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0240] The local framework layer can include local services and system libraries.

[0241] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0242] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0243] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0244] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0245] A 2D graphics engine is a graphics engine for 2D drawing.

[0246] Local services may include: network proxy services, cellular network cards, Wi-Fi network cards, Bluetooth network cards, and USB network cards, etc.

[0247] Network proxy services can be used for NAT (Network Address Translation).

[0248] Cellular network cards can be used to encapsulate data sent by applications into data that can be recognized by the modem, and to decapsulate data received from the modem.

[0249] Wi-Fi network cards can be used to encapsulate data into data that can be sent through Wi-Fi hardware modules, or to decapsulate data received from Wi-Fi hardware modules.

[0250] Bluetooth network cards can be used to encapsulate data into data that can be sent through Bluetooth hardware modules, or to decapsulate data received from Bluetooth hardware modules.

[0251] A USB network adapter is used to encapsulate data into data that can be transmitted via a USB cable, and to decapsulate data received from a USB cable.

[0252] The kernel layer is the layer between hardware and software. The kernel layer includes at least display drivers, Wi-Fi drivers, Bluetooth drivers, audio drivers, and sensor drivers.

[0253] Understandable, Figure 2 The components included in the system framework layer, system library, and runtime layer shown do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than shown, or combine some components, or split some components, or have different component arrangements.

[0254] For example, when the communication capabilities of a user's electronic device (such as a mobile phone, tablet, or watch) cannot meet the user's needs, a device protection device (such as a phone case, tablet case, or watch case, with cellular and / or wireless communication capabilities) can be purchased. The electronic device is then fitted into the device protection device and connected to it. In this way, the electronic device can access the cellular and / or wireless communication capabilities of the device protection device. Subsequently, the electronic device can utilize both its own cellular (or wireless) capabilities and the cellular (or wireless) capabilities of the device protection device to access the internet, thereby increasing bandwidth and reducing data transmission latency.

[0255] For example, after an electronic device is connected to a device protection device, the internet access capability of the electronic device can be the sum of the electronic device's own cellular capability (or wireless communication capability) and the device protection device's cellular capability (or wireless communication capability).

[0256] This application uses a mobile phone as the electronic device, a mobile phone case as the protective device, and a mobile phone case equipped with a mobile communication module as an example for illustration.

[0257] Figure 3a This is a schematic diagram illustrating an application scenario.

[0258] Reference Figure 3a When a user places a 4G (4th generation mobile communication technology) phone into a 5G phone case, the two devices can connect, allowing the 4G phone to possess the cellular capabilities of a 5G phone. Subsequently, the 4G phone can leverage its own cellular capabilities (wireless communication capabilities) and the cellular capabilities of the 5G phone case to interact with the server, thereby increasing bandwidth and reducing data transmission latency.

[0259] In one possible implementation, the user uses a 4G phone, and the phone case can also be a 4G phone case. In another possible implementation, the user uses a 5G phone, and the phone case can also be a 5G phone case. In yet another possible implementation, the user uses a 5G phone, and the phone case can also be a 6G phone case; and so on. It should be understood that the embodiments of this application do not limit the wireless communication technology used by the phone and the phone case.

[0260] For example, the hardware structure of a 5G phone case is similar to that of a phone. (See reference...) Figure 1It should be noted that the processing power of a 5G phone case is lower than that of the processor in the phone itself. A 5G phone case also has fewer sensor modules than a phone; of course, a 5G phone case may not have any sensor modules at all. A 5G phone case may include one or more of the following: an audio module, speaker, receiver, microphone, headphone jack, display, camera, buttons, indicators, and motor. The SIM card interface of a 5G phone case can be an eSIM (Embedded-SIM).

[0261] For example, the system framework layer of a 5G phone case is similar to the system framework layer of a phone. (See reference...) Figure 2 It should be noted that the system framework layer of a 5G phone case may not include the application layer and the application framework layer.

[0262] This application example uses 4G's own cellular capabilities and the cellular capabilities of a 5G phone case to access the internet, with the 5G phone case including a SIM interface for inserting a SIM card, as an example for illustration.

[0263] For example, you can first insert the SIM card into the 5G phone case, then put the 4G phone into the 5G phone case; then connect the 4G phone and the 5G phone case.

[0264] Figure 3b This is an example of a device connection diagram.

[0265] Reference Figure 3b For example, a 4G phone can establish a USB connection with a 5G phone case via a USB (Universal Serial Bus) data cable. For example, a 4G phone case can also power a 5G phone case via a USB data cable.

[0266] Figure 3c This is a schematic diagram illustrating a communication connection as an example.

[0267] Reference Figure 3c For example, after a 4G phone and a 5G phone case are connected via a USB data cable, a USB connection can be established between the USB network card 1 in the 4G phone and the USB network card 2 in the 5G phone case.

[0268] For example, if the SIM2 card in the 5G phone case is not activated, the SIM2 card in the 5G phone case can be activated through the 4G phone after the 4G phone and the 5G phone case are connected.

[0269] For example, a 4G phone may have a built-in 5G phone case management application. This application manages the phone case, including functions such as Bluetooth management, WLAN management, battery management, mobile network management, and SIM / eSIM activation. Furthermore, users can activate the SIM2 card in the 5G phone case through operations within the 4G phone's phone case management application.

[0270] Figure 4a This is a schematic diagram of the interface as an example.

[0271] Reference Figure 4a (1) For example, 401 is the main interface of the mobile phone. The main interface of the mobile phone 401 includes one or more controls, including but not limited to: application icons (e.g., the application icon of Huawei Share application, the application icon of browser application, the application icon of mobile phone case management application 402), network identifier, battery identifier, etc.

[0272] Continue to refer to Figure 4a (1) When a user needs to activate the SIM card in the 5G phone case, they can click the application icon 402 of the phone case management application. The phone responds to the user's operation and enters the phone case management interface 403, such as... Figure 4a As shown in (2).

[0273] Reference Figure 4a (2) For example, the phone case management interface 403 includes one or more controls, including but not limited to: Bluetooth management options, WLAN management options 405, power management options, mobile network management options 406, SIM / eSIM activation options 404, etc. When a user clicks the Bluetooth management option, they can enter the phone case Bluetooth management interface. In this interface, the user can control the Bluetooth switch of the 5G phone case and select the Bluetooth connection for the 5G phone case. When a user clicks the WLAN management option 405, they can enter the phone case WLAN management interface. In this interface, the user can control the WLAN switch of the 5G phone case and select the WLAN connection for the 5G phone case. When a user clicks the power management option, they can enter the phone case power management interface. In this interface, the user can view the battery status of the 5G phone case and set the battery mode for the phone case. When a user clicks the mobile network management option 406, they can enter the phone case mobile network management interface. In this interface, the user can control the mobile network switch of the 5G phone case and the hotspot switch for the 5G phone case. When a user clicks the SIM / eSIM activation option (404), the phone responds by sending an activation instruction to the 5G phone case. Upon receiving the activation instruction, the 5G phone activates the SIM2 card. Once the SIM2 card in the 5G phone case is activated, the 5G phone case gains 5G cellular capability.

[0274] Figure 4b This is a schematic diagram illustrating a communication connection as an example.

[0275] Reference Figure 4b For example, once the SIM2 card in the 5G phone case is activated, a cellular network card 2 can be created in the 5G phone case.

[0276] For example, after the SIM2 card in the 5G phone case is activated, applications in the 4G phone that support multi-stream concurrency can use their own cellular data path and the cellular data path of the 5G phone case to interact with the corresponding service server in parallel. Applications supporting multi-stream concurrency can refer to applications that can establish multiple TCP / IP (Transmission Control Protocol / Internet Protocol) connections in parallel, such as video applications, game applications, live streaming applications, etc. This application embodiment uses APP (Application) 2 in the 4G phone as an example of a multi-stream concurrent application for illustration.

[0277] Figure 5a This is a schematic diagram of the connection as an example.

[0278] Reference Figure 5a For example, when APP2 needs to interact with the business server, it can first establish multiple TCP / IP connections with the business server, and then APP2 interacts with the business server based on the established multiple TCP / IP connections. For example, this application embodiment does not limit the number of TCP / IP connections established between APP2 and the business server. This application embodiment uses the establishment of two TCP / IP connections as an example for illustrative purposes.

[0279] For example, the process of APP2 establishing a TCP / IP connection with the business server is essentially the process of APP2 establishing a socket connection with the business server.

[0280] Figure 5b This is a schematic diagram illustrating a communication connection as an example.

[0281] Reference Figure 5b (1) For example, APP2 can establish a socket1 connection with the service server through the cellular network card 1 and Modem1 in a 4G mobile phone. (Refer to...) Figure 5b(2) For example, the socket1 connection is the data path between APP2, cellular network card 1, modem1 and service server. It can be seen that the socket1 connection is actually a TCP / IP connection between APP2 and service server.

[0282] For example, the source IP address of the socket1 connection is the IP address of cellular network card 1, and the destination IP address is the IP address of the service server. For instance, if the IP address of cellular network card 1 is abcd and the IP address of the service server is EFGH, then the source IP address of the socket1 connection is abcd and the destination IP address is EFGH.

[0283] Reference Figure 5b (1) For example, APP2 can establish a socket2 connection with the service server through USB network card 1 in a 4G phone, USB network card 2 in a 5G phone case, network proxy service in a 5G phone case, cellular network card 2 in a 5G phone case, and Modem2 in a 5G phone case. (Refer to...) Figure 5b (3) For example, a socket2 connection may include a socket2a connection and a socket2b connection. The socket2a connection is created by APP2 and serves as the data path between APP2, USB network card 1, USB network card 2, and the network proxy service. The socket2b connection is created based on the socket2a connection and serves as the data path between the network proxy service, cellular network card 2, Modem2, and the service server. Therefore, the socket2a and socket2b connections together form another TCP / IP connection between APP2 and the service server.

[0284] For example, the source IP address of the socket2a connection is the IP address of USB network card 1, and the destination IP address is the IP address of the service server. For instance, if the IP address of USB network card 1 is wxyz and the IP address of the service server is EFGH, then the source IP address of the socket2a connection is wxyz and the destination IP address is EFGH.

[0285] For example, the source IP address of the socket2b connection is the IP address of cellular network card 2, and the destination IP address is the IP address of the service server. For instance, if the IP address of cellular network card 2 is ABCD and the IP address of the service server is EFGH, then the source IP address of socket2b is ABCD and the destination IP address is EFGH.

[0286] For example, APP2 can establish a socket connection with the business server by performing a three-way handshake. The process of APP2 establishing a socket1 connection with the business server can be found in existing protocols and will not be elaborated here. The following is an exemplary description of the process of APP2 establishing a socket2 connection with the business server.

[0287] Figure 6a This is a schematic diagram illustrating data transmission as an example.

[0288] For example, APP2 first sends a SYN (synchronize) packet to the business server to initiate the first handshake. (See reference...) Figure 6a For example, the source data sent by APP2 is a SYN packet. For example, after APP2 sends the SYN packet, the SYN packet is appended with a TCP header and an IP header and is passed to USB network card 1. For ease of explanation later, the SYN packet with the appended IP header and TCP header can be referred to as data A1, the IP header appended to the SYN packet can be referred to as IP header (1), and the TCP header appended to the SYN packet can be referred to as TCP header (1).

[0289] For example, the TCP header (1) may include a source port and a destination port. The source port is the port bound to socket2a in the 4G mobile phone, such as PROT1, and the destination port is the port bound to socket2 in the service server, such as PROT16. The IP header (1) includes a source IP address and a destination IP address. The source IP address is the IP address of USB network card 1, such as wxyz, and the destination IP address is the IP address of the service server, such as EFGH.

[0290] For example, a 4G mobile phone and a 5G phone case communicate via a USB data cable using either TCP / IP or UDP / IP (User Datagram Protocol / Internet Protocol) protocols. That is, the USB connection can be either a TCP / IP connection or a UDP / IP connection; this embodiment does not impose any limitation on this. This embodiment uses the USB connection between a 4G mobile phone and a 5G phone case as an example of a TCP / IP connection for illustrative purposes.

[0291] Continue to refer to Figure 6a After receiving data A1, USB network card 1 can encapsulate the corresponding TCP header (2) and IP header (2) on data A1 according to the TCP / IP protocol between USB network card 1 and USB network card 2 to obtain data A2.

[0292] For example, the TCP header (2) may also include a source port and a destination port, where the source port is the port in USB network card 1 used to communicate with USB network card 2, and the destination port is the port in USB network card 2 used to communicate with USB network card 1. The IP header (2) also includes a source IP address and a destination IP address, where the source IP address is the IP address of USB network card 1, and the destination IP address is the IP address of USB network card 2.

[0293] For example, after USB network card 1 encapsulates data A2, it can send data A2 to USB network card 2 based on the connection between USB network card 1 and USB network card 2.

[0294] For example, USB network card 2 can receive data A2, and then decapsulate data A2, removing the IP header (2) and TCP header (2) of data A2 to obtain data A3. Among them, data A3 is actually data A1.

[0295] For example, USB network card 2 can send data A3 to the network proxy service. After receiving data A3, the network proxy service can perform NAT translation on data A3 to obtain data A4. In essence, performing NAT translation on data A3 means converting the source IP address in the IP header (1) of data A3 from the IP address of USB network card 1 to the IP address of cellular network card 2, and converting the source port in the TCP header (1) from the port bound to socket 2a in the 4G mobile phone to the port bound to socket 2b in the 5G mobile phone case. For example, the port bound to socket 2b in the 5G mobile phone case can be an unused port in the 5G mobile phone case. Therefore, the source address in the IP header (1) of the obtained data A4 is ABCD, and the source port in the TCP header (1) is PROT0.

[0296] For example, after performing NAT translation, the network proxy service can record the network translation relationship, such as: wxyz / PROT1—ABCD / PROT0.

[0297] For example, after receiving data A4, the network proxy server can send data A4 to cellular network card 2. Cellular network card 2 encapsulates data A4 and then passes the encapsulated data A4 to Modem2. Modem2 processes the encapsulated data A4 and then sends it to the service server. The service server can then receive the SYN packet sent by APP2, completing the first handshake between APP2 and the service server.

[0298] Figure 6b This is a schematic diagram illustrating data transmission as an example.

[0299] For example, after receiving the SYN packet from APP2, the service server can return an ACK (ACK knowledge) packet to APP2. For example, Modem2 in the 5G phone case can receive the ACK packet returned by the service server, and then transmit the ACK packet to cellular network card 2. After cellular network card 2 processes the data sent by Modem2, it can obtain data B1, such as... Figure 6b As shown. (Refer to...) Figure 6b For example, the source data in data B1 is an ACK packet. The IP header (1) in data B1 includes a source IP address and a destination IP address. The destination IP address is the IP address of the cellular network card 2, such as ABCD, and the source IP address is the IP address of the service server, such as EFGH. The TCP header (1) may include a source port and a destination port. The destination port is the port bound to socket2b in the 5G phone case, such as PROT0, and the source port is the port bound to socket2 in the service server, such as PROT16.

[0300] For example, cellular network card 2 can send data B1 to a network proxy service. Then, the network proxy service performs NAT translation on data B1 according to the recorded network translation relationship, such as: wxyz / PROT1—ABCD / PROT0, to obtain data B2. For example, the network proxy service performs NAT translation on data B1, which essentially changes the destination address in the IP header (1) of data B1 from ABCD to wxyz, and changes the destination port in the TCP header (1) from PROT0 to PROT1.

[0301] For example, the network proxy service can send data B2 to USB network card 2. After receiving data B2, USB network card 2 can encapsulate the data B2 with the corresponding TCP header (2) and IP header (2) according to the TCP / IP protocol between USB network card 1 and USB network card 2 to obtain data B3.

[0302] For example, the TCP header (2) may also include a source port and a destination port, where the destination port is the port in USB network card 1 used to communicate with USB network card 2, and the source port is the port in USB network card 2 used to communicate with USB network card 1. The IP header (2) also includes a source IP address and a destination IP address, where the destination IP address is the IP address of USB network card 1, and the source IP address is the IP address of USB network card 2.

[0303] For example, after USB network card 2 encapsulates and obtains data B3, it can send the data to USB network card 1 based on the connection between USB network card 1 and USB network card 2.

[0304] For example, USB network card 1 can receive data B3, and then decapsulate data B3, removing the IP header (2) and TCP header (2) of data B3 to obtain data B4. Among them, data B4 is actually data B2.

[0305] For example, USB network card 1 can send data B4 to APP2 according to the destination port of TCP (1) in data B4. For example, before data B4 reaches APP2, the IP header (1) and TCP header (1) are removed, so the data received by APP2 is an ACK packet, thus completing the second handshake.

[0306] For example, APP2 can send a SYN packet again to conduct a third handshake with the business server. The process of the first handshake described above can be referred to, and will not be repeated here.

[0307] For example, after APP2 and the business server perform a three-way handshake, a socket2 connection can be established.

[0308] For example, APP2 can interact with the business server in parallel through socket1 and socket2.

[0309] For example, if APP2 is a video application, while a user is watching video 1 on APP2, the service server can divide video 1 into two groups of service data packets (each group may include multiple service data packets), and then send these two groups of service data to APP2 through socket1 and socket2 connections respectively. Specifically, Modem1 in a 4G phone can receive one group of service data packets sent by the service server, and then transmit the service data packets to APP2 through cellular network card 1. Modem2 in a 5G phone case can receive the other group of service data packets from the service server, and then transmit the service data packets to APP2 through cellular network card 2 → network proxy service → USB network card 2 → USB network card 1. The processing of service data packets by the network card and network proxy service in this process can be referenced... Figure 6b and the corresponding description (where, Figure 6b The source data in this example is the business data packet, which will not be elaborated further here. This increases downlink bandwidth and reduces downlink latency.

[0310] For example, if APP2 is a live streaming application, when a user uploads video 2 using APP2, APP2 can divide video 2 into two groups of service data packets (each group can include multiple service data packets), and then send these two groups of service data to the service server through socket1 and socket2 connections respectively. Specifically, APP2 can send one group of service data packets to the service server via cellular network 1 in a 4G phone → Modem1. APP2 can also send the other group of service data packets to the service server via USB network card 1 in a 4G phone → USB network card 2 in a 5G phone case → network proxy service → cellular network card 2 → Modem2. The processing of service data packets by the network card and network proxy service in this process can be referenced... Figure 6a and the corresponding description (where, Figure 6a The source data in this example is the business data packet, which will not be elaborated further here. This increases uplink bandwidth and reduces uplink latency.

[0311] It should be noted that, for example, Figure 6a After receiving data A1, USB network adapter 1 can also send data A1 directly to USB network adapter 2 without encapsulating it. USB network adapter 2 then forwards data A1 to a network proxy service, which performs NAT translation on data A1. For example... Figure 6b After receiving data B2, USB network adapter 2 can also choose not to encapsulate data B2 and directly send data B2 to USB network adapter 1, which then sends data B2 to APP2. In other words, this embodiment does not limit whether the USB network adapter encapsulates or decapsulates the received data.

[0312] Figure 7a This is a schematic diagram of the connection as an example.

[0313] For example, after a 4G phone and a 5G phone case are connected via USB, the 4G phone and the 5G phone case can also establish a Wi-Fi connection. Then, the 4G phone can establish a socket2 connection with the business server through the Wi-Fi connection with the 5G phone case.

[0314] For example, the user clicks Figure 4a In option 406 of (2), the 4G phone responds to the user's operation and displays the mobile network management interface of the phone case. Then, the user can open the hotspot of the 5G phone case and set the name and password of the 5G phone case hotspot through the operation of the mobile network management interface. At this time, the 5G phone case can be used as an AP (Wireless Access Point).

[0315] For example, a user can access the phone's WLAN management interface through the settings app on their 4G phone, and then connect to the 5G phone case's hotspot by selecting the wireless network with the 5G phone case's hotspot name and entering the corresponding password. In this way, the 4G phone can act as a STA (Station) to access the 5G phone case.

[0316] Figure 7b This is a schematic diagram illustrating a communication connection as an example.

[0317] Reference Figure 7b For example, after a 4G phone establishes a Wi-Fi connection with a 5G phone case, the Wi-Fi network card 1 in the 4G phone and the Wi-Fi network card 2 in the 5G phone case can establish a Wi-Fi connection.

[0318] For example, you can refer to the description above to activate the SIM2 card in the 5G phone case, which will not be repeated here.

[0319] Figure 7c This is a schematic diagram illustrating a communication connection as an example.

[0320] For example, targeting Figure 7c Please refer to the above text. Figure 5b The description will not be repeated here.

[0321] It should be noted that, Figure 7c and Figure 5b The difference is that, Figure 7c In this context, the 4G phone and the 5G phone case communicate via a Wi-Fi connection between Wi-Fi network card 1 and Wi-Fi network card 2. In other words, Figure 7c The socket1 connection is the data path between APP2, cellular network card 1, modem1, and service server. The socket2 connection can include socket2a and socket2b. The socket2a connection is the data path between APP2, Wi-Fi network card 1, Wi-Fi network card 2, and network proxy service. The socket2b connection is the data path between network proxy service, cellular network card 2, modem2, and service server.

[0322] In one possible approach, the Wi-Fi connection between Wi-Fi network card 1 and Wi-Fi network card 2 can be a Layer 3 (network layer) connection. Therefore, after receiving data, Wi-Fi network card 1 and Wi-Fi network card 2 need to encapsulate the data according to the corresponding communication protocol before forwarding the encapsulated data. For example, the communication protocol between Wi-Fi network card 1 and Wi-Fi network card 2 can be the TCP / IP protocol.

[0323] Figure 7d The diagram illustrates data transmission as an example.

[0324] For example, targeting Figure 7d Please refer to the above text. Figure 6a The description will not be repeated here.

[0325] It should be noted that, Figure 7d and Figure 6a The difference is that, Figure 7c The source IP address in the IP header (1) of data A1 is the IP address of Wi-Fi network card 1, such as rstu. The source IP address in the IP header (2) is the IP address of Wi-Fi network card 1, and the destination IP address is the IP address of Wi-Fi network card 2. The source port in the TCP header (2) is the port in Wi-Fi network card 1 used to communicate with Wi-Fi network card 2, and the destination port is the port in Wi-Fi network card 2 used to communicate with Wi-Fi network card 1.

[0326] Figure 7e The diagram illustrates data transmission as an example.

[0327] For example, targeting Figure 7e Please refer to the above text. Figure 6b The description will not be repeated here.

[0328] It should be noted that, Figure 7e and Figure 6b The difference is that, Figure 7c In the IP header (1) of data B2, the destination IP address is the IP address of Wi-Fi network card 1, such as rstu. In the IP header (2), the destination IP address is the IP address of Wi-Fi network card 1, and the source IP address is the IP address of Wi-Fi network card 2. In the TCP header (2), the destination port is the port of Wi-Fi network card 1 used to communicate with Wi-Fi network card 2, and the source port is the port of Wi-Fi network card 2 used to communicate with Wi-Fi network card 1.

[0329] In one possible approach, the Wi-Fi connection between Wi-Fi interface card 1 and Wi-Fi interface card 2 can be a Layer 2 (data link layer) connection. Therefore, after receiving data, Wi-Fi interface cards 1 and 2 can directly forward the data.

[0330] Figure 8a The diagram illustrates data transmission as an example.

[0331] For example, targeting Figure 8a Please refer to the above text. Figure 6a The description will not be repeated here.

[0332] It should be noted that, Figure 8aand Figure 6a The difference lies in the fact that after receiving data A1, Wi-Fi network card 1 can forward data A1 directly to Wi-Fi network card 2 without processing it. In other words, Wi-Fi network card 2 also receives data A1. Consequently, Wi-Fi network card 2 does not need to decapsulate data A1 but directly sends it to the network proxy service.

[0333] Figure 8b The diagram illustrates data transmission as an example.

[0334] For example, targeting Figure 8b Please refer to the above text. Figure 6b The description will not be repeated here.

[0335] It should be noted that, Figure 8b and Figure 6b The difference lies in the fact that after receiving data B2, Wi-Fi network card 2 can forward data B2 directly to Wi-Fi network card 1 without processing it. In other words, the data received by Wi-Fi network card 1 is also data B2. Consequently, Wi-Fi network card 1 does not need to decapsulate data B2 but directly sends data B2 to APP 2.

[0336] It should be understood that 4G phones can also establish Wi-Fi P2P (Peer to Peer) connections with 5G phone cases. For example, users can enter the phone case sharing interface by clicking the Huawei Share option in Figure 4 (2); and enter the phone sharing interface by clicking the Huawei Share application icon in the main interface of the 4G phone. Then users can operate in the phone case sharing interface and the phone sharing interface to establish a Wi-Fi P2P connection between the 4G phone and the 5G phone case. At this time, the socket2 connection can include socket2a connection and socket2b connection. The socket2a connection is the data path between APP2—P2P network card 1—P2P network card 2—network proxy service. The socket2b connection is the data path between network proxy service—cellular network card 2—Modem2—service server. The process of APP2 establishing a TCP / IP connection with the service server, and the process of APP2 interacting with the service server for business data, and the data processing methods of P2P network card 1 and P2P network card 2 can be referred to Figure 7d and Figure 7e Or, refer to Figure 8a and Figure 8b .

[0337] It should be understood that 4G phones can also establish Bluetooth connections with 5G phone cases. For example, users can enter the phone case Bluetooth management interface by clicking the Bluetooth management option in Figure 4(2); and enter the phone Bluetooth management interface from the settings application of the 4G phone. Then users can operate in the phone case Bluetooth management interface and the phone Bluetooth management interface to establish a Bluetooth connection between the 4G phone and the 5G phone case. At this time, the socket2 connection can include socket2a connection and socket2b connection. The socket2a connection is the data path between APP2—Bluetooth network card 1—Bluetooth network card 2—network proxy service, and the socket2b connection is the data path between network proxy service—cellular network card 2—Modem2—service server. The process of APP2 establishing a TCP / IP connection with the service server, and the process of APP2 interacting with the service server for business data, and the data processing methods of Bluetooth network card 1 and Bluetooth network card 2 can be referred to Figure 7d and Figure 7e Or, refer to Figure 8a and Figure 8b .

[0338] It should be noted that one possible scenario is that the 4G phone uses a Wi-Fi network, while the 5G phone case uses a cellular network. In this case, the 4G phone can coordinate its own connected Wi-Fi network and the 5G phone case's cellular network to interact with the service server. In this situation, socket 1 established between APP2 and the service server can be a data channel between APP2, Wi-Fi network card 1, Wi-Fi hardware module 1, and the service server.

[0339] Another possible scenario is that both the 4G phone and the 5G phone case use Wi-Fi. In this case, the 4G phone can coordinate its own Wi-Fi network and the 5G phone case's Wi-Fi network to interact with the service server. In this scenario, the socket1 connection established between APP2 and the service server can be a data channel between APP2, Wi-Fi network card 1, Wi-Fi hardware module 1, and the service server. Similarly, the socket2 connection established between APP2 and the service server can be a data channel between APP2, USB network card 1, USB network card 2, network proxy service, Wi-Fi network card 2, Wi-Fi hardware module 2, and the service server.

[0340] For example, the user clicks Figure 4aIn option 405 of (2), the 4G phone responds to the user's operation by displaying the WLAN management interface of the phone case; then the user's operation in the WLAN management interface controls the 5G phone case to connect to the Wi-Fi network. At this time, it is not necessary to activate the SIM2 card in the 5G phone case.

[0341] Another possible scenario is that 4G uses a cellular network, while the 5G phone case uses a Wi-Fi network. In this case, the 4G phone can coordinate its own cellular network and the Wi-Fi network connected to the 5G phone case to interact with the service server. In this scenario, the socket1 connection established between APP2 and the service server can be a data channel between APP2—cellular network card 1—Modem1—service server. The socket2 connection established between APP2 and the service server can be a data channel between APP2—USB network card 1—USB network card 2—network proxy service—Wi-Fi network card 2—Wi-Fi hardware module 2—service server. In this case, it is not necessary to activate the SIM2 card in the 5G phone case.

[0342] For example, in a scenario where a 4G phone can only use Wi-Fi (e.g., the 4G phone has no SIM card, no credit on the SIM card, or the SIM card is out of service area), and the 5G phone case uses cellular networks, when using authentication-related applications (such as financial apps or banking applications) on the 4G phone, the authentication app needs to package the source IP address along with the authentication data and send it to the service server. The service server, in addition to authenticating the authentication data in the data packet, also needs to authenticate the source IP address in the data packet to determine if the source IP address is a cellular network IP address. If it determines that the source IP address in the data packet is not a cellular network IP address, the authentication will fail, and the user will be unable to use the authentication-related application. However, when the 4G phone uses Wi-Fi, the authentication data sent by the 4G phone through socket1 includes the Wi-Fi network card's IP address as the source IP address along with the authentication data. When a 4G phone sends authentication data via a socket2 connection, it uses the IP address of its Wi-Fi, Bluetooth, P2P, or USB network adapter as the source address, packaging it together with the authentication data. However, the IP addresses of these adapters are not cellular network addresses, so the service server will not authenticate based on the source IP address. Therefore, in this embodiment, after establishing the cellular network adapter 2 in the 5G phone case, a virtual cellular network adapter corresponding to the cellular network adapter 2 in the 4G phone is constructed. Subsequently, authentication apps can establish a TCP / IP connection with the service server through the virtual cellular network adapter, and then use the virtual cellular network adapter's IP address as the source IP address, packaging it together with the authentication data and sending it to the service server through this TCP / IP connection. In this way, the service server can identify that the source IP address in the data packet is a cellular network address, thus authenticating based on the source IP address.

[0343] Figure 9a This is a schematic diagram illustrating a communication connection as an example.

[0344] Reference Figure 9aFor example, after SIM2 in the 5G phone case is activated, the 5G phone case can create a cellular network card 2 compatible with Modem2 in the 5G phone, and the 5G phone case can send a notification message to the 4G phone indicating that SIM2 in the 5G phone case has been activated. The 4G phone can respond to this notification message, build a virtual cellular network card in the 4G phone, and assign a virtual IP address to the virtual cellular network card 2 based on the IP address of cellular network 2. For example, during the authentication process of the source IP address, the service server only verifies the first three segments of the source IP address, and can then obtain the address of the virtual cellular network card by offsetting the last segment of the IP address of cellular network card 2. For example, if the IP address of cellular network card 2 is 100.100.100.5, then the address of the virtual cellular network card could be 100.100.100.8. It should be noted that since the 5G phone case accesses the internet through the cellular network, data is still transmitted from the terminal to the server through the cellular data path, and there will be no data security issues.

[0345] Figure 9b This is a schematic diagram illustrating a communication connection as an example.

[0346] Reference Figure 9b (1) For example, APP2 can establish a socket1 connection with the business server through the Wi-Fi network card 1 and Wi-Fi hardware module 1 in a 4G mobile phone. (Refer to...) Figure 9b (2) For example, the socket1 connection is the data path between APP2, Wi-Fi network card 1, Wi-Fi hardware module 1 and business server. It can be seen that the socket1 connection is actually a TCP / IP connection between APP2 and business server.

[0347] For example, the source IP address of the socket1 connection is the IP address of Wi-Fi network card 1, and the destination IP address is the IP address of the service server. For instance, if the IP address of Wi-Fi network card 1 is rstu and the IP address of the service server is EFGH, then the source IP address of the socket1 connection is rstu and the destination IP address is EFGH.

[0348] Reference Figure 9b (1) For example, APP2 can establish a socket2 connection with the service server through the virtual cellular network card in the 4G mobile phone, USB network card 1, USB network card 2 in the 5G mobile phone case, network proxy service in the 5G mobile phone case, cellular network card 2 in the 5G mobile phone case, and Modem2 in the 5G mobile phone case. (Refer to...) Figure 9b(3) For example, a socket2 connection may include a socket2a connection and a socket2b connection. The socket2a connection is created by APP2 and serves as the data path between APP2, the virtual cellular network interface card (NIC), USB NIC 1, USB NIC 2, and the network proxy service. The socket2b connection is created based on the socket2a connection and serves as the data path between the network proxy service, cellular NIC 2, Modem2, and the service server. Therefore, the socket2a and socket2b connections together form another TCP / IP connection between APP2 and the service server.

[0349] For example, the source IP address of a socket2a connection is the IP address of the virtual cellular network interface card (NIC), and the destination IP address is the IP address of the service server. For instance, if the IP address of the virtual cellular NIC is ABCE and the IP address of the service server is EFGH, then the source IP address of the socket2a connection will be ABCE, and the destination IP address will be EFGH.

[0350] For example, the source IP address of the socket2b connection is the IP address of cellular network card 2, and the destination IP address is the IP address of the service server. For instance, if the IP address of cellular network card 2 is ABCD and the IP address of the service server is EFGH, then the source IP address of the socket2b connection is ABCD and the destination IP address is EFGH.

[0351] For example, APP2 can establish a socket connection with the business server by performing a three-way handshake. The process of APP2 establishing a socket1 connection with the business server can be found in existing protocols and will not be elaborated here. The following is an exemplary description of the process of APP2 establishing a socket2 connection with the business server.

[0352] Figure 9c This is a schematic diagram illustrating data transmission as an example.

[0353] For example, APP2 first sends a SYN (synchronize) packet to the business server to initiate the first handshake. (See reference...) Figure 9cFor example, the source data sent by APP2 is a SYN packet. For example, after APP2 sends the SYN packet, the SYN packet is appended with a TCP header and an IP header and is passed to the virtual cellular network card. For ease of explanation later, the SYN packet with the appended IP header and TCP header can be referred to as data A1, the IP header added to the SYN packet can be referred to as IP header (1), and the TCP header added to the SYN packet can be referred to as TCP header (1).

[0354] For example, the TCP header (1) may include a source port and a destination port. The source port is the port bound to socket2a in the 4G mobile phone, such as PROT1, and the destination port is the port bound to socket2 in the service server, such as PROT16. The IP header (1) includes a source IP address and a destination IP address. The source IP address is the IP address of the virtual cellular network card, such as ABCE, and the destination IP address is the IP address of the service server, such as EFGH.

[0355] For example, the virtual cellular network card may not process data A1 and may directly forward data A1 to the USB network card 1.

[0356] For example, a 4G mobile phone and a 5G phone case communicate via a USB data cable using either TCP / IP or UDP / IP (User Datagram Protocol / Internet Protocol) protocols. That is, the USB connection can be either a TCP / IP connection or a UDP / IP connection; this embodiment does not impose any limitation on this. This embodiment uses the USB connection between a 4G mobile phone and a 5G phone case as an example of a TCP / IP connection for illustrative purposes.

[0357] Continue to refer to Figure 9c After receiving data A1, USB network card 1 can encapsulate the corresponding TCP header (2) and IP header (2) on data A1 according to the TCP / IP protocol between USB network card 1 and USB network card 2 to obtain data A2.

[0358] For example, the TCP header (2) may also include a source port and a destination port, where the source port is the port in USB network card 1 used to communicate with USB network card 2, and the destination port is the port in USB network card 2 used to communicate with USB network card 1. The IP header (2) also includes a source IP address and a destination IP address, where the source IP address is the IP address of USB network card 1, and the destination IP address is the IP address of USB network card 2.

[0359] For example, after USB network card 1 encapsulates data A2, it can send data A2 to USB network card 2 based on the connection between USB network card 1 and USB network card 2.

[0360] For example, USB network card 2 can receive data A2, and then decapsulate data A2, removing the IP header (2) and TCP header (2) of data A2 to obtain data A3. Among them, data A3 is actually data A1.

[0361] For example, USB network card 2 can send data A3 to the network proxy service. After receiving data A3, the network proxy service can perform NAT translation on data A3 to obtain data A4. In essence, performing NAT translation on data A3 means converting the source IP address in the IP header (1) of data A3 from the IP address of the virtual cellular network card to the IP address of cellular network card 2, and converting the source port in the TCP header (1) from the port bound to socket 2a in the 4G mobile phone to the port bound to socket 2b in the 5G mobile phone case. For example, the port bound to socket 2b in the 5G mobile phone case can be an unused port in the 5G mobile phone case. Therefore, the source address in the IP header (1) of the obtained data A4 is ABCD, and the source port in the TCP header (1) is PROT0.

[0362] For example, after performing NAT translation, the network proxy service can record the network translation relationship, such as: ABCE / PROT1—ABCD / PROT0.

[0363] For example, after receiving data A4, the network proxy server can send data A4 to cellular network card 2. Cellular network card 2 encapsulates data A4 and then passes the encapsulated data A4 to Modem2. Modem2 processes the encapsulated data A4 and then sends it to the service server. The service server can then receive the SYN packet sent by APP2, completing the first handshake between APP2 and the service server.

[0364] Figure 9d This is a schematic diagram illustrating data transmission as an example.

[0365] For example, after receiving the SYN packet from APP2, the service server can return an ACK (ACK knowledge) packet to APP2. For example, Modem2 in the 5G phone case can receive the ACK packet returned by the service server, and then transmit the ACK packet to cellular network card 2. After cellular network card 2 processes the data sent by Modem2, it can obtain data B1, such as... Figure 9b As shown. (Refer to...) Figure 9bFor example, the source data in data B1 is an ACK packet. The IP header (1) in data B1 includes a source IP address and a destination IP address. The destination IP address is the IP address of the cellular network card 2, such as ABCD, and the source IP address is the IP address of the service server, such as EFGH. The TCP header (1) may include a source port and a destination port. The destination port is the port bound to socket2b in the 5G phone case, such as PROT0, and the source port is the port bound to socket2 in the service server, such as PROT16.

[0366] For example, cellular network card 2 can send data B1 to a network proxy service. Then, the network proxy service performs NAT translation on data B1 according to the recorded network translation relationship, such as: ABCE / PROT1—ABCD / PROT0, to obtain data B2. For example, the NAT translation performed by the network proxy service on data B1 essentially changes the destination address in the IP header (1) of data B1 from ABCD to ABCE, and changes the destination port in the TCP header (1) from PROT0 to PROT1.

[0367] For example, the network proxy service can send data B2 to USB network card 2. After receiving data B2, USB network card 2 can encapsulate the data B2 with the corresponding TCP header (2) and IP header (2) according to the TCP / IP protocol between USB network card 1 and USB network card 2 to obtain data B3.

[0368] For example, the TCP header (2) may also include a source port and a destination port, where the destination port is the port in USB network card 1 used to communicate with USB network card 2, and the source port is the port in USB network card 2 used to communicate with USB network card 1. The IP header (2) also includes a source IP address and a destination IP address, where the destination IP address is the IP address of USB network card 1, and the source IP address is the IP address of USB network card 2.

[0369] For example, after USB network card 2 encapsulates and obtains data B3, it can send the data to USB network card 1 based on the connection between USB network card 1 and USB network card 2.

[0370] For example, USB network card 1 can receive data B3, and then decapsulate data B3, removing the IP header (2) and TCP header (2) of data B3 to obtain data B4. Among them, data B4 is actually data B2.

[0371] For example, USB network card 1 can send data B4 to the virtual cellular network card according to the destination port of TCP(1) in data B4.

[0372] For example, after receiving data B4, the virtual cellular network card can forward data B4 to APP2 without processing it. For example, before data B4 reaches APP2, the IP header (1) and TCP header (1) are removed, so the data received by APP2 is an ACK packet, thus completing the second handshake.

[0373] For example, APP2 can send a SYN packet again to conduct a third handshake with the business server. The process of the first handshake described above can be referred to, and will not be repeated here.

[0374] For example, after APP2 and the business server perform a three-way handshake, a socket2 connection can be established.

[0375] For example, APP2 can interact with the business server in parallel through socket1 and socket2.

[0376] For example, APP2 is a financial application. The socket2 connection established by APP2 is a data channel between: APP2—Virtual Cellular Adapter—USB Adapter 1—USB Adapter 2—Network Proxy Service—Cellular Adapter 2—Modem2—Business Server. After the user opens the financial application and enters their account and password, APP2 can use the entered account and password as authentication data. Then, it packages the authentication data and the IP address of the virtual cellular adapter and sends it to the business server via the virtual cellular adapter → USB Adapter 1 → USB Adapter 2 → Network Proxy Service → Cellular Adapter 2 → Modem2 in the 4G phone. After receiving the data packet, the business server can identify that the source IP address in the data packet is a cellular network address. At this point, the business server's authentication of the source address of the data packet is successful, and then it can authenticate the authentication data.

[0377] It should be understood that if a 4G phone uses a cellular network, a virtual cellular network card can also be established in the 4G phone when a cellular network card 2 is established in the 5G phone case. This application embodiment does not limit this.

[0378] It should be noted that when a 4G mobile phone uses both socket1 and socket2 connections simultaneously to interact with the service server, the actual throughput of the socket2 connection can be monitored in real time. When the actual throughput of the socket2 connection is detected to be lower than a preset throughput threshold, the socket2 connection can be closed, and only the socket1 connection can be used for data interaction, thereby reducing power consumption. The preset throughput threshold can be set according to requirements, and this embodiment does not impose any restrictions on it.

[0379] For example, for non-multi-stream concurrent applications (such as navigation applications, browser applications, shopping applications, etc.), when the actual throughput of socket1 connection is determined to be less than a preset throughput threshold, or the latency is greater than a preset latency threshold, socket1 connection can be closed and socket2 connection established. Data interaction with the business server can then be performed through socket2 connection. For example, during data interaction between a 4G mobile phone and the business server via socket2 connection, the actual throughput of socket2 connection can be monitored in real time. When the actual throughput of socket2 connection is detected to be less than the preset throughput threshold, socket2 connection can be closed and socket1 connection re-established. Data interaction with business data can then be performed using socket1 connection to reduce power consumption. The preset latency threshold can be set according to requirements, and this embodiment does not impose any limitations on it.

[0380] In one possible scenario, when Modem1 in the 5G phone case and Modem2 in the 4G phone are manufactured by the same company, after SIM2 in the 5G phone case is activated, a cellular network card 2 corresponding to Modem2 can be created in the 4G phone. In other words, the cellular network card is created remotely, while the 5G phone case does not create a cellular network card locally.

[0381] For example, a cellular network card 2 corresponding to Modem2 can be created in the local framework layer of a 4G mobile phone.

[0382] Figure 10a This is a schematic diagram illustrating a communication connection as an example.

[0383] Reference Figure 10a For example, the connection established between the 5G phone case and the 4G phone is a USB connection. After the 4G phone sends an activation instruction to the 5G phone case via the USB connection, the 5G phone case can respond to the activation instruction and activate the SIM2 card. At this time, the 5G phone case can use the SIM2 card to connect to the network. For example, after the 5G phone case successfully activates the SIM2 card, it can generate a network card creation instruction and send the network card creation instruction to the 4G phone via the USB connection. The network creation instruction includes the IP address assigned by the base station to which the 5G phone case is connected.

[0384] For example, after receiving a network card creation instruction, a 4G mobile phone can, in response to the network card creation instruction, create a cellular network card 2 within its own device and set the IP address of the cellular network card 2 to the IP address assigned by the base station to which the 5G mobile phone casing is connected, as included in the network creation instruction.

[0385] Figure 10b This is a schematic diagram illustrating a communication connection as an example.

[0386] Reference Figure 10b (1) For example, APP2 can establish a socket1 connection with the service server through the cellular network card 1 and Modem1 in a 4G mobile phone. (Refer to...) Figure 10b (2) For example, the socket1 connection is the data path between APP2, cellular network card 1, modem1 and service server. It can be seen that the socket1 connection is actually a TCP / IP connection between APP2 and service server.

[0387] For example, the source IP address of the socket1 connection is the IP address of cellular network card 1, and the destination IP address is the IP address of the service server. For instance, if the IP address of cellular network card 1 is abcd and the IP address of the service server is EFGH, then the source IP address of the socket1 connection is abcd and the destination IP address is EFGH.

[0388] Reference Figure 10b (1) For example, APP2 can establish a socket2 connection with the service server through the cellular network card 2 in a 4G mobile phone, the USB network card 1 in a 5G mobile phone case, the USB network card 2 in a 5G mobile phone case, and the Modem2 in a 5G mobile phone case. (Refer to...) Figure 9b (3) For example, the socket2 connection can be a data path between APP2—cellular network card 2—USB network card 1—USB network card 2—Modem2—service server. It can be seen that the socket2 connection is essentially another TCP / IP connection between APP2 and the service server.

[0389] For example, the source IP address of the socket2 connection is the IP address of cellular network card 2, and the destination IP address is the IP address of the service server. For instance, if the IP address of cellular network card 2 is ABCD and the IP address of the service server is EFGH, then the source IP address of the socket2 connection is ABCD and the destination IP address is EFGH.

[0390] For example, refer to Figure 9c and 10b After receiving data A1, cellular network card 2 can encapsulate data A1 into data that Modem 2 can recognize, such as data A1', and then send data A1' to USB network card 1. The processing procedures for USB network card 1 and USB network card 2 can be found in the section above. Figure 9cThe description will not be repeated here. For example, assuming that USB network adapter 2 obtains data A3' after decapsulation, the data transfer module can then transfer data A3' to Modem2 without requiring a network proxy service to perform NAT translation on data A3'. Similarly, after Modem2 receives data, the data transfer module can transfer the data to USB network adapter 2 without requiring NAT translation on the data source.

[0391] In one possible scenario (such as a densely populated area or a high-volume call scenario), when the communication capabilities of mobile phone A cannot meet the user's needs, mobile phone A can establish a connection with mobile phone B. In this way, mobile phone A can coordinate its own cellular capabilities (or wireless communication capabilities) and mobile phone B's cellular capabilities (or wireless communication capabilities) to interact with the service server, thereby increasing bandwidth and reducing data transmission latency.

[0392] For example, both mobile phone A and mobile phone B are 4G phones, or both mobile phone A and mobile phone B are 5G phones, or both mobile phone A and mobile phone B are 6G phones, etc. For example, mobile phone A is a 4G phone and mobile phone B is a 5G phone, or mobile phone A is a 5G phone and mobile phone B is a 6G phone, etc. It should be understood that the embodiments of this application do not limit the wireless communication technology used by mobile phone A and mobile phone B.

[0393] For example, the SIM card of mobile phone A is operated by a first operator, and the SIM card of mobile phone B is operated by a second operator. The first operator may be the same or different; this embodiment of the application does not impose any restrictions on this.

[0394] Figure 11 This is a schematic diagram of the connection as an example.

[0395] Reference Figure 11 For example, mobile phone A can establish a Wi-Fi connection with mobile phone B. It should be understood that mobile phone A and mobile phone B can also establish one of the following connections: Wi-Fi P2P connection, Bluetooth connection, and USB connection. The embodiments of this application do not limit the connection method between mobile phone A and mobile phone B.

[0396] Figure 12a This is a schematic diagram of the interface as an example.

[0397] Reference Figure 12a (1) For example, 1201 is the main interface of mobile phone A. The main interface 1201 of mobile phone A includes one or more controls, including but not limited to: application icons (e.g., application icons of Huawei Share application, application icons of browser application, application icons of settings application 1202), network identifiers, battery identifiers, etc.

[0398] For example, when a user clicks on the application image 1202 of the settings app, phone A responds to the user's action by displaying the settings interface, such as... Figure 12a As shown in 1203 of (2). For example, the settings interface 1203 may include one or more controls, including but not limited to: account options, Bluetooth options, mobile network options, desktop and wallpaper options, data sharing option 1204, network card management options, and application management options, etc. When the user clicks the data sharing option 1204, mobile phone A responds to the user's action by displaying the data sharing interface, such as... Figure 12a As shown in 1205 of (3). For example, the traffic sharing interface 1205 may include one or more controls, including but not limited to: request sharing option 1206, active sharing option 1207, and traffic management option 1208.

[0399] For example, when the active sharing option in the data sharing interface of mobile phone B is in the off state, if the request sharing option 1206 in the data sharing interface 1205 of mobile phone A is in the off state, the user can slide the switch of the request sharing option 1206 in the data sharing interface 1205 of mobile phone A to request mobile phone B to share mobile phone B's data path. For example, after the user slides the switch of the request sharing option 1206, mobile phone A can respond to the user's operation and send a sharing request information to mobile phone B. The sharing request information is used to request the sharing of the data path.

[0400] For example, when the active sharing option in the data sharing interface of mobile phone B is in the off state, if the request sharing option 1206 in the data sharing interface 1205 of mobile phone A is in the on state, then after mobile phone A and mobile phone B establish a Wi-Fi connection, mobile phone A can send a sharing request information to mobile phone B.

[0401] For example, after receiving a sharing request from phone A, phone B can display a sharing request prompt interface. For example, the sharing request prompt interface includes one or more controls, including but not limited to: an "Agree" option and a "Deny" option. For example, the sharing request prompt interface can also display sharing request information, such as "Phone A requests to share its mobile network." If the user clicks the "Agree" option, phone B, in response to the user's action, returns an "Agree to share" response to phone A, and phone A can then share phone B's data channel via Wi-Fi connection. If the user clicks the "Deny" option, phone B, in response to the user's action, returns a "Deny" response to phone A, and phone A cannot share phone B's data channel via Wi-Fi connection.

[0402] For example, after receiving the consent sharing response message from phone B, during the user's use of the application on phone A, phone A's application can establish a socket1 connection with the service server based on its own cellular network card 1 and modem 1, and phone A can establish a socket2 connection with the service server based on Wi-Fi network card 1, Wi-Fi network card 2, network proxy service, cellular network card 2, and modem 2. The process of phone A and phone B establishing socket1 and socket2 connections can be referred to the description of the process of establishing socket1 and socket2 connections between 4G phones and 5G phone cases, and will not be repeated here.

[0403] For example, the process of an application in mobile phone A interacting with the business server in parallel through socket1 and socket2 can be referred to the process of an application in a 4G mobile phone interacting with the business server in parallel through socket1 and socket2, which will not be repeated here.

[0404] For example, when the active sharing option in the data sharing interface of mobile phone B is turned on, after mobile phone A and mobile phone B establish a Wi-Fi connection, mobile phone B receives the sharing request information sent by mobile phone A and directly returns a sharing agreement response information to mobile phone A. There is no need to display the sharing request prompt interface on mobile phone B, nor is there any need for the user to operate in the sharing request prompt interface.

[0405] In one possible approach, when the user's SIM card has sufficient data, the user can click... Figure 12a (3) In the data traffic management option 1208, the mobile phone responds to the user's operation and displays the data traffic management interface, such as Figure 12a (4) As shown in 1209. For example, the data traffic management interface may include one or more controls, including but not limited to data traffic purchase option 1210 and data traffic sale option 1211. When a user clicks on data traffic sale option 1211, the phone responds to the user's action by displaying the data traffic sale interface. The user can browse the data traffic sale rules and prices on the sale interface, and then sell data traffic according to their needs. For example, after a user sells data traffic, Figure 12a (2) The active sharing option 1207 can be automatically set to the on state without the need for manual operation by the user.

[0406] In one possible approach, when a user's SIM card data limit is low, they can click the data purchase option 1210. The phone will respond to this action by displaying a data purchase interface. The user can browse the data purchase rules and prices on the interface and then purchase data according to their needs. For example, after purchasing data, Figure 12a (2) The switch for requesting sharing selection 1206 can be automatically set to the on state without manual operation by the user.

[0407] Figure 12b This is a schematic diagram illustrating a communication connection as an example.

[0408] For example, targeting Figure 12b You can refer to Figure 5b The description will not be repeated here.

[0409] It should be noted that, Figure 12b In the process of maintaining socket1 and socket2 connections between APP2 on mobile phone A and the business server, when mobile phone B is using APP2, mobile phone B can establish a socket3 connection with the business server based on the network proxy service, cellular network card 2, and modem2 in mobile phone B. For example, as shown... Figure 12b As shown in (4), the socket3 connection can refer to the data path between APP2-network proxy service-cellular network card 2-Modem2-service server in mobile phone B.

[0410] For example, the source IP address of the socket3 connection is the IP address of cellular network card 2, i.e., ABCD. The destination address of the socket3 connection is the address of the service server. If APP2 in mobile phone A and APP2 in mobile phone B are the same APP, then the service server connected to by socket3 and the service server connected to by socket2 may be the same server. In this case, the destination address of the socket3 connection can be EFGH.

[0411] For example, when APP2 in mobile phone B sends data to the service server through socket3, the network proxy server recognizes that the data is application layer data in mobile phone B. It can send the data directly to cellular network card 2 without performing NAT translation, and then send it to the service server through Modem2.

[0412] For example, cellular network card 2 can receive data A from APP2 in mobile phone A returned by the service server, and data B from APP2 in mobile phone B returned by the service server.

[0413] For example, data A is shown in Table 1:

[0414] Table 1

[0415]

[0416] For example, data B is shown in Table 2:

[0417] Table 2

[0418]

[0419] For example, the source IP address and destination IP address in data A are the same as those in data B, but the port bound to socket3 in mobile phone B is different from the port bound to socket2b. Therefore, the network proxy service can perform NAT translation based on the destination IP address and destination port of the received data according to the pre-recorded network translation relationship, thereby determining whether to send the data received by cellular network card 2 to USB network card 1 or to APP2 in mobile phone B.

[0420] For example, since the network conversion relationship recorded by the network proxy service is: wxyz / PROT1—ABCD / PROT0, the network proxy service can convert data A into data C, as shown in Table 3:

[0421] Table 3

[0422]

[0423] Then the network proxy service can send data C to USB network card 1, and then refer to... Figure 6b Data C is transmitted to APP2 on phone A. Since data B does not have a corresponding network conversion relationship, the network proxy service can send data B to APP2 on phone B.

[0424] Figure 13 This is a schematic diagram of the connection as an example.

[0425] For example, phone A can establish a Wi-Fi connection with phone B and a Bluetooth connection with phone C. In this way, phone A can coordinate its own cellular capabilities (or wireless communication capabilities), the cellular capabilities (or wireless communication capabilities) of phone B, and the cellular capabilities (or wireless communication capabilities) of phone C to interact with the server, thereby increasing bandwidth and reducing data transmission latency.

[0426] For example, application A on mobile phone can establish a socket1 connection with the service server based on its own cellular network card 1 and modem 1. Application A on mobile phone can also establish a socket2 connection with the service server based on Wi-Fi network card 1 on mobile phone A, Wi-Fi network card 2 on mobile phone B, network proxy service on mobile phone B, cellular network card 2 on mobile phone B, and modem 2 on mobile phone B. Similarly, application A on mobile phone can establish a socket3 connection with the service server based on Bluetooth network card 1 on mobile phone A, Bluetooth network card 2 on mobile phone C, network proxy service on mobile phone C, cellular network card 2 on mobile phone C, and modem 2 on mobile phone C. These details are as described above and will not be repeated here.

[0427] It should be understood that mobile phone A can establish a Wi-Fi connection with mobile phone B and mobile phone C. Mobile phone A can also establish a Bluetooth connection with mobile phone B and mobile phone C. Mobile phone A can also connect via USB and establish a Wi-Fi connection with mobile phone C. Mobile phone A can establish a Wi-Fi connection with mobile phone B and a USB connection with mobile phone C, and so on; that is to say, the embodiments of this application do not limit the connection methods of mobile phone A with mobile phone B and mobile phone C.

[0428] It should be understood that the embodiments of this application do not limit the number of mobile phones connected to mobile phone A. In other words, the embodiments of this application do not limit how many mobile phone data paths mobile phone A can access.

[0429] For example, when mobile phone A, mobile phone B, and mobile phone C are all connected via Wi-Fi, mobile phone A may include at least two Wi-Fi network cards, one of which is connected to the Wi-Fi network card in mobile phone B, and the other of which is connected to the Wi-Fi network card in mobile phone C.

[0430] For example, when mobile phones A, B, and C are all connected via Wi-Fi, mobile phone A may contain only one Wi-Fi network card, which can act as an access point (AP). The Wi-Fi network cards in mobile phones B and C are both connected to the Wi-Fi network card of mobile phone A. Furthermore, mobile phone A also has a traffic splitting module. When the Wi-Fi network card in mobile phone A receives service data from an application, the traffic splitting module can distribute the service data to mobile phone B or mobile phone C according to preset traffic splitting rules. For example, the traffic splitting rules can be set as needed, and this embodiment does not limit this.

[0431] For example, when the traffic distribution module determines to distribute service data to mobile phone B, it can do so according to... Figure 7dThe method is to add an IP header (2) and a TCP header (2) to the received data. The destination IP address in the IP header (2) is the IP address of the Wi-Fi network card in mobile phone B, and the destination port in the TCP header (2) is the port in the Wi-Fi network card of mobile phone A that communicates with the Wi-Fi network card of mobile phone B.

[0432] For example, when the traffic distribution module determines to distribute service data to mobile phone B, it follows the... Figure 7d The method is to add an IP header (2) and a TCP header (2) to the received data. The destination IP address in the IP header (2) is the IP address of the Wi-Fi network card in mobile phone C, and the destination port in the TCP header (2) is the port in the Wi-Fi network card of mobile phone A that communicates with the Wi-Fi network card of mobile phone C.

[0433] Figure 14 This is a schematic diagram of the connection as an example.

[0434] For example, a tablet computer (Wi-Fi ONLY) can establish a Wi-Fi connection with a mobile phone B. In this way, the tablet computer can work together its own wireless communication capabilities and the mobile phone's cellular capabilities (or wireless communication capabilities) to interact with the server, thereby increasing bandwidth and reducing data transmission latency.

[0435] For example, authentication apps on a tablet can connect to a mobile phone via Wi-Fi and use the phone's cellular capabilities to interact with the business server. This is similar to the description above and will not be repeated here.

[0436] For example, after mobile phone A shares the communication capabilities of mobile phone B, since different communication methods differ in bandwidth, latency, stability, and cost, and different types of applications running simultaneously have different requirements for communication capabilities, this application embodiment can match the corresponding network card for different applications based on application type, network card performance, and user preferences to improve user experience.

[0437] For example, the application type may include at least one of the following: high throughput, low latency, low cost, and balanced application. It should be understood that the application type may also include other categories, and this embodiment of the application does not limit this.

[0438] Figure 15 The interface diagram is shown as an example.

[0439] For example, a user can click Figure 12a (2) Network card management options: The mobile phone displays the network card management interface in response to the user's operation, such as... Figure 15As shown in 1501 in (1). For example, the network card management interface 1501 may include one or more controls, including but not limited to: cellular network card 1 management option 1502, cellular network card 2 management option, virtual cellular network card 1 management option, virtual cellular network card 2 management option, and Wi-Fi network card management option, etc.

[0440] For example, when a user clicks on the cellular network card 1 management option 1502, the mobile phone responds to the user's operation by displaying the management interface of the cellular network card 1, such as... Figure 15 As shown in 1503 of (2). For example, the management interface 1503 of the cellular network interface card 1 may include one or more controls, including but not limited to status options, priority options, user preference options, and traffic billing options. For example, a user can turn the cellular network interface card 1 on or off by sliding the switch of the status option. For example, a user can enter the network interface card priority setting interface by clicking the priority option, and then set the priority of the cellular network interface card 1 in the network interface card priority setting interface. For example, a user can enter the preference setting interface by clicking the user preference option, and then set the preference for the cellular network interface card 1 in the preference setting interface. For example, a user can enter the traffic billing details interface by clicking the traffic billing option, and view the traffic billing details. For example, the management interface 1503 of the cellular network interface card 1 also displays performance information of the cellular network interface card 1, including but not limited to: bandwidth, latency, packet loss rate, stability, etc.

[0441] For example, when a new network card that can be used to connect to a server is added to the mobile phone, the network card performance can be detected, the network card performance information can be obtained, and in... Figure 15 (1) Add the corresponding network card management option.

[0442] For example, a user can click the application management option in Figure 12(2), and the phone will respond to the user's operation by displaying the application management interface, such as... Figure 15 As shown in 1504 of (3). For example, the application management interface 1504 may include one or more controls, including but not limited to: application 1 management option 1505, application 2 management option, application 3 management option, application 4 management option, application 5 management option and application 6 management option, etc.

[0443] For example, when a user clicks on the management option 1505 of application 1, the phone responds to the user's action by displaying the management interface of application 1, such as... Figure 15As shown in 1506 of (4). For example, the management interface 1506 of application 1 may include one or more controls, including but not limited to network card binding options, application type setting options, etc. For example, by clicking the network card binding option, a user can enter the network card binding option interface and then set the network card bound to the application. For example, by clicking the application type setting option, a user can enter the application type setting interface and then set the application type of application 1.

[0444] For example, for high-throughput applications on 4G phones, users can set a virtual cellular network card created based on the cellular network card in a 5G phone or 5G phone case as the network card bound to that high-throughput application.

[0445] For example, for high-throughput applications on 4G phones, users can set the Wi-Fi network card 1, which is connected to the Wi-Fi network card 2 in the 5G phone or 5G phone case, as the network card bound to the high-throughput application.

[0446] For example, a 4G phone includes two SIM cards: a SIMA card and a SIMB card. When the SIMA card in a 4G phone has a data-free plan for a specific application, the SIMA card in the 4G phone can be set as the network card bound to that specific application.

[0447] For example, for low-data-cost applications on tablets, in the absence of WiFi, users can set the Wi-Fi network card 1 connected to the tablet and the phone's Wi-Fi network card 2 as the network card bound to the low-data-consumption application on the tablet.

[0448] For example, when the user does not set the application type, the electronic device can determine the application type of the application.

[0449] For example, an electronic device can determine the application type based on the type information carried by the application. The electronic device can also determine the application type based on feedback from users across the network regarding the application, and so on.

[0450] For example, when a new application is added to a mobile phone, the electronic device can determine the application type of the new application and... Figure 15 (3) Add corresponding application management options to the application management interface.

[0451] Figure 16 This is a schematic diagram illustrating a data processing flow as an example.

[0452] S1601 determines whether the application has the corresponding network card configuration information when establishing a socket connection.

[0453] For example, when an application establishes a socket connection, it can select the network card that matches the application from among multiple network cards on the phone that can connect to the business server.

[0454] For example, when a user has configured a specific network interface card (NIC) for the application, the NIC used to establish a socket connection can be assigned to the application based on the user's configuration. When the user has not configured a specific NIC for the application, the phone can assign a NIC to the application based on the network performance of each NIC and the application type.

[0455] For example, when a user sets up a network card to be bound to the application, the phone can store the network card configuration information corresponding to the application.

[0456] For example, the network interface card (NIC) configuration information corresponding to the application can be searched first. If the NIC configuration information is found, it means that the user has set up a bound NIC for the application; in this case, S1602 can be executed. If the NIC configuration information is not found, it means that the user has not set up a bound NIC for the application; in this case, S1604 can be executed.

[0457] S1602 determines the network card bound to the application based on the network card configuration information.

[0458] For example, once the network interface card (NIC) configuration information corresponding to the application is found, the NIC bound to the application can be determined based on the NIC configuration information.

[0459] S1603 establishes a socket connection based on the network card bound to the application.

[0460] For example, after determining the network interface card (NIC) that the user has configured to be bound to the application, a socket connection can be established for the application based on that NIC. In this way, the application can establish a socket connection on the NIC bound to it by the user, communicate with the business server, and thus meet the user's requirements for the application's communication capabilities, improving the user experience.

[0461] For example, for high-throughput applications on 4G phones, users can set a virtual cellular network card created based on the cellular network card in a 5G phone or 5G phone case as the network card bound to that high-throughput application.

[0462] For example, for high-throughput applications on 4G phones, users can set the Wi-Fi network card 1, which is connected to the Wi-Fi network card 2 in the 5G phone or 5G phone case, as the network card bound to the high-throughput application.

[0463] For example, a 4G phone includes two SIM cards: a SIMA card and a SIMB card. When the SIMA card in a 4G phone has a data-free plan for a specific application, the SIMA card in the 4G phone can be set as the network card bound to that specific application.

[0464] For example, for low-data-cost applications on tablets, in the absence of WiFi, users can set the Wi-Fi network card 1 connected to the tablet and the phone's Wi-Fi network card 2 as the network card bound to the low-data-consumption application on the tablet.

[0465] S1604 retrieves the application type of the application and the network card performance information of multiple network cards.

[0466] For example, the network card in the mobile phone may include a network card that can directly interact with the service server, for example, Figure 5b Cellular network card 1 in the middle, Figure 9b Wi-Fi network card 1 in the middle.

[0467] For example, the network card in the mobile phone may also include a network card that interacts with the service server via a connection to a network card in another electronic device, such as... Figure 5b USB network adapter 1 in the middle, Figure 7b Wi-Fi network card 1 in the middle, Figure 9a The virtual cellular network card in the middle, Figure 10b Cellular network card 2 in the middle.

[0468] For example, if the network card configuration information corresponding to the application is not found, the application type of the application and the network performance information of each network card can be obtained.

[0469] For example, when a user sets the corresponding application type for the application, the phone can store the application's type setting information.

[0470] Specifically, when the type setting information corresponding to the user's application is found, the application type set by the user for the application can be obtained from the type setting information; when the type setting information corresponding to the application is not found, the application type determined by the system for the application can be obtained. This application embodiment does not impose any restrictions on this.

[0471] The S1605 matches the best-performing network card to an application based on the network card performance information of multiple network cards and the application type of the application.

[0472] For example, based on the application type corresponding to the application, the network performance information of each network interface card (NIC) is used to calculate and determine the score of each NIC in the dimension corresponding to the application type. Then, based on the score of each NIC in the dimension corresponding to the application type, the optimal NIC is matched for the application.

[0473] For example, network performance information may include at least one of the following: bandwidth, latency, packet loss rate, and billing unit price. It should be understood that network interface card (NIC) performance information may also include more or fewer parameters than those shown above, and this embodiment of the application does not impose any limitations on this.

[0474] For example, if the application type is high-throughput, the score of each network interface card (NIC) in terms of throughput can be calculated based on the network performance information of each NIC, as shown in the following formula:

[0475] F_IO=a1*bandwidth+a2*rtt+a3*lossrate+a4*unitprice

[0476] Wherein, F_IO represents the network's score in the throughput dimension, bandwidth is the bandwidth level (the larger the bandwidth, the higher the level), RTT is the latency level (the lower the latency, the higher the level), lossrate is the packet loss rate level (the lower the packet loss rate, the higher the level), and unitprice is the billing unit price level (the lower the unit price, the higher the level). a1 is the weight corresponding to the bandwidth level, a2 is the weight corresponding to the latency level, a3 is the weight corresponding to the packet loss rate level, and a4 is the weight corresponding to the billing unit price level, where a1+a2+a3+a4=1. a1, a2, a3, and a4 can all be set according to requirements, and this application embodiment does not impose any restrictions on this. Optionally, a1 can be set relatively high to increase the weight of the network card throughput level.

[0477] For example, the network interface card with the highest F_IO (i.e., the highest throughput) can be selected as the optimal network interface card for the application.

[0478] For example, if the application type is low latency, the latency score of each network card can be calculated based on its network performance information, as shown in the following formula:

[0479] F_LATENCY=b1*bandwidth+b2*rtt+b3*lossrate+b4*unitprice

[0480] Wherein, F_LATENCY represents the network score in the latency dimension, bandwidth is the bandwidth level (the larger the bandwidth, the higher the level), RTT is the latency level (the lower the latency, the higher the level), lossrate is the packet loss rate level (the lower the packet loss rate, the higher the level), and unitprice is the billing unit price level (the lower the unit price, the higher the level). b1 is the weight corresponding to the bandwidth level, b2 is the weight corresponding to the latency level, b3 is the weight corresponding to the packet loss rate level, and b4 is the weight corresponding to the billing unit price level, where b1+b2+b3+b4=1. b1, b2, b3, and b4 can all be set according to requirements, and this application embodiment does not impose any restrictions on this. Optionally, b2 can be set relatively high to increase the weight of the network card latency level, and this application embodiment does not impose any restrictions on this.

[0481] For example, the network interface card with the highest F_LATENCY (i.e., lowest latency) can be selected as the optimal network interface card for the application.

[0482] For example, if the application type is low-cost, the cost score of each network card can be calculated based on its network performance information, as shown in the following formula:

[0483] F_COST=c1*bandwidth+c2*rtt+c3*lossrate+c4*unitprice

[0484] Wherein, F_COST represents the network score in the latency dimension, bandwidth is the bandwidth level (the larger the bandwidth, the higher the level), RTT is the latency level (the lower the latency, the higher the level), lossrate is the packet loss rate level (the lower the packet loss rate, the higher the level), and unitprice is the billing unit price level (the lower the unit price, the higher the level). c1 is the weight corresponding to the bandwidth level, c2 is the weight corresponding to the latency level, c3 is the weight corresponding to the packet loss rate level, and c4 is the weight corresponding to the billing unit price level, where c1+c2+c3+c4=1. c1, c2, c3, and c4 can all be set according to requirements, and this application embodiment does not impose any restrictions on this. Optionally, c4 can be set relatively high to increase the weight of the billing price level, and this application embodiment does not impose any restrictions on this.

[0485] For example, the network interface card with the highest F_COST (i.e., the lowest traffic cost) can be selected as the optimal network interface card for the application.

[0486] For example, if the application type is balanced, the performance score of each network card can be calculated based on the network performance information of each network card, as shown in the following formula:

[0487] F_BALANCE=d1*bandwidth+d2*rtt+d3*lossrate+d4*unitprice

[0488] Wherein, F_BALANCE represents the network's score in performance balancing, bandwidth is the bandwidth level (the larger the bandwidth, the higher the level), RTT is the latency level (the lower the latency, the higher the level), lossrate is the packet loss rate level (the lower the packet loss rate, the higher the level), and unitprice is the billing unit price level (the lower the unit price, the higher the level). d1 is the weight corresponding to the bandwidth level, d2 is the weight corresponding to the latency level, d3 is the weight corresponding to the packet loss rate level, and d4 is the weight corresponding to the billing unit price level. Here, d1+d2+d3+d4=1, and d1, d2, d3, and d4 can all be set according to requirements; this embodiment does not impose any restrictions on this.

[0489] For example, the network interface card with the largest F_BALANCE (i.e., the most balanced across all metrics) can be selected as the optimal network interface card for the application.

[0490] Of course, when the user sets the priority of each network, the priority information of each network card can also be obtained. Then, based on the priority information of each network card and the score of each network card in the dimension corresponding to the application type of the application, the optimal network card can be matched for the application. This application embodiment does not limit this.

[0491] The S1606 establishes a socket connection based on the optimal network interface card (NIC) that matches the application.

[0492] For example, after determining the optimal network interface card (NIC) configured by the user that matches the application, a socket connection can be established for the application based on this optimal NIC. In this way, the application can establish a socket connection on the optimal NIC to communicate with the business server, thereby meeting the communication capability requirements of various types of applications and improving the user experience.

[0493] For example, for high-throughput applications on 4G phones, a virtual cellular network card created based on the cellular network card in a 5G phone or 5G phone case can be used as the optimal network card to match the high-throughput application.

[0494] For example, for high-throughput applications on 4G phones, Wi-Fi network card 1 connected to Wi-Fi network card 2 in a 5G phone or 5G phone case can be the optimal network card for matching the high-throughput application.

[0495] In one example, Figure 17A schematic block diagram illustrating an embodiment of the present application shows an apparatus 1700. The apparatus 1700 may include a processor 1701 and a transceiver / transceiver pin 1702, and optionally, a memory 1703.

[0496] The various components of device 1700 are coupled together via bus 1704, which includes a data bus, a power bus, a control bus, and a status signal bus. However, for clarity, all buses are referred to as bus 1704 in the figure.

[0497] Optionally, the memory 1703 can be used for the instructions in the foregoing method embodiments. The processor 1701 can be used to execute the instructions in the memory 1703, control the receive pin to receive signals, and control the transmit pin to transmit signals.

[0498] Device 1700 may be an electronic device or a chip of an electronic device in the above method embodiments.

[0499] All relevant content of each step involved in the above method embodiments can be referenced from the functional description of the corresponding functional module, and will not be repeated here.

[0500] This embodiment also provides a computer storage medium storing computer instructions. When the computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the communication method in the above embodiment.

[0501] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the communication method described in the above embodiment.

[0502] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the communication methods in the above-described method embodiments.

[0503] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0504] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0505] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0506] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0507] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0508] Any content in the various embodiments of this application, as well as any content in the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0509] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0510] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

[0511] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.

[0512] Those skilled in the art will recognize that the functions described in the embodiments of this application in one or more of the above examples can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0513] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A communication method, characterized in that, Applied to a first electronic device, the method includes: The business data of the application in the first electronic device is divided into first source data and second source data; The first source data is sent to the service server corresponding to the application via the first network card in the first electronic device; the service server is a server that interacts with the application via a TCP / IP connection. The second source data is sent to the second network card in the first electronic device. Through the connection between the second network card and the third network card in the second electronic device, the second source data is sent to the third network card. The third network card then sends the second source data to the service server through the fourth network card in the second electronic device.

2. The method according to claim 1, characterized in that, Sending the second source data to the second network card in the first electronic device includes: Using the Internet Protocol IP address of the second network card as the source IP address and the IP address of the service server as the destination IP address, the second source data is encapsulated to obtain the first transmission data; The first transmission data is sent to the second network card.

3. The method according to claim 2, characterized in that, The step of sending the second source data to the third network card through the connection between the second network card and the third network card in the second electronic device, so that the third network card can send the second source data to the service server through the fourth network card in the second electronic device, includes: Through the connection between the second network card and the third network card, the first transmission data is sent to the third network card, so that the third network card sends the first transmission data to the network proxy service in the second electronic device. The network proxy service converts the source IP address of the first transmission data into the IP address of the fourth network card to obtain the second transmission data and sends the second transmission data to the service server through the fourth network card.

4. The method according to claim 2, characterized in that, The step of sending the second source data to the third network card through the connection between the second network card and the third network card in the second electronic device, so that the third network card can send the second source data to the service server through the fourth network card in the second electronic device, includes: The second network card uses its own IP address as the source IP address and the third network card's IP address as the destination IP address to encapsulate the first transmitted data, thereby obtaining the third transmitted data. Through the connection between the second network card and the third network card, the third transmission data is sent to the third network card, so that the third network card can decapsulate the information encapsulated by the second network card in the third transmission data to obtain the fourth transmission data and send the fourth transmission data to the network proxy service in the second electronic device. The network proxy service converts the source IP address of the fourth transmission data to the IP address of the fourth network card, and the fourth network card sends the address-converted fourth transmission data to the service server.

5. The method according to any one of claims 1 to 4, characterized in that, The first network card includes at least one of the following: a Wi-Fi network card and a cellular network card; The second network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card; The third network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card; The fourth network card includes at least one of the following: a Wi-Fi network card and a cellular network card.

6. The method according to any one of claims 1 to 5, characterized in that, The second source data includes one or more sets; The second electronic device includes one or more, and each set of second source data is sent to a third network card in a second electronic device.

7. The method according to any one of claims 1 to 6, characterized in that, The second electronic device is a device protection device that is matched with the first electronic device; The device protection device includes a processor, a communication module, and a USB module.

8. A communication method, characterized in that, Applied to a first electronic device, the method includes: The system receives first transmission data sent by a service server through a first network interface card (NIC) in the first electronic device; and receives second transmission data sent by a third NIC through a second NIC in the first electronic device based on the connection between the second NIC and a third NIC in the second electronic device; wherein the second transmission data is determined by the third NIC based on the received third transmission data, the third transmission data is obtained by performing network address translation on fourth transmission data, the fourth transmission data is received by the fourth NIC in the second electronic device and sent by the service server, the first transmission data includes first source data, the second transmission data, the third transmission data and the fourth transmission data all include second source data, the first source data and the second source data are obtained by the service server by dividing service data, and the service server is a server that interacts with the application through a TCP / IP connection; The first transmission data is sent to the application corresponding to the service server in the first electronic device, and the second transmission data is sent to the application corresponding to the first electronic device.

9. The method according to claim 8, characterized in that, The second transmission data includes two layers of encapsulation information. The outermost encapsulation information is the information encapsulated by the third network card using the IP address of the third network card as the source IP address and the IP address of the second network card as the destination IP address. The third transmission data is obtained by the network proxy service in the second electronic device converting the destination IP address in the fourth transmission data into the IP address of the second network card. The fourth transmission data is obtained by the service server encapsulating the second source data using the IP address of the service server as the source IP address and the IP address of the fourth network card as the destination IP address.

10. The method according to claim 9, characterized in that, Sending the second transmission data to the corresponding application in the first electronic device includes: The second network card decapsulates the outermost encapsulation information of the second transmitted data and sends the decapsulated second transmitted data to the corresponding application in the first electronic device.

11. A communication method, characterized in that, Applied to a first electronic device, the method includes: The business data of the application in the first electronic device is divided into first source data and second source data; The first source data is sent to the service server corresponding to the application via the first network card in the first electronic device; the service server is a server that interacts with the application via a TCP / IP connection. The second source data is sent to the second network card in the first electronic device, and the second network card sends the second source data to the third network card in the first electronic device. Through the connection between the third network card and the fourth network card in the second electronic device, the second source data is sent to the fourth network card, and the fourth network card sends the second source data to the service server through the fifth network card in the second electronic device.

12. The method according to claim 11, characterized in that, The step of sending the second source data to the second network card in the first electronic device and the second network card sending the second source data to the third network card in the first electronic device includes: Using the Internet Protocol IP address of the second network card as the source IP address and the IP address of the service server as the destination IP address, the second source data is encapsulated to obtain the first transmission data; The first transmission data is sent to the second network card, and the second network card sends the first transmission data to the third network card.

13. The method according to claim 12, characterized in that, The step of sending the second source data to the fourth network card through the connection between the third network card and the fourth network card in the second electronic device, so that the fourth network card can send the second source data to the service server through the fifth network card in the second electronic device, includes: Through the connection between the third network card and the fourth network card, the first transmission data is sent to the fourth network card, so that the fourth network card sends the first transmission data to the network proxy service in the second electronic device. The network proxy service converts the source IP address of the first transmission data into the IP address of the fifth network card to obtain the second transmission data. The second transmission data is then sent to the service server through the fifth network card.

14. The method according to claim 12, characterized in that, The step of sending the second source data to the fourth network card through the connection between the third network card and the fourth network card in the second electronic device, so that the fourth network card can send the second source data to the service server through the fifth network card in the second electronic device, includes: The third network interface card (NIC) uses its own IP address as the source IP address and the fourth network interface card's IP address as the destination IP address to encapsulate the first transmitted data, thereby obtaining the third transmitted data. The third transmission data is sent to the fourth network card through the connection between the third network card and the fourth network card. The fourth network card decapsulates the information encapsulated in the third transmission data to obtain the fourth transmission data. The fourth transmission data is then sent to the network proxy service in the second electronic device. The network proxy service converts the source IP address of the fourth transmission data to the IP address of the fifth network card. The fifth network card then sends the address-converted fourth transmission data to the service server.

15. The method according to any one of claims 11 to 14, characterized in that, The first network card includes at least one of the following: a Wi-Fi network card and a cellular network card; The third network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card; The fourth network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card; The fifth network card includes at least one of the following: a Wi-Fi network card and a cellular network card.

16. The method according to any one of claims 11 to 15, characterized in that, The fifth network card is a cellular network card, and the second network card is a virtual network card based on the fifth network card. The IP address of the second network card is obtained by offsetting the IP address of the fifth network card.

17. The method according to any one of claims 11 to 16, characterized in that, The second source data includes one or more sets; The second electronic device includes one or more, and each set of second source data is sent to a third network card in a second electronic device.

18. The method according to any one of claims 11 to 17, characterized in that, The second electronic device is a device protection device that is matched with the first electronic device; The device protection device includes a processor, a communication module, and a USB module.

19. A communication method, characterized in that, Applied to a first electronic device, the method includes: The system receives first transmission data sent by a service server through a first network interface card (NIC) in the first electronic device; and receives second transmission data sent by a fourth NIC through a third NIC in the first electronic device based on the connection between the third NIC and a fourth NIC in the second electronic device; wherein the second transmission data is determined by the fourth NIC based on the received third transmission data, the third transmission data is obtained by performing network address translation on the fourth transmission data, the fourth transmission data is received by a fifth NIC in the second electronic device and sent by the service server, the first transmission data includes first source data, the second transmission data, the third transmission data and the fourth transmission data all include second source data, the first source data and the second source data are obtained by the service server dividing the service data, and the service server is a server that interacts with the application through a TCP / IP connection; The first transmission data is sent to the application corresponding to the service server in the first electronic device, and the second transmission data is sent to the application through the second network card in the first electronic device.

20. The method according to claim 19, characterized in that, The second transmitted data includes two layers of encapsulation information. The outermost encapsulation information is the information encapsulated by the fourth network card into the third transmitted data, using the IP address of the fourth network card as the source IP address and the IP address of the third network card as the destination IP address. The third transmitted data is obtained by the network proxy service in the second electronic device converting the destination IP address in the fourth transmitted data received by the fifth network card into the IP address of the second network card. The fourth transmitted data is obtained by the service server encapsulating the second source data into the second source data, using the IP address of the service server as the source IP address and the IP address of the fifth network card as the destination IP address.

21. The method according to claim 20, characterized in that, Sending the second transmission data to the application via the second network card in the first electronic device includes: The third network card decapsulates the outermost encapsulation information of the second transmitted data, and the second network card sends the decapsulated second transmitted data to the corresponding application in the first electronic device.

22. A communication method, characterized in that, Applied to a first electronic device, the method includes: The business data of the application in the first electronic device is divided into first source data and second source data; The first source data is sent to the service server corresponding to the application via the first network card in the first electronic device; the service server is a server that interacts with the application via a TCP / IP connection. The second source data is sent to the second network card in the first electronic device and then to the third network card in the first electronic device via the second network card. The second source data is then sent to the fourth network card via the connection between the third network card and the fourth network card in the second electronic device, so that the second source data can be sent to the service server via the fourth network card.

23. The method according to claim 22, characterized in that, The first network card includes at least one of the following: a Wi-Fi network card and a cellular network card; The second network card is a cellular network card; The third network card includes at least one of the following: Wi-Fi network card, Wi-Fi P2P network card, Bluetooth network card, and Universal Serial Bus (USB) network card; The fourth network card includes at least one of the following: a Wi-Fi network card, a Wi-Fi P2P network card, a Bluetooth network card, and a Universal Serial Bus (USB) network card.

24. A communication method, characterized in that, Applied to a first electronic device, including: The system receives first transmission data sent by a service server through a first network interface card (NIC) in the first electronic device; and receives second transmission data sent by a fourth NIC through a third NIC in the first electronic device based on the connection between the third NIC and a fourth NIC in the second electronic device; wherein the second transmission data is determined by the fourth NIC based on the received third transmission data, the third transmission data is sent by the service server, the first transmission data includes first source data, and both the second and third transmission data include second source data, the first and second source data are obtained by the service server by dividing the service data, and the service server is a server that interacts with the application through a TCP / IP connection; The first transmission data is sent to the application corresponding to the service server in the first electronic device, and the second transmission data is sent to the application through the second network card in the first electronic device.

25. A connection establishment method, characterized in that, Applied to a first electronic device, the method includes: When an application establishes a connection with the business server corresponding to the application, the application type of the application and the network card performance information of multiple network cards in the first electronic device are obtained. The multiple network cards include a first network card that directly interacts with the business server and a second network card that interacts with the business server through a connection with a third network card in the second electronic device. The third network card is used to interact with the business server through a fourth network card in the second electronic device. The business server is a server that interacts with the application through a TCP / IP connection. Based on the application type of the application and the network card performance information of each network card, the network card with the best performance is matched for the application; A connection is established between the application and the corresponding business server based on the network interface card (NIC) with the best performance matching the application.

26. The method according to claim 25, characterized in that, When the application establishes a connection with the corresponding business server, the method further includes: If network interface card (NIC) configuration information corresponding to the application exists, the NIC bound to the application is found based on the NIC configuration information, and a connection is established between the application and the corresponding business server based on the NIC bound to the application. The NIC configuration information is the information of the NIC bound to the application by the user. If no network card configuration information corresponding to the application exists, then the step of obtaining the application type of the application and the network card performance information of multiple network cards in the first electronic device is executed.

27. An electronic device, characterized in that, include: A memory and a processor, wherein the memory is coupled to the processor; The memory stores program instructions that, when executed by the processor, cause the electronic device to perform the method performed by the first electronic device according to any one of claims 1 to 26.

28. A chip, characterized in that, The device includes one or more interface circuits and one or more processors; the interface circuits are configured to receive signals from the memory of the electronic device and send the signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device performs the method performed by the first electronic device according to any one of claims 1 to 26.

29. A computer storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed on a computer or processor, causes the computer or processor to perform the method as described in any one of claims 1 to 26.

30. A computer program product, characterized in that, The computer program product includes a software program that, when executed by a computer or processor, causes the steps of the method described in any one of claims 1 to 26 to be performed.

Citation Information

Patent Citations

  • Data transmission method, data transmission apparatus and electronic device

    CN103369013A

  • Wireless network-based multi-card router device and data transmission method thereof

    CN104702518A