CN115811748A - Communication method, system and electronic equipment - Google Patents
Communication method, system and electronic equipment Download PDFInfo
- Publication number
- CN115811748A CN115811748A CN202111069980.7A CN202111069980A CN115811748A CN 115811748 A CN115811748 A CN 115811748A CN 202111069980 A CN202111069980 A CN 202111069980A CN 115811748 A CN115811748 A CN 115811748A
- Authority
- CN
- China
- Prior art keywords
- network card
- data
- transmission data
- address
- electronic device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the application provides a communication method, a communication system and electronic equipment. The method comprises the following steps: dividing service data of an application program in first electronic equipment into first source data and second source data; on one hand, the first source data is sent to a business server through a first network card in the first electronic equipment; on the other hand, the second source data is sent to a second network card in the first electronic device, the second source data is sent to a third network card through the connection between the second network card and a third network card in the second electronic device, and the third network card sends the second source data to the service server through a fourth network card in the second electronic device. Therefore, the first electronic equipment can interact with the service server in parallel based on the data path of the first electronic equipment and the data path of the second electronic equipment, so that the bandwidth is increased, and the transmission delay is reduced.
Description
Technical Field
The embodiment of the application relates to the field of communication, in particular to a communication method, a communication system and electronic equipment.
Background
With the development of electronic technology and communication technology and the improvement of living standard of people, electronic products (such as mobile phones, tablet computers and the like) have been popularized to thousands of households.
However, in many scenarios (e.g., in homes with poor signal coverage, and in large traffic scenarios (e.g., tourist attractions), etc.), the communication capability of a single electronic device cannot meet the user's needs.
Disclosure of Invention
In order to solve the above technical problem, the present application provides a communication method, a communication system and an electronic device. In the method, the first electronic device can cooperate with the communication capability of the first electronic device and the communication capability of the second electronic device to perform data interaction with the server, so that the bandwidth can be increased, and the data transmission delay can be reduced.
In a first aspect, an embodiment of the present application provides a communication method, which is applied to a first electronic device, and the method includes: first, business data of an application program in first electronic equipment is divided into first source data and second source data. On one hand, the first source data are sent to a corresponding business server through a first network card in the first electronic equipment; on the other hand, the second source data is sent to a second network card in the first electronic device, and the second source data is sent to a 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 sends the second source data to the service server through a fourth network card in the second electronic device. Therefore, the first electronic device can send data to the service server in parallel based on the own data path and the data path of the second electronic device, the uplink bandwidth can be increased, and the uplink transmission delay can be reduced.
The application is exemplarily an application supporting multi-stream concurrency, where the application supporting multi-stream concurrency may refer to an application that can establish multiple TCP/IP (Transmission Control Protocol/Internet Protocol) connections in parallel, such as a video application, a game application, a live application, and the like.
For example, the application program may establish a TCP/IP connection with the service server through the first network card, and then may send data to the service server through the first network card.
For example, the application program may establish another TCP/IP connection with the service server through the second network card, the third network card, and the fourth network card, and may further send data to the service server through the second network card, the third network card, and the fourth network card in sequence.
Illustratively, the first electronic device includes a mobile phone, a tablet Computer, a PC (Personal Computer), a watch, and the like.
Illustratively, the second electronic device includes a mobile phone, a tablet Computer, a PC (Personal Computer), a watch, and the like.
Illustratively, the second electronic device includes a mobile phone shell, a tablet computer protective shell, a watch protective shell, and the like.
Illustratively, the second source data is the source data in FIG. 6 a.
Illustratively, the second source data is the source data in FIG. 7 d.
Illustratively, the second source data is the source data in FIG. 8 a.
According to the first aspect, the second source data comprises one or more groups; the second electronic device comprises one or more second source data, and each group of second source data is correspondingly sent to a third network card in the second electronic device.
According to the first aspect, or any implementation manner of the first aspect, sending the second source data to the second network card in the first electronic device includes: the IP address of the Internet interconnection protocol of the second network card is used as a source IP address, the IP address of the service server is used as a destination IP address, and second source data are packaged to obtain first transmission data; and sending the first transmission data to the second network card.
Illustratively, the first transmission data is data A1 in fig. 6 a.
Illustratively, the first transmission data is data A1 in fig. 7 d.
Illustratively, the first transmission data is data A1 in fig. 8 a.
According to the first aspect, or any implementation manner of the first aspect, the 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 sends the second source data to the service server through the fourth network card in the second electronic device, includes: and the first transmission data is sent to the third network card through the connection between the second network card and the third network card, so that the third network card sends the first transmission data to a network proxy service in the second electronic equipment, the network proxy service converts the source IP address of the first transmission data into the IP address of the fourth network card, the second transmission data is obtained, and the second transmission data is sent to the service server through the fourth network card. Therefore, the service data of the application program in the first electronic equipment can be transmitted to the service server through the second electronic equipment.
For example, when the second electronic device includes a plurality of second network cards, the first electronic device may include a plurality of second network cards, and each second network card is connected to a third network card of one second electronic device. In this way, a group of second source data can be sent to a third network card of a second electronic device through the connection between the second network card and the third network card of the second electronic device.
Illustratively, the second transmission data is data A2 in fig. 8 a.
According to the first aspect, or any implementation manner of the first aspect, the 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 sends the second source data to the service server through the fourth network card in the second electronic device, includes: the second network card packages the first transmission data by taking the IP address of the second network card as a source IP address and taking the IP address of the third network card as a destination IP address to obtain third transmission data; and the third network card is connected with the third network card, the third transmission data is sent to the third network card, the third network card decapsulates the information encapsulated by the second network card in the third transmission data to obtain fourth transmission data and sends the fourth transmission data to a network proxy service in the second electronic equipment, the network proxy service converts the source IP address of the fourth transmission data into the IP address of the fourth network card, and the fourth network card sends the fourth transmission data after address conversion to the service server.
Illustratively, when the second electronic device includes a plurality of second network cards, the first electronic device includes a plurality of second network cards, and each second network card is connected to a third network card of one second electronic device. In this way, a group of second source data can be sent to the third network card of a second electronic device through the connection between the second network card and the third network card of the second electronic device.
Illustratively, when the second electronic device includes a plurality of second electronic devices, the first electronic device includes a second network card, and the second network card is connected to a third network card of the plurality of second electronic devices, so that the group of second source data can be sent to the third network card of one second electronic device.
Illustratively, the third transmission data is data A2 in fig. 6a, the fourth transmission data is data A3 in fig. 6a, and the fourth transmission data after address conversion is data A4 in fig. 6 a.
Illustratively, the first transfer data is data A2 in fig. 7d, the fourth transfer data is data A3 in fig. 7d, and the fourth transfer data after address conversion is data A4 in fig. 7 d.
According to the first aspect, or any implementation manner of the first aspect, the first network card includes at least one of: a wireless fidelity Wi-Fi network card and a cellular network card;
the second network card includes at least one of: a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-Fi P2P network card, a Bluetooth network card and a universal serial bus USB network card;
the third network card includes at least one of: a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-Fi P2P network card, a Bluetooth network card and a universal serial bus USB network card;
the fourth network card includes at least one of: a wireless fidelity Wi-Fi network card and a cellular network card.
Optionally, the first network card is a cellular network card 1 in fig. 5b, the second network card is a USB (Universal Serial Bus) network card 1 in fig. 5b, the third network card is a USB network card 2 in fig. 5b, and the fourth network card is a cellular network card 2 in fig. 5 b.
According to the first aspect, or any implementation manner of the first aspect, the second electronic device is a device protection apparatus matched with the first electronic device; the equipment protection device comprises a processor, a communication module and a USB module.
Illustratively, the second electronic device includes a mobile phone shell, a tablet computer protective shell, a watch protective shell, and the like.
Illustratively, the processing capacity of the processor of the device protection apparatus is lower than the processing capacity of the processor in the first electronic device.
Illustratively, the communication module of the equipment protection device comprises a wireless communication module and/or a mobile communication module.
For example, the first electronic device and the device protection apparatus may be connected by a USB data line, and the device protection apparatus is powered by the first electronic device.
In a second aspect, an embodiment of the present application provides a communication method, which is applied to a first electronic device, and the method includes: receiving first transmission data sent by a service server through a first network card in first electronic equipment; receiving second transmission data sent by a third network card in the second electronic equipment through the second network card in the first electronic equipment based on the connection between the second network card and the third network card in the second electronic equipment; the second transmission data is determined by a third network card based on received third transmission data, the third transmission data is obtained by performing network address conversion on fourth transmission data, the fourth transmission data is received by a fourth network card of the second electronic device and sent by a service server, the first transmission data comprises first source data, the second transmission data, the third transmission data and the fourth transmission data comprise second source data, and the first source data and the second source data are obtained by dividing the service data by the service server; and then, the first transmission data are sent to the corresponding application program in the first electronic equipment, and the second transmission data are sent to the corresponding application program in the first electronic equipment. Therefore, the first electronic device can receive the data sent by the service server in parallel based on the own data path and the data path of the second electronic device, the downlink bandwidth can be increased, and the downlink transmission delay can be reduced.
Illustratively, the second transmission data is data B3 in fig. 6B, and the second source data is the source data in fig. 6B.
Illustratively, the second transmission data is data B3 in fig. 7d, and the second source data is the source data in fig. 7 d.
Illustratively, the second transmission data is data B2 in fig. 8B, and the second source data is the source data in fig. 8B.
Illustratively, the third transmission data is data B2 in fig. 6B, and the fourth transmission data is data B1 in fig. 6B.
Illustratively, the third transmission data is data B2 in fig. 7d, and the fourth transmission data is data B1 in fig. 7 d.
For example, the first transmission data may be a data packet sent by the service server, or may be data carried in the data packet sent by the service server.
For example, the fourth transmission data may be a data packet sent by the service server, or may be data carried in the data packet sent by the service server.
According to a second aspect, the second transmission data includes two layers of encapsulation information, the outermost layer of encapsulation information is information that the third network card encapsulates the third transmission data by using the IP address of the third network card as a source IP address and using the IP address of the second network card as a destination IP address, the third transmission data is obtained by converting the destination IP address in the fourth transmission data received by the fourth network card into the IP address of the second network card by the network proxy service in the second electronic device, and the fourth transmission data is obtained by encapsulating the second source data by using the IP address of the service server as a source IP address and using the IP address of the fourth network card as a destination IP address by the service server.
According to the second aspect, or any implementation manner of the second aspect, sending the second transmission data to a corresponding application program in the first electronic device includes: and the second network card is used for de-encapsulating the outermost layer encapsulation information of the second transmission data and sending the de-encapsulated second transmission data to the corresponding application program in the first electronic equipment.
Illustratively, the second transmission data after decapsulation is data B4 in fig. 6B.
Illustratively, the decapsulated second transmission data is data B4 in fig. 7 d.
In a third aspect, an embodiment of the present application provides a communication method, which is applied to a first electronic device, and the method includes: firstly, dividing service data of an application program in first electronic equipment into first source data and second source data; on one hand, the first source data are sent to the corresponding business server through a first network card in the first electronic equipment; on the other hand, the second source data is sent to a second network card in the first electronic device and sent to a third network card in the first electronic device by the second network card, and the second source data is sent to a fourth network card through the connection between the third network card and a fourth network card in the second electronic device, so that the fourth network card sends the second source data to a service server through a fifth network card in the second electronic device. Therefore, the first electronic equipment can send data to the service server in parallel based on the data path of the first electronic equipment and the data path of the second electronic equipment, the uplink bandwidth can be increased, and the uplink transmission delay is reduced.
Illustratively, the second source data is the source data in fig. 9 c.
According to a third aspect, the second source data comprises one or more groups; the second electronic device comprises one or more second source data, and each group of second source data is correspondingly sent to a third network card in the second electronic device.
According to the third aspect, or any implementation manner of the third aspect, the sending the second source data to the second network card in the first electronic device and the sending the second source data to the third network card in the first electronic device by the second network card includes: the IP address of the Internet interconnection protocol of the second network card is used as a source IP address, the IP address of the service server is used as a destination IP address, and second source data are packaged to obtain first transmission data; and sending the first transmission data to a second network card in the first electronic equipment and sending the first transmission data to a third network card in the first electronic equipment by the second network card.
Illustratively, the first transmission data is data A1 in fig. 9 c.
According to the third aspect or any implementation manner of the third aspect, the 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 sends the second source data to the service server through the fifth network card in the second electronic device, includes: and the first transmission data is sent to a fourth network card of the second electronic equipment through the connection between the third network card and the fourth network card in the second electronic equipment, so that the first transmission data is sent to a network proxy service in the second electronic equipment through the fourth network card, the source IP address of the first transmission data is converted into the IP address of a fifth network card through the network proxy service to obtain second transmission data, and the second transmission data is sent to the service server through the fifth network card. Therefore, the service data of the application program in the first electronic equipment can be transmitted to the service server through the second electronic equipment.
Illustratively, when the second electronic device includes a plurality of second network cards, the first electronic device includes a plurality of third network cards, and each third network card is connected to the fourth network card of one second electronic device. In this way, a group of second source data may be sent to the fourth network card of a second electronic device through the connection between a third network card and the fourth network card of the second electronic device.
According to the third aspect, or any implementation manner of the third aspect, the 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 sends the second source data to the service server through the fifth network card in the second electronic device, includes: the third network card takes the IP address of the third network card as a source IP address and takes the IP address of the fourth network card as a destination IP address, and the first transmission data is encapsulated to obtain third transmission data; and through the connection between the third network card and the fourth network card, the third transmission data is sent to the fourth network card of the second electronic device, so that the fourth network card of the second electronic device decapsulates the information encapsulated by the third network card in the third transmission data to obtain fourth transmission data and sends the fourth transmission data to the 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 into the IP address of the fifth network card, and the fourth transmission data after address conversion is sent to the service server through the fifth network card. Therefore, the service data of the application program in the first electronic equipment can be sent to the service server through the second electronic equipment.
Illustratively, when the second electronic device includes a plurality of second electronic devices, the first electronic device includes a plurality of third network cards, and each third network card is connected to a fourth network card of one second electronic device. In this way, a group of second source data may be sent to the fourth network card of a second electronic device through the connection between a third network card and the fourth network card of the second electronic device.
Illustratively, when the second electronic device includes a plurality of second electronic devices, the first electronic device includes a third network card, and the third network card is connected to a fourth network card of the plurality of second electronic devices, so that the group of second source data can be sent to the fourth network card of one second electronic device.
Illustratively, the third transmission data is data A2 in fig. 9c, the fourth transmission data is A3 in fig. 9c, and the converted fourth transmission data is data A4 in fig. 9 c.
According to the third aspect, or any implementation manner of the third aspect, the first network card includes at least one of the following: a wireless fidelity Wi-Fi network card and a cellular network card;
the third network card includes at least one of: a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-Fi P2P network card, a Bluetooth network card and a universal serial bus USB network card;
the fourth network card includes at least one of: a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-Fi P2P network card, a Bluetooth network card and a universal serial bus USB network card;
the fifth network card includes at least one of: a wireless fidelity Wi-Fi network card and a cellular network card.
Illustratively, the first network card is the Wi-Fi network card 1 in fig. 9b, the third network card is the USB network card 1 in fig. 9b, the fourth network card is the USB network card 1 in fig. 9b, and the fifth network card is the cellular network card 2 in fig. 9 b.
According to the third aspect or any implementation manner of the third aspect, the fifth network card is a cellular network card, the second network card is a virtual network card based on the fifth network card, and the IP address of the second network card is obtained by offsetting the IP address of the fifth network card. Therefore, when the first network card is a Wi-Fi network card, the authentication application program in the first electronic device can interact with the service server through the second network card and the second electronic device, so that the authentication application program can be used in a networking mode.
Illustratively, the fifth network card is the cellular network card 2 in fig. 9b, and the second network card is the virtual cellular network card in fig. 9 b.
According to the third aspect, or any implementation manner of the third aspect, the second electronic device is a device protection apparatus matched with the first electronic device; the equipment protection device comprises a processor, a communication module and a USB module.
In a fourth aspect, an embodiment of the present application provides a communication method, which is applied to a first electronic device, and the method includes: receiving first transmission data sent by a service server through a first network card in first electronic equipment; receiving second transmission data sent by a fourth network card in the second electronic equipment through the third network card in the first electronic equipment based on the connection between the third network card and the fourth network card in the second electronic equipment; the second transmission data is determined by a fourth network card based on received third transmission data, the third transmission data is obtained by performing network address conversion on fourth transmission data, the fourth transmission data is received by a fifth network card in the second electronic device and sent by a service server, the first transmission data comprises first source data, the second transmission data, the third transmission data and the fourth transmission data all comprise second source data, and the first source data and the second source data are obtained by dividing the service data by the service server; and then, the first transmission data are sent to the corresponding application program in the first electronic equipment, and the second transmission data are sent to the application program through a second network card in the first electronic equipment. Therefore, the first electronic device can receive the data sent by the service server in parallel based on the data path of the first electronic device and the data path of the second electronic device, the downlink bandwidth can be increased, and the downlink transmission delay can be reduced.
Illustratively, the second source data is the source data in fig. 9 d.
Illustratively, the second transmission data is data B3 in fig. 9 d.
Illustratively, the third transmission data is data B2 in fig. 9d, and the fourth transmission data is data B1 in fig. 9 d.
For example, the first transmission data may be a data packet sent by the service server, or may be data carried in the data packet sent by the service server.
For example, the fourth transmission data may be a data packet sent by the service server, or may be data carried in the data packet sent by the service server.
According to a fourth aspect, the second transmission data includes two layers of encapsulation information, the outermost layer of encapsulation information is information that the fourth network card encapsulates the third transmission data by using the IP address of the fourth network card as a source IP address and using the IP address of the third network card as a 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 received by the fifth network card into the IP address of the second network card, and the fourth transmission data is obtained by the service server encapsulating the second source data by using the IP address of the service server as a source IP address and using the IP address of the fifth network card as a destination IP address.
According to a fourth aspect, or any implementation manner of the fourth aspect, sending the second transmission data to the application program through the second network card in the first electronic device includes: and the third network card is used for de-encapsulating the outermost layer encapsulation information of the second transmission data, and the de-encapsulated second transmission data is sent to the corresponding application program in the first electronic equipment through the second network card.
Illustratively, the decapsulated second transmission data is data B4 in fig. 9 d.
In a fifth aspect, an embodiment of the present application provides a communication method, where the method includes: firstly, dividing service data of an application program in first electronic equipment into first source data and second source data; on one hand, the first source data are sent to the corresponding business server through a first network card in the first electronic equipment; on the other hand, the second source data is sent to a second network card in the first electronic device and sent to a third network card in the first electronic device through the second network card, and the second source data is sent to a fourth network card of the second electronic device through the connection between the third network card and the fourth network card in the second electronic device, so that the second source data is sent to the service server through the fourth network card of the second electronic device. Therefore, the first electronic device can send data to the service server in parallel based on the own data path and the data path of the second electronic device, the uplink bandwidth can be increased, and the uplink transmission delay can be reduced.
According to a fifth aspect, the first network card comprises at least one of: a wireless fidelity 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: a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-Fi P2P network card, a Bluetooth network card and a universal serial bus USB network card;
the fourth network card includes at least one of: a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-Fi P2P network card, a Bluetooth network card and a universal serial bus USB network card.
In this way, the second network card may encapsulate the second source data into data that can be identified by the modem in the second electronic device, and then the second electronic device may receive the data through the fourth network card, transmit the data to the modem, and send the data to the service server through the modem.
Illustratively, the second network card is the cellular network card 2 in fig. 10 a.
In a sixth aspect, an embodiment of the present application provides a communication method, where the method includes: receiving first transmission data sent by a service server through a first network card in first electronic equipment; receiving second transmission data sent by a fourth network card in the second electronic equipment through the third network card in the first electronic equipment based on the connection between the third network card and the fourth network card in the second electronic equipment; the first transmission data comprise first source data, the second transmission data are determined by the fourth network card based on received third transmission data, the third transmission data are sent by the service server, the first transmission data comprise the first source data, the second transmission data and the third transmission data comprise the second source data, and the first source data and the second source data are obtained by dividing the service data by the service server; and sending the first transmission data to a corresponding application program in the first electronic equipment, and sending the second transmission data to the application program through a second network card in the first electronic equipment. Therefore, the first electronic device can receive the data sent by the service server in parallel based on the own data path and the data path of the second electronic device, the downlink bandwidth can be increased, and the downlink transmission delay can be reduced.
For example, the first transmission data may be a data packet sent by the service server, or may be data carried in the data packet sent by the service server.
For example, the third transmission data may be a data packet sent by the service server, or may be data carried in the data packet sent by the service server.
In a seventh aspect, an embodiment of the present application provides a connection establishing method, which is applied to a first electronic device, and the method includes: when the application program is connected with the corresponding service server, acquiring the application type of the application program and network card performance information of a plurality of network cards in the first electronic equipment, wherein the network cards comprise the network card which directly performs data interaction with the service server and the network card which performs data interaction with the service server through the connection with the network card in the second electronic equipment; then, according to the application type of the application program and the network card performance information of each network card, matching the network card with the optimal performance for the application program; and then, establishing connection between the application program and the corresponding service server based on the network card with the optimal performance matched with the application program. Therefore, the network card with the optimal performance can be distributed to the application program according to the performance of the network card, and the connection with the service server is established, so that the data transmission delay can be reduced, and the user experience is improved.
According to a seventh aspect, when an application establishes a connection with a corresponding service server, the method further comprises: if the network card configuration information corresponding to the application program exists, searching a network card bound with the application program according to the network card configuration information, and establishing connection between the application program and a corresponding service server based on the network card bound with the application program, wherein the network card configuration information is information of the network card bound for the application program by a user; and if the network card configuration information corresponding to the application program does not exist, executing the step of acquiring the application type of the application program and the network card performance information of the plurality of network cards in the first electronic equipment. Therefore, the network card can be distributed to the application program according to the user setting, and the user experience is improved.
In an eighth aspect, an embodiment of the present application provides a communication system, which includes a first electronic device and a second electronic device, where: the system comprises a first electronic device, a second electronic device and a processing unit, wherein the first electronic device is used for dividing service data of an application program in the first electronic device into first source data and second source data; sending the first source data to a corresponding service server through a first network card in the first electronic equipment; sending the second source data to a second network card in the first electronic equipment, and sending the second source data to a third network card in the second electronic equipment through the connection between the second network card and the third network card; and the second electronic device is used for sending the second source data received by the third network card to a fourth network card in the second electronic device, and sending the second source data to the service server through the fourth network card.
Any one implementation manner of the eighth aspect and the eighth aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the eighth aspect and the eighth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, which are not described herein again.
In a ninth aspect, an embodiment of the present application provides a communication system, which includes a first electronic device and a second electronic device, where: the second electronic device is used for receiving fourth transmission data sent by the service server through a fourth network card in the second electronic device, then performing website address conversion on the fourth transmission data to obtain third transmission data, and then sending the third transmission data to a third network card in the second electronic device; and then, calling a third network card to determine second transmission data based on the third transmission data, and sending the second transmission data to a second network card of the first electronic device through the connection between the third network card and the second network card, wherein the second transmission data, the third transmission data and the fourth transmission data all comprise second source data. The first electronic equipment is used for receiving first transmission data sent by the service server through a first network card in the first electronic equipment; receiving second transmission data sent by a third network card in the second electronic equipment through the second network card in the first electronic equipment based on the connection between the second network card and the third network card in the second electronic equipment; the first transmission data comprise first source data, and the first source data and the second source data are obtained by dividing service data by a service server; and then, the first transmission data are sent to the corresponding application program in the first electronic equipment, and the second transmission data are sent to the corresponding application program in the first electronic equipment.
Any one of the ninth aspect and the ninth aspect corresponds to any one of the second aspect and the second aspect, respectively. For technical effects corresponding to any one of the implementations of the ninth aspect and the ninth aspect, reference may be made to the technical effects corresponding to any one of the implementations of the second aspect and the second aspect, which are not described herein again.
In a tenth aspect, an embodiment of the present application provides a communication system, which includes a first electronic device and a second electronic device, where: the system comprises a first electronic device, a second electronic device and a processing unit, wherein the first electronic device is used for dividing service data of an application program in the first electronic device into first source data and second source data; sending the first source data to a corresponding service server through a first network card in the first electronic equipment; the second source data are sent to a second network card in the first electronic equipment, the second network card sends the second source data to a third network card in the first electronic equipment, and the second source data are sent to a fourth network card in the second electronic equipment through connection between the third network card and the fourth network card; and the second electronic device is used for sending the second source data received by the fourth network card to a fifth network card in the second electronic device, and sending the second source data to the service server through the fifth network card.
Any one of the tenth aspect and the tenth aspect corresponds to any one of the third aspect and the third aspect, respectively. For technical effects corresponding to any one of the implementation manners of the tenth aspect and the tenth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the third aspect and the third aspect, and details are not repeated here.
In an eleventh aspect, an embodiment of the present application provides a communication system, which includes a first electronic device and a second electronic device, wherein: the second electronic device is used for receiving fourth transmission data sent by the service server through a fifth network card in the second electronic device and then sending the fourth transmission data to a fourth network card in the second electronic device; then, carrying out network address conversion on the fourth transmission data to obtain third transmission data; and then, calling a fourth network card to determine second transmission data based on the third transmission data, and sending the second transmission data to a third network card of the first electronic device through the connection between the fourth network card and the third network card, wherein the second transmission data, the third transmission data and the fourth transmission data all comprise second source data. The first electronic device is used for receiving first transmission data sent by the service server through a first network card in the first electronic device; receiving second transmission data sent by a fourth network card through a third network card in the first electronic device based on the connection between the third network card and the fourth network card; the first transmission data comprises first source data, and the first source data and the second source data are obtained by dividing service data by a service server; and sending the first transmission data to a corresponding application program in the first electronic equipment, and sending the second transmission data to the application program through a second network card in the first electronic equipment.
Any one implementation manner of the eleventh aspect and the eleventh aspect corresponds to any one implementation manner of the fourth aspect and the fourth aspect, respectively. For technical effects corresponding to any one of the implementation manners of the eleventh aspect and the eleventh aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the fourth aspect and the fourth aspect, and details are not repeated here.
In a twelfth aspect, an embodiment of the present application provides a communication system, which includes a first electronic device and a second electronic device, where: the system comprises a first electronic device, a second electronic device and a processing unit, wherein the first electronic device is used for dividing service data of an application program in the first electronic device into first source data and second source data; sending the first source data to a corresponding service server through a first network card in the first electronic equipment; sending the second source data to a second network card in the first electronic equipment, sending the second source data to a third network card in the first electronic equipment through the second network card, and sending the second source data to a fourth network card through the connection between the third network card and a fourth network card in the second electronic equipment; and the second electronic device is used for sending the second source data to the service server through the fourth network card.
Any one implementation manner of the twelfth aspect and the twelfth aspect corresponds to any one implementation manner of the fifth aspect and the fifth aspect, respectively. For technical effects corresponding to any one of the implementation manners of the twelfth aspect and the twelfth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the fifth aspect and the fifth aspect, and details are not repeated here.
In a thirteenth aspect, an embodiment of the present application provides a communication system, which includes a first electronic device and a second electronic device, where: and the second electronic device is used for receiving third transmission data sent by the service server through a fourth network card in the second electronic device, calling the fourth network card to determine second transmission data based on the third transmission data, and sending the second transmission data to the third network card of the first electronic device through the connection between the fourth network card and the third network card, wherein the second transmission data and the third transmission data both comprise second source data. The first electronic equipment is used for receiving first transmission data sent by the service server through a first network card in the first electronic equipment; receiving second transmission data sent by the fourth network card through a third network card in the first electronic device based on the connection between the third network card and the fourth network card; the first transmission data comprises first source data, and the first source data and the second source data are obtained by dividing service data by a service server; and sending the first transmission data to a corresponding application program in the first electronic equipment, and sending the second transmission data to the application program through a second network card in the first electronic equipment.
Any one of the implementations of the thirteenth aspect and the thirteenth aspect corresponds to any one of the implementations of the sixth aspect and the sixth aspect, respectively. For technical effects corresponding to any one of the implementations of the thirteenth aspect and the thirteenth aspect, reference may be made to the technical effects corresponding to any one of the implementations of the sixth aspect and the sixth aspect, and details are not repeated here.
In a fourteenth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory coupled with the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the communication method of the first aspect or any possible implementation of the first aspect.
Any one implementation manner of the fourteenth aspect and the fourteenth aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the fourteenth aspect and the fourteenth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not described here again.
In a fifteenth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory coupled with the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the second aspect or the method of communication in any possible implementation of the second aspect.
Any one implementation manner of the fifteenth aspect and the fifteenth aspect corresponds to any one implementation manner of the second aspect and the second aspect, respectively. For technical effects corresponding to any one of the implementation manners of the fifteenth aspect and the fifteenth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the second aspect and the second aspect, and details are not described herein.
In a sixteenth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory coupled with the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the third aspect or the communication method in any possible implementation manner of the third aspect.
Any one of the sixteenth and sixteenth aspects corresponds to any one of the third and fourth aspects, respectively. For technical effects corresponding to any one of the implementation manners of the sixteenth aspect and the sixteenth aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the third aspect and the third aspect, and details are not repeated here.
In a seventeenth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory coupled with the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the communication method of the fourth aspect or any possible implementation of the fourth aspect.
Any one implementation manner of the seventeenth aspect and the seventeenth aspect corresponds to any one implementation manner of the fourth aspect and the fourth aspect, respectively. For technical effects corresponding to any one of the seventeenth aspect and the seventeenth aspect, reference may be made to the technical effects corresponding to any one of the fourth aspect and the fourth aspect, and details are not repeated here.
In an eighteenth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory coupled with the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the communication method of the fifth aspect or any possible implementation of the fifth aspect.
Any one implementation manner of the eighteenth aspect and the eighteenth aspect corresponds to any one implementation manner of the fifth aspect and the fifth aspect, respectively. For technical effects corresponding to any one implementation manner of the eighteenth aspect and the eighteenth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the fifth aspect and the eighteenth aspect, and details are not repeated here.
In a nineteenth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory coupled with the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the communication method of the sixth aspect or any possible implementation of the sixth aspect.
Any one of the nineteenth aspect and the nineteenth aspect corresponds to any one of the sixth aspect and the sixth aspect, respectively. For technical effects corresponding to any one of the nineteenth aspect and the nineteenth aspect, reference may be made to the technical effects corresponding to any one of the above-mentioned sixth aspect and the sixth aspect, and details are not repeated here.
In a twentieth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, the memory coupled with the processor; the memory stores program instructions that, when executed by the processor, cause the electronic device to perform the seventh aspect or the connection establishment method of any possible implementation of the seventh aspect.
Any one implementation of the twentieth aspect corresponds to any one implementation of the seventh aspect. For technical effects corresponding to any one of the twentieth aspect and the twentieth aspect, reference may be made to the technical effects corresponding to any one of the seventh aspect and the seventh aspect, and details are not repeated here.
In a twenty-first aspect, an embodiment of the present application provides a chip, including one or more interface circuits and one or more processors; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending signals to the processor, and the signals comprise computer instructions stored in the memory; the computer instructions, when executed by a processor, cause an electronic device to perform the communication method of the first aspect or any possible implementation manner of the first aspect.
Any one implementation manner of the twenty-first aspect and the twenty-second aspect corresponds to any one implementation manner of the first aspect and the twenty-first aspect, respectively. For technical effects corresponding to any one of the twenty-first aspect and the twenty-first aspect, reference may be made to the technical effects corresponding to any one of the twenty-first aspect and the twenty-first aspect, and details are not repeated here.
In a twenty-second aspect, embodiments of the present application provide a chip comprising one or more interface circuits and one or more processors; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending the signals to the processor, and the signals comprise computer instructions stored in the memory; the computer instructions, when executed by a processor, cause an electronic device to perform the second aspect or the communication method in any possible implementation of the second aspect.
Any one implementation manner of the twenty-second aspect and the twenty-second aspect corresponds to any one implementation manner of the second aspect and the second aspect, respectively. For technical effects corresponding to any one of the twenty-second aspect and the twenty-second aspect, reference may be made to the technical effects corresponding to any one of the second aspect and the twenty-second aspect, and details are not repeated here.
In a twenty-third aspect, embodiments of the present application provide a chip, including one or more interface circuits and one or more processors; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending signals to the processor, and the signals comprise computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the communication method of the third aspect or any possible implementation of the third aspect.
Any one implementation manner of the twenty-third aspect and the twenty-third aspect corresponds to any one implementation manner of the third aspect and the twenty-third aspect, respectively. For technical effects corresponding to any one of the twenty-third aspect and the twenty-third aspect, reference may be made to the technical effects corresponding to any one of the twenty-third aspect and the twenty-third aspect, which are not described herein again.
In a twenty-fourth aspect, an embodiment of the present application provides a chip, including one or more interface circuits and one or more processors; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending signals to the processor, and the signals comprise computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the communication method of the fourth aspect or any possible implementation of the fourth aspect.
Any one implementation manner of the twenty-fourth aspect and the twenty-fourteenth aspect corresponds to any one implementation manner of the fourth aspect and the fourth aspect, respectively. For technical effects corresponding to any one implementation manner of the twenty-fourth aspect and the twenty-fourth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the fourth aspect and the fourth aspect, and details are not described here again.
In a twenty-fifth aspect, an embodiment of the present application provides a chip, including one or more interface circuits and one or more processors; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending the signals to the processor, and the signals comprise computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the communication method of the fifth aspect or any possible implementation of the fifth aspect.
Any one implementation manner of the twenty-fifth aspect and the twenty-fifth aspect corresponds to any one implementation manner of the fifth aspect and the fifth aspect, respectively. For a technical effect corresponding to any one implementation manner of the twenty-fifth aspect and the twenty-fifth aspect, reference may be made to the technical effect corresponding to any one implementation manner of the fifth aspect and the fifth aspect, and details are not repeated here.
In a twenty-sixth aspect, an embodiment of the present application provides a chip, including one or more interface circuits and one or more processors; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending signals to the processor, and the signals comprise computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the communication method of the sixth aspect or any possible implementation of the sixth aspect.
Any one implementation form of a twenty-sixth aspect corresponds to any one implementation form of the sixth aspect. For a technical effect corresponding to any one implementation manner of the twenty-sixth aspect and the twenty-sixth aspect, reference may be made to the technical effect corresponding to any one implementation manner of the sixth aspect and the sixth aspect, and details are not described here.
In a twenty-seventh aspect, an embodiment of the present application provides a chip, including one or more interface circuits and one or more processors; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending signals to the processor, and the signals comprise computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the connection establishment method of the seventh aspect or any possible implementation of the seventh aspect.
Any one of the twenty-seventh and twenty-seventh aspects corresponds to any one of the seventh and seventh aspects, respectively. For technical effects corresponding to any one of the twenty-seventh aspect and the twenty-seventh aspect, reference may be made to the technical effects corresponding to any one of the seventh aspect and the twenty-seventh aspect, and details are not repeated here.
In a twenty-eighth aspect, embodiments of the present application provide a computer storage medium, where a computer program is stored, and when the computer program runs on a computer or a processor, the computer or the processor is caused to execute the communication method in the first aspect or any possible implementation manner of the first aspect.
Any one implementation manner of the twenty-eighth aspect and the twenty-eighth aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the twenty-eighth aspect and the twenty-eighth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not repeated here.
In a twenty-ninth aspect, embodiments of the present application provide a computer storage medium, where a computer program is stored, and when the computer program runs on a computer or a processor, the computer or the processor is caused to execute the communication method in the second aspect or any possible implementation manner of the second aspect.
Any one implementation manner of the twenty-ninth aspect and the twenty-ninth aspect corresponds to any one implementation manner of the second aspect and the second aspect, respectively. For technical effects corresponding to any one of the twenty-ninth aspect and the twenty-ninth aspect, reference may be made to the technical effects corresponding to any one of the second aspect and the second aspect, which are not described herein again.
In a thirtieth aspect, embodiments of the present application provide a computer storage medium, where a computer program is stored, and the computer program is executed on a computer or a processor, so that the computer or the processor executes the communication method in the third aspect or any possible implementation manner of the third aspect.
Any one of the thirty-third and thirty-fourth aspects corresponds to any one of the thirty-third and thirty-fourth aspects, respectively. For technical effects corresponding to any one of the thirty-third and thirty-fourth implementation manners, reference may be made to the technical effects corresponding to any one of the third and thirty-fourth implementation manners, and details are not repeated here.
In a thirty-first aspect, embodiments of the present application provide a computer storage medium, where a computer program is stored, and when the computer program runs on a computer or a processor, the computer or the processor is caused to execute the communication method in any possible implementation manner of the fourth aspect or the fourth aspect.
Any one implementation manner of the thirty-first aspect and the thirty-second aspect corresponds to any one implementation manner of the fourth aspect and the fourth aspect, respectively. For technical effects corresponding to any one of the thirty-first aspect and the thirty-first aspect, reference may be made to the technical effects corresponding to any one of the implementation manners of the fourth aspect and the fourth aspect, and details are not repeated here.
In a thirty-second aspect, embodiments of the present application provide a computer storage medium, where a computer program is stored, and when the computer program runs on a computer or a processor, the computer or the processor is caused to execute the communication method in the fifth aspect or any possible implementation manner of the fifth aspect.
Any one implementation manner of the thirty-second aspect and the thirty-second aspect corresponds to any one implementation manner of the fifth aspect and the fifth aspect, respectively. For a technical effect corresponding to any one implementation manner of the thirty-second aspect and the thirty-second aspect, reference may be made to the technical effect corresponding to any one implementation manner of the fifth aspect and the thirty-second aspect, and details are not repeated here.
In a thirty-third aspect, the present application provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program runs on a computer or a processor, the computer or the processor is caused to execute the communication method in any possible implementation manner of the sixth aspect or the sixth aspect.
Any one implementation of the thirty-third aspect and the thirty-third aspect corresponds to any one implementation of the sixth aspect and the sixth aspect, respectively. For technical effects corresponding to any one of the thirty-third aspect and the thirty-third aspect, reference may be made to the technical effects corresponding to any one of the foregoing implementations of the sixth aspect and the sixth aspect, and details are not repeated here.
In a thirty-fourth aspect, an embodiment of the present application provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program runs on a computer or a processor, the computer or the processor is caused to execute the connection establishment method in any possible implementation manner of the seventh aspect or the seventh aspect.
Any one implementation manner of the thirty-fourth aspect and the thirty-fourth aspect corresponds to any one implementation manner of the seventh aspect and the seventh aspect, respectively. For technical effects corresponding to any one implementation manner of the thirty-fourth aspect and the thirty-fourth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the seventh aspect and the seventh aspect, and details are not repeated here.
In a thirty-fifth aspect, embodiments of the present application provide a computer program product comprising a software program that, when executed by a computer or a processor, causes the steps of the method of the first aspect or any possible implementation manner of the first aspect to be performed.
Any one implementation manner of the thirty-fifth aspect and the thirty-fifth aspect corresponds to any one implementation manner of the first aspect and the first aspect, respectively. For technical effects corresponding to any one implementation manner of the thirty-fifth aspect and the thirty-fifth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the first aspect and the first aspect, and details are not repeated here.
In a sixteenth aspect, embodiments of the present application provide a computer program product comprising a software program which, when executed by a computer or a processor, causes the steps of the method of the second aspect or any possible implementation manner of the second aspect to be performed.
Any one implementation manner of the thirty-sixth aspect and the thirty-sixth aspect corresponds to any one implementation manner of the second aspect and the second aspect, respectively. For technical effects corresponding to any one implementation manner of the thirty-sixth aspect and the thirty-sixth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the second aspect and the second aspect, and details are not described here.
In a thirty-seventh aspect, the present application provides a computer program product, which includes a software program, when executed by a computer or a processor, causes the steps of the method in the third aspect or any possible implementation manner of the third aspect to be performed.
Any one implementation manner of the thirty-seventh aspect and the thirty-seventh aspect corresponds to any one implementation manner of the third aspect and the third aspect, respectively. For technical effects corresponding to any one of the thirty-seventh aspect and the thirty-seventh aspect, reference may be made to the technical effects corresponding to any one of the third aspect and the third aspect, and details are not repeated here.
In a thirty-eighth aspect, embodiments of the present application provide a computer program product comprising a software program which, when executed by a computer or a processor, causes the steps of the method of the fourth aspect or any possible implementation manner of the fourth aspect to be performed.
Any one implementation manner of the thirty-eighth aspect and the thirty-eighteenth aspect corresponds to any one implementation manner of the fourth aspect and the fourth aspect, respectively. For technical effects corresponding to any one implementation manner of the thirty-eighth aspect and the thirty-eighth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the fourth aspect and the fourth aspect, which are not described herein again.
In a thirty-ninth aspect, the present application provides a computer program product comprising a software program which, when executed by a computer or a processor, causes the steps of the method of the fifth aspect or any possible implementation manner of the fifth aspect to be performed.
Any one implementation manner of the thirty-ninth aspect and the thirty-ninth aspect corresponds to any one implementation manner of the fifth aspect and the fifth aspect, respectively. For technical effects corresponding to any one implementation manner of the thirty-ninth aspect and the thirty-ninth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the fifth aspect and the fifth aspect, and details are not repeated here.
Fortieth, embodiments of the present application provide a computer program product comprising a software program which, when executed by a computer or a processor, causes the steps of the method of the sixth aspect or any possible implementation of the sixth aspect to be performed.
Fortieth aspects and fortieth aspects correspond to the sixth aspect and the sixth aspect, respectively. For technical effects corresponding to any one implementation manner of the forty-fourth aspect and the fortieth aspect, reference may be made to the technical effects corresponding to any one implementation manner of the sixth aspect and the sixtieth aspect, which are not described herein again.
Fortieth, an embodiment of the present application provides a computer program product, which includes a software program, when the software program is executed by a computer or a processor, the method steps in the seventh aspect or any possible implementation manner of the seventh aspect are executed.
Forty-first and forty-second implementation manners of the first and second aspects correspond to the respective implementation manners of the seventh and seventh aspects. For technical effects corresponding to any one of the forty-first and forty-second implementation manners, reference may be made to the technical effects corresponding to any one of the foregoing seventh and forty-second implementation manners, and details are not repeated here.
Drawings
Fig. 1 is a schematic diagram of a hardware configuration of an exemplary illustrated electronic device;
fig. 2 is a schematic diagram of a software structure of an exemplary electronic device;
FIG. 3a is a schematic diagram of an exemplary application scenario;
FIG. 3b is an exemplary illustration of a device connection;
FIG. 3c is a schematic diagram of an exemplary communication connection;
FIG. 4a is a schematic view of an exemplary interface;
FIG. 4b is a schematic diagram of an exemplary communication connection;
FIG. 5a is a schematic illustration of an exemplary connection;
FIG. 5b is a schematic view of an exemplary illustrated communication connection;
FIG. 6a is a schematic diagram of an exemplary data transmission;
FIG. 6b is a schematic diagram of an exemplary data transmission;
FIG. 7a is a schematic diagram of an exemplary connection;
FIG. 7b is a schematic diagram of an exemplary illustrated communication connection;
FIG. 7c is a schematic view of an exemplary communication connection;
FIG. 7d is a schematic diagram illustrating exemplary data transmission;
FIG. 7e is a schematic diagram illustrating exemplary data transmission;
FIG. 8a is a schematic diagram illustrating exemplary data transmission;
FIG. 8b is a schematic diagram illustrating exemplary data transmission;
FIG. 9a is a schematic diagram of an exemplary illustrated communication connection;
FIG. 9b is a schematic diagram of an exemplary communication connection;
FIG. 9c is a schematic diagram of an exemplary data transmission;
FIG. 9d is a schematic diagram of an exemplary illustrative data transmission;
FIG. 10a is a schematic diagram of an exemplary communication connection;
FIG. 10b is a schematic view of an exemplary illustrated communication connection;
FIG. 11 is an exemplary illustration of a connection;
FIG. 12a is a schematic view of an exemplary illustrated interface;
FIG. 12b is a schematic view of an exemplary communication connection;
FIG. 13 is an exemplary illustrative connection diagram;
FIG. 14 is an exemplary illustrative connection diagram;
FIG. 15 is an exemplary illustrative interface diagram;
FIG. 16 is a schematic diagram of an exemplary illustrative data processing flow;
fig. 17 is a schematic view of the structure of an exemplary illustrated apparatus.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second," and the like, in the description and in the claims of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first target object and the second target object, etc. are specific sequences for distinguishing different target objects, rather than describing target objects.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, the meaning of "a plurality" means two or more unless otherwise specified. For example, a plurality of processing units refers to two or more processing units; the plurality of systems refers to two or more systems.
Fig. 1 shows a schematic structural diagram of an electronic device 100. It should be understood that the electronic device 100 shown in fig. 1 is only one example of an electronic device, and that the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 1 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The electronic device 100 may include: the mobile terminal includes a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
Wherein the controller may be a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (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.
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 sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement a touch function of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 through an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through the I2S interface, so as to implement a function of receiving a call through a bluetooth headset.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive 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 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect 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 charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In other embodiments, the power management module 141 may be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including wireless communication of 2G/3G/4G/5G, etc. applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including WLAN (e.g., wireless fidelity (Wi-Fi) network), bluetooth (BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
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 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (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 a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the 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 for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in the external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The software system of the electronic device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 100.
Fig. 2 is a block diagram of a software structure of the electronic device 100 according to the embodiment of the present application.
The layered architecture of the electronic device 100 divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and Native framework layer (Native layer), and a kernel layer.
The application layer may include a series of application packages.
As shown in fig. 2, the application packages may include camera, gallery, calendar, call, map, WLAN, bluetooth, music, video, huaji share, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The local framework layer may include local services and system libraries.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide a fusion of the 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The local services may include: network proxy service, cellular network card, wi-Fi network card, bluetooth network card, USB network card, and the like.
The Network proxy service may be used for NAT (Network Address Translation) Translation.
The cellular network card can be used for encapsulating data transmitted by an application program into data that can be recognized by a Modem and for decapsulating data incoming from the Modem.
The Wi-Fi network card can be used for encapsulating data into data which can be sent through the Wi-Fi hardware module, or decapsulating data transmitted from the Wi-Fi hardware module.
The bluetooth network card may be used to encapsulate data into data that may be sent through the bluetooth hardware module, or decapsulate data incoming from the bluetooth hardware module.
The USB network card is used for encapsulating data into data capable of being transmitted through the USB data line and for de-encapsulating data incoming from the USB data line.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a Wi-Fi driver, a Bluetooth driver, an audio driver and a sensor driver.
It is to be understood that the components contained in the system framework layer, the system library and the runtime layer shown in fig. 2 do not constitute a specific limitation of the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components.
For example, when the communication capability of the electronic device (e.g., a mobile phone, a tablet computer, a watch, etc.) used by the user cannot meet the user requirement, a device protection device (e.g., a mobile phone shell, a tablet protection shell, a watch protection sleeve, etc., which has cellular capability and/or wireless communication capability) provided with a communication module (which may include a wireless communication module and/or a mobile communication module) may be purchased, and then the electronic device may be sleeved into the device protection device and connected to the device protection device, so that the electronic device may have the cellular capability and/or the wireless communication capability of the device protection device. Subsequently, the electronic device may cooperate with its own cellular capability (or wireless communication capability) and the cellular capability (or wireless communication capability) of the device protection apparatus to access the internet, thereby increasing the bandwidth and reducing the data transmission delay.
For example, after the electronic device is connected to the device protection apparatus, the internet access capability possessed by the electronic device may be the sum of the cellular capability (or wireless communication capability) of the electronic device itself and the cellular capability (or wireless communication capability) of the device protection apparatus.
The embodiment of the application takes the electronic equipment as the mobile phone, the equipment protection device as the mobile phone shell, and the mobile phone shell is provided with the mobile communication module as an example for explanation.
Fig. 3a is a schematic diagram of an exemplary application scenario.
Referring to fig. 3a, after the user puts a 4G (the 4th generation mobile communication technology, fourth generation mobile communication technology) mobile phone into the 5G mobile phone shell, the 4G mobile phone and the 5G mobile phone shell may be connected, so that the 4G mobile phone may have the cellular capability of the 5G mobile phone. Subsequently, the 4G mobile phone can perform data interaction with the server in cooperation with the cellular capability (wireless communication capability) of the 4G mobile phone and the cellular capability of the 5G mobile phone shell, so that the bandwidth can be increased, and the data transmission delay can be reduced.
In one possible approach, the mobile phone used by the user is a 4G mobile phone, and the mobile phone shell may be a 4G mobile phone shell. In one possible approach, the mobile phone used by the user is a 5G mobile phone, and the mobile phone shell may be a 5G mobile phone shell. In one possible mode, the mobile phone used by the user is a 5G mobile phone, and the mobile phone shell can be a 6G mobile phone shell; and so on. It should be understood that the embodiments of the present application are not limited to wireless communication technologies used by cell phones and cell phone housings.
Illustratively, the hardware structure of the 5G handset housing is similar to that of a handset. Referring to fig. 1, it should be noted that the processing power of the processor of the 5G handset housing is lower than that of the processor in the handset. 5G mobile phone shell has less sensor modules than mobile phone; of course, the 5G handset housing may also have no sensor module. The 5G handset housing may have one or more of an audio module, a speaker, a receiver, a microphone, an earphone interface, a display screen, a camera, buttons, an indicator, and a motor. The SIM card interface of the 5G handset shell may be eSIM (Embedded-SIM).
Illustratively, the system framework layers of a 5G handset housing are similar to those of a handset. Referring to fig. 2, it should be noted that the system framework layer of the 5G handset shell may not include an application layer and an application framework layer.
The embodiment of the present application takes the example that the 4G cooperates with the cellular capability of the mobile phone shell and the cellular capability of the 5G mobile phone shell to surf the internet, and the 5G mobile phone shell includes an SIM interface for inserting an SIM card.
For example, the SIM card may be inserted into the 5G handset shell, and then the 4G handset may be sleeved into the 5G handset shell; then connect the 4G handset and the 5G handset housing.
Fig. 3b is an exemplary illustration of a device connection.
Referring to fig. 3b, for example, a 4G handset may establish a USB connection with a 5G handset shell via a USB (Universal Serial Bus) data line. Illustratively, the 4G mobile phone shell can also supply power to the 5G mobile phone shell through a USB data line.
Fig. 3c is a schematic diagram of an exemplary communication connection.
Referring to fig. 3c, for example, after the 4G mobile phone is connected to the 5G mobile phone shell through the USB data line, the USB connection may be established between the USB network card 1 in the 4G mobile phone and the USB network card 2 in the 5G mobile phone shell.
For example, if the SIM2 card in the 5G mobile phone shell is not activated, the SIM2 card in the 5G mobile phone shell may be activated by the 4G mobile phone after the 4G mobile phone is connected to the 5G mobile phone shell.
Illustratively, the 4G mobile phone is provided with a mobile phone shell management application of a 5G mobile phone shell, and the mobile phone shell management application is used for managing the mobile phone shell, such as bluetooth management, WLAN management, power management, mobile network management, SIM/eSIM activation, and the like. Further, the user can activate the SIM2 card in the 5G handset shell by operating in the handset shell management application of the 4G handset.
Fig. 4a is an exemplary interface diagram.
Referring to fig. 4a (1), illustratively, 401 is a home interface of a cell phone, and the home interface 401 of the cell phone includes one or more controls, including but not limited to: application icons (e.g., hua is an application icon for a sharing application, an application icon for a browser application, an application icon 402 for a handset shell management application), network identification, power identification, etc.
With continued reference to fig. 4a (1), when the user needs to activate the SIM card in the 5G mobile phone shell, the user can click on an application icon 402 of the management application of the mobile phone shell, and the mobile phone responds to the user's operation behavior to enter a mobile phone shell management interface 403, as shown in fig. 4a (2).
Referring to fig. 4a (2), illustratively, the handset shell 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, and so on. The user clicks the Bluetooth management option, can get into cell-phone shell Bluetooth management interface, and in cell-phone shell Bluetooth management interface, the user can control the bluetooth switch of 5G cell-phone shell, selects the bluetooth of connecting etc. for the 5G cell-phone shell. The user clicks the WLAN management option 405, may enter the WLAN management interface of the handset shell, and in the WLAN management interface of the handset shell, the user may control the WLAN switch of the 5G handset shell, select a connected WLAN for the 5G handset shell, and so on. The user clicks the power management option, can get into cell-phone shell power management interface, and in the power management interface, the user can look over the battery state of 5G cell-phone shell, sets up the battery mode etc. of cell-phone shell. The user clicks the mobile network management option 406, and can enter a mobile network management interface of the mobile phone shell, and in the mobile network management interface of the mobile phone shell, the user can control a mobile network switch of the 5G mobile phone shell, control a hot spot switch of the 5G mobile phone shell, and the like. The user clicks on the SIM/eSIM activation option 404 and the handset may send an activation indication to the 5G handset shell in response to the user's operational behavior. After receiving the activation instruction, the 5G handset may activate the SIM2 card in response to the activation instruction. After the SIM2 card in the 5G handset housing is activated, the 5G handset housing has 5G cellular capabilities.
Fig. 4b is a schematic diagram of an exemplary communication connection.
Referring to fig. 4b, an exemplary cellular network card 2 may be created in the 5G handset housing after the SIM2 card in the 5G handset housing is activated.
For example, after the SIM2 card in the 5G mobile phone shell is activated, the multi-stream concurrent application program in the 4G mobile phone can use its own cellular data path and the cellular data path of the 5G mobile phone shell to perform data interaction with the corresponding service server in parallel. The application program supporting the multi-stream concurrence may be an application program that can establish a plurality of TCP/IP (Transmission Control Protocol/Internet Protocol ) connections in parallel, such as a video application, a game application, a live broadcast application, and the like. In the embodiment of the present Application, an APP (Application) 2 in a 4G mobile phone is taken as an example of a multi-stream concurrent Application.
Fig. 5a is a schematic diagram of an exemplary connection.
Referring to fig. 5a, for example, when APP2 needs to perform data interaction with the service server, multiple TCP/IP connections may be established with the service server first, and then APP2 performs data interaction with the service server based on the established multiple TCP/IP connections. For example, the number of TCP/IP connections established by the APP2 and the service server is not limited in the embodiment of the present application, and the embodiment of the present application takes establishing two TCP/IP connections as an example for illustration.
Illustratively, the process of APP2 establishing a TCP/IP connection with the service server is essentially a process of APP2 establishing a socket connection with the service server.
Fig. 5b is a schematic diagram of an exemplary communication connection.
Referring to fig. 5b (1), APP2 may establish a socket1 connection with the service server through the cellular network card 1 and the Modem1 in the 4G mobile phone, for example. Referring to fig. 5b (2), the socket1 connection is exemplarily a data path between APP 2-the cellular network card 1-the Modem 1-the service server, and it can be seen that the socket1 connection is substantially a TCP/IP connection between APP2 and the service server.
Illustratively, the source IP address of the socket1 connection is the IP address of the cellular network card 1, and the destination IP address is the IP address of the service server. For example, if the IP address of the cellular network card 1 is a.b.c.d and the IP address of the service server is e.f.g.h, the source IP address of the socket1 connection is a.b.c.d and the destination IP address is e.f.g.h.
Referring to fig. 5b (1), for example, APP2 may establish a socket2 connection with the service server through USB network card 1 in the 4G mobile phone, USB network card 2 in the 5G mobile phone, network proxy service in the 5G mobile phone, cellular network card 2 in the 5G mobile phone, and Modem2 in the 5G mobile phone. Referring to fig. 5b (3), exemplarily, the socket2 connection may include a socket2a connection and a socket2b connection. The socket2a connection is established by APP2, and is a data path between APP2, USB network card 1, USB network card 2 and network proxy service. socket2b connection is created based on socket2a connection trigger, and is a data path between a network proxy service-cellular network card 2-Modem 2-service server. As can be seen, socket2a connection and socket2b connection form another TCP/IP connection between APP2 and the service server.
Illustratively, the source IP address of the socket2a connection is the IP address of the USB network card 1, and the destination IP address is the IP address of the service server. For example, if the IP address of the USB network card 1 is w.x.y.z and the IP address of the service server is e.f.g.h, the source IP address connected to the socket2a is w.x.y.z and the destination IP address is e.f.g.h.
Illustratively, the source IP address of the socket2b connection is the IP address of the cellular network card 2, and the destination IP address is the IP address of the service server. For example, if the IP address of the cellular network card 2 is a.b.c.d, and the IP address of the service server is e.f.g.h, the source IP address of the socket2b is a.b.c.d, and the destination IP address is e.f.g.h.
For example, APP2 may establish a socket connection with the service server by performing a three-way handshake with the service server. The process of establishing the socket1 connection with the service server by the APP2 may specifically refer to the specification in the existing protocol, and is not described herein again. The following is an exemplary description of the process of APP2 establishing a socket2 connection with a service server.
Fig. 6a is a schematic diagram of an exemplary data transmission.
Illustratively, APP2 first sends a SYN (synchronization) packet to the traffic server, and performs a first handshake with the traffic server. Referring to fig. 6a, exemplary source data sent by APP2 is a SYN packet. Illustratively, after APP2 sends out the SYN packet, the SYN packet is added with a TCP header and an IP header and is transmitted into the USB network card 1. For convenience of description, the SYN packet to which the IP header and the TCP header are added may be referred to as data A1, the IP header added to the SYN packet may be referred to as IP header (1), and the TCP header added to the SYN packet may be referred to as TCP header (1).
Illustratively, the TCP header (1) may include a source port and a destination port, where the source port is a port bound to the socket2a in a 4G mobile phone, such as PROT1, and the destination port is a port bound to the socket2 in the service server, such as PROT16. The IP header (1) comprises a source IP address and a destination IP address, wherein the source IP address is the IP address of the USB network card 1, such as w.x.y.z, and the destination IP address is the IP address of the service server, such as E.F.G.H.
Illustratively, the 4G mobile phone and the 5G mobile phone communicate with each other through a USB data line using a TCP/IP Protocol or a UDP/IP (User Datagram Protocol/internet Protocol) Protocol. That is, the USB connection may be a TCP/IP connection or a UDP/IP connection, which is not limited in this embodiment. In the embodiment of the application, the USB connection between the 4G mobile phone and the 5G mobile phone shell is exemplified as a TCP/IP connection.
With continued reference to fig. 6a, after the USB network card 1 receives the data A1, the data A2 may be obtained by encapsulating the corresponding TCP header (2) and IP header (2) for the data A1 according to the TCP/IP protocol between the USB network card 1 and the USB network card 2.
For example, the TCP header (2) may also include a source port and a destination port, where the source port is a port of the USB network card 1 for communicating with the USB network card 2, and the destination port is a port of the USB network card 2 for communicating with the USB network card 1. The IP header (2) also comprises a source IP address and a destination IP address, wherein the source IP address is the IP address of the USB network card 1, and the destination IP address is the IP address of the USB network card 2.
For example, after the data A2 is obtained by encapsulating the USB network card 1, the data A2 may be sent to the USB network card 2 based on the connection between the USB network card 1 and the USB network card 2.
For example, the USB network card 2 may receive the data A2, and then may decapsulate the data A2, and remove the IP header (2) and the TCP header (2) of the data A2 to obtain the data A3. The data A3 is substantially the data A1.
For example, the USB network card 2 may send the data A3 to the network proxy service. After receiving the data A3, the network proxy service may perform NAT conversion on the data A3 to obtain data A4. The data A3 is subjected to NAT conversion, namely a source IP address in an IP head (1) in the data A3 is converted into an IP address of a cellular network card 2 from an IP address of a USB network card 1, and a source port in the TCP head (1) is converted into a port which is connected and bound with a socket2a in a 4G mobile phone shell and is connected and bound with a socket2b in a 5G mobile phone shell. For example, the port bound for the socket2b connection in the 5G handset housing may be an unoccupied port in the 5G handset housing. Further, the source address in the IP header (1) of the obtained data A4 is a.b.c.d, and the source port in the TCP header (1) is PROT0.
For example, after performing NAT translation, the network proxy service may record a network translation relationship, such as: w.x.y.z/PROT 1-A.B.C.D/PROT 0.
For example, after obtaining the data A4, the network proxy server may send the data A4 to the cellular network card 2, package the data A4 by the cellular network card 2, transmit the packaged data A4 into the Modem2, perform corresponding processing on the packaged data A4 by the Modem2, and send the processed data to the service server. And then the service server can receive the SYN packet sent by the APP2, and the first handshake between the APP2 and the service server is realized.
Fig. 6b is a schematic diagram of an exemplary data transmission.
For example, after receiving the SYN packet of APP2, the traffic server may return an ACK (acknowledgement) packet to APP2. For example, the Modem2 of the 5G mobile phone shell may receive an ACK packet returned by the service server, and then may transmit the ACK packet to the cellular network card 2, and after the cellular network card 2 performs corresponding processing on the data sent by the Modem2, data B1 may be obtained, as shown in fig. 6B. Referring to fig. 6B, the source data in the data B1 is an ACK packet, for example. The IP header (1) in the data B1 includes a source IP address and a destination IP address, the destination IP address is an IP address of the cellular network card 2, such as a.b.c.d, and the source IP address is an IP address of the service server, such as e.f.g.h. The TCP header (1) may include a source port and a destination port, where the destination port is a port, such as PROT0, in the 5G mobile phone shell that is connected and bound to the socket2b, and the source port is a port, such as PROT16, in the service server that is connected and bound to the socket 2.
Illustratively, the cellular network card 2 may send the data B1 to the network proxy service. The network proxy service then translates the relationship according to the recorded network, such as: w.x.y.z/PROT 1-A.B.C.D/PROT 0, and carrying out NAT conversion on the data B1 to obtain data B2. Illustratively, the network proxy service performs NAT translation on the data B1, which is substantially to translate the destination address of the IP header (1) in the data B1 from a.b.c.d to w.x.y.z, and to translate the destination port in the TCP header (1) from PROT0 to PROT1.
Illustratively, the network proxy service may send data B2 to the USB network card 2. After the USB network card 2 receives the data B2, the data B2 may be encapsulated with a corresponding TCP header (2) and an IP header (2) according to a TCP/IP protocol between the USB network card 1 and the USB network card 2, so as to obtain data B3.
Illustratively, the TCP header (2) may also include a source port and a destination port, where the destination port is a port of the USB network card 1 for communicating with the USB network card 2, and the source port is a port of the USB network card 2 for communicating with the USB network card 1. The IP header (2) also comprises a source IP address and a destination IP address, wherein the destination IP address is the IP address of the USB network card 1, and the source IP address is the IP address of the USB network card 2.
For example, after the data B3 is obtained by encapsulating the USB network card 2, the data may be sent to the USB network card 1 based on the connection between the USB network card 1 and the USB network card 2.
For example, the USB network card 1 may receive the data B3, and then may decapsulate the data B3, and remove the IP header (2) and the TCP header (2) of the data B3 to obtain the data B4. The data B4 is substantially the data B2.
For example, the USB network card 1 may send the data B4 to the APP2 according to the destination port of the TCP (1) in the data B4. Illustratively, the data B4 is removed from the IP header (1) and the TCP header (1) before reaching APP2, so that the data received by APP2 is an ACK packet, and thus, the second handshake may be completed.
For example, APP2 may send the SYN packet again to perform a third handshake with the service server, and reference may be made to the description of the process of the first handshake, which is not described herein again.
Illustratively, after APP2 and the service server perform three-way handshake, socket2 connection may be established.
Illustratively, the APP2 and the service server can be connected through socket1 and socket2 for data interaction in parallel.
For example, APP2 is a video application, and when a user watches video 1 using APP2, the service server may divide video 1 into 2 sets of service data packets (each set may include a plurality of service data packets), and then send the 2 sets of service data to APP2 through socket1 connection and socket2 connection, respectively. The Modem1 in the 4G mobile phone may receive a group of service data packets sent by the service server, and then transmit the service data packets to the APP2 through the cellular network card 1. The Modem2 in the 5G mobile phone shell can receive another group of service data packets of the service server, and then transmit the service data packets to the APP2 through the cellular network card 2 → the network proxy service → the USB network card 2 → the USB network card 1. In this process, reference may be made to fig. 6b and corresponding description for processing the service data packet by the network card and the network proxy service (where the source data in fig. 6b is the service data packet), and details are not described herein again. Therefore, the downlink bandwidth can be increased, and the downlink time delay can be reduced.
For example, APP2 is a live broadcast application, and when a user uploads video 2 using APP2, APP2 may divide video 2 into 2 sets of service data packets (each set may include a plurality of service data packets), and then send the 2 sets of service data to a service server through socket1 connection and socket2 connection, respectively. The APP2 may send a set of service data packets to the service server through the cellular network 1 → Modem1 in the 4G mobile phone. The APP2 can also send another group of service data packets to the service server through the USB network card 1 in the 4G mobile phone → the USB network card 2 in the 5G mobile phone shell → the network agent service → the cellular network card 2 → the Modem 2. In this process, reference may be made to fig. 6a and corresponding description for processing the service data packet by the network card and the network proxy service (where the source data in fig. 6a is the service data packet), and details are not described herein again. Therefore, the uplink bandwidth can be increased, and the uplink time delay can be reduced.
It should be noted that, for example, in fig. 6a, after receiving the data A1, the USB network card 1 may also not encapsulate the data A1, and directly send the data A1 to the USB network card 2, and then the USB network card 2 sends the data A1 to the network proxy service, and the network proxy service performs NAT conversion on the data A1. For example, in fig. 6B, after receiving the data B2, the USB network card 2 may also not encapsulate the data B2, directly send the data B2 to the USB network card 1, and then the USB network card 1 sends the data B2 to the APP2. That is to say, the embodiment of the present application does not limit whether the USB network card encapsulates and decapsulates the received data.
Fig. 7a is an exemplary illustration of a connection.
Exemplarily, after the 4G mobile phone is connected with the 5G mobile phone shell through the USB, the 4G mobile phone can also establish Wi-Fi connection with the 5G mobile phone shell, and then the 4G mobile phone can establish socket2 connection with the service server through the Wi-Fi connection with the 5G mobile phone shell.
Illustratively, the user clicks on the mobile network management option 406,4g handset in fig. 4a (2) to expose the handset housing mobile network management interface in response to the user's operational behavior. Then, the user can operate in a mobile network management interface of the mobile phone shell, open the hot spot of the 5G mobile phone shell, and set the name and the password of the hot spot of the 5G mobile phone shell, and at the moment, the 5G mobile phone shell can be used as an AP (Wireless Access Point).
For example, the user may enter a WLAN management interface of the mobile phone from a setup application of the 4G mobile phone, and then connect to the hot spot of the 5G mobile phone shell by operating in the WLAN management interface of the mobile phone, for example, selecting a wireless network with the hot spot name of the 5G mobile phone shell, and inputting a corresponding password. Thus, the 4G mobile phone can be accessed to the 5G mobile phone shell as an STA (Station).
Fig. 7b is a schematic diagram of an exemplary communication connection.
Referring to fig. 7b, for example, after the 4G mobile phone establishes the Wi-Fi connection with the 5G mobile phone shell, the Wi-Fi network card 1 in the 4G mobile phone and the Wi-Fi network card 2 in the 5G mobile phone shell may establish the Wi-Fi connection.
For example, the SIM2 card in the 5G mobile phone shell may be activated as described above, and details are not described here.
Fig. 7c is a schematic diagram of an exemplary communication connection.
For example, the description of fig. 5b above may be referred to for fig. 7c, and details are not repeated here.
It should be noted that fig. 7c is different from fig. 5b in that, in fig. 7c, the 4G mobile phone and the 5G mobile phone shell perform data interaction through a Wi-Fi connection between the Wi-Fi network card 1 and the Wi-Fi network card 2. That is to say, in fig. 7c, socket1 connection is a data path between APP2 and cellular network card 1 and Modem1 and a service server, socket2 connection may include socket2a connection and socket2b connection, socket2a connection is a data path between APP2 and Wi-Fi network card 1 and Wi-Fi network card 2 and a network proxy service, and socket2b connection is a data path between network proxy service and cellular network card 2 and Modem2 and a service server.
In one possible approach, the Wi-Fi connection between the Wi-Fi network card 1 and the Wi-Fi network card 2 can be a layer 3 (network layer) connection. And then after the Wi-Fi network card 1 and the Wi-Fi network card 2 receive the data, the data need to be packaged according to the corresponding communication protocol, and then the packaged data are forwarded. For example, the communication protocol between the Wi-Fi network card 1 and the Wi-Fi network card 2 can be TCP/IP protocol.
Fig. 7d is a schematic diagram illustrating data transmission.
For example, the description of fig. 6a above may be referred to for fig. 7d, and details are not repeated here.
It should be noted that, the difference between fig. 7d and fig. 6a is that the source IP address in the IP header (1) of the data A1 in fig. 7c is the IP address of the Wi-Fi network card 1, such as r.s.t.u. The source IP address in the IP header (2) is the IP address of the Wi-Fi network card 1, and the destination IP address is the IP address of the Wi-Fi network card 2. The source port in the TCP head (2) is a port in the Wi-Fi network card 1 for communicating with the Wi-Fi network card 2, and the destination port is a port in the Wi-Fi network card 2 for communicating with the Wi-Fi network card 1.
Fig. 7e is a schematic diagram illustrating data transmission.
For example, the description of fig. 6b above may be referred to for fig. 7e, and details are not repeated here.
It should be noted that fig. 7e is different from fig. 6B in that the destination IP address in the IP header (1) of the data B2 in fig. 7c is an IP address of the Wi-Fi network card 1, such as r.s.t.u. The destination IP address in the IP header (2) is the IP address of the Wi-Fi network card 1, and the source IP address is the IP address of the Wi-Fi network card 2. The destination port in the TCP head (2) is a port in the Wi-Fi network card 1 for communicating with the Wi-Fi network card 2, and the source port is a port in the Wi-Fi network card 2 for communicating with the Wi-Fi network card 1.
In one possible approach, the Wi-Fi connection between Wi-Fi network card 1 and Wi-Fi network card 2 can be a layer 2 (data link layer) connection. And then the Wi-Fi network card 1 and the Wi-Fi network card 2 directly forward the data after receiving the data.
Fig. 8a is a schematic diagram illustrating data transmission.
For example, the description of fig. 6a above may be referred to for fig. 8a, and details are not repeated here.
It should be noted that the difference between fig. 8a and fig. 6a is that after the Wi-Fi network card 1 receives the data A1, the data A1 may be directly forwarded to the Wi-Fi network card 2 without processing the data A1, that is, the data received by the Wi-Fi network card 2 is also the data A1. And then the Wi-Fi network card 2 does not need to de-encapsulate the data A1, but directly sends the data A1 to the network proxy service.
Fig. 8b is a schematic diagram illustrating data transmission.
For example, the description of fig. 6b above may be referred to for fig. 8b, and details are not repeated here.
It should be noted that the difference between fig. 8B and fig. 6B is that after the Wi-Fi network card 2 receives the data B2, the data B2 may be directly forwarded to the Wi-Fi network card 1 without processing the data B2, that is, the data received by the Wi-Fi network card 1 is also the data B2. And then Wi-Fi network card 1 also need not to decapsulate data B2, but directly sends data B2 to APP2.
It should be understood that a Wi-Fi P2P (Peer to Peer) connection may also be established between the 4G handset and the 5G handset housing. Illustratively, the user may enter the sharing interface of the mobile phone shell by clicking the huazi sharing option in fig. 4 (2); and clicking an application icon of the sharing application on the 4G mobile phone main interface to enter a mobile phone sharing interface. And then, the user can operate in the mobile phone sharing interface and the mobile phone sharing interface to establish Wi-Fi P2P connection between the 4G mobile phone and the 5G mobile phone. At this time, socket2 connection may include socket2a connection and socket2b connection, socket2a connection is a data path between APP 2-P2P network card 1-P2P network card 2-network proxy service, and socket2b connection is a data path between network proxy service-cellular network card 2-Modem 2-service server. A process of establishing TCP/IP connection between APP2 and the service server, a process of performing service data interaction between APP2 and the service server, and a data processing manner by the P2P network card 1 and the P2P network card 1 may refer to fig. 7d and fig. 7e, or refer to fig. 8a and fig. 8b.
It should be understood that a 4G handset may also establish a bluetooth connection with a 5G handset housing. Illustratively, the user may enter the bluetooth management interface of the handset housing by clicking on the bluetooth management option in fig. 4 (2); and entering a mobile phone Bluetooth management interface from a setting application program of the 4G mobile phone. Then, the user can operate in the Bluetooth management interface of the mobile phone shell and the Bluetooth management interface of the mobile phone, and Bluetooth connection between the 4G mobile phone and the 5G mobile phone shell is established. At this time, the socket2 connection may include socket2a connection and socket2b connection, the socket2a connection is a data path between APP 2-bluetooth network card 1-bluetooth network card 2-network proxy service, and the socket2b connection is a data path between network proxy service-cellular network card 2-Modem 2-service server. The process of establishing TCP/IP connection between APP2 and the service server, the process of performing service data interaction between APP2 and the service server, and the data processing mode by the bluetooth network card 1 and the bluetooth network card 2 may refer to fig. 7d and fig. 7e, or refer to fig. 8a and fig. 8b.
It should be noted that a possible scenario may be that the 4G mobile phone uses a Wi-Fi network, the 5G mobile phone shell uses a cellular network, and at this time, the 4G mobile phone may perform data interaction with the service server in cooperation with the Wi-Fi network connected to the 4G mobile phone and the cellular network of the 5G mobile phone shell. At this time, the socket1 established by the APP2 and the service server may be a data channel between the APP 2-Wi-Fi network card 1-Wi-Fi hardware module 1-service server.
Another possible scenario may be that a Wi-Fi network is used by the 4G mobile phone, a Wi-Fi network is used by the 5G mobile phone, and then the 4G mobile phone may perform data interaction with the service server in cooperation with the Wi-Fi network connected to itself and the Wi-Fi network connected to the 5G mobile phone. At this time, the socket1 connection established between the APP2 and the service server may be a data channel between the APP 2-Wi-Fi network card 1-Wi-Fi hardware module 1-the service server. The socket2 connection established between the APP2 and the service server may be a data channel between the APP 2-USB network card 1-USB network card 2-network proxy service-Wi-Fi network card 2-Wi-Fi hardware module 2-service server.
Illustratively, the user clicks on the WLAN management option 405 in fig. 4a (2), and the 4g handset presents the WLAN management interface of the handset shell in response to the user's operation behavior; the user then operates within the WLAN management interface of the handset housing to control the 5G handset housing to connect to the Wi-Fi network. At this point, it may not be necessary to activate the SIM2 card in the 5G handset housing.
Yet another possible scenario may be that the 4G handset uses a cellular network and the 5G handset uses a Wi-Fi network, and then the 4G handset may cooperate with its own cellular network and the connected Wi-Fi network of the 5G handset to perform data interaction with the service server. At this time, the socket1 connection established between APP2 and the service server may be a data channel between APP2, the cellular network card 1, the Modem1, and the service server. The socket2 connection established between the APP2 and the service server can be a data channel between the APP 2-USB network card 1-USB network card 2-network agent service-Wi-Fi network card 2-Wi-Fi hardware module 2-service server. At this point, it may not be necessary to activate the SIM2 card in the 5G handset housing.
For example, in a scenario where the 4G handset can only use the Wi-Fi network (e.g. the 4G handset does not have the SIM card, or the SIM card does not have a charge, or the SIM card is not in the service area, etc.), and the 5G handset shell uses the cellular network, when an application program of the authorization class in the 4G handset (e.g. a financial APP (e.g. a banking application)) needs to be used, since the authentication class APP is sending authorization data, the source IP address needs to be packaged with the authentication data and sent to the service server. The service server needs to authenticate the signing data in the data packet, and also needs to sign the source IP address in the data packet, and determine whether the source IP address in the data packet is the IP address of the cellular network. If the source IP address in the data packet is determined not to be the IP address of the cellular network, the source IP address cannot be authenticated, and at this time, the user cannot use the authentication-type application program. And when the 4G mobile phone uses the Wi-Fi network, the 4G mobile phone packs the IP address of the Wi-Fi network card as the source IP address together with the signing data when the 4G mobile phone connects the authentication data sent through the socket 1. And when the 4G mobile phone is connected with the authentication data sent by the socket2, the IP address of the Wi-Fi network card or the Bluetooth network card or the P2P network card or the USB network card is used as a source address and is packaged together with the authentication data. And the IP address of the Wi-Fi network card or the Bluetooth network card or the P2P network card or the USB network card is not the address of the cellular network, so the service server can not pass the right of signing on the source IP address. Based on this, in the embodiment of the application, after the cellular network card 2 of the 5G mobile phone shell is established, a virtual cellular network card corresponding to the cellular network card 2 of the 5G mobile phone shell is established in the 4G mobile phone. Subsequently, in the using process of the signing APP, a TCP/IP connection with the service server can be established through the virtual cellular network card, then the IP address of the virtual cellular network card can be used as a source IP address, the source IP address and the signing data are packaged together, and the signing data are sent to the service server through the TCP/IP connection. In this way, the service server can identify that the source IP address in the data packet is the address of the cellular network, thereby passing the authentication of the source IP address.
Fig. 9a is a schematic diagram of an exemplary communication connection.
Referring to fig. 9a, for example, after the SIM2 in the 5G mobile phone shell is activated, the 5G mobile phone shell may create a cellular network card 2 adapted to the Modem2 in the 5G mobile phone, and the 5G mobile phone shell may send a prompt message to the 4G mobile phone, where the prompt message is used to prompt that the SIM2 in the 5G mobile phone shell is activated. The 4G handset may construct a virtual cellular network card in the 4G handset in response to the prompt message, and virtualize an IP address for the virtual cellular network card 2 according to the IP address of the cellular network 2. Illustratively, in the process of authenticating the source IP address, the service server only verifies the first three segments of addresses of the source IP address, and then may obtain the address of the virtual cellular network card by offsetting the last segment of the IP address of the cellular network card 2. For example, the IP address of the cellular network card 2 is 100.100.100.5, and the address of the virtual cellular network card may be 100.100.100.8. It should be noted that, because the 5G mobile phone shell is networked through the cellular network, data is still transmitted from the terminal to the server through the cellular data path, which does not cause the data security problem.
Fig. 9b is a schematic diagram of an exemplary communication connection.
Referring to fig. 9b (1), APP2 may establish a socket1 connection with the service server through a Wi-Fi network card 1 and a Wi-Fi hardware module 1 in the 4G mobile phone, for example. Referring to fig. 9b (2), exemplarily, the socket1 connection is a data path between APP 2-Wi-Fi network card 1-Wi-Fi hardware module 1-service server, and it can be seen that the socket1 connection is substantially a TCP/IP connection between APP2 and the service server.
Illustratively, the source IP address of the socket1 connection is the IP address of the Wi-Fi network card 1, and the destination IP address is the IP address of the service server. For example, if the IP address of the Wi-Fi network card 1 is r.s.t.u and the IP address of the service server is e.f.g.h, the source IP address of the socket1 connection is r.s.t.u and the destination IP address is e.f.g.h.
Referring to fig. 9b (1), for example, APP2 may establish a socket2 connection with the service server through a virtual cellular network card in the 4G mobile phone, a USB network card 1, a USB network card 2 in the 5G mobile phone shell, a network proxy service in the 5G mobile phone shell, a cellular network card 2 in the 5G mobile phone shell, and a Modem2 in the 5G mobile phone shell. Referring to fig. 9b (3), for example, the socket2 connection may include a socket2a connection and a socket2b connection. The socket2a connection is established by APP2 and is a data path between APP2, a virtual cellular network card, a USB network card 1, a USB network card 2 and a network agent service. socket2b connection is created based on socket2a connection trigger, and is a data path between a network proxy service-cellular network card 2-Modem 2-service server. Therefore, socket2a connection and socket2b connection form another TCP/IP connection between APP2 and the service server.
Illustratively, the source IP address of the socket2a connection is the IP address of the virtual cellular network card, and the destination IP address is the IP address of the service server. For example, if the IP address of the virtual cellular network card is a.b.c.e and the IP address of the service server is e.f.g.h, the source IP address of the socket2a connection is a.b.c.e and the destination IP address is e.f.g.h.
Illustratively, the source IP address of the socket2b connection is the IP address of the cellular network card 2, and the destination IP address is the IP address of the service server. For example, if the IP address of the cellular network card 2 is a.b.c.d and the IP address of the service server is e.f.g.h, the source IP address a.b.c.d and the destination IP address of the socket2b are e.f.g.h.
For example, APP2 may establish a socket connection with the service server by performing a three-way handshake with the service server. The process of establishing the socket1 connection with the service server by the APP2 may specifically refer to the specification in the existing protocol, and is not described herein again. The following is an exemplary description of the process of APP2 establishing a socket2 connection with the service server.
Fig. 9c is a schematic diagram of exemplary data transmission.
Illustratively, APP2 first sends a SYN (synchronization) packet to the traffic server, and performs a first handshake with the traffic server. Referring to fig. 9c, the source data sent by APP2 is illustratively a SYN packet. Illustratively, after APP2 sends out the SYN packet, the SYN packet is added with a TCP header and an IP header and is transmitted into the virtual cellular network card. For convenience of description, the SYN packet to which the IP header and the TCP header are added may be referred to as data A1, the IP header added to the SYN packet may be referred to as an IP header (1), and the TCP header added to the SYN packet may be referred to as a TCP header (1).
Illustratively, the TCP header (1) may include a source port and a destination port, where the source port is a port bound to socket2a in a 4G mobile phone, such as PROT1, and the destination port is a port bound to socket2 in a service server, such as PROT16. The IP header (1) includes a source IP address and a destination IP address, the source IP address being an IP address of the virtual cellular network card, such as a.b.c.e, and the destination IP address being an IP address of the service server, such as e.f.g.h.
For example, the virtual cellular network card may directly forward the data A1 to the USB network card 1 without processing the data A1.
Illustratively, the 4G mobile phone and the 5G mobile phone shell communicate with each other through a USB data line by using a TCP/IP Protocol or a UDP/IP (User Datagram Protocol/internet Protocol) Protocol. That is, the USB connection may be a TCP/IP connection or a UDP/IP connection, which is not limited in this embodiment. In the embodiment of the application, the USB connection between the 4G mobile phone and the 5G mobile phone shell is exemplified as a TCP/IP connection.
With continued reference to fig. 9c, after the USB network card 1 receives the data A1, the data A2 may be obtained by encapsulating the corresponding TCP header (2) and IP header (2) for the data A1 according to the TCP/IP protocol between the USB network card 1 and the USB network card 2.
For example, the TCP header (2) may also include a source port and a destination port, where the source port is a port of the USB network card 1 for communicating with the USB network card 2, and the destination port is a port of the USB network card 2 for communicating with the USB network card 1. The IP header (2) also comprises a source IP address and a destination IP address, wherein the source IP address is the IP address of the USB network card 1, and the destination IP address is the IP address of the USB network card 2.
For example, after the USB network card 1 packages the data A2, the data A2 may be sent to the USB network card 2 based on the connection between the USB network card 1 and the USB network card 2.
For example, the USB network card 2 may receive the data A2, and then may decapsulate the data A2, and remove the IP header (2) and the TCP header (2) of the data A2 to obtain the data A3. The data A3 is substantially the data A1.
For example, the USB network card 2 may send the data A3 to the network proxy service. After receiving the data A3, the network proxy service may perform NAT conversion on the data A3 to obtain data A4. The data A3 is subjected to NAT conversion, namely the source IP address in the IP head (1) in the data A3 is converted into the IP address of the honeycomb network card 2 from the IP address of the virtual honeycomb network card, and the source port in the TCP head (1) is converted into the port bound with the socket2b in the 5G mobile phone shell from the port bound with the socket2a in the 4G mobile phone. For example, the port bound for the socket2b connection in the 5G handset housing may be an unoccupied port in the 5G handset housing. Further, the source address in the IP header (1) of the obtained data A4 is a.b.c.d, and the source port in the TCP header (1) is PROT0.
For example, after performing NAT translation, the network proxy service may record a network translation relationship, such as: A.B.C.E/PROT 1-A.B.C.D/PROT 0.
For example, after obtaining the data A4, the network proxy server may send the data A4 to the cellular network card 2, package the data A4 by the cellular network card 2, transmit the packaged data A4 into the Modem2, perform corresponding processing on the packaged data A4 by the Modem2, and send the processed data to the service server. And then the service server can receive the SYN packet sent by the APP2, and the first handshake between the APP2 and the service server is realized.
Fig. 9d is a schematic diagram illustrating exemplary data transmission.
For example, after receiving the SYN packet of APP2, the traffic server may return an ACK (acknowledgement) packet to APP2. For example, the Modem2 of the 5G mobile phone shell may receive an ACK packet returned by the service server, and then may transmit the ACK packet to the cellular network card 2, and after the cellular network card 2 performs corresponding processing on the data sent by the Modem2, data B1 may be obtained, as shown in fig. 9B. Referring to fig. 9B, the source data in the data B1 is an ACK packet, for example. Wherein, the IP header (1) in the data B1 includes a source IP address and a destination IP address, the destination IP address is an IP address of the cellular network card 2, such as a.b.c.d, and the source IP address is an IP address of the service server, such as e.f.g.h. The TCP header (1) may include a source port and a destination port, where the destination port is a port bound to the socket2b in the 5G mobile phone shell, such as PROT0, and the source port is a port bound to the socket2 in the service server, such as PROT16.
Illustratively, the cellular network card 2 may send the data B1 to the network proxy service. The network proxy service then translates the relationship according to the recorded network, such as: and A.B.C.E/PROT 1-A.B.C.D/PROT 0, performing NAT conversion on the data B1 to obtain data B2. Illustratively, the network proxy service performs NAT translation on data B1, which essentially translates the destination address of the IP header (1) in data B1 from a.b.c.d to a.b.c.e, and translates the destination port in TCP header (1) from PROT0 to PROT1.
Illustratively, the network proxy service may send data B2 to the USB network card 2. After the USB network card 2 receives the data B2, the data B3 may be obtained by encapsulating the corresponding TCP header (2) and IP header (2) for the data B2 according to the TCP/IP protocol between the USB network card 1 and the USB network card 2.
Illustratively, the TCP header (2) may also include a source port and a destination port, where the destination port is a port of the USB network card 1 for communicating with the USB network card 2, and the source port is a port of the USB network card 2 for communicating with the USB network card 1. The IP header (2) also comprises a source IP address and a destination IP address, wherein the destination IP address is the IP address of the USB network card 1, and the source IP address is the IP address of the USB network card 2.
For example, after the USB network card 2 packages the data B3, the data may be sent to the USB network card 1 based on the connection between the USB network card 1 and the USB network card 2.
For example, the USB network card 1 may receive the data B3, and then may decapsulate the data B3, and remove the IP header (2) and the TCP header (2) of the data B3 to obtain the data B4. The data B4 is substantially the data B2.
For example, the USB network card 1 may send the data B4 to the virtual cellular network card according to the destination port of the TCP (1) in the data B4.
For example, after receiving the data B4, the virtual cellular network card may forward the data B4 to the APP2 without processing the data B4. Illustratively, data B4 has IP header (1) and TCP header (1) removed before reaching APP2, so that the data received by APP2 is an ACK packet, and thus, the second handshake may be completed.
For example, APP2 may send the SYN packet again to perform a third handshake with the service server, which may refer to the description of the first handshake process described above and is not described herein again.
Illustratively, after three handshakes of APP2 and the service server, socket2 connection can be established.
Illustratively, the APP2 and the service server can be connected through socket1 and socket2 for data interaction in parallel.
For example, APP2 is a financial application, and the socket2 connection established by APP2 is: APP 2-virtual honeycomb network card-USB network card 1-USB network card 2-network agent service-honeycomb network card 2-Modem 2-service server. After the user opens the financial application and inputs the account and the password, the APP2 may use the account and the password input by the user as authentication data, then package the authentication data and the IP address of the virtual cellular network card, and send the authentication data and the IP address to the service server through the virtual cellular network card → USB network card 1 → USB network card 2 → network proxy service → cellular network card 2 → Modem2 in the 4G mobile phone. After receiving the data packet, the service server can identify that the source IP address in the data packet is the address of the cellular network, at this time, the service server passes the right of the source address of the data packet, and then can authenticate the authentication data.
It should be understood that, if the 4G mobile phone uses a cellular network, the virtual cellular network card may also be established in the 4G mobile phone when the cellular network card 2 is established in the 5G mobile phone shell, which is not limited in the embodiment of the present application.
It should be noted that, in the process that the 4G mobile phone simultaneously uses socket1 connection and socket2 connection and concurrently performs data interaction with the service server, the actual throughput rate of socket2 connection can be monitored in real time. When the actual throughput rate of the socket2 connection is monitored to be smaller than the preset throughput threshold value, the socket2 connection can be closed, and data interaction is performed with service data only by using the socket1 connection, so that power consumption is reduced. The preset throughput threshold may be set as required, which is not limited in this embodiment of the present application.
For example, for a non-multi-stream concurrent application program (such as a navigation application, a browser application, a shopping application, and the like), when it is determined that the actual throughput rate of the scoket1 connection is smaller than a preset throughput threshold, or the time delay is larger than a preset time delay threshold, the socket1 connection may be closed, a socket2 connection may be established, and data interaction may be performed with the service server through the socket2 connection. For example, in the process of data interaction between the 4G mobile phone and the service server through the socket2 connection, the actual throughput rate of the socket2 connection may be monitored in real time. When the actual throughput rate of the socket2 connection is smaller than the preset throughput threshold value, the socket2 connection can be closed, the socket1 connection is established again, and data interaction is performed with service data through the socket1 connection, so that power consumption is reduced. The preset delay threshold may be set as required, which is not limited in this embodiment of the present application.
In a possible mode, when the Modem1 in the 5G handset shell and the Modem2 in the 4G handset shell are produced by the same manufacturer, after the SIM2 in the 5G handset shell is activated, the cellular network card 2 corresponding to the Modem2 can be created in the 4G handset, that is, the cellular network card is created at a far end, but the cellular network card is not created locally in the 5G handset shell.
For example, the cellular network card 2 corresponding to the Modem2 may be created at a local framework layer in a 4G mobile phone.
Fig. 10a is a schematic diagram of an exemplary communication connection.
Referring to fig. 10a, the connection established by the 5G handset housing and the 4G handset is illustratively a USB connection. After the 4G mobile phone sends the activation instruction to the 5G mobile phone shell through the USB connection, the 5G mobile phone shell can respond to the activation instruction and activate the SIM2 card, and at the moment, the 5G mobile phone shell can use the SIM2 card to connect to a network. For example, after the 5G mobile phone shell successfully activates the SIM2 card, a network card creation instruction may be generated, and the network card creation instruction is sent to the 4G mobile phone through USB connection with the 4G mobile phone. Wherein the network creation indication comprises an IP address assigned by a base station to which the 5G handset housing is connected.
For example, after receiving the network card creation instruction, the 4G mobile phone may create the cellular network card 2 in the mobile phone in response to the network card creation instruction, and set the IP address of the cellular network card 2 as the IP address allocated by the base station connected to the 5G mobile phone shell included in the network creation instruction.
Fig. 10b is an exemplary communication connection diagram.
Referring to fig. 10b (1), APP2 may establish a socket1 connection with the service server through the cellular network card 1 and the Modem1 in the 4G mobile phone, for example. Referring to fig. 10b (2), the socket1 connection is exemplarily a data path between APP 2-the cellular network card 1-the Modem 1-the service server, and it can be seen that the socket1 connection is substantially a TCP/IP connection between APP2 and the service server.
Illustratively, the source IP address of the socket1 connection is the IP address of the cellular network card 1, and the destination IP address is the IP address of the service server. For example, if the IP address of the cellular network card 1 is a.b.c.d and the IP address of the service server is e.f.g.h, the source IP address of the socket1 connection is a.b.c.d and the destination IP address is e.f.g.h.
Referring to fig. 10b (1), for example, APP2 may establish a socket2 connection with the service server through the cellular network card 2 in the 4G mobile phone, the USB network card 1, the USB network card 2 in the 5G mobile phone shell, and the Modem2 in the 5G mobile phone shell. Referring to fig. 9b (3), for example, the socket2 connection may be a data path between APP2, the cellular network card 2, the USB network card 1, the USB network card 2, the Modem2, and the service server. As can be seen, socket2 connection is essentially another TCP/IP connection between APP2 and the traffic server.
Illustratively, the source IP address of the socket2 connection is the IP address of the cellular network card 2, and the destination IP address is the IP address of the service server. For example, if the IP address of the cellular network card 2 is a.b.c.d and the IP address of the service server is e.f.g.h, the source IP address of the socket2 connection is a.b.c.d and the destination IP address is e.f.g.h.
For example, referring to fig. 9c and 10b, after receiving the data A1, the cellular network card 2 may encapsulate the data A1, encapsulate the data A1 into data that can be recognized by the Modem2, such as data A1', and then send the data A1' to the USB network card 1. Then, the processing procedure of the USB network card 1 and the USB network card 2 may refer to the description of fig. 9c, which is not described herein again. For example, suppose that the USB network card 2 is decapsulated to obtain data A3', at this time, the data transport module may transport the data A3' to the Modem2, and the network proxy service is not required to perform NAT conversion on the data A3 '. Similarly, after the Modem2 receives the data, the data can be transferred to the USB network card 2 by the data transfer module without performing NAT conversion on the data source.
In a possible scenario (such as a crowd-concentrated scenario or a large traffic scenario), when the communication capability of the mobile phone a cannot meet the user requirement, the mobile phone a may establish a connection with the mobile phone B, so that the mobile phone a may perform data interaction with the service server in cooperation with the cellular capability (or wireless communication capability) of itself and the cellular capability (or wireless communication capability) of the mobile phone B, thereby increasing the bandwidth and reducing the data transmission delay.
For example, the mobile phone a and the mobile phone B are both 4G mobile phones, or the mobile phone a and the mobile phone B are both 5G mobile phones, or the mobile phone a and the mobile phone B are both 6G mobile phones, and so on. Illustratively, the mobile phone a is a 4G mobile phone and the mobile phone B is a 5G mobile phone, or the mobile phone a is a 5G mobile phone and the mobile phone B is a 6G mobile phone, and so on. It should be understood that the embodiments of the present application do not limit the wireless communication technologies used by the handsets a and B.
Illustratively, the operator of the SIM card of the mobile phone a is a first operator, and the operator of the SIM card of the mobile phone B is a second operator. The first operators may be the same or different, and this is not limited in this embodiment of the application.
Fig. 11 is an exemplary connection diagram.
Referring to fig. 11, cell phone a may establish a Wi-Fi connection with cell phone B, for example. It should be understood that, the mobile phone a and the mobile phone B may also establish one of a Wi-Fi P2P connection, a bluetooth connection, and a USB connection, and the embodiment of the present application does not limit the connection manner between the mobile phone a and the mobile phone B.
Fig. 12a is an exemplary interface diagram.
Referring to fig. 12a (1), illustratively, 1201 is a home interface for cell phone a, where the home interface 1201 for cell phone a includes one or more controls, including but not limited to: application icons (e.g., hua is an application icon of a sharing application, an application icon of a browser application, an application icon 1202 of a setting application), network identifiers, power identifiers, and the like.
Illustratively, the user clicks on the application image 1202 of the setting application, and the mobile phone a presents the setting interface in response to the operation behavior of the user, as indicated by 1203 in fig. 12a (2). For example, one or more controls may be included in the settings interface 1203, including but not limited to: account options, bluetooth options, mobile network options, desktop and wallpaper options, traffic sharing options 1204, network card management options, and application management options, among others. The user clicks on the traffic sharing option 1204, and the cell phone a presents a traffic sharing interface, as shown at 1205 in fig. 12a (3), in response to the user's operation behavior. 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, traffic management option 1208.
For example, when the on-off state corresponding to the active sharing option in the traffic sharing interface of the mobile phone B is the off state, if the on-off state of the sharing request option 1206 in the traffic sharing interface 1205 of the mobile phone a is the off state, the user may slide the on-off state of the sharing request option 1206 in the traffic sharing interface 1205 of the mobile phone a to request the mobile phone B to share the data path of the mobile phone B. For example, after the user slides the switch of the request sharing option 1206, the mobile phone a may send sharing request information to the mobile phone B in response to the operation behavior of the user, where the sharing request information is used to request for sharing the data path.
Illustratively, when the switch state corresponding to the active sharing option in the traffic sharing interface of the mobile phone B is the off state, if the switch state of the request sharing option 1206 in the traffic sharing interface 1205 of the mobile phone a is the on state, the mobile phone a may send the sharing request information to the mobile phone B after the mobile phone a and the mobile phone B establish the Wi-Fi connection.
For example, after receiving the sharing request information sent by the mobile phone a, the mobile phone B may display a sharing request prompt interface. Illustratively, the share request prompt interface includes one or more controls including, but not limited to: an approval option and a rejection option. For example, the sharing request prompt interface may also display sharing request information, such as "handset a requests to share the native mobile network". And the user clicks the agreement option, the mobile phone B responds to the operation behavior of the user and returns agreement sharing response information to the mobile phone A, and then the mobile phone A can share the data channel of the mobile phone B through Wi-Fi connection with the mobile phone B. And the user clicks the rejection option, the mobile phone B responds to the operation behavior of the user and returns the sharing rejection response information to the mobile phone A, and at the moment, the mobile phone A cannot share the data channel of the mobile phone B through the Wi-Fi connection with the mobile phone B.
For example, after receiving the sharing agreement response message returned by the mobile phone B, the mobile phone a may establish a socket1 connection with the service server based on the cellular network card 1 and the Modem1 of the user during the process of using the application program in the mobile phone a, and the mobile phone a may establish a socket2 connection with the service server based on the Wi-Fi network card 1, the Wi-Fi network card 2, the network proxy service, the cellular network card 2, and the Modem 2. For example, the process of establishing socket1 connection and socket2 connection between the mobile phone a and the mobile phone B may refer to the description of the process of establishing socket1 connection and socket2 connection between the 4G mobile phone and the 5G mobile phone shell, and is not described herein again.
For example, the application program in the mobile phone a is connected to the socket2 through the socket1, and the process of performing data interaction with the service server in parallel is also referred to the process of performing data interaction with the service server through the socket1 connection and the socket2 connection by referring to the application program in the 4G mobile phone, which is also not described herein again.
Illustratively, when the switch state corresponding to the active sharing option in the traffic sharing interface of the mobile phone B is the on state, after the mobile phone a and the mobile phone B establish Wi-Fi, the mobile phone B receives the sharing request information sent by the mobile phone a, and directly returns the sharing agreement response information to the mobile phone a, without displaying the sharing request prompt interface in the mobile phone B or operating in the sharing request prompt interface by the user.
In one possible approach, when the SIM card in the user's handset has abundant traffic, the user may click on the traffic management option 1208 in fig. 12a (3), and the handset displays the traffic management interface in response to the user's operation, as shown in 1209 in fig. 12a (4). Illustratively, the traffic management interface may include one or more controls including, but not limited to, traffic purchase options 1210 and traffic sale options 1211, among others. The user clicks the flow selling option 1211, and the mobile phone responds to the operation behavior of the user and displays a flow selling interface. The user can browse the selling interface, can sell the rule and the price of the flow rate, and then can operate the selling flow rate according to the requirement. For example, after the user sells the flow, the switch of the active sharing option 1207 in fig. 12a (2) may be automatically set to the on state without manual operation by the user.
In one possible approach, when the traffic of the SIM card in the user's handset is urgent, the user may click the traffic purchase option 1210, and the handset displays the traffic purchase interface in response to the user's operation behavior. The user can browse the selling interface, can purchase the rule and the price of the flow rate, and then operate and purchase the flow rate according to the requirement. Illustratively, the switch requesting the share selection 1206 of FIG. 12a (2) may be automatically set to the ON state after the user purchases the traffic, without requiring manual operation by the user.
Fig. 12b is a schematic diagram of an exemplary communication connection.
For example, the description of fig. 5b may be referred to for fig. 12b, and will not be repeated here.
It should be noted that, in fig. 12B, while APP2 in the mobile phone a still maintains the socket1 connection and the socket2 connection with the service server, when the mobile phone B uses APP2, the mobile phone B may establish the socket3 connection with the service server based on the network proxy service, the cellular network card 2, and the Modem2 in the mobile phone B. For example, as shown in fig. 12B (4), the socket3 connection may refer to a data path between APP 2-network proxy service-cellular network card 2-Modem 2-service server in the mobile phone B.
Illustratively, the source IP address of the socket3 connection is the IP address of the cellular network card 2, i.e., a.b.c.d. 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, the service server connected to socket3 and the service server connected to socket2 may be the same server, and at this time, the destination address connected to socket3 may be e.f.g.h.
Illustratively, when the APP2 in the mobile phone B sends data to the service server through the socket3 connection, the network proxy server recognizes that the data is data of the application layer in the mobile phone B, may not perform NAT conversion on the data, and directly sends the data to the cellular network card 2, and then sends the data to the service server through the Modem 2.
For example, the cellular network card 2 may receive data a of APP2 in the mobile phone a returned by the service server and data B of APP2 in the mobile phone B returned by the service server.
For example, data a is shown in table 1:
TABLE 1
For example, data B is shown in table 2:
TABLE 2
Illustratively, the source IP address and the 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 socket 2B; therefore, the network proxy service can perform NAT conversion according to the pre-recorded network conversion relationship and the destination IP address and the destination port of the received data, thereby determining whether to send the data received by the cellular network card 2 to the USB network card 1 or to the APP2 in the mobile phone B.
Illustratively, since the network transformation relationship of the network proxy service record is: w.x.y.z/PROT 1-a.b.c.d/PROT 0, so the network proxy service can convert data a to data C, as shown in table 3:
TABLE 3
The network proxy service may then send data C into USB network card 1, and may then transmit data C to APP2 in handset a, with reference to fig. 6 b. Since the data B does not have a corresponding network conversion relationship, the network proxy service may send the data B to the APP2 in the handset B.
Fig. 13 is an exemplary connection diagram.
Illustratively, cell phone a may establish a Wi-Fi connection with cell phone B and a bluetooth connection with cell phone C. Thus, the mobile phone a can cooperate with the cellular capability (or wireless communication capability) of itself, the cellular capability (or wireless communication capability) of the mobile phone B, and the cellular capability (or wireless communication capability) of the mobile phone C to perform data interaction with the server, thereby increasing the bandwidth and reducing the data transmission delay.
For example, the application program of the mobile phone a may establish a socket1 connection with the service server based on the own cellular network card 1 and Modem1, the application program of the mobile phone a may establish a socket2 connection with the service server based on the Wi-Fi network card 1 in the mobile phone a, the Wi-Fi network card 2 in the mobile phone B, the network proxy service in the mobile phone B, the cellular network card 2 in the mobile phone B, and the Modem2 in the mobile phone B, and the application program of the mobile phone a may establish a socket3 connection with the service server based on the bluetooth network card 1 in the mobile phone a, the bluetooth network card 2 in the mobile phone C, the network proxy service in the mobile phone C, the cellular network card 2 in the mobile phone C, and the Modem2 in the mobile phone C. Reference may be made to the description above, which is not repeated here.
It should be appreciated that handset a may establish a Wi-Fi connection with handset B and a Wi-Fi connection with handset C. Cell phone a can also establish a bluetooth connection with cell phone B and a bluetooth connection with cell phone C. The mobile phone A can also be connected with a USB and establish a Wi-Fi connection with the mobile phone C. The mobile phone A can establish Wi-Fi connection with the mobile phone B, establish USB connection with the mobile phone C, and the like; that is, the embodiment of the present application does not limit the connection manner between the mobile phone a and the mobile phones B and C.
It should be understood that, the embodiments of the present application do not limit the number of the mobile phones connected to the mobile phone a, that is, the embodiments of the present application do not limit how many data paths of the mobile phone a are used by the mobile phone a.
Illustratively, when the mobile phone a, the mobile phone B and the mobile phone C are connected through Wi-Fi, the mobile phone a may include at least two Wi-Fi network cards, one Wi-Fi network card being connected to the Wi-Fi network card in the mobile phone B, and the other Wi-Fi network card being connected to the Wi-Fi network card in the mobile phone C.
Illustratively, when the mobile phone a, the mobile phone B and the mobile phone C are connected through Wi-Fi, the mobile phone a may only include one Wi-Fi network card, and the Wi-Fi network card may serve as an AP, and the Wi-Fi network card in the mobile phone B and the Wi-Fi network card in the mobile phone C are both connected to the Wi-Fi network card of the mobile phone a. In addition, the mobile phone a is further provided with a shunting module, and when the Wi-Fi network card in the mobile phone a receives the service data of the application program, the shunting module can shunt the service data to the mobile phone B or the mobile phone C according to a preset shunting rule. For example, the shunting rule may be set as required, and the embodiment of the present application does not limit this.
For example, when the offloading module determines to offload the service data to the mobile phone B, an IP header (2) and a TCP header (2) may be added to the received data according to the manner shown in fig. 7d, where a destination IP address in the IP header (2) is an IP address of a Wi-Fi network card in the mobile phone B, and a destination port in the TCP header (2) is a port in the Wi-Fi network card of the mobile phone a, which communicates with the Wi-Fi network card of the mobile phone B.
Illustratively, when the offloading module determines to offload the service data to the mobile phone B, an IP header (2) and a TCP header (2) are added to the received data according to the manner shown in fig. 7d, where a destination IP address in the IP header (2) is an IP address of a Wi-Fi network card in the mobile phone C, and a destination port in the TCP header (2) is a port in the Wi-Fi network card of the mobile phone a, which communicates with the Wi-Fi network card of the mobile phone C.
Fig. 14 is an exemplary connection diagram.
Illustratively, a tablet computer (Wi-Fi ONLY (Wi-Fi network)) may establish a Wi-Fi connection with the mobile phone B, so that the tablet computer may perform data interaction with the server in cooperation with its own wireless communication capability and the cellular capability (or wireless communication capability) of the mobile phone, thereby increasing the bandwidth and reducing the data transmission delay.
For example, the authentication APP in the tablet pc may perform data interaction with the service server through Wi-Fi connection between the tablet pc and the mobile phone, using the cellular capability of the mobile phone. This can be referred to the description above and will not be described in detail here.
For example, after the mobile phone a shares the communication capability of the mobile phone B, because different communication modes have differences in bandwidth, delay, stability and cost, and different types of applications run by the user at the same time have different requirements on the communication capability, the embodiment of the present application may match corresponding network cards for different applications based on the application type, the performance of the network card and the preference of the user, so as to improve the user experience.
Illustratively, the application type may include at least one of: high throughput class, low latency class, low cost class, equalization class. It should be understood that the application types may also include other types, and the embodiments of the present application do not limit this.
Fig. 15 is an exemplary illustration of an interface.
For example, the user may click on the network card management option in fig. 12a (2), and the mobile phone displays the network card management interface in response to the operation behavior of the user, as shown in 1501 in fig. 15 (1). By way of example, network card management interface 1501 may include one or more controls including, but not limited to: a cellular network card 1 management option 1502, a cellular network card 2 management option, a virtual cellular network card 1 management option, a virtual cellular network card 2 management option, a Wi-Fi network card management option, and the like.
Illustratively, the user clicks the cellular network card 1 management option 1502, and the handset presents the management interface of the cellular network card 1 in response to the operation behavior of the user, as shown in 1503 in fig. 15 (2). Illustratively, the management interface 1503 of the cellular network card 1 may include one or more controls including, but not limited to, status options, priority options, user preference options, traffic billing options, and the like. Illustratively, the user slides the status option switch to turn on or off the cellular network card 1. For example, the user may enter the network card priority setting interface by clicking the priority, and then may set the priority of the cellular network card 1 in the network card priority setting interface. Illustratively, the user clicks on the user preference option, may enter the preference setting interface, and may then set the preference for the cellular network card 1 in the preference setting interface. For example, a user may enter the flow meter rate details interface to view the flow rate billing details by clicking on the flow rate billing option. Illustratively, the management interface 1503 of the cellular network card 1 also displays performance information of the cellular network card 1, including but not limited to: bandwidth, delay, packet loss rate, stability, etc.
For example, when a new network card that can be used for connecting to the server is added to the mobile phone, the network card performance of the network card may be detected, the network card performance information of the network card may be obtained, and a corresponding network card management option is added in fig. 15 (1).
Illustratively, the user may click on the application management option in fig. 12 (2), and the handset presents the application management interface in response to the user's operational behavior, as shown at 1504 in fig. 15 (3). Illustratively, the application management interface 1504 may include one or more controls, including but not limited to: application 1 management options 1505, application 2 management options, application 3 management options, application 4 management options, application 5 management options, and application 6 management options, among others.
Illustratively, the user clicks on the application 1 management option 1505, and the handset presents the management interface of the application 1 in response to the user's operational behavior, as shown at 1506 in fig. 15 (4). Illustratively, the management interface 1506 of the application 1 may include one or more controls including, but not limited to, a network card binding option, an application type setting option, and the like. For example, the user network card binding option may enter a network card binding option interface, and then a network card bound with the application program may be set in the network card binding option interface. Illustratively, the user clicks on the application type setting option, may enter the application type setting interface, and may then apply the application type of application program 1 in the application type setting interface.
For example, for an application program of a high throughput class on a 4G mobile phone, a user may set a virtual cellular network card created based on a cellular network card in a 5G mobile phone or a 5G mobile phone shell as a network card bound with the application program of the high throughput class.
For example, for a high-throughput application program on a 4G mobile phone, a user may set the Wi-Fi network card 1 connected to the Wi-Fi network card 2 in a 5G mobile phone or a 5G mobile phone shell as a network card bound to the high-throughput application program.
For example, a 4G mobile phone includes two SIM cards: SIMA cards and SIMB cards. When the SIMA card in the 4G mobile phone transacts the streaming-free package with specific application, the SIMA card in the 4G mobile phone can be set as the network card bound by the specific application program.
For example, for low-traffic-cost applications in a tablet computer, in the absence of WiFi, a user may set the Wi-Fi network card 1, which is connected between the tablet computer and the Wi-Fi network card 2 in the mobile phone, as a network card bound to the low-traffic-consumption applications in the tablet computer.
For example, when the application type of the application program is not set by the user, the application type of the application program may be determined by the electronic device.
For example, the electronic device may determine the application type of the application program according to type information carried by the application program. The electronic device may also determine the application type of the application according to the feedback information of the network-wide user for the application, and so on.
For example, when a new application is added to the mobile phone, the electronic device may determine the application type of the added application, and add a corresponding application management option in the application management interface of fig. 15 (3).
Fig. 16 is a schematic diagram illustrating an exemplary data processing flow.
S1601, when the socket connection is established by the application program, whether the application program has corresponding network card configuration information is judged.
For example, when the application establishes the socket connection, a network card matched with the application may be selected from a plurality of network cards connectable to the service server of the mobile phone to establish the socket connection.
For example, when the user sets a bound network card for the application program, the network card for establishing the socket connection may be preferentially allocated to the application program according to the user setting. When the user does not set a bound network card for the application program, the mobile phone may allocate a network card for establishing socket connection to the application program according to the network performance of each network card and the application type corresponding to the application program.
For example, when a user sets a bound network card for the application program, the mobile phone may store network card configuration information corresponding to the application program.
For example, the network card configuration information corresponding to the application program may be searched first. If the network card configuration information corresponding to the application program is found, indicating that the user sets a bound network card for the application program; at this time, S1602 may be performed. If the network card configuration information corresponding to the application program is not found, it indicates that the user does not have a network card which is not bound by the application program; at this time S1604 may be performed.
And S1602, determining the network card bound with the application program according to the network card configuration information.
For example, when the network card configuration information corresponding to the application program is found, the network card bound to the application program may be determined according to the network card configuration information.
S1603, socket connection is established based on the network card bound with the application program.
For example, after determining the network card set by the user and bound to the application program, the socket connection may be established for the application program based on the network card bound to the application program. Therefore, the application program can establish socket connection on the network card bound by the user and communicate with the service server, so that the requirement of the user on the corresponding communication capacity of the application program can be met, and the user experience is improved.
For example, for a high throughput application program on a 4G mobile phone, a user may set a virtual cellular network card created based on a cellular network card in a 5G mobile phone or a 5G mobile phone shell as a network card bound to the high throughput application program.
For example, for a high-throughput application program on a 4G mobile phone, a user may set the Wi-Fi network card 1 connected to the Wi-Fi network card 2 in a 5G mobile phone or a 5G mobile phone shell as a network card bound to the high-throughput application program.
For example, a 4G mobile phone includes two SIM cards: SIMA cards and SIMB cards. When the SIMA card in the 4G mobile phone transacts the streaming-free package of the specific application, the SIMA card in the 4G mobile phone can be set as the network card bound by the specific application program.
For example, for low-traffic-cost applications in a tablet computer, in the absence of WiFi, a user may set the Wi-Fi network card 1, which is connected between the tablet computer and the Wi-Fi network card 2 in the mobile phone, as a network card bound to the low-traffic-consumption applications in the tablet computer.
And S1604, acquiring the application type of the application program, and acquiring network card performance information of the network cards.
Illustratively, the network card in the mobile phone may include a network card that can directly perform data interaction with the service server, for example, a cellular network card 1 in fig. 5b, and a Wi-Fi network card 1 in fig. 9 b.
For example, the network card in the mobile phone may further include a network card for performing data interaction with the service server through connection with a network card in another electronic device, such as a USB network card 1 in fig. 5b, a Wi-Fi network card 1 in fig. 7b, a virtual cellular network card in fig. 9a, and a cellular network card 2 in fig. 10 b.
For example, if the network card configuration information corresponding to the application program is not found, the application type of the application program may be obtained, and the network performance information of each network card may be obtained.
For example, when the user sets the corresponding application type for the application program, the mobile phone may store the type setting information corresponding to the application program.
When the type setting information corresponding to the application program of the user is found, the application type set for the application program by the user can be obtained from the type setting information; when the type setting information corresponding to the application program is not found, the application type determined by the system for the application program may be obtained, which is not limited in the embodiment of the present application.
And S1605, matching the network card with the optimal performance for the application program according to the network card performance information corresponding to the plurality of network cards and the application type of the application program.
Illustratively, according to the application type corresponding to the application program, the network performance information of each network card is adopted for calculation, and the score of each network card on the dimension corresponding to the application type is determined. And then matching the optimal network card for the application program according to the score of each network card on the dimension corresponding to the application type.
Illustratively, the network performance information may include at least one of: bandwidth, delay, packet loss rate, and billing unit price. It should be understood that the network card performance information may also include more or less parameters than those shown above, and the embodiment of the present application does not limit this.
For example, if the application type of the application program is a high throughput type, the score of each network card in the throughput dimension may be calculated according to the network performance information of each network card, and the following formula may be referred to:
F_IO=a1*bandwidth+a2*rtt+a3*lossrate+a4*unitprice
wherein, F _ IO represents a score of a network in a throughput dimension, bandwidth is a bandwidth grade (the larger the bandwidth, the higher the grade), rtt is a delay grade (the smaller the delay, the higher the grade), losrate is a packet loss rate grade (the smaller the packet loss rate, the higher the grade), and unit price is a charging unit price grade (the lower the unit price, the higher the grade). a1 is a weight corresponding to a bandwidth level, a2 is a weight corresponding to a delay level, a3 is a weight corresponding to a packet loss rate level, and a4 is a weight corresponding to a charging unit price level, where a1+ a2+ a3+ a4=1, and a1, a2, a3, and a4 may all be set as required, which is not limited in this embodiment of the application. Optionally, a1 may be set relatively high to increase the weight of the network card throughput level.
For example, the network card with the largest F _ IO (i.e., the highest throughput rate) may be selected as the optimal network card matched with the application program.
For example, if the application type of the application program is a low latency type, the score of each network card in the latency dimension may be calculated according to the network performance information of each network card, which may refer to the following formula:
F_LATENCY=b1*bandwidth+b2*rtt+b3*lossrate+b4*unitprice
wherein, F _ LATENCY represents a score of the network in the delay dimension, bandwidth is a bandwidth grade (the larger the bandwidth is, the higher the grade is), rtt is a delay grade (the smaller the delay is, the higher the grade is), lossrate is a packet loss rate grade (the smaller the packet loss rate is, the higher the grade is), and unit is a charging unit price grade (the lower the unit price is, the higher the grade is). b1 is a weight corresponding to a bandwidth level, b2 is a weight corresponding to a delay level, b3 is a weight corresponding to a packet loss rate level, and b4 is a weight corresponding to a charging unit price level, where b1+ b2+ b3+ b4=1, and b1, b2, b3, and b4 may be set as required, which is not limited in this embodiment of the present application. Optionally, b2 may be set to be relatively higher to increase the weight of the network card delay level, which is not limited in this embodiment of the application.
For example, the network card with the largest F _ LATENCY (i.e., the lowest LATENCY) may be selected as the optimal network card matched with the application program.
For example, if the application type of the application program is a low-cost type, the score of each network card in the cost dimension may be calculated according to the network performance information of each network card, and the following formula may be referred to:
F_COST=c1*bandwidth+c2*rtt+c3*lossrate+c4*unitprice
wherein, F _ COST represents the score of the network in the delay dimension, bandwidth is the bandwidth class (the larger the bandwidth, the higher the class), rtt is the delay class (the smaller the delay, the higher the class), losrate is the packet loss rate class (the smaller the packet loss rate, the higher the class), and unitprice is the charging unit price class (the lower the unit price, the higher the class). c1 is a weight corresponding to a bandwidth level, c2 is a weight corresponding to a delay level, c3 is a weight corresponding to a packet loss rate level, and c4 is a weight corresponding to a charging unit price level, where c1+ c2+ c3+ c4=1, and c1, c2, c3, and c4 may all be set as required, which is not limited in this embodiment of the application. Optionally, c4 may be set to be relatively high to increase the weight of the charging price level, which is not limited in this embodiment of the present application.
For example, the network card with the largest F _ COST (i.e., the lowest traffic COST) may be selected as the optimal network card matched with the application.
For example, if the application type of the application program is a balance type, the score of each network card in performance balance may be calculated according to the network performance information of each network card, and the following formula may be referred to:
F_BALANCE=d1*bandwidth+d2*rtt+d3*lossrate+d4*unitprice
wherein, F _ bandwidth represents the score of the network in terms of performance BALANCE, bandwidth is the bandwidth grade (the larger the bandwidth is, the higher the grade is), rtt is the delay grade (the smaller the delay is, the higher the grade is), losrate is the packet loss rate grade (the smaller the packet loss rate is, the higher the grade is), and unitprice is the charging unit price grade (the lower the unit price is, the higher the grade is). d1 is a weight corresponding to a bandwidth level, d2 is a weight corresponding to a delay level, d3 is a weight corresponding to a packet loss rate level, and d4 is a weight corresponding to a charging unit price level, where d1+ d2+ d3+ d4=1, and d1, d2, d3, and d4 may all be set as required, which is not limited in the embodiment of the present application.
For example, the network card with the largest F _ bandwidth (i.e., the most balanced indexes) may be selected as the optimal network card matched with the application program.
Certainly, when the user sets the priority of each network, the priority information of each network card may also be obtained, and then the optimal network card is matched for the application program based on the priority information of each network card and the score of each network card in the corresponding dimension of the application type of the application program, which is not limited in the embodiment of the present application.
And S1606, establishing socket connection based on the optimal network card matched with the application program.
For example, after determining the optimal network card matched with the application program and set by the user, the socket connection may be established for the application program based on the optimal network card matched with the application program. Therefore, the application program can establish socket connection on the optimal network card matched with the application program and communicate with the service server, so that the requirements of the communication capacity corresponding to various types of application programs can be met, and the user experience is improved.
For example, for the high-throughput application on the 4G mobile phone, the virtual cellular network card created based on the cellular network card in the 5G mobile phone or the 5G mobile phone shell may be used as the optimal network card matched with the high-throughput application.
For example, for a high-throughput application program on a 4G mobile phone, the Wi-Fi network card 1 connected to the Wi-Fi network card 2 in a 5G mobile phone or a 5G mobile phone shell may be used as an optimal network card matched with the high-throughput application program.
In one example, fig. 17 shows a schematic block diagram of an apparatus 1700 of an embodiment of the present application, where the apparatus 1700 may include: a processor 1701 and transceiver/transceiver pins 1702, and optionally, a memory 1703.
The various components of the apparatus 1700 are coupled together by a bus 1704, where the bus 1704 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for purposes of clarity will be referred to in the drawings as bus 1704.
Optionally, memory 1703 may be used for instructions in the foregoing method embodiments. The processor 1701 may be used to execute instructions from the memory 1703 and control receive pin receive signals and control transmit pin transmit signals.
The apparatus 1700 may be an electronic device or a chip of an electronic device in the above-described method embodiments.
All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The present embodiment also provides a computer storage medium, in which computer instructions are stored, and when the computer instructions are run on an electronic device, the computer instructions cause the electronic device to execute the relevant method steps to implement the communication method in the foregoing embodiment.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the communication method in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the communication method in the above-mentioned method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Any of the various embodiments of the present application, as well as any of the same embodiments, can be freely combined. Any combination of the above is within the scope of the present application.
The integrated unit, if implemented as a software functional unit and sold or used as a separate product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
The steps of a method or algorithm described in connection with the disclosure of the embodiments of the application may be embodied in hardware or in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash Memory, read Only Memory (ROM), erasable Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable disk, a compact disc Read Only Memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (30)
1. A communication method applied to a first electronic device, the method comprising:
dividing the service data of the application program in the first electronic equipment into first source data and second source data;
sending the first source data to a corresponding service server through a first network card in the first electronic device; and
and sending the second source data to a second network card in the first electronic equipment, sending the second source data to a third network card in the second electronic equipment through the connection between the second network card and the third network card, and sending the second source data to the service server through a fourth network card in the second electronic equipment by the third network card.
2. The method of claim 1, wherein sending the second source data to a second network card in the first electronic device comprises:
the IP address of the second network card is used as a source IP address, the IP address of the service server is used as a destination IP address, and the second source data are packaged to obtain first transmission data;
and sending the first transmission data to the second network card.
3. The method according to claim 2, wherein the sending the second source data to a third network card in a second electronic device through the connection between the second network card and the third network card, so that the third network card sends the second source data to the service server through a fourth network card in the second electronic device, comprises:
and 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 a network proxy service in the second electronic equipment, the network proxy service converts the source IP address of the first transmission data into the IP address of the fourth network card, second transmission data is obtained, and the fourth network card sends the second transmission data to the service server.
4. The method according to claim 2, wherein the sending the second source data to a third network card in a second electronic device through the connection between the second network card and the third network card, so that the third network card sends the second source data to the service server through a fourth network card in the second electronic device, comprises:
the second network card takes the IP address of the second network card as a source IP address and takes the IP address of the third network card as a destination IP address, and the first transmission data is encapsulated to obtain third transmission data;
and 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 decapsulates the information encapsulated by the second network card in the third transmission data to obtain fourth transmission data and sends the fourth transmission data to a network proxy service in the second electronic equipment, the network proxy service converts the source IP address of the fourth transmission data into the IP address of the fourth network card, and the fourth transmission data after address conversion is sent to the service server through the fourth network card.
5. The method according to any one of claims 1 to 4,
the first network card comprises at least one of the following: a wireless fidelity Wi-Fi network card and a cellular network card;
the second network card comprises at least one of the following: the system comprises a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-Fi P2P network card, a Bluetooth network card and a universal serial bus USB network card;
the third network card comprises at least one of the following: the system comprises a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-Fi P2P network card, a Bluetooth network card and a universal serial bus USB network card;
the fourth network card includes at least one of: a wireless fidelity Wi-Fi network card and a cellular network card.
6. The method according to any one of claims 1 to 5,
the second source data comprises one or more groups;
the second electronic equipment comprises one or more second source data, and each group of second source data is correspondingly sent to a third network card in the second electronic equipment.
7. The method according to any one of claims 1 to 6,
the second electronic equipment is an equipment protection device matched with the first electronic equipment;
the equipment protection device comprises a processor, a communication module and a USB module.
8. A communication method applied to a first electronic device, the method comprising:
receiving first transmission data sent by a service server through a first network card in the first electronic equipment; receiving second transmission data sent by a third network card in the second electronic equipment through the second network card in the first electronic equipment based on the connection between the second network card and the third network card in the second electronic equipment; the second transmission data is determined by the third network card based on received third transmission data, the third transmission data is obtained by performing network address conversion on fourth transmission data, the fourth transmission data is received by a fourth network card in the second electronic device and sent by the service server, the first transmission data comprises first source data, the second transmission data, the third transmission data and the fourth transmission data all comprise second source data, and the first source data and the second source data are obtained by dividing the service data by the service server;
and sending the first transmission data to a corresponding application program in the first electronic equipment, and sending the second transmission data to the corresponding application program in the first electronic equipment.
9. The method of claim 8,
the second transmission data comprises two layers of encapsulation information, the outermost layer of encapsulation information is information for encapsulating the third transmission data by the third network card by taking the IP address of the third network card as a source IP address and taking the IP address of the second network card as a destination IP address, the third transmission data is obtained by converting the destination IP address in the fourth transmission data into the IP address of the second network card by a network proxy service in the second electronic equipment, and the fourth transmission data is obtained by encapsulating the second source data by the service server by taking the IP address of the service server as a source IP address and taking the IP address of the fourth network card as a destination IP address.
10. The method of claim 9, wherein sending the second transmission data to a corresponding application program in the first electronic device comprises:
and the second network card de-encapsulates the outermost layer encapsulation information of the second transmission data, and sends the de-encapsulated second transmission data to a corresponding application program in the first electronic equipment.
11. A communication method applied to a first electronic device, the method comprising:
dividing service data of an application program in the first electronic equipment into first source data and second source data;
sending the first source data to a corresponding service server through a first network card in the first electronic equipment; and
and sending the second source data to a second network card in the first electronic equipment and sending the second source data to a third network card in the first electronic equipment by the second network card, sending the second source data to a fourth network card by the connection between the third network card and the fourth network card in the second electronic equipment, and sending the second source data to the service server by the fourth network card through a fifth network card in the second electronic equipment.
12. The method of claim 11, wherein sending the second source data to a second network card in the first electronic device and sending the second source data by the second network card to a third network card in the first electronic device comprises:
the IP address of the second network card is used as a source IP address, the IP address of the service server is used as a destination IP address, and the second source data are packaged to obtain first transmission data;
and sending the first transmission data to the second network card and sending the first transmission data to the third network card by the second network card.
13. The method according to claim 12, wherein the sending the second source data to a fourth network card in the second electronic device through the connection between the third network card and the fourth network card, so that the fourth network card sends the second source data to the service server through a fifth network card in the second electronic device, includes:
and 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 a network proxy service in the second electronic equipment, 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 second transmission data, and the fifth network card sends the second transmission data to the service server.
14. The method according to claim 12, wherein the sending the second source data to a fourth network card in the second electronic device through the connection between the third network card and the fourth network card, so that the fourth network card sends the second source data to the service server through a fifth network card in the second electronic device, comprises:
the third network card encapsulates the first transmission data by taking the IP address of the third network card as a source IP address and taking the IP address of the fourth network card as a destination IP address to obtain third transmission data;
and through the connection between the third network card and the fourth network card, the third transmission data is sent to the fourth network card, so that the fourth network card decapsulates the information encapsulated by the third network card in the third transmission data to obtain fourth transmission data and sends the fourth transmission data to a network proxy service in the second electronic equipment, the network proxy service converts the source IP address of the fourth transmission data into the IP address of the fifth network card, and the fourth transmission data after address conversion is sent to the service server through the fifth network card.
15. The method according to any one of claims 11 to 14,
the first network card comprises at least one of the following: a wireless fidelity Wi-Fi network card and a cellular network card;
the third network card comprises at least one of the following: the system comprises a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-FiP2P network card, a Bluetooth network card and a universal serial bus USB network card;
the fourth network card includes at least one of: the system comprises a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-FiP2P network card, a Bluetooth network card and a universal serial bus USB network card;
the fifth network card includes at least one of: a wireless fidelity Wi-Fi network card and a cellular network card.
16. The method of any one of claims 11 to 15,
the fifth network card is a cellular network card, the second network card is a virtual network card based on the fifth network card, and 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,
the second source data comprises one or more groups;
the second electronic equipment comprises one or more second source data, and each group of second source data is correspondingly sent to a third network card in the second electronic equipment.
18. The method according to any one of claims 11 to 17,
the second electronic equipment is an equipment protection device matched with the first electronic equipment;
the equipment protection device comprises a processor, a communication module and a USB module.
19. A communication method applied to a first electronic device, the method comprising:
receiving first transmission data sent by a service server through a first network card in the first electronic device; receiving second transmission data sent by a fourth network card in the second electronic equipment through the third network card in the first electronic equipment based on the connection between the third network card and the fourth network card in the second electronic equipment; the second transmission data is determined by the fourth network card based on received third transmission data, the third transmission data is obtained by performing network address conversion on fourth transmission data, the fourth transmission data is received by a fifth network card 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, and the first source data and the second source data are obtained by dividing service data by the service server;
and sending the first transmission data to a corresponding application program in the first electronic equipment, and sending the second transmission data to the application program through a second network card in the first electronic equipment.
20. The method of claim 19,
the second transmission data includes two layers of encapsulation information, the outermost layer of encapsulation information is information for encapsulating the third transmission data by the fourth network card with the IP address of the fourth network card as a source IP address and the IP address of the third network card as a destination IP address, the third transmission data is obtained by converting the destination IP address in the fourth transmission data received by the fifth network card into the IP address of the second network card by a network proxy service in the second electronic device, and the fourth transmission data is obtained by encapsulating the second source data by the service server with the IP address of the service server as a source IP address and the IP address of the fifth network card as a destination IP address.
21. The method of claim 20, wherein sending the second transmission data to the application program via a second network card in the first electronic device comprises:
and the third network card decapsulates the outermost layer encapsulation information of the second transmission data, and sends the decapsulated second transmission data to a corresponding application program in the first electronic device through the second network card.
22. A communication method applied to a first electronic device, the method comprising:
dividing the service data of the application program in the first electronic equipment into first source data and second source data;
sending the first source data to a corresponding service server through a first network card in the first electronic device; and
and sending the second source data to a second network card in the first electronic equipment, sending the second source data to a third network card in the first electronic equipment through the second network card, sending the second source data to a fourth network card through the connection between the third network card and the fourth network card in the second electronic equipment, and sending the second source data to the service server through the fourth network card.
23. The method of claim 22,
the first network card comprises at least one of the following: a wireless fidelity Wi-Fi network card and a cellular network card;
the second network card is a cellular network card;
the third network card comprises at least one of the following: a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-FiP2P network card, a Bluetooth network card and a universal serial bus USB network card;
the fourth network card includes at least one of: a wireless fidelity Wi-Fi network card, a wireless fidelity peer Wi-FiP2P network card, a Bluetooth network card and a universal serial bus USB network card.
24. A communication method applied to a first electronic device includes:
receiving first transmission data sent by a service server through a first network card in the first electronic device; receiving second transmission data sent by a fourth network card in the second electronic equipment through the third network card in the first electronic equipment based on the connection between the third network card and the fourth network card in the second electronic equipment; the second transmission data is determined by the fourth network card based on received third transmission data, the third transmission data is sent by the service server, the first transmission data comprises first source data, the second transmission data and the third transmission data both comprise second source data, and the first source data and the second source data are obtained by dividing service data by the service server;
and sending the first transmission data to a corresponding application program in the first electronic equipment, and sending the second transmission data to the application program through a second network card in the first electronic equipment.
25. A connection establishment method applied to a first electronic device includes:
when an application program is connected with a corresponding service server, acquiring the application type of the application program and network card performance information of a plurality of network cards in the first electronic equipment, wherein the network cards comprise a network card which directly performs data interaction with the service server and a network card which performs data interaction with the service server through the connection with the network card in the second electronic equipment;
matching a network card with optimal performance for the application program according to the application type of the application program and the network card performance information of each network card;
and establishing the connection between the application program and the corresponding service server based on the network card with the optimal performance matched with the application program.
26. The method of claim 25, wherein when the application establishes a connection with the corresponding service server, the method further comprises:
if network card configuration information corresponding to the application program exists, searching a network card bound with the application program according to the network card configuration information, and establishing connection between the application program and a corresponding service server based on the network card bound with the application program, wherein the network card configuration information is information of the network card bound for the application program by a user;
and if the network card configuration information corresponding to the application program does not exist, executing the step of acquiring the application type of the application program and the network card performance information of the plurality of network cards in the first electronic device.
27. An electronic device, comprising:
a memory and a processor, the memory coupled with 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 of any of claims 1-26.
28. A chip comprising one or more interface circuits and one or more processors; the interface circuit is configured to receive signals from a memory of an electronic device and to transmit the signals to the processor, the signals including computer instructions stored in the memory; the computer instructions, when executed by the processor, cause the electronic device to perform the method performed by the first electronic device of any of claims 1-26.
29. A computer storage medium, characterized in that the computer-readable storage medium stores a computer program which, when run on a computer or a processor, causes the computer or the processor to carry out the method according to any one of claims 1 to 26.
30. A computer program product, characterized in that it comprises a software program which, when executed by a computer or a processor, causes the steps of the method of any one of claims 1 to 26 to be performed.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111069980.7A CN115811748A (en) | 2021-09-13 | 2021-09-13 | Communication method, system and electronic equipment |
PCT/CN2022/112911 WO2023035885A1 (en) | 2021-09-13 | 2022-08-17 | Communication method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111069980.7A CN115811748A (en) | 2021-09-13 | 2021-09-13 | Communication method, system and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115811748A true CN115811748A (en) | 2023-03-17 |
Family
ID=85481179
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111069980.7A Pending CN115811748A (en) | 2021-09-13 | 2021-09-13 | Communication method, system and electronic equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN115811748A (en) |
WO (1) | WO2023035885A1 (en) |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102019104B1 (en) * | 2012-01-20 | 2019-09-06 | 한국전자통신연구원 | Method for processing traffic using multi network interface card and network device thereof |
CN103369013A (en) * | 2012-04-09 | 2013-10-23 | 厦门毅想通信研发中心有限公司 | Data transmission method, data transmission apparatus and electronic device |
CN104702518B (en) * | 2015-03-05 | 2017-12-19 | 安徽清新互联信息科技有限公司 | A kind of more card router apparatus and its data transmission method based on wireless network |
CN112291181B (en) * | 2019-07-23 | 2023-03-10 | 腾讯科技(深圳)有限公司 | Data transmission method based on multiple network cards and related device |
CN112243268B (en) * | 2020-10-16 | 2022-07-05 | 南京邮电大学 | Multi-stream transmission control method based on QUIC protocol |
CN113055946A (en) * | 2021-02-08 | 2021-06-29 | 视联动力信息技术股份有限公司 | Service data transmission method, device, terminal equipment and storage medium |
-
2021
- 2021-09-13 CN CN202111069980.7A patent/CN115811748A/en active Pending
-
2022
- 2022-08-17 WO PCT/CN2022/112911 patent/WO2023035885A1/en active Application Filing
Also Published As
Publication number | Publication date |
---|---|
WO2023035885A1 (en) | 2023-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220163932A1 (en) | Device control page display method, related apparatus, and system | |
CN113691842B (en) | Cross-device content projection method and electronic device | |
CN110730448A (en) | Method for establishing connection between devices and electronic device | |
CN113630910B (en) | Method for using cellular communication function, related device and system | |
WO2021017894A1 (en) | Method for using remote sim module, and electronic apparatus | |
WO2023284650A1 (en) | Communication method and electronic device | |
WO2021104114A1 (en) | Method for providing wireless fidelity (wifi) network access service, and electronic device | |
CN114679708A (en) | Communication method, system and electronic equipment | |
WO2022199673A1 (en) | Login authentication method and electronic device | |
CN112130788A (en) | Content sharing method and device | |
EP4283931A1 (en) | Nfc method and system, and electronic device | |
WO2021218544A1 (en) | Wireless connection providing system, method, and electronic apparatus | |
WO2021179990A1 (en) | Application server access method and terminal | |
CN114301899B (en) | Data transmission method, system, electronic device and storage medium | |
WO2021244456A1 (en) | Reverse address resolution method and electronic devices | |
CN115967933A (en) | Networking method, related device and system | |
WO2023035885A1 (en) | Communication method and electronic device | |
CN117425227A (en) | Method and device for establishing session based on WiFi direct connection | |
WO2023051204A1 (en) | Cross-device connection method, electronic device and storage medium | |
EP4387210A1 (en) | Screen identification method for distributed display, medium and electronic device | |
CN117062252B (en) | Data transmission method and electronic equipment | |
WO2023124258A1 (en) | Method and apparatus for remotely accessing subscriber identity module (sim) card | |
CN118353900A (en) | Network access method and electronic equipment | |
CN115150753A (en) | Bluetooth communication method and system | |
CN115604773A (en) | Channel switching method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |