Networking method, networking system, and electronic equipment

By establishing multiple transmission channels between electronic devices and selecting appropriate channels according to the characteristics of the Internet data, the problem that a single channel in the prior art cannot be adapted to diversified Internet data is solved, and more efficient and energy-saving data transmission is achieved.

CN114071434BActive Publication Date: 2025-05-02HUAWEI TECH CO LTD

Patent Information

Application Number
CN202010767022.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-03
Publication Date
2025-05-02
Estimated Expiration
2040-08-03

AI Technical Summary

Technical Problem

In the prior art, electronic devices usually rely on a single type of transmission channel when connected to the network and cannot adapt to diversified network data, resulting in poor transmission efficiency and energy efficiency.

Method used

By establishing multiple different types of transmission channels between electronic devices (such as Bluetooth Low Energy, Bluetooth, Wi-Fi direct connection, universal serial bus direct connection and Ethernet data cable direct connection), select the most suitable transmission channel for data transmission based on the data characteristics of the Internet data.

Benefits of technology

It realizes more efficient and energy-saving data transmission in the Internet, and adapts to diversified Internet data needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114071434B_ABST
    Figure CN114071434B_ABST
Patent Text Reader

Abstract

The present application discloses a networking method, which is applied to a first electronic device, and the method includes: the first electronic device establishes a communication connection with a second electronic device, and determines at least two different types of transmission channels between the first electronic device and the second electronic device to adapt to the diverse Internet data transmitted between the two; the transmission channel includes at least two of a low-power Bluetooth transmission channel, a Bluetooth transmission channel, a Wi-Fi direct transmission channel, a universal serial bus direct transmission channel, and an Ethernet data line direct transmission channel. When networking, the first electronic device determines the first Internet data and its data characteristics, and determines the first transmission channel for transmitting the first Internet data from the at least two transmission channels based on the data characteristics; sending the first Internet data to the second electronic device through the first transmission channel can make the transmission of the first Internet data more efficient or more energy-saving. The present application also discloses a networking system and an electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a networking method and a networking system, and an electronic device. Background Art

[0002] With the development of electronic devices, such as mobile phones, wearable devices such as watches and glasses, and smart life products such as televisions and air conditioners, there are more and more application scenarios for electronic devices and ways to connect to the Internet (or surf the Internet) for electronic devices.

[0003] Usually, one electronic device uses another electronic device to access the Internet, such as a watch using a mobile phone to access the Internet. Common ways for electronic devices to access the Internet include Wireless Local Area Network (WLAN) (such as Wireless Fidelity (Wi-Fi) network), Wi-Fi Direct (Wi-Fi P2P), Bluetooth (BT), Bluetooth Low Energy (BLE) and Mobile Hotspot.

[0004] Currently, when electronic devices are connected to the Internet, they usually establish a single transmission channel based on a single type of networking method to transmit Internet data to achieve network access. However, due to the diversity of Internet data transmitted during networking, a single transmission channel usually cannot adapt to the diverse Internet data. Summary of the invention

[0005] The present application provides a networking method, in which multiple (or more) types of transmission channels are supported between electronic devices. When networking, a suitable transmission channel can be selected from multiple types of transmission channels for transmitting Internet data according to the data characteristics of the Internet data, so that when an electronic device accesses the Internet through other electronic devices, the transmission channel used to transmit the Internet data is more suitable for the Internet data, making the transmission of the Internet data more efficient or more energy-saving.

[0006] To solve the above technical problems, in the first aspect, the embodiment of the present application provides a networking method, which is applied to a first electronic device, and the method includes: the first electronic device establishes a communication connection with the second electronic device, and determines at least two different types of transmission channels between the first electronic device and the second electronic device to adapt the diversified Internet data transmitted between the two; the transmission channel includes at least two of a low-power Bluetooth transmission channel, a Bluetooth transmission channel, a Wi-Fi direct transmission channel, a universal serial bus direct transmission channel, and an Ethernet data line direct transmission channel. When networking, the first electronic device determines the first Internet data to be transmitted, and determines the data characteristics of the first Internet data, and determines the first transmission channel that is more suitable for transmitting the first Internet data from multiple different types of transmission channels according to the data characteristics; and sends the first Internet data to the second electronic device through the first transmission channel. For example, if the data frame of the first Internet data is large, a transmission channel with a large bandwidth can be selected as the first transmission channel, which can make the transmission of the first Internet data more efficient. If the transmission energy consumption of the first Internet data is large, and the requirements for transmission efficiency are not high, a transmission channel with low energy consumption can be selected as the first transmission channel, which can make the transmission of the first Internet data more energy-efficient.

[0007] In this implementation, different types of transmission channels refer to transmission channels based on different communication modes, such as a low-power Bluetooth transmission channel based on low-power Bluetooth communication, a Bluetooth transmission channel based on Bluetooth communication, a Wi-Fi direct transmission channel based on Wi-Fi communication, a Universal Serial Bus direct transmission channel based on Universal Serial Bus communication, an Ethernet data line direct transmission channel based on an Ethernet data line, etc. The transmission channel may also be other types of transmission channels.

[0008] In a possible implementation of the first aspect above, the first electronic device may determine the at least two different types of transmission channels based on the transmission channels supported by the first electronic device and the transmission channels supported by the second electronic device. The transmission channels supported by the first electronic device may be determined by whether the first electronic device has a Bluetooth communication module, a Wi-Fi communication module, etc. The method for determining the transmission channels supported by the second electronic device is the same as the method for determining the transmission channels supported by the first electronic device, and will not be repeated here.

[0009] In a possible implementation of the first aspect above, the first electronic device establishes a communication connection with the second electronic device, which can be any one of low-power Bluetooth communication, Bluetooth communication, Wi-Fi communication, universal serial bus communication, Ethernet data line communication, or other types of communication connections.

[0010] In a possible implementation of the first aspect, the first Internet access data is an Internet access request generated by the first electronic device. The first electronic device sends the first Internet access data to the second electronic device, and the second electronic device sends the first Internet access data to the network. The network generates second Internet access data in response to the first Internet access data as reply data based on the first Internet access data, and the network sends the second Internet access data to the second electronic device, and the second electronic device sends the second Internet access data to the first electronic device. The second electronic device sends the second Internet access data to the first electronic device, which may be sent through the first transmission channel or through other transmission channels.

[0011] In a possible implementation of the first aspect, the first electronic device is a wearable device, and the second electronic device is a mobile phone. The wearable device may be a watch, a bracelet, a headset, etc. In addition, the mobile phone may also be a tablet computer, a television, or other devices.

[0012] In a possible implementation of the first aspect, the method further includes: the first Internet access data is data received by the first electronic device from the network and used to respond to the Internet access request of the second electronic device. That is, when the second electronic device is connected to the network, it sends an Internet access request to the first electronic device, the first electronic device sends the Internet access request to the network, the network generates data in response to the Internet access request according to the Internet access request, and sends it as the first Internet access data to the first electronic device, and the first electronic device sends the first Internet access data to the second electronic device.

[0013] In a possible implementation of the first aspect above, the first electronic device is a mobile phone, and the second electronic device is a wearable device.

[0014] In a possible implementation of the first aspect, the first electronic device determines a first transmission channel for transmitting first Internet access data in the transmission channel according to the data feature, including: determining the first transmission channel for transmitting the first Internet access data according to a preset correspondence between the data feature and the transmission channel. After determining the data feature of the first Internet access data, the first transmission channel for transmitting the first Internet access data can be conveniently determined.

[0015] In a possible implementation of the first aspect above, the first electronic device determines a first transmission channel for transmitting first Internet access data in a transmission channel according to data characteristics, including: determining channel characteristics of each transmission channel; and determining channel requirements of the first Internet access data for the transmission channel according to the data characteristics of the first Internet access data; and matching the channel requirements with the channel characteristics of each transmission channel, so that the first transmission channel for transmitting the first Internet access data can be conveniently determined.

[0016] In a possible implementation of the first aspect above, the method also includes: the first electronic device quantifies the channel characteristics to obtain a corresponding first eigenvalue; quantifies the channel requirements to obtain a corresponding second eigenvalue; obtains the absolute value of the difference between the first eigenvalue and the second eigenvalue; and determines the first transmission channel according to the magnitude of the absolute value.

[0017] In a possible implementation of the first aspect, the channel requirement is matched with the channel characteristics of each transmission channel, and a transmission channel corresponding to the smallest absolute value is determined as the first transmission channel.

[0018] Quantifying the channel characteristics and channel requirements respectively and using numbers to represent each channel characteristic and channel requirement can more conveniently achieve quantitative comparison between multiple characteristics of the corresponding channel characteristics and channel requirements.

[0019] In a possible implementation of the first aspect, the channel characteristics include at least one of the following: power consumption characteristics, bandwidth characteristics, channel response speed characteristics, transmission delay characteristics, and connection reliability characteristics; the channel requirements include at least one of the following: power consumption requirements, bandwidth requirements, channel response speed requirements, transmission delay requirements, and connection reliability requirements; the channel characteristics and channel requirements correspond to each other. The channel characteristics may also be other characteristics, and the channel requirements may also correspond to other requirements.

[0020] In a possible implementation of the first aspect, the data feature of the first Internet access data includes at least one of the following: a transmission protocol type; a data frame size; and five-tuple information. The transmission protocol type may be a domain name system protocol, a hypertext transfer protocol, a file transfer protocol, a real-time transport protocol, or other transmission protocols. The five-tuple information includes a source IP address, a source port, a destination IP address, a destination port, and a transport layer protocol.

[0021] In a possible implementation of the first aspect above, determining a first transmission channel in a transmission channel for transmitting first Internet access data according to data characteristics includes: if the transmission protocol type of the first Internet access data is a domain name system protocol or a hypertext transfer protocol, the first transmission channel is a Bluetooth transmission channel; or if the transmission protocol type of the first Internet access data is a file transfer protocol or a real-time transfer protocol, the first transmission channel is a Wi-Fi direct transmission channel.

[0022] In a possible implementation of the first aspect above, determining a first transmission channel for transmitting first Internet access data in a transmission channel according to data characteristics includes: if a data frame of the first Internet access data is greater than or equal to a preset data frame threshold, the first transmission channel is a Wi-Fi direct transmission channel; or if a data frame of the first Internet access data is less than a preset data frame threshold, the first transmission channel is a Bluetooth transmission channel.

[0023] In a possible implementation of the first aspect above, determining a first transmission channel in a transmission channel for transmitting first Internet access data according to data characteristics includes: determining a service type corresponding to the first Internet access data according to five-tuple information of the first Internet access data; if the service type corresponding to the first Internet access data is a streaming media service or a domain name system protocol service, the first transmission channel is a Wi-Fi direct transmission channel.

[0024] In a possible implementation of the first aspect above, after determining the transmission channel and before determining the first transmission channel, the method further includes: selecting a transmission channel from at least two transmission channels as a default transmission channel that always remains open; if the first transmission channel is the same as the default transmission channel, the default transmission channel is used as the first transmission channel; if the first transmission channel is another transmission channel different from the default transmission channel, the first transmission channel is opened for transmission of the first Internet access data, and the first transmission channel is closed after the transmission is completed.

[0025] The first electronic device confirms the default transmission channel, or after the first electronic device and the second electronic device establish a communication connection, the transmission channel corresponding to the established communication connection is used as the default transmission channel. In addition, the first electronic device confirms the default transmission channel at any time as needed during the networking process of the first electronic device.

[0026] In a possible implementation of the first aspect above, the method further includes: sending the determined channel information of the at least two transmission channels to the second electronic device through the default transmission channel to inform the second electronic device of the transmission channel that may be used in the subsequent networking process. In addition, if the first transmission channel is another transmission channel different from the default transmission channel, after determining the first transmission channel, the first electronic device sends information to open the first transmission channel to the second electronic device through the default transmission channel, so that the second electronic device opens the first transmission channel, and the first Internet access data can be transmitted between the first electronic device and the second electronic device through the first transmission channel. After sending the first Internet access data, the first electronic device can also send information to close the first transmission channel to the second electronic device through the default transmission channel, so that the second electronic device closes the first transmission channel, so that the first transmission channel is in a closed state when not in use, which can effectively reduce the power consumption of the first electronic device and the second electronic device.

[0027] In a possible implementation of the first aspect above, the method further includes: when the first electronic device and the second electronic device are paired to establish a communication connection, the first electronic device displays a statement and a consent control to enable the proxy networking multi-transmission channel negotiation function; if the first electronic device detects that the user has triggered the consent control, the first electronic device determines the transmission channel, and determines the first transmission channel used for the first Internet data transmission during the Internet data transmission process with the second electronic device. Of course, the first electronic device can also display a cancel control. If the first electronic device detects that the user has triggered the cancel control, the first electronic device does not determine the at least two transmission channels, and directly sends the first Internet data through the transmission channel corresponding to the communication connection established with the second electronic device.

[0028] In a possible implementation of the first aspect above, the first electronic device includes a proxy networking multi-transmission channel negotiation selection control; the method also includes: when the first electronic device and the second electronic device are paired to establish a communication connection, the first electronic device displays the proxy networking multi-transmission channel negotiation selection control; if the first electronic device detects that the user has turned on the proxy networking multi-transmission channel negotiation selection control, the first electronic device determines the transmission channel, and determines the first transmission channel used for the first Internet data transmission during the Internet data transmission process with the second electronic device. In addition, if the first electronic device detects that the user has turned off the proxy networking multi-transmission channel negotiation selection control, the first electronic device does not determine the at least two transmission channels, or during the Internet data transmission process between the first electronic device and the second electronic device, the first transmission channel used for the first Internet data transmission is not determined, and the first Internet data is directly sent through the transmission channel corresponding to the communication connection established between the first electronic device and the second electronic device.

[0029] In a second aspect, an embodiment of the present application provides a networking method, the method comprising: a first electronic device establishes a communication connection with a second electronic device; the first electronic device determines at least two different types of transmission channels between the first electronic device and the second electronic device, the transmission channels comprising at least two of a low-power Bluetooth transmission channel, a Bluetooth transmission channel, a Wi-Fi direct transmission channel, a universal serial bus direct transmission channel, and an Ethernet data line direct transmission channel; the first electronic device generates first Internet access data to be transmitted; the first electronic device determines a data feature of the first Internet access data, and determines a first transmission channel in the transmission channel for transmitting the first Internet access data based on the data feature; the first electronic device sends the first Internet access data to the second electronic device through the first transmission channel; the second electronic device receives the first Internet access data and sends the first Internet access data to a network; the second electronic device receives second Internet access data sent by the network in response to the first Internet access data; the second electronic device sends the second Internet access data to the first electronic device through the first transmission channel; or the second electronic device determines the data feature of the second Internet access data, and determines a second transmission channel based on the data feature, and the second electronic device sends the second Internet access data to the first electronic device through the second transmission channel.

[0030] In a possible implementation of the second aspect, the first online data is an online request generated by the first electronic device, and the second online data is reply data generated by the network in response to the first online data after receiving the first online data.

[0031] The networking method provided in this embodiment corresponds to the networking method provided by the above-mentioned first aspect and / or any possible implementation method of the first aspect, and therefore can also achieve the beneficial effects (or advantages) of the networking method provided by the first aspect.

[0032] In a third aspect, an embodiment of the present application provides a networking system, comprising at least a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish a communication connection; the first electronic device is used to determine at least two different types of transmission channels between the first electronic device and the second electronic device, the transmission channels comprising at least two of a low-power Bluetooth transmission channel, a Bluetooth transmission channel, a Wi-Fi direct transmission channel, a universal serial bus direct transmission channel, and an Ethernet data line direct transmission channel; the first electronic device is used to determine first Internet data to be transmitted; the first electronic device is used to determine data characteristics of the first Internet data, and determine a first transmission channel in the transmission channel for transmitting the first Internet data according to the data characteristics; the first electronic device is used to send the first Internet data to the second electronic device through the first transmission channel; the second electronic device is used to receive the first Internet data and send the first Internet data to the network; the second electronic device is used to receive second Internet data sent by the network in response to the first Internet data; the second electronic device is used to send the second Internet data to the first electronic device through the first transmission channel; or the second electronic device determines the data characteristics of the second Internet data, and determines the second transmission channel according to the data characteristics, and the second electronic device sends the second Internet data to the first electronic device through the second transmission channel.

[0033] The networking system provided in this embodiment includes a first electronic device and a second electronic device for executing the networking method provided by the above-mentioned second aspect and / or any possible implementation method of the second aspect, and thus can also achieve the beneficial effects (or advantages) of the networking method provided by the second aspect.

[0034] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing a computer program, the computer program comprising program instructions; a control component for executing the program instructions so that the electronic device performs a networking method provided in the above-mentioned first aspect and / or any possible implementation of the first aspect.

[0035] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, the computer program includes program instructions, and the program instructions are executed by an electronic device to enable the electronic device to execute a networking method provided in the above-mentioned first aspect and / or any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solution of the present application, the drawings used in the description of the implementation methods are briefly introduced below.

[0037] Figure 1is a schematic diagram showing a networking system provided by the present application according to some implementation modes of the present application;

[0038] Figure 2 A schematic diagram of a process of proxy networking (surfing the Internet) in the prior art is shown;

[0039] Figure 3A is a schematic diagram showing the structure of a mobile phone according to some implementation modes of the present application;

[0040] Figure 3B is a schematic diagram showing the structure of a watch according to some embodiments of the present application;

[0041] Figure 3C According to some embodiments of the present application, a schematic diagram of the software framework structure of a watch and a mobile phone is shown;

[0042] Figure 4A According to some embodiments of the present application, a schematic diagram of a process of establishing a communication connection and negotiating a transmission channel between a mobile phone and a watch is shown;

[0043] Figure 4B and 4C According to some implementation methods of the present application, a schematic diagram showing the way in which some mobile phones and watches enable the transmission channel negotiation function is shown;

[0044] Figure 4D According to some embodiments of the present application, a schematic diagram of a process of proxy networking (surfing the Internet) between a mobile phone and a watch is shown;

[0045] Figure 5 is a schematic diagram showing a process of determining a transmission channel according to some embodiments of the present application;

[0046] Figure 6 According to some embodiments of the present application, another schematic diagram of a process of proxy networking (surfing the Internet) between a mobile phone 100 and a watch 200 is shown;

[0047] Figure 7 It is a schematic diagram showing another networking system provided by the present application according to some implementation modes of the present application. DETAILED DESCRIPTION

[0048] The implementation of the embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0049] In the usage scenarios of electronic devices, there is usually a situation where a certain electronic device is connected to the Internet with the help of another electronic device to access the network. For example, an electronic device that has no Internet access capability or cannot be independently connected to the Internet for a long time can be used as a client that needs Internet access services (hereinafter referred to as the client). When Internet access is needed for network access, the client can connect to the Internet with the help of an electronic device that has Internet access capability or can be independently connected to the Internet for a long time as a server (hereinafter referred to as the server) that provides Internet access services.

[0050] It should be noted that the client may refer to a device whose hardware does not support independent networking, such as a device that does not support networking capabilities such as a Bluetooth communication module, a Wi-Fi communication module, etc.; it may also refer to a device whose hardware supports independent networking but cannot independently connect to the Internet under specific circumstances, such as a mobile phone that is in an environment where there is no accessible wireless network and cannot access the cellular network due to arrears, etc.; it may also be a mobile phone that, when the remaining traffic is insufficient, the user chooses to access the Internet through the traffic of other electronic devices, etc. The embodiments of the present application are not limited to this.

[0051] The client can typically be a wearable device such as a watch, headset, glasses, etc. Due to hardware limitations such as small size and low battery capacity, wearable devices often cannot guarantee long-term independent networking. Therefore, they usually use mobile devices to complete network access. Of course, when the hardware itself supports independent networking, the client can also be, for example, a mobile phone, tablet computer, TV, laptop, personal computer (Personal Computer, PC), ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), handheld computer, netbook, personal digital assistant (Personal Digital Assistant, PDA), smart device (such as speakers, routers, smart screens, etc.) and other devices.

[0052] The server can be a mobile phone, tablet computer, TV, laptop computer, UMPC, handheld computer, netbook, PDA, smart device (such as speaker, router, smart screen, etc.) and other devices.

[0053] As an example scenario, the combination of wearable devices (such as watches) and mobile devices (such as mobile phones) is very common. The ways to connect the watch and the mobile phone to each other include the following technologies:

[0054] Bluetooth: Bluetooth technology is a wireless communication technology standard. The Bluetooth Technology Alliance is responsible for developing Bluetooth specifications and certifying and authorizing manufacturers. Bluetooth technology is used to form a personal area network between devices to exchange data over a short distance. It is currently widely used for wireless connections between different devices. Mobile phones and watches can achieve communication connections and information exchange through Bluetooth technology.

[0055] Bluetooth Low Energy (BLE): Bluetooth Low Energy is a personal area network technology designed by the Bluetooth SIG, which aims to significantly reduce power consumption and cost while maintaining the same communication range. Currently, most mobile operating systems including IOS, Android, Windows Phone and Black Berry, as well as lightweight operating systems for wearable devices such as Watch OS and Android Wear, support Bluetooth Low Energy technology.

[0056] Mobile Hotspot: refers to a device or area that provides Internet access through a wireless local area network. It uses the IEEE 802.11U protocol as a standard, supports cross-device and cross-platform connections, and allows mobile devices to automatically discover available networks, authorize and assign network permissions, and allows devices to use Subscriber Identity Module (SIM) or other Internet access credentials to automatically complete authentication and directly access the Internet. All mainstream mobile platforms (Android, IOS, Windows Phone, Windows) support mobile hotspot technology, including providing hotspot functions and accessing hotspots opened by other devices.

[0057] See also Figure 1 , Figure 1 A networking system is shown, including a mobile phone 100, a watch 200, and a network (also called the Internet or external network) 300, wherein the mobile phone 100 serves as a server, the watch 200 serves as a client, and the network 300 is a network that the watch 200 needs to access, which can be a network server or a cloud server.

[0058] Currently, there are two main ways for the watch 200 to access the network 300 via the mobile phone 100:

[0059] The first is mobile network sharing technology (or Tethering technology). Mobile network sharing technology refers to sharing the cellular mobile network or Wi-Fi network connected to the mobile phone 100 with (the watch 200) in a wireless or wired manner. Usually, the electronic device with this function enabled is also called a mobile hotspot.

[0060] Depending on the different access methods of the watch 200 to the mobile phone 100, mobile network sharing technology can be divided into Wi-Fi network sharing technology and Bluetooth network sharing technology, that is, the watch 200 can use Wi-Fi (Wi-Fi network sharing technology) or Bluetooth (Bluetooth network sharing technology) to access the mobile phone 100 according to the situation.

[0061] The mobile network sharing technology requires the mobile phone 100 to remain awake to monitor the Internet data packets of other networked devices (such as the watch 200) and to forward the Internet data packets at any time. This results in higher power consumption of the server of the mobile network sharing technology, namely the mobile phone 100.

[0062] The second type is network proxy technology. For example, Bluetooth network proxy technology is the mainstream technical solution in the industry. The current mainstream watch 200 systems, including Watch OS and Android Wear, all use this technology. Bluetooth network proxy technology requires the watch 200 to configure routing rules so that a built-in application or system framework with special permissions can monitor the Internet data packets of all other applications, and transmit these data packets to the mobile phone 100 through a pre-established Bluetooth transmission channel (or low-power Bluetooth transmission channel). The mobile phone 100 receives these Internet data packets through an application and forwards them to the network 300. In addition, other applications do not need to perceive the specific implementation of network transmission, and can directly use the general network access application programming interface (Application Programming Interface, API) for network access.

[0063] See also Figure 2 , Figure 2The process of the watch 200 using the Bluetooth network proxy technology with the help of the mobile phone 100 to access the Internet in the prior art is shown. A Bluetooth communication connection is established between the watch 200 and the mobile phone 100, and the mobile phone 100 is connected to the network 300. The Internet access request of the watch 200 for the network 300 is initiated by the application, that is, the application generates a first Internet access data packet corresponding to the first Internet access data as the Internet access request. The first Internet access data packet is transmitted by the first network service module providing Internet access services in the watch 200 via Bluetooth to the second network service module for providing Internet access services in the mobile phone 100, and the second network service module sends the first Internet access data packet to the network 300. The network 300 generates a second Internet access data packet (also referred to as a reply data packet or a response data packet) corresponding to the first Internet access data packet according to the Internet access data requested by the first Internet access data packet, and the network 300 feeds back the second Internet access data packet to the second network service module in the mobile phone 100. The second Internet access data packet is forwarded from the mobile phone 100 to the first network service module in the watch 200 via Bluetooth, and then the first network service module transmits the second Internet access data packet to the application. The application obtains the second Internet access data packet and completes the access to the network 300.

[0064] The transmission channel of the Bluetooth network proxy technology as described above must be attached to Bluetooth, that is, the first Internet data packet and the second Internet data packet are transmitted through the Bluetooth transmission channel between the mobile phone 100 and the watch 200. According to the Bluetooth 5.0 protocol, the maximum transmission speed of Bluetooth is only 2Mbps, which is much lower than the transmission rate of Wi-Fi and mobile cellular networks, so the transmission efficiency of Bluetooth is low.

[0065] During the network proxy networking process, there will be multiple types of Internet data. Considering the power consumption during the networking process and the requirements of Internet data for transmission efficiency, only a single network proxy networking method is provided, that is, a single type of transmission channel cannot adapt to the transmission of multiple types of Internet data.

[0066] The present application provides a networking method, which is applied to the scenario of providing Internet proxy services between electronic devices. In the networking method provided by the present application, multiple transmission channels of various types can be supported between the electronic device (such as a watch) as a client and the electronic device (such as a mobile phone) as a server, that is, after the client and the server discover each other in the local area network, the client and the server can negotiate and determine N (N≥2) types of transmission channels for Internet data transmission in the local area network for Internet proxy services according to their respective hardware capabilities (or device capabilities) and actual communication needs, and determine the channel characteristics of each transmission channel. The channel characteristics of the transmission channel include power consumption characteristics, which refer to the power consumption value generated when the transmission channel transmits Internet data and / or maintains the transmission channel, and the parameters used to reflect the power consumption characteristics include power consumption thresholds. In addition, the channel characteristics may also include bandwidth characteristics, and the bandwidth threshold refers to the maximum bandwidth allowed by the transmission channel, and the parameters used to reflect the bandwidth characteristics include bandwidth thresholds. In addition, the channel characteristics may also include other characteristics.

[0067] The transmission channel may be at least two of a Universal Serial Bus (USB) direct transmission channel, an Ethernet data line direct transmission channel, a Wi-Fi direct transmission channel, a Bluetooth transmission channel and a low-power Bluetooth transmission channel, and may also be other types of transmission channels.

[0068] When connecting to the Internet, the client and the server can first select a transmission channel with the lowest power consumption threshold as the default transmission channel (also called the initial transmission channel or the basic transmission channel), or select a transmission channel with the largest bandwidth as the default transmission channel. The default transmission channel is used to ensure communication between devices. Then, in the subsequent networking process, the client and the server can select a suitable transmission channel from multiple transmission channels of different types to transmit Internet data based on the data characteristics of the Internet data, which can balance the conflicts between power consumption overhead and bandwidth size between different transmission channels, as well as other conflicts.

[0069] For example, when an application in a client initiates a first Internet data packet, the client automatically selects a transmission channel as the first transmission channel for the first Internet data packet through a transmission channel decision algorithm based on the characteristics of the first Internet data packet, and transmits the first Internet data packet through the first transmission channel. In addition, the client can also inform the server to transmit the first Internet data packet through the first transmission channel. In addition, the server can also select a transmission channel as the second transmission channel through a transmission channel decision algorithm based on the characteristics of the second Internet data packet sent back by the network, and transmit the second Internet data packet through the second transmission channel. In addition, the client can also inform the client to transmit the second Internet data packet through the second transmission channel.

[0070] During the networking process, the client and the server can select a suitable transmission channel from multiple transmission channels according to the data characteristics of the transmitted Internet data, start the transmission channel for transmitting Internet data, and close the transmission channel after completing the Internet data transmission and return. In addition, the transmission channel as the default transmission channel can be continuously opened, and of course, it can also be switched to the closed state when the transmission channel is started, and when the transmission channel is closed, the default transmission channel can be started according to the use needs.

[0071] It should be noted that the Internet access data is transmitted in the form of Internet access data packets, the transmission of Internet access data is the transmission of Internet access data packets, the data characteristics of the Internet access data are the characteristics of the Internet access data packets, and the Internet access data packets include but are not limited to the aforementioned first Internet access data packets and second Internet access data packets. Among them, the first Internet access data packet may be an Internet access request data packet corresponding to the Internet access request, and the second Internet access data packet may be a reply data packet of the network in response to the Internet access request.

[0072] In addition, in the present application, the Internet access data packet may be a Transmission Control Protocol / Internet Protocol (TCP / IP) data packet.

[0073] In order to illustrate the networking method provided by the present application, the present application provides the following Figure 1 The networking system shown as a carrier of the networking method according to the present application. However, the application scenario of the present application is not limited to the following: Figure 1 The system and scenario shown may also be a network operation between other devices other than the watch 200 and the mobile phone 100 or other electronic devices using the method according to the present application.

[0074] See also Figure 3A , Figure 3A It is a structural diagram of a mobile phone 100 provided in an embodiment of the present application.

[0075] The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a 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, and a SIM card interface 195, etc. 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, etc.

[0076] It is understandable that the structure illustrated in the embodiment of the present application does not constitute a limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently.

[0077] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0078] The processor 110 can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of reading and executing instructions.

[0079] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0080] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an Inter-integrated Circuit (I2C) interface, an Inter-integrated Circuit Sound (I2S) interface, a Pulse Code Modulation (PCM) interface, a Universal Asynchronous Receiver / Transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a General-Purpose Input / Output (GPIO) interface, and a Subscriber Identity Module (SIM) interface.

[0081] The USB connector 130 is a connector that complies with USB standard specifications and can be used to connect the mobile phone 100 and peripheral devices. Specifically, it can be a standard USB connector (such as a Type C connector), a Mini USB connector, a Micro USB connector, etc. The USB connector 130 can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and peripheral devices. The connector can also be used to connect other electronic devices, such as AR devices, etc. The USB connector 130 can also be used to implement the aforementioned USB transmission channel. In some embodiments, the processor 110 can support USB, and the USB standard specifications can be USB1.x, USB2.0, USB3.x, USB4.

[0082] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0083] The mobile communication module 150 can provide wireless communication functions including 2G / 3G / 4G / 5G etc. applied on the mobile phone 100. And if the aforementioned network 300 is a cellular network, the mobile phone 100 accesses the network 300 through the mobile communication module 150.

[0084] The wireless communication module 160 can provide wireless communication solutions including WLAN (such as Wi-Fi), Bluetooth, Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), etc., which are applied to the mobile phone 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0085] The wireless communication module 160 may include a module for implementing local area network transmission, such as a Wi-Fi communication module, a Bluetooth communication module, etc. (or the wireless communication module 160 may include components for implementing local area network transmission, such as a Wi-Fi chip, a Bluetooth chip, etc.), for implementing the aforementioned Wi-Fi direct transmission, as well as Bluetooth transmission, low-power Bluetooth transmission, etc.

[0086] In some embodiments, the antenna 1 of the mobile phone 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone 100 can communicate with the network and other devices through wireless communication technology.

[0087] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile phone 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.

[0088] In addition, the mobile phone 100 may also include an Ethernet cable interface and a driver chip (not shown in the figure), which can be used to connect the mobile phone 100 and peripheral devices.

[0089] See also Figure 3B , Figure 3B It is a schematic diagram of an exemplary structure of a wearable electronic device provided in an embodiment of the present application. Figure 3B The structure diagram shown is also applicable to Figure 1 The watch 200 shown in FIG.

[0090] The watch 200 may include a processor 210, an external memory interface 220, an internal memory 221, a USB interface 230, a charging management module 240, a power management module 241, a battery 242, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C and a display screen 294, etc.

[0091] It is understood that the structure illustrated in the embodiment of the present application does not constitute a limitation on the watch 200. In other embodiments of the present application, the watch 200 may include more or fewer components than shown, or combine some components, or separate some components, or arrange the components differently.

[0092] The wireless communication module 260 can provide solutions for wireless communication including WLAN (such as Wi-Fi), Bluetooth, etc., applied to the watch 200. The wireless communication module 260 can be one or more devices integrating at least one communication processing module.

[0093] The wireless communication module 260 may include components for implementing local area network transmission, such as a Wi-Fi chip, a Bluetooth chip, etc. (or the wireless communication module 260 may include a module for implementing local area network transmission, such as a Wi-Fi communication module, a Bluetooth communication module, etc.), to implement the aforementioned Wi-Fi direct transmission, as well as Bluetooth transmission, low-power Bluetooth transmission, etc.

[0094] For a wearable device such as the watch 200, the USB interface 230 is usually not provided. For some wearable devices, a USB interface may also be provided, and the USB interface 230 may be used to implement a USB transmission channel between the watch 200 and the mobile phone 100, and to charge the watch 200.

[0095] In addition, the functions of other components in the watch 200 are the same as or similar to those of the corresponding components in the mobile phone 100, and are not described in detail here.

[0096] In the present application, although the client is a watch 200 as an example for explanation, the client may also be other wearable devices such as a bracelet, glasses, etc.

[0097] Figure 3C It is a software structure block diagram of the mobile phone 100 and the watch 200 provided in the embodiment of the present application.

[0098] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the systems of the mobile phone 100 and the watch 200 can be divided into an application layer, an operating system (OS) framework layer, and an OS layer. An application interface layer can also be included between the application layer and the OS framework layer, and an OS interface layer can also be included between the OS framework layer and the OS layer.

[0099] The application layer may include a series of application packages, which may include camera, gallery, calendar, call, map, weather, navigation, WLAN, Bluetooth, music, video, short message and other applications (not shown in the figure).

[0100] The OS framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The OS framework layer includes some predefined functions.

[0101] like Figure 3C As shown, the OS framework layer of watch 200 includes but is not limited to a first network connection management module and a first network proxy service (as a client) module; the OS layer of watch 200 includes but is not limited to an IP routing table (IP Tables), a network proxy service virtual network card and a first multiple concurrent transmission channel module.

[0102] The first network proxy service module is the core service module of the watch 200 for managing network proxy. The first network proxy service module is mainly responsible for the following functions:

[0103] ① Realize the device discovery function of the watch 200, that is, the first network proxy service module can enable the watch 200 to discover the mobile phone 100 in the local area network and complete the pairing connection with the mobile phone 100.

[0104] ② The function of negotiating the transmission channel between the watch 200 and the mobile phone 100 according to the device capabilities of the watch 200 and the mobile phone 100 is realized to determine the transmission channels supported by the watch 200 and the mobile phone 100, and determine the channel characteristics of each transmission channel, including power consumption characteristics, transmission bandwidth characteristics, etc. The negotiation of the transmission channel between the watch 200 and the mobile phone 100 can be based on the device capabilities (including whether it has a Wi-Fi communication module, a Bluetooth communication module, and whether a USB connection is established, etc.) after the watch 200 and the mobile phone 100 are successfully paired and a communication connection is established.

[0105] ③ After the watch 200 and the mobile phone 100 negotiate and determine the transmission channel, the first network proxy service module establishes a network proxy service virtual network card, configures the basic information and routing rules of the network proxy service virtual network card, and configures the IP routing table. Among them, the network proxy service virtual network card is used for the watch 200 to direct the first Internet data packet in the watch 200 to the first network proxy service module through the configured IP routing table, so as to realize the function of the first network proxy service module to monitor the first Internet data packet, and can realize other applications to directly use the Internet proxy service without perception and adaptation. Among them, the basic information of the network proxy service virtual network card includes, for example, the IP address of the domain name system (or service) (Domain Name System, DNS) server, the network protocol and bandwidth supported by the network proxy service virtual network card, and the routing rules refer to the information of the first Internet data packet based on different protocols (such as TCP protocol or User Datagram Protocol (User Datagram Protocol, UDP)) that is specified in advance and forwarded to the first network proxy service module in the IP routing table. The IP routing table specifies the rules for forwarding the first Internet data packet in the system to the first network proxy service module, so as to realize the function of the first network proxy service module to monitor the first Internet data packet. In addition, the first network proxy service module is also used to shut down the network proxy service virtual network card when the network proxy service virtual network card is not in use.

[0106] ④ Monitor the first Internet data packet, that is, the first network proxy service module is used to monitor all the first Internet data packets of the watch 200, so as to forward the first Internet data packet to the mobile phone 100 to realize Internet access as needed.

[0107] ⑤ Selection of the transmission channel during the transmission of the first Internet data packet, that is, the first network proxy service module can manage the transmission of the first Internet data packet, select the transmission channel to be used through the transmission channel decision algorithm according to the characteristics of the first Internet data packet, and after selecting the transmission channel to be used, open or close the corresponding transmission channel as needed for the transmission of the first Internet data packet.

[0108] ⑥ The forwarding record of the first Internet data packet, that is, the first network proxy service module records the data packet information of the first Internet data packet that is currently surfing the Internet (including five-tuple information such as port information, and information such as transmission link information), so that when the second Internet data packet returned by the network 300 is received, the second Internet data packet corresponding to each first Internet data packet can be determined according to the data packet information of the second Internet data packet and the data packet information of the aforementioned first Internet data packet, and the second Internet data packet returned by the network 300 can be forwarded back to the corresponding application.

[0109] The first network connection management module is used to support the network connection service of the watch 200, and may be a standard network connection service interface in the system.

[0110] The network proxy service virtual network card is a virtual network card generated by the first network proxy service module for monitoring the first Internet data packets. The network proxy service virtual network card is used to direct all first Internet data packets in the watch 200 to the first network proxy service module according to the IP routing table configured by the first network proxy service module, so as to realize the function of the first network proxy service module monitoring the first Internet data packets.

[0111] The IP routing table runs at the OS layer and specifies the forwarding rules of the first Internet data packet in the system, so as to enable the network proxy service virtual network card to direct the first Internet data packet to the first network proxy service module during the transmission of the first Internet data packet, so as to realize the function of the first network proxy service module to monitor the first Internet data packet.

[0112] The first multiple concurrent transmission channel module includes multiple transmission channels in the local area network established by negotiation between the watch 200 and the mobile phone 100. The transmission channels do not affect each other. The transmission channels can all realize data transmission between the watch 200 and the mobile phone 100, and each transmission channel can be started separately or simultaneously, which can be selected as needed. In addition, each transmission channel has its own channel characteristics.

[0113] Compared with the software system of watch 200, the OS framework layer of mobile phone 100 includes but is not limited to a second network connection management module and a second network proxy service module; the OS layer of mobile phone 100 includes but is not limited to a second multiple concurrent transmission channel module, as well as a Wi-Fi protocol stack (or driver) and a cellular protocol stack (or driver).

[0114] Among them, the second network proxy service module is the core service module for managing the network proxy of the mobile phone 100. The functions of the second network proxy service module are similar to those of the first network proxy service module of the watch 200. For example, the second network proxy service module can also realize the device discovery function of the mobile phone 100, which can enable the mobile phone 100 to discover the watch 200 in the local area network and complete the pairing connection with the watch 200; realize the function of negotiating the transmission channel between the watch 200 and the mobile phone 100 according to the device capabilities of the watch 200 and the mobile phone 100; the function of monitoring the second Internet data packet in the mobile phone 100; the function of selecting the transmission channel during the transmission of the second Internet data packet; and the forwarding record function of the second Internet data packet, etc. No further details will be given here.

[0115] It should be noted that, since the mobile phone 100 does not have a network proxy service virtual network card, the second network proxy service module of the mobile phone 100 is different from the first network proxy service module of the watch 200 and does not need to implement the configuration functions of the network proxy service virtual network card and the IP routing table.

[0116] The second network connection management module is used to support the network connection service of the mobile phone 100, and may be a standard network connection service interface in the system.

[0117] The second multiple concurrent transmission channel module has the same or similar functions as the first multiple concurrent transmission channel module in the aforementioned watch 200, including multiple transmission channels within the local area network established through negotiation between the watch 200 and the mobile phone 100, which will not be repeated here.

[0118] The Wi-Fi protocol stack and the cellular protocol stack have the capability of accessing the Internet, and are used by the mobile phone 100 to actually access the network 300 .

[0119] In this application, the watch 200 may be configured with the following configuration information before the watch 200 leaves the factory: Figure 3C The software structure shown is Figure 3C The software structure shown is integrated into the system of the watch 200, which can also be a system that is not available when leaving the factory. Figure 3C The watch 200 of the software structure shown in FIG. 1 is updated so that the watch 200 has Figure 3C The update method can be to update through Over the Air (OTA) technology, for example, the network 300 can push the update data packet to the watch 200 through the mobile phone 100, and the watch 200 obtains the update data packet to update to have Figure 3C The software structure shown.

[0120] In this application, the mobile phone 100 may be configured with Figure 3C The software structure shown is Figure 3C The software structure shown is integrated into the system of the mobile phone 100, which can also be a software that is not available when leaving the factory. Figure 3C The mobile phone 100 of the software structure shown in the figure performs a system update so that the mobile phone 100 has Figure 3C The update method may be to update by OTA technology or other technologies, for example, the network 300 may push an update data packet to the mobile phone 100, and the mobile phone 100 obtains the update data packet to update to have Figure 3C The software structure shown.

[0121] It should be noted that the systems of the mobile phone 100 and the watch 200 in the present application can be the Android system, or any other system such as Hongmeng, LiteOS system, and iOS system.

[0122] like Figure 3C As shown, when a communication connection is established between the watch 200 and the mobile phone 100, there are three transmission channels negotiated and determined by the watch 200 and the mobile phone 100, that is, there are three transmission channels supported between the first multi-path transmission channel module in the watch 200 and the second multi-path transmission channel module in the mobile phone 100, namely, transmission channel A, transmission channel B and transmission channel C. Transmission channel A can be a Bluetooth transmission channel, transmission channel B can be a Wi-Fi direct transmission channel, and transmission channel C can be a low-power Bluetooth transmission channel. And the communication connection established between the watch 200 and the mobile phone 100 can be a low-power Bluetooth communication connection, that is, the watch 200 and the mobile phone 100 select the low-power Bluetooth transmission channel as the default transmission channel.

[0123] The transmission channel negotiated between the watch 200 and the mobile phone 100 can be determined based on the aforementioned device capabilities of the watch 200 and the mobile phone 100 after the watch 200 and the mobile phone 100 are successfully paired and establish a low-power Bluetooth connection.

[0124] in addition, Figure 3C The following is an exemplary diagram showing the direction of Internet data packets (data streams) in the watch 200 and the mobile phone 100 when the watch 200 and the mobile phone 100 have negotiated and determined the transmission channel. The exemplary direction of Internet data packets in the watch 200 and the mobile phone 100 is as follows:

[0125] S11, when the application in the application layer of the watch 200 receives a network access trigger operation from the user and needs to access the network 300, the application sends a first Internet access data packet, for example, for requesting Internet access data, to the first network connection management module in the OS framework layer.

[0126] S12, the first network connection management module in the OS framework layer of the watch 200 forwards the first Internet access data packet to the network proxy service virtual network card in the OS layer.

[0127] S131, the network proxy service virtual network card forwards the first Internet access data packet to the IP routing table running in the OS layer.

[0128] S132, the IP routing table sends the first Internet access data packet to the first network proxy service module in the OS framework layer according to the forwarding rule of the first Internet access data packet configured in the IP routing table by the first network proxy service module.

[0129] S14, the first network proxy service module matches the characteristics of the first Internet data packet with the characteristics of the transmission channel to determine the transmission channel of the first Internet data packet. After the first network proxy service module determines the transmission channel of the first Internet data packet, it sends the first Internet data packet to the determined transmission channel.

[0130] If the determined transmission channel is the Wi-Fi direct transmission channel, the first network proxy service module notifies the first multi-path transmission channel module to select and open the Wi-Fi direct transmission channel to transmit the first Internet data packet to the mobile phone 100. The first network proxy service module notifies the mobile phone 200 to select and open the Wi-Fi direct transmission channel to transmit the first Internet data packet through the low-power Bluetooth transmission channel as the default transmission channel.

[0131] S15, after receiving the first Internet access data packet, the second multi-path transmission channel module in the OS layer of the mobile phone 100 transmits the first Internet access data packet to the second network proxy service module in the OS framework layer of the mobile phone 100.

[0132] After the second network proxy service module receives the first Internet access data packet, if the mobile phone 100 currently accesses the network 300 via Wi-Fi, the mobile phone 100 executes step S161 to send the first Internet access data packet to the Wi-Fi protocol stack (or driver), and the Wi-Fi protocol stack (or driver) sends the first Internet access data packet to the network 300.

[0133] If the mobile phone 100 accesses the network 300 via a cellular mode, the mobile phone 100 executes step S162 to send the first Internet access data packet to the cellular network protocol stack (or driver), and the cellular network protocol stack (or driver) sends the first Internet access data packet to the network 300. That is, the mobile phone 100 sends the first Internet access data packet to the network 300 according to the communication connection mode between the mobile phone 100 and the network 300.

[0134] Further, after receiving the first Internet access data packet, the network 300 determines the reply data corresponding to the first Internet access data packet as the second Internet access data packet according to the data information of the Internet access request included in the first Internet access data packet, and the network 300 returns the second Internet access data packet to the mobile phone 100 through the Wi-Fi protocol stack (or driver) (or the cellular network protocol stack (or driver)). After the network 300 returns the second Internet access data packet to the mobile phone 100 through the Wi-Fi protocol stack (or driver) (or the cellular network protocol stack (or driver)), it also includes: the Wi-Fi protocol stack (or driver) (or the cellular network protocol stack (or driver)) sends the second Internet access data packet to the second network proxy service module.

[0135] After receiving the second Internet data packet, the second network proxy service module in the mobile phone 100 determines, based on the forwarding record of the first Internet data packet, that the second Internet data packet is the second Internet data packet corresponding to the aforementioned first Internet data packet. The second network proxy service module in the mobile phone 100 determines the transmission channel of the second Internet data packet, and the second network proxy service module transmits the second Internet data packet to the determined transmission channel. The transmission channel can be the transmission channel previously determined by the mobile phone 100 and the watch 200 through negotiation, or it can be the transmission channel re-determined by the mobile phone 100 based on the characteristics of the second Internet data packet.

[0136] After the first multi-path transmission channel module of watch 200 receives the second Internet access data packet, it transmits the second Internet access data packet to the first network proxy service module in watch 200. The first network proxy service module transmits the second Internet access data packet to the first network connection management module via the IP routing table and the network proxy service virtual network card, and then transmits it to the business application via the first network connection management module to complete the network access of the application.

[0137] Figure 3C The following is an example of the direction of the data packets in the watch 200 and the mobile phone 100 when the watch 200 and the mobile phone 100 establish a communication connection and negotiate to determine the transmission channel. The process of the watch 200 and the mobile phone 100 establishing a communication connection and negotiating to determine the transmission channel is explained below.

[0138] As an exemplary usage scenario, the user has two devices, watch 200 (as the client) and mobile phone 100 (as the server), and both devices have sufficient power. Figure 4A As shown, the process of the watch 200 and the mobile phone 100 discovering each other, establishing a communication connection, and negotiating a transmission channel includes:

[0139] S21, the watch 200 and the mobile phone 100 are initialized.

[0140] Initialization of the watch 200 and the mobile phone 100 may mean that there is no communication connection between the mobile phone 200 and the mobile phone 100, or that the mobile phone 200 and the mobile phone 100 have never established a communication connection. For example, the watch 200 and the mobile phone 100 may be considered initialized when they are paired for the first time; or the watch 200 and the mobile phone 100 may be considered initialized when their Bluetooth is turned on or restarted.

[0141] S22, the watch 200 and the mobile phone 100 check whether the device is reachable, that is, the watch 200 and the mobile phone 100 perform device discovery, the mobile phone 100 checks whether there is a device watch 200 with which a communication connection can be established, and the watch 200 checks whether there is a device mobile phone 100 with which a communication connection can be established. If the means used by the watch 200 and the mobile phone 100 for device discovery can be a low-power Bluetooth means, the establishment of a communication connection here refers to the establishment of a low-power Bluetooth connection.

[0142] If it is reachable (there are watch 200 and mobile phone 100 that can establish a low-power Bluetooth communication connection), execute S24; if it is not reachable (there are no watch 200 and mobile phone 100 that can establish a low-power Bluetooth communication connection), execute S23.

[0143] S23, the watch 200 and the mobile phone 100 wait for the device to be reachable, that is, the watch 200 and the mobile phone 100 wait for establishing a connection with each other.

[0144] S24, the watch 200 is paired with the mobile phone 100. When the pairing is successful, the watch 200 and the mobile phone 100 establish a communication connection and negotiate the transmission method between the devices, that is, negotiate the transmission channel.

[0145] For example, if the means used for device discovery between the watch 200 and the mobile phone 100 is low-power Bluetooth, a low-power Bluetooth connection can be established after the watch 200 and the mobile phone 100 are successfully paired. The low-power Bluetooth transmission channel corresponding to the low-power Bluetooth connection can be used as the default transmission channel and is always kept open during the subsequent networking process to ensure communication between devices.

[0146] Next, the watch 200 and the mobile phone 100 determine whether to negotiate the transmission channel. The negotiation can be when the watch 200 and the mobile phone 100 are paired for the first time, and the mobile phone 100 displays the following information: Figure 4B The statement 1100 shown (the mobile phone 100 displays the description content "This service will enable the proxy networking multi-transmission channel negotiation function", as well as the "OK" control and the "Cancel" control) states in a declarative manner that the watch 200 and the mobile phone 100 can enable the function of negotiating the transmission channel during the communication process. If the mobile phone 100 detects that the user triggers the "OK" control, the mobile phone 100 and the watch 200 negotiate the transmission channel during the communication process. If the mobile phone 100 detects that the user triggers the "Cancel" control, the mobile phone 100 and the watch 200 do not negotiate the transmission channel during the communication process.

[0147] In addition, the mobile phone 100 may also be provided with a control for the user to control whether the transmission channel is negotiated or not, for example, Figure 4CAs shown, under the "Settings" control, the "Proxy Networking Multi-Transmission Channel Negotiation" selection control 1200 can be set. When the watch 200 is paired with the mobile phone 100 for the first time, the mobile phone 100 displays the following Figure 4C If the mobile phone 100 detects that the user has turned on the "Proxy Networking Multi-Transmission Channel Negotiation" function, the mobile phone 100 and the watch 200 will negotiate the transmission channel during the communication between the mobile phone 100 and the watch 200; if the mobile phone 100 detects that the user has turned off the "Proxy Networking Multi-Transmission Channel Negotiation" function, the mobile phone 100 and the watch 200 will not negotiate the transmission channel during the communication between the mobile phone 100 and the watch 200.

[0148] The watch 200 and the mobile phone 100 determine whether to negotiate the transmission channel. Alternatively, in the usage scenario of the mobile phone 100 of the watch 200, if the watch 200 reaches a preset state (for example, the watch 200 detects that the power of the watch 200 is lower than a certain power value, or the watch 200 detects that the original network signal connected to the watch 200 is unstable, etc.), the watch 200 sends a negotiation request to the mobile phone 100. After receiving the negotiation request, if the mobile phone 100 determines to turn on the proxy networking multi-transmission channel negotiation function with the watch 200 (for example, if the mobile phone 100 detects that the user turns on the proxy networking multi-transmission channel negotiation function, the mobile phone 100 determines to turn on the proxy networking multi-transmission channel negotiation function), the mobile phone 100 sends a response to the watch 200 agreeing to negotiate. After the watch 200 receives the response, a communication connection is established between the watch 200 and the mobile phone 100, and the transmission channel is negotiated.

[0149] Of course, the watch 200 and the mobile phone 100 may also determine whether to negotiate the transmission channel when other transmission channel negotiation conditions are met, and they can choose according to needs.

[0150] During the communication process, the mobile phone 100 and the watch 200 can negotiate the transmission method between them, that is, negotiate the transmission channel, through the low-power Bluetooth transmission channel established between them.

[0151] An exemplary method of negotiating a transmission channel according to an implementation of the present application is explained below.

[0152] In one implementation of the present application, when the watch 200 establishes a low-power Bluetooth connection with the mobile phone 100, the negotiation process of the transmission channel between the watch 200 and the mobile phone 100 can be that the watch 200 and the mobile phone 100 notify each other of the transmission channels supported by their devices through the existing low-power Bluetooth transmission channel, as shown in Table 1 below. The transmission channels supported by the mobile phone 100 include Bluetooth transmission channels, Wi-Fi direct transmission channels, USB direct transmission channels, and low-power Bluetooth transmission channels. The transmission channels supported by the watch 200 include Bluetooth transmission channels, Wi-Fi direct transmission channels, and low-power Bluetooth transmission channels. The two parties choose a transmission channel supported by both parties, that is, the negotiated transmission channels include Bluetooth transmission channels, Wi-Fi direct transmission channels, and low-power Bluetooth transmission channels.

[0153] It should be noted that the mobile phone 100 and the watch 200 determine the supported transmission channels according to the device capabilities. For example, if the mobile phone 100 and the watch 200 have USB interfaces and USB-related components respectively, it means that the mobile phone 100 and the watch 200 support the USB direct transmission channel. If the mobile phone 100 (or the watch 200) does not have the USB interface and USB-related components, it means that the mobile phone 100 (or the watch 200) does not support the USB direct transmission channel, and the USB direct transmission channel cannot be established between the mobile phone 100 and the watch 200, that is, the mobile phone 100 and the watch 200 do not support the USB direct transmission channel. In addition, if the mobile phone 100 and the watch 200 have USB interfaces and USB-related components respectively, and the mobile phone 100 and the watch 200 have established a USB connection through a USB data cable, it means that the USB direct transmission channel between the mobile phone 100 and the watch 200 is available. If the mobile phone 100 and the watch 200 do not establish a USB connection through a USB data cable, it means that the USB direct transmission channel between the mobile phone 100 and the watch 200 is currently unavailable. In addition, if the mobile phone 100 has a Bluetooth, low-power Bluetooth, or Wi-Fi communication module, it means that the mobile phone 100 supports Bluetooth, low-power Bluetooth, and Wi-Fi transmission channels; if the watch 200 has a Bluetooth, low-power Bluetooth, or Wi-Fi communication module, it means that the watch 200 supports Bluetooth, low-power Bluetooth, and Wi-Fi transmission channels. Conversely, if at least one of the mobile phone 100 and the watch 200 does not have a Bluetooth communication module, the mobile phone 100 and the watch 200 do not support Bluetooth transmission channels; the determination of other transmission channels is also the same, and will not be repeated here.

[0154] Transmission Channel Mobile 100 Watch 200 Wi-Fi Direct support support USB direct connection support Not supported Bluetooth support support Bluetooth Low Energy support support

[0155] Table 1

[0156] In addition, the watch 200 and the mobile phone 100 negotiate the transmission channel, which can be determined by both of them at the same time, or the watch 200 notifies the mobile phone 100 of the transmission channels supported by the watch 200, and the mobile phone 100 determines the transmission channels supported by both according to the transmission channels supported by the mobile phone 100 and the transmission channels supported by the watch 200, and then the mobile phone 100 notifies the watch 200 of the determined transmission channels. Alternatively, the mobile phone 100 notifies the watch 200 of the transmission channels supported by the mobile phone 100, and the watch 200 determines the transmission channels supported by both according to the transmission channels supported by the watch 200 and the transmission channels supported by the mobile phone 100, and then the watch 200 notifies the mobile phone 100 of the determined transmission channels.

[0157] In another implementation of the present application, the negotiation process of the transmission channel between the watch 200 and the mobile phone 100 may also be that the watch 200 sends the device data of the watch 200 to the mobile phone 100 through the low-power Bluetooth transmission channel, and the mobile phone 100 can determine the transmission channel supported by the watch 200 according to the device data of the watch 200, and the mobile phone 100 can determine the transmission channel supported by the mobile phone 100 according to the device data of the mobile phone 100, and then determine the transmission channel supported by both as the transmission channel determined by negotiation. The device data is data indicating the device capabilities of the device, for example, data on whether it has a USB interface and USB-related component information, and data on whether it has Bluetooth, low-power Bluetooth, Wi-Fi communication modules, etc.

[0158] After the mobile phone 100 and the watch 200 determine the transmission channels supported by the mobile phone 100 and the watch 200 through negotiation, the feature of each transmission channel is also determined.

[0159] Different transmission channels have different channel characteristics, which can be reflected in bandwidth, power consumption, channel response speed, transmission delay, connection reliability, etc. Channel characteristics include but are not limited to power consumption characteristics, bandwidth characteristics, channel response speed characteristics, transmission delay characteristics, connection reliability characteristics, etc.

[0160] The transmission channels negotiated and determined by the watch 200 and the mobile phone 100 include a Bluetooth transmission channel, a Wi-Fi direct transmission channel, and a low-power Bluetooth transmission channel. The channel characteristics of each transmission channel can be shown in Table 2 below:

[0161]

[0162]

[0163] Table 2

[0164] It should be noted that different Internet data packets have different requirements for transmission channels. The channel characteristics of the transmission channel shown in Table 2 are used to transmit Internet data packets between the watch 200 and the mobile phone 100. The watch 200 and the mobile phone 100 determine the transmission channel adapted for the Internet data packet according to the transmission channel decision algorithm. The transmission channel decision algorithm is to aggregate targets with similar characteristics to achieve the purpose of classification, that is, the watch 200 and the mobile phone 100 can perform feature matching based on the characteristics of the Internet data packet and the channel characteristics of the transmission channel through the transmission channel decision algorithm to determine the transmission channel corresponding to each Internet data packet, thereby achieving the purpose of determining the transmission channel adapted for the Internet data packet.

[0165] For example, when only one feature matching is performed in the channel features shown in Table 2, for example, Internet data packets with higher power consumption requirements can be classified into transmission channels with power consumption characteristics of low power consumption overhead (i.e., greater power consumption benefits), Internet data packets with higher bandwidth requirements can be classified into transmission channels with bandwidth characteristics of high bandwidth (i.e., greater bandwidth benefits), Internet data packets with higher channel response speed requirements (i.e., faster channel response speed) can be classified into transmission channels with channel response speed characteristics of fast response speed (i.e., greater channel response speed benefits), Internet data packets with higher transmission delay requirements (i.e., smaller transmission delay) can be classified into transmission channels with transmission delay characteristics of small transmission delay (i.e., greater transmission delay benefits), and Internet data packets with higher connection reliability requirements (i.e., better) can be classified into transmission channels with connection reliability characteristics of better connection reliability (i.e., greater connection reliability benefits). When multiple feature matching is performed, the matching degree can be determined based on multiple matching results, and the corresponding transmission channel can be determined based on the matching degree. The matching process of the features of the Internet data packets and the channel features of the transmission channel in Table 2 will be described in detail later.

[0166] In order to make better decisions on transmission channels, these channel characteristics can be quantified.

[0167] The following is an exemplary method for quantifying the channel characteristics of a transmission channel:

[0168] After quantifying each channel feature, a number within a certain range (such as 0-10) is used to represent the feature value. The larger the number, the greater the positive benefit of the channel feature. The positive benefit of the transmission channel refers to the ability to make the user experience better (such as faster Internet access, etc.) or to make the device consume less power. Among them, for the power consumption feature, the smaller the power consumption (power consumption) of the transmission channel in transmitting Internet data packets, the greater the positive benefit; for the bandwidth feature, the larger the transmission bandwidth supported by the transmission channel, the greater the positive benefit; for the channel response speed feature, the faster the channel response speed when the transmission channel transmits Internet data packets, the greater the positive benefit; for the transmission delay feature, the smaller the transmission delay when the transmission channel transmits Internet data packets, the greater the positive benefit; for the connection reliability feature, the more stable the channel (or communication connection) of the transmission channel, the greater the positive benefit.

[0169] Table 3 below is an example of quantized feature values ​​of a set of channel features:

[0170] Transmission Channel Power consumption characteristics Bandwidth characteristics Channel response speed Transmission delay Connection reliability Wi-Fi Direct 2 8 8 5 5 Bluetooth 8 2 2 4 5 Bluetooth Low Energy 10 1 1 4 5

[0171] Table 3

[0172] The above example is only a simplified quantitative feature value determined according to the benefit of the channel feature, which is used to illustrate the channel feature of the transmission channel and how the channel feature is used in the transmission channel decision algorithm. In actual implementation, the channel feature can also include more feature types, and the feature value can also be a value in another range.

[0173] The characteristic values ​​of the channel characteristics of the transmission channel shown in Table 3 are used to determine the transmission channel adapted by the Internet data packet when the watch 200 and the mobile phone 100 transmit the Internet data packet. For example, feature matching can be performed through the transmission channel decision algorithm based on the characteristic values ​​of the Internet data packet and the characteristic values ​​of the transmission channel to determine the transmission channel of each Internet data packet. The matching process of the characteristic values ​​of the Internet data packet and the characteristic values ​​of the channel characteristics of the transmission channel in Table 3 will be described in detail later.

[0174] Please continue to see Figure 4A After the watch 200 and the mobile phone 100 complete the negotiation of the transmission channel and the determination of the channel characteristics, the following steps are also included:

[0175] S25, the watch 200 and the mobile phone 100 monitor the low-power Bluetooth link to determine whether the watch 200 and the mobile phone 100 maintain a low-power Bluetooth communication connection. If the watch 200 and the mobile phone 100 maintain a low-power Bluetooth communication connection, the subsequent Internet data packet transmission can be performed; if the watch 200 and the mobile phone 100 do not maintain a communication connection, the transmission of the Internet data packet can be terminated.

[0176] S26, watch 200 creates a network proxy service virtual network card and configures an IP routing table.

[0177] S27, the watch 200 implements port monitoring according to the IP routing table. The port here can be a port configured in the IP routing table, including the port through which the first Internet data packet will pass when accessing the network. That is, the watch 200 sets the monitoring port in advance, sets the forwarding rules of the first Internet data packet through the IP routing table, and realizes that the first Internet data packet is forwarded to the first network proxy service module after being filtered by the IP routing table.

[0178] Figure 4A The figure shows an example of the process in which the watch 200 and the mobile phone 100 discover each other, establish a connection, and negotiate a transmission channel. After step S27, if the watch 200 is monitoring the port and detects the first Internet data packet, the watch 200 needs to access the network 300 with the help of the mobile phone 100.

[0179] When the watch 200 monitors the first Internet data packet, the watch 200 accesses the network 300 with the help of the mobile phone 100. First, the watch 200 needs to determine the transmission channel of the first Internet data packet according to the characteristics of the first Internet data packet, so as to transmit the first Internet data packet to the mobile phone 100. The process of the watch 200 accessing the network 300 with the help of the mobile phone 100 can be seen in Figure 4D , the application of watch 200 initiates networking, sends out a first TCP Internet data packet, or sends out a first UDP Internet data packet, and the system kernel of watch 200 forwards the first Internet data packet to the first network proxy service module according to the routing rules of the IP router preset by the first network proxy service module; the first network proxy service module monitors the first Internet data packet, analyzes the characteristics of the first Internet data packet, and determines the transmission channel of the first Internet data packet; forwards the first Internet data packet to mobile phone 100 according to the selected transmission channel; mobile phone 100 forwards the first Internet data packet to network 300, and network 300 returns the resulting second Internet data packet to mobile phone 100; mobile phone 100 uses the selected transmission channel to forward the second Internet data packet back to the first network proxy service module in watch 200; the first network proxy service module in watch 200 transmits the received second Internet data packet back to the application.

[0180] It should be noted that Figure 4DIn the embodiment, the application in the watch 200 can be a system application of the watch 200 or a third-party application. The functions of the system kernel in the watch 200 can be implemented by the aforementioned network proxy service virtual network card and IP routing table running in the OS layer. The first network proxy management service module can include a traffic monitoring module, a forwarding management module and a transmission channel module according to its function. In addition, the first network proxy management service module in the mobile phone 100 can include a transmission channel module and a traffic monitoring module according to its function; the functions of the system kernel in the mobile phone 100 can be implemented by the aforementioned Wi-Fi protocol stack or cellular protocol stack.

[0181] In this implementation, the first Internet access data packet may be a first Internet access request data packet, and the second Internet access data packet may be a first reply data packet.

[0182] The process of the watch 200 accessing the network 300 by means of the mobile phone 100 may include the following steps:

[0183] S201, the networking module of the application in the watch 200 initiates a request to the system kernel in the watch 200, applies for a TCP or UDP socket, and sends a first Internet access request data packet. The first Internet access request data packet includes source IP address and port information, and destination IP address and port information. The source IP address and port information are the IP address and port information of the first network proxy management service module, and the destination IP address and port information are the IP address and port information of the network 300.

[0184] The networking module refers to a module used for network functions within the application. The networking module can apply for a socket through the interface provided by the aforementioned first network proxy management service module, or can directly apply for a socket using, for example, an interface provided by the Linux kernel. It should be noted that no matter how the networking module applies for a socket, the Internet data packet will eventually reach the system kernel.

[0185] S202, the system kernel in the watch 200 forwards the first Internet access request data packet to the first network proxy management service module according to the IP routing table. The IP routing table can forward all data packets with the loopback (lo) interface as the exit to the first network proxy management service module, so that the first network proxy management service module can monitor the lo message of the lo interface based on the socket.

[0186] S203, the traffic monitoring module in the first network proxy management service module in the watch 200 monitors the message, obtains the first Internet access request data packet, and parses the message to obtain the networking information.

[0187] The networking information includes the transmission protocol of the first Internet access request data packet, data frame information of the first Internet access request data packet, quintuple information of the first Internet access request data packet and other information.

[0188] S204, the traffic monitoring module sends a first Internet access request data packet to the forwarding management module, and requests the forwarding management module to decide on a transmission channel.

[0189] S205: After receiving the first Internet access request data packet, the forwarding management module determines a transmission channel according to characteristic information of the first Internet access request data packet.

[0190] The characteristic information of the first Internet access request data packet may refer to the aforementioned transmission protocol of the first Internet access request data packet, data frame information of the first Internet access request data packet, quintuple information of the first Internet access request data packet and other information.

[0191] Determining the transmission channel according to the characteristic information of the first Internet access request data packet may be performed by performing characteristic matching based on the characteristics of the first Internet access request data packet and the channel characteristics of the transmission channel through a transmission channel decision algorithm to determine the transmission channel corresponding to the first Internet access request data packet. The matching process will be described in detail later.

[0192] It should be noted that in this implementation, the low-power Bluetooth transmission channel is the default transmission channel and is always in the open state. Selecting the transmission channel may refer to selecting a transmission channel from the Bluetooth transmission channel and the Wi-Fi direct transmission channel as the transmission channel for the first Internet access request data packet.

[0193] If the watch 200 determines that the transmission channel corresponding to the first Internet access request data packet is transmission channel A (Bluetooth transmission channel), and if the watch 200 and the mobile phone 100 have already turned on transmission channel A, there is no need to switch the transmission channel, and the first Internet access request data packet can be transmitted using transmission channel A. If transmission channel A is not turned on at this time, the watch 200 and the mobile phone 100 need to turn on transmission channel A separately. After turning on transmission channel A, in order to avoid wasting resources, the default transmission channel C in the idle state can be turned off.

[0194] The watch 200 and the mobile phone 100 start the transmission channel A, which includes the watch 200 notifying the mobile phone 100 to start the transmission channel A through the default transmission channel C. After the mobile phone 100 establishes a group in Bluetooth mode, it sends the group information of the device itself to the watch 200 through the default transmission channel C. The watch 200 obtains the group information and establishes a mode connection with the mobile phone 100, that is, establishes the transmission channel A.

[0195] S206 , the first Internet access request data packet is sent via transmission channel A to transmission channel A in the server device mobile phone 100 .

[0196] S207 , the first Internet access request data packet received by the mobile phone 100 is forwarded to the traffic monitoring module via the transmission channel A in the mobile phone 100 .

[0197] S208: The traffic monitoring module encapsulates the first Internet access request data packet, and forwards the encapsulated first Internet access request data packet to the system kernel.

[0198] S209 , the system kernel accesses the network 300 , and sends a first Internet access request data packet to the network 300 .

[0199] S210 , the network 300 makes a network response according to the received first Internet access request data packet, and sends a first reply data packet to the system kernel in the mobile phone 100 .

[0200] S211, the system kernel in the mobile phone 100 encapsulates the first reply data packet, and sends the encapsulated first reply data packet to the traffic monitoring module.

[0201] S212, the traffic monitoring module sends the first reply data packet to transmission channel A.

[0202] S213 , transmission channel A sends the first reply data packet to the port of transmission channel A in watch 200 .

[0203] S214, the transmission channel A in the watch 200 sends the first reply data packet to the traffic monitoring module.

[0204] S215, the traffic monitoring module parses the first reply data packet and re-encapsulates it.

[0205] S216, forwarding the re-encapsulated first reply data packet to the actual networking socket of the application in the system kernel, that is, the port used by the system application to apply for the socket in S201.

[0206] S217, the system kernel sends the first reply data packet to the networking module in the application.

[0207] The system kernel can parse the first reply data packet, match the link through the information of the first reply data packet and the information of the aforementioned first data packet and the forwarding record, determine the business application corresponding to the first reply data packet, respond with a message, and send the first reply data packet to the networking module in the application.

[0208] In addition, for S212, the mobile phone 100 may also redetermine the transmission channel according to the characteristics of the first reply data packet, and transmit the first reply data packet according to the redetermined transmission channel.

[0209] After S217, the process also includes closing the Bluetooth transmission channel.

[0210] If the mobile phone 100 determines from the first reply data packet that the first reply data packet is a video Internet access data packet, the data frame is very large and needs to be transmitted using transmission channel B (i.e., the Wi-Fi direct transmission channel), then the mobile phone 100 and the watch 200 open the Wi-Fi direct transmission channel to transmit the reply data packet. In addition, after S217, it also includes closing the Wi-Fi direct transmission channel.

[0211] The following explains and illustrates the process of determining the transmission channel corresponding to the Internet data packet through the transmission channel decision algorithm.

[0212] It should be noted that different Internet data packets have different requirements for transmission channels. When transmitting Internet data packets, the watch 200 and the mobile phone 100 can perform feature matching based on the characteristics of the Internet data packets and the channel characteristics of the transmission channel through the transmission channel decision algorithm to determine the transmission channel of each Internet data packet. The purpose of the transmission channel decision algorithm is to classify Internet data packets according to their characteristics to the transmission channel that better meets these characteristics.

[0213] The characteristics of Internet data packets and their determination process are explained as follows.

[0214] In order to achieve comparison among multiple features, the features of the Internet data packets may be normalized and summarized into the demands of the Internet data packets on the transmission channel (or may also be called channel requirements).

[0215] Firstly, various factors that affect the characteristics of Internet data packets are proposed, such as but not limited to: protocol type, quintuple, data frame size, etc.

[0216] Among them, different protocol types have different requirements for transmission channels. For example, the File Transfer Protocol (FTP) requires a larger bandwidth for the transmission channel, while the DNS protocol requires a lower power transmission channel because it is frequently used.

[0217] The five-tuple is the source IP address, source port, destination IP address, destination port and transport layer protocol. Through the five-tuple, the purpose of the Internet data packet can be inferred, such as the specific business and scenario of the Internet data packet, and then the requirements of the Internet data packet for the transmission channel can be derived.

[0218] The specific service and scenario of the Internet data packet can be inferred based on the destination IP address and destination port, for example:

[0219] The destination address of the Internet data packet is the destination IP address of a live broadcast platform, and the transport layer protocol is the Real-time Transport Protocol (RTP). It can be inferred that the Internet data packet may be used for streaming media playback, and thus it can be deduced that the Internet data packet may require lower transmission delay and higher connection reliability.

[0220] For example, the destination port number is 53 and the transport layer protocol is UDP. It can be inferred that the Internet data packet is used for DNS service, and thus it can be concluded that the Internet data packet does not have high requirements for bandwidth, transmission delay, etc., but the Internet data packet is transmitted more frequently and has higher requirements for power consumption.

[0221] It should be noted that the five-tuple is an empirical method for comprehensively judging the purpose of the Internet data packet. Sometimes only one or two numbers in the five-tuple are needed to know the specific purpose of the Internet data packet. In other cases, the five-tuple may not help to infer the specific purpose of the Internet data packet, so it may be necessary to judge the purpose of the Internet data packet based on other conditions, such as the data frame size.

[0222] The data frame size is the number of bytes occupied by an Internet data packet. For example, the larger the data frame, the larger the bandwidth of the transmission channel is required.

[0223] Table 4.1 below illustrates some Internet data packets of different protocol types in terms of power consumption requirements, bandwidth requirements, channel response speed requirements, transmission delay requirements, and connection reliability requirements:

[0224]

[0225] Table 4.1

[0226] Table 4.2 below illustrates some Internet data packets with different data frame sizes in terms of power consumption requirements, bandwidth requirements, channel response speed requirements, transmission delay requirements, and connection reliability requirements:

[0227]

[0228] Table 4.2

[0229] Table 4.3 below illustrates some requirements for Internet data packets of different service types in terms of power consumption, bandwidth, channel response speed, transmission delay, and connection reliability:

[0230]

[0231] Table 4.3

[0232] According to the characteristics of the Internet data packet and the channel characteristics of the transmission channel, a transmission channel decision algorithm is used to decide which transmission channel the Internet data packet uses. The decision-making process of the transmission channel decision algorithm is explained below.

[0233] When transmitting Internet data packets, the Internet data packets can be analyzed to determine the characteristics of the Internet data packets, such as the protocol type, data frame size, service type, and other characteristics of the Internet data packets. Then, according to the correspondence between the characteristics of the Internet data packets and the channel requirements shown in Tables 4.1 to 4.3, the channel requirements such as power consumption requirements, bandwidth requirements, channel response speed requirements, transmission delay requirements, and connection reliability requirements corresponding to the Internet data packets are determined. The channel requirements shown in Tables 4.1 to 4.3 are then matched with the channel characteristics of each transmission channel shown in Table 2, such as matching the power consumption requirements with the power consumption characteristics, and matching the bandwidth requirements with the bandwidth characteristics, etc., to determine the transmission channel corresponding to the Internet data packet as the transmission channel for transmitting the Internet data packet.

[0234] It should be noted that when performing feature matching, power consumption, bandwidth, channel response speed, transmission delay, and connection reliability can be matched according to Tables 4.1-4.3 and Table 2, and the transmission channel with the highest matching degree can be determined as the transmission channel for the Internet data packet. Exemplarily, in one implementation of the present application, taking the Internet data packet of the DNS protocol type as an example, the channel requirements and the channel characteristics of the Bluetooth transmission channel are matched according to Tables 4.1 and 2, where the bandwidth, channel response speed, transmission delay, and connection reliability are matched, and the power consumption is not matched, and the matching degree can be considered to be 4; the channel requirements and the channel characteristics of the Wi-Fi direct transmission channel are matched, where the power consumption, transmission delay, and connection reliability are matched, and the bandwidth and channel response speed are not matched, and the matching degree can be considered to be 3, then it can be determined that the transmission channel corresponding to the Internet data packet of the DNS protocol type is the Bluetooth transmission channel.

[0235] When performing feature matching, several items may be selected from power consumption, bandwidth, channel response speed, transmission delay, and connection reliability for feature matching. Different types of Internet data packets have different requirements for transmission channels during transmission. For example, in one implementation of the present application, selection may be made based on factors that Internet data packets pay more attention to (i.e., channel requirements). For example, if Internet data packets pay more attention to power consumption and bandwidth, only power consumption matching and bandwidth matching may be performed. If Internet data packets pay more attention to channel response speed and connection reliability, only channel response speed matching and connection reliability matching may be performed.

[0236] In addition, when performing feature matching, the order of matching can be selected as needed. Exemplarily, in one implementation of the present application, the matching order can be determined based on the factors that the transmission of Internet data packets is more concerned about. For example, if the transmission of Internet data packets is more concerned about power consumption, power consumption matching can be performed first, and then other matching such as bandwidth matching can be performed; if the transmission of Internet data packets is more concerned about channel response speed, channel response speed matching can be performed first, and then transmission delay matching can be performed.

[0237] Exemplarily, if the protocol type of the Internet data packet is the DNS protocol type, and its transmission is more concerned with power consumption and bandwidth, then only power consumption matching and bandwidth matching can be performed. According to Table 4.1, the power consumption requirement of the Internet data packet of the DNS protocol type is high, and the bandwidth requirement is low. The power consumption requirements can be matched with the power consumption characteristics in Table 2 first. It can be seen from the previous text that Internet data packets with higher power consumption requirements need to be classified into transmission channels with power consumption characteristics of low power consumption overhead (i.e., greater power consumption benefits). Then, the transmission channel that meets the power consumption requirements among the Bluetooth transmission channel and the Wi-Fi direct transmission channel is the Bluetooth transmission channel. At this time, it can be determined that the transmission channel corresponding to the Internet data packet of the DNS protocol type is the Bluetooth transmission channel.

[0238] After matching the power consumption requirements and the power consumption characteristics, the bandwidth requirements and the bandwidth characteristics can be further matched. The Internet data packets with low bandwidth requirements can be classified into transmission channels with low bandwidth characteristics (i.e., smaller bandwidth benefits). The transmission channels that meet the bandwidth requirements among the Bluetooth transmission channel and the Wi-Fi direct transmission channel are the Bluetooth transmission channels. At this time, it can also be determined that the transmission channel corresponding to the Internet data packets of the DNS protocol type is the Bluetooth transmission channel.

[0239] For the aforementioned step S205, the forwarding management module determines that the transmission channel may be, based on the characteristic information of the first Internet data packet, if the first Internet data packet is a DNS protocol type data packet, then the transmission channel that better meets the channel requirements of the first Internet data packet may be determined as the Bluetooth transmission channel according to the aforementioned process.

[0240] Furthermore, in order to achieve quantitative comparison among multiple features rather than simple daily experience judgment, the channel requirements (also called data packet influencing factors) corresponding to the characteristics of the Internet data packets can be quantified and summarized into the demands of the Internet data packets for each quantized characteristic value of the transmission channel.

[0241] Similar to the quantification method of transmission channel characteristics, a scheme to quantify channel requirements is as follows:

[0242] The channel requirement of each type of Internet data packet is represented by a number in a certain range (such as 0-10). The larger the number, the greater the positive requirement for the transmission channel when the Internet data packet is transmitted (or the higher the positive requirement). The positive requirement for the transmission channel refers to the requirement that can make the user experience better (for example, faster Internet access) or can make the device consume less power. Among them, for power consumption requirements, the higher the power consumption requirement when the Internet data packet is transmitted (that is, the lower the power consumption), the greater the positive requirement; for bandwidth requirements, the greater the bandwidth requirement when the Internet data packet is transmitted, the greater the positive requirement; for channel response speed requirements, the faster the channel response speed requirement when the Internet data packet is transmitted, the greater the positive requirement; for transmission delay requirements, the smaller the transmission delay requirement when the Internet data packet is transmitted, the greater the positive requirement; for connection reliability requirements, the higher the connection stability requirement when the Internet data packet is transmitted (that is, the more stable the connection), the greater the positive requirement.

[0243] When the transmission channel decision algorithm is used to determine which transmission channel is used for an Internet data packet, a transmission channel that better meets the channel requirements of the Internet data packet is matched to the Internet data packet. For example, an Internet data packet with a large forward requirement is matched with a transmission channel with a large forward benefit, that is, an Internet data packet with a higher power consumption requirement is matched with a transmission channel with a greater power consumption benefit, an Internet data packet with a higher bandwidth requirement is matched with a transmission channel with a greater bandwidth benefit, an Internet data packet with a faster channel response speed requirement is matched with a transmission channel with a greater channel response speed benefit, an Internet data packet with a greater transmission delay requirement is matched with a transmission channel with a greater transmission delay benefit, and an Internet data packet with a higher connection reliability requirement is matched with a transmission channel with a greater connection reliability benefit.

[0244] Table 5.1 below illustrates the quantitative results of Internet data packets of different protocol types in terms of power consumption requirements, bandwidth requirements, channel response speed requirements, transmission delay requirements, and connection reliability requirements:

[0245]

[0246] Table 5.1

[0247] Table 5.2 below illustrates the quantitative results of Internet data packets with different data frame sizes in terms of power consumption requirements, bandwidth requirements, channel response speed requirements, transmission delay requirements, and connection reliability requirements:

[0248]

[0249] Table 5.2

[0250] Table 5.3 below shows some examples of Internet data packets of different service types in terms of power consumption requirements, bandwidth requirements, channel response speed, etc. Quantitative results of the requirements for speed, transmission delay, and connection reliability:

[0251]

[0252] Table 5.3

[0253] The above example is only a simplified result of the quantified characteristics of Internet data packets, which is used to illustrate how the characteristics of Internet data packets are used in the transmission channel decision algorithm.

[0254] In one possible embodiment of the present application, the transmission channel decision algorithm may be to compare the characteristic values ​​of each channel requirement of the Internet data packet shown in Tables 5.1-5.3 with the characteristic values ​​of the channel characteristics of each transmission channel shown in Table 3, and select a transmission channel that is more suitable for the Internet data packet.

[0255] When performing feature matching according to Tables 5.1-5.3 and Table 3, the degree of matching can be reflected according to the absolute value of the difference between the corresponding feature values. For power consumption features and power consumption requirements, the greater the absolute value of the difference between the feature value of the power consumption feature and the feature value of the power consumption requirement, the more the two match (i.e., the higher the degree of matching); for transmission delay features and transmission delay requirements, the greater the absolute value of the difference between the feature value of the transmission delay and the feature value of the transmission delay requirement, the more the two match. For the feature values ​​of other channel features and the feature values ​​of the channel requirements of Internet data packets, the smaller the absolute value of the difference between the feature values, the more the two match.

[0256] It should be noted that the feature matching according to Table 5.1-Table 5.3 and Table 3 is different from the feature matching according to Table 4.1-Table 4.3 and Table 2. The only difference is the comparison of feature values. The items selected for matching and the matching order can be as described above and will not be repeated here.

[0257] Exemplarily, for the aforementioned step S205, the forwarding management module determines the transmission channel based on the characteristic information of the first Internet data packet. If the first Internet data packet is a DNS protocol type data packet, the forwarding management module further determines the channel requirements of the first Internet data packet for the transmission channel based on Table 5.1: the characteristic value of the power consumption requirement is 8, the characteristic value of the bandwidth requirement is 1, the characteristic value of the channel response speed requirement is 1, the characteristic value of the transmission delay requirement is 1, and the characteristic value of the connection reliability requirement is 1, which means that the transmission power consumption of the first Internet data is high and is suitable for transmission through a transmission channel with low power consumption overhead to reduce power consumption.

[0258] The absolute value of the difference between the characteristic value of the channel requirement of the first Internet data packet and the characteristic value of each channel characteristic of the Bluetooth transmission channel and the Wi-Fi Direct transmission channel is shown in Table 6 below:

[0259]

[0260] Table 6

[0261] It can be seen that the absolute value corresponding to the power consumption and the absolute value corresponding to the transmission delay of the Bluetooth transmission channel are smaller, and the absolute value corresponding to the bandwidth and the absolute value corresponding to the channel response speed of the Bluetooth transmission channel are smaller, which means that the Bluetooth transmission channel is more matched with the first Internet data packet, that is, the transmission channel corresponding to the first Internet data packet is the Bluetooth transmission channel.

[0262] In a possible manner of the present application, the channel requirements of the Internet access data packet may be matched with the channel characteristics in sequence to determine the corresponding transmission channel.

[0263] For ease of understanding, the following is a classification example with only two channel features. Assuming that the channel features only have power consumption and bandwidth features, then Figure 5 As shown, the process of determining the transmission channel corresponding to the Internet access data packet may include:

[0264] S31, the watch 200 makes a power consumption decision to determine whether the transmission of the Internet data packet is high power consumption. If it is high power consumption, execute S32; if it is not high power consumption but low power consumption, execute S33.

[0265] Whether the transmission of the Internet data packet is high power consumption can be determined by whether the quantized value of the power consumption requirement of the Internet data packet shown in Table 5 is greater than 5. If it is greater than 5, it is considered to be low power consumption. If it is less than or equal to 5, it is considered to be high power consumption.

[0266] S32, the watch 200 selects a Bluetooth transmission channel for transmitting Internet data packets.

[0267] S33, the watch 200 makes a bandwidth decision. If the Internet data packet requires a large-bandwidth transmission channel, S34 is executed. If a large-bandwidth transmission channel is not required and only a small-bandwidth transmission channel is required, S32 is executed.

[0268] Whether the Internet data packet needs a large-bandwidth transmission channel can be determined by whether the quantized value of the bandwidth requirement characteristic of the Internet data packet shown in Table 5 is greater than 5. If it is greater than 5, it is considered that a large-bandwidth transmission channel is required. If it is less than or equal to 5, it is considered that a large-bandwidth transmission channel is not required.

[0269] S34, the watch 200 selects the Wi-Fi direct transmission channel for transmitting Internet data packets.

[0270] The advantage of this implementation is that the decision-making process is simple, and the decision of the transmission channel can be realized by only defining each decision point and decision value as needed. And when there are fewer decision points, higher classification performance can be achieved.

[0271] In step S31, to determine whether the transmission of the Internet data packet is high power consumption, the characteristics of the Internet data packet can be determined first, and then the power consumption requirements of the Internet data packet shown in Table 4.1-Table 4.3 can be used to determine whether it is high power consumption. In step S33, to determine whether the transmission of the Internet data packet requires a large bandwidth transmission channel, the characteristics of the Internet data packet can be determined first, and then the bandwidth requirements of the Internet data packet shown in Table 4 can be used to determine whether it requires a large bandwidth transmission channel.

[0272] In addition, other decision-making methods can be used, such as making a bandwidth decision first and then a power consumption decision. Or other transmission channel decision algorithms can be used, such as making a delay requirement decision first and then a channel response speed decision, to determine the transmission channel for Internet data packets, which can be selected and set as needed.

[0273] Table 7.1 below illustrates the correspondence between some Internet access data packets of different protocol types and transmission channels. In some implementations of the present application, after determining the characteristics of the Internet access data packet, the transmission channel corresponding to the Internet access data packet can be directly determined according to Table 7.1.

[0274] Characteristics of Internet data packages Transmission Channel DNS protocol Bluetooth FTP protocol Wi-Fi Direct RTP Wi-Fi Direct HTTP Bluetooth

[0275] Table 7.1

[0276] Table 7.2 below illustrates the correspondence between some Internet access data packets of different data frame sizes and transmission channels. In some implementations of the present application, after determining the characteristics of the Internet access data packet, the transmission channel corresponding to the Internet access data packet can be directly determined according to Table 7.2.

[0277] Characteristics of Internet data packages Transmission Channel Data frame ≥ 100 bytes Wi-Fi Direct Data frame < 100 bytes Bluetooth

[0278] Table 7.2

[0279] Table 7.3 below illustrates the correspondence between some Internet access data packets of different data frame sizes and transmission channels. In some implementations of the present application, after determining the characteristics of the Internet access data packet, the transmission channel corresponding to the Internet access data packet can be directly determined according to Table 7.3.

[0280] Characteristics of Internet data packages Transmission Channel Streaming Services Wi-Fi Direct DNS Service Wi-Fi Direct

[0281] Table 7.3

[0282] In this application, the corresponding service type can be determined according to the protocol type of the Internet data packet. For example, if the protocol type of the Internet data packet is the DNS protocol, then the corresponding service type is the DNS service. In addition, the service type can also be determined by the five-tuple information of the Internet data packet. For example, if the destination port number of the Internet data packet is 53 and the transport layer protocol is the UDP protocol, it can be inferred that the Internet data packet is used for the DNS service, that is, its service type is the DNS service.

[0283] The correspondence between the Internet data packets and the transmission channels shown in Tables 7.1 to 7.3 can be obtained by matching the aforementioned channel requirements of the Internet data packets with the channel characteristics of the transmission channels, or can be obtained based on the absolute value of the difference between the characteristic values ​​of the channel requirements of the Internet data packets and the characteristic values ​​of the channel characteristics of the transmission channels.

[0284] Exemplarily, for the aforementioned step S205, the forwarding management module determines the transmission channel based on the characteristic information of the first Internet data packet. If the first Internet data packet is a DNS protocol type data packet, then the characteristic of the first Internet data packet is determined to be a DNS protocol type data packet. Further, according to Table 7.1, it can be determined that the transmission channel corresponding to the first Internet data packet is a Bluetooth transmission channel, that is, the transmission channel that better meets the channel requirements of the first Internet data packet can be determined to be the Bluetooth transmission channel.

[0285] It should be noted that the process of determining the transmission channel corresponding to each Internet access data packet is the same as the process of determining the transmission channel corresponding to the first Internet access data packet mentioned above.

[0286] Of course, in some other implementations of the present application, a transmission channel selection neural network model can also be established. The transmission channel selection neural network model can determine the transmission channel corresponding to the Internet data packet based on the characteristics of the Internet data packet. The prediction strategy of the transmission channel selection neural network model can be obtained by machine learning and training based on the correspondence between several Internet data packets and transmission channels. The present application does not provide detailed descriptions of this.

[0287] In some other embodiments of the present application, the transmission channel negotiated and determined between the watch 200 and the mobile phone 100 may include a Bluetooth transmission channel and a Wi-Fi direct transmission channel. In addition, the Bluetooth transmission channel may be determined to be the default transmission channel between the devices, and the Bluetooth transmission channel is always kept open. When the watch 200 accesses the Internet through the mobile phone 100, the watch 200 and the mobile phone 100 may use the Bluetooth transmission channel to negotiate as the transmission channel for each Internet data packet transmission according to the characteristics of the Internet data packet.

[0288] The following are some typical scenarios in actual use by users, as well as examples of how to decide on the transmission channel and the process of transmitting Internet data packets in these scenarios. Assume that at this time the client device (watch 200) and the server device (mobile phone 100) have two transmission channels, namely the Bluetooth transmission channel and the Wi-Fi direct transmission channel. According to the aforementioned Table 2, the channel characteristics of the transmission channels of the Bluetooth transmission channel and the Wi-Fi direct transmission channel can be specified as shown in Table 8 below:

[0289] Transmission Channel Power consumption characteristics Bandwidth characteristics Bluetooth Low power consumption Low bandwidth Wi-Fi Direct High power consumption High bandwidth

[0290] Table 8

[0291] The following are some examples of decision transmission channels and the process of transmitting Internet data packets in different scenarios:

[0292] Scenario 1:

[0293] At a certain moment, the user uses the watch 200 to check the weather, and the weather application in the watch 200 sends an Internet data packet. After the watch 200 detects the Internet data packet, the watch 200 determines the characteristics of the Internet data packet and determines the transmission channel.

[0294] The characteristics of the Internet data packet determined by the watch 200 may be that the watch 200 determines the protocol type of the Internet data packet when the user checks the weather. If the Internet data packet is updated using the Hypertext Access Protocol (HTTP), the watch 200 determines that the protocol type of the Internet data packet is the HTTP protocol type. The watch 200 determines that the channel requirements of the Internet data packet when the user checks the weather are low power consumption requirements (the transmission of the Internet data packet is expected to consume about 1kb of traffic) and low bandwidth requirements (i.e., this type of Internet data packet is not sensitive to bandwidth) according to the aforementioned Table 4.1.

[0295] The watch 200 determines that the transmission channel may be that the watch 200 matches the channel requirement of the Internet data packet with the characteristics of the transmission channel shown in Table 8, and determines to use a Bluetooth transmission channel with low power consumption and low bandwidth as the transmission channel for the Internet data packet.

[0296] At this time, since the Bluetooth transmission channel has been turned on, the watch 200 can directly transmit Internet data packets through the Bluetooth transmission channel.

[0297] In another implementation, after the watch 200 determines that the protocol type of the Internet data packet is the HTTP protocol type, it can further directly determine that the transmission channel corresponding to the Internet data packet is the Bluetooth transmission channel according to Table 7.1.

[0298] Scenario 2:

[0299] The watch 200 system downloads offline map Internet data packets for navigation. The map application in the watch 200 sends out Internet data packets. After the watch 200 detects the Internet data packets, the watch 200 determines the characteristics of the Internet data packets and determines the transmission channel.

[0300] The watch 200 determines that the characteristic of the Internet data packet can be that the watch 200 determines that the Internet data packet uses the FTP protocol to download the offline map, and the watch 200 determines that the protocol type of the Internet data packet is the FTP protocol type. The watch 200 determines that the channel requirements of the Internet data packet for downloading the offline map are low power consumption requirements and high bandwidth requirements according to the aforementioned Table 4.1.

[0301] The watch 200 determines that the transmission channel may be that the watch 200 matches the channel requirements of the Internet data packet with the channel characteristics of the transmission channel shown in Table 8, and performs bandwidth matching first, and then determines to use a Wi-Fi direct transmission channel with a high power consumption overhead and a high bandwidth as the transmission channel.

[0302] After the watch 200 determines the transmission channel, the watch 200 and the mobile phone 100 can open the Wi-Fi direct transmission channel to transmit Internet data packets. After the transmission is completed, the Wi-Fi direct transmission channel can be closed.

[0303] In another implementation, after the watch 200 determines that the protocol type of the Internet data packet is the FTP protocol type, it can further directly determine that the transmission channel corresponding to the Internet data packet is the Wi-Fi direct transmission channel according to Table 7.

[0304] Scenario 3:

[0305] A WeChat is installed on the watch 200, and WeChat needs to regularly interact with the network 300 to check whether there are new unread messages. WeChat in the watch 200 checks whether there are updates, and WeChat sends an Internet data packet. After the watch 200 monitors the Internet data packet, the watch 200 determines the characteristics of the Internet data packet and determines the transmission channel.

[0306] The characteristic of the Internet data packet determined by the watch 200 may be that the watch 200 determines that the data frame size of the Internet data packet of WeChat periodically interacting with the network 300 to check whether there are new unread messages is 20 bytes. The watch 200 can determine that the channel requirement of the Internet data packet is a low bandwidth requirement based on the aforementioned Table 4.2.

[0307] The watch 200 determines that the transmission channel may be that the watch 200 matches the characteristics of the Internet data packet with the characteristics of the transmission channel shown in Table 8, and determines to use a Bluetooth transmission channel with low power consumption and low bandwidth as the transmission channel. In this scenario, the Bluetooth transmission channel has the lowest power consumption, and although the bandwidth is low, it does not affect the experience in this scenario, so the Bluetooth transmission channel is selected.

[0308] At this time, since the Bluetooth transmission channel has been turned on, the watch 200 can directly transmit Internet data packets through the Bluetooth transmission channel.

[0309] In another implementation, after the watch 200 determines the data frame size of the Internet data packet, it can further directly determine that the transmission channel corresponding to the Internet data packet is the Bluetooth transmission channel according to Table 7.2.

[0310] Scenario 4:

[0311] The watch 200 downloads the update and installation upgrade package. The system of the watch 200 sends an Internet data packet of the update and installation upgrade package. After the watch 200 monitors the Internet data packet, the watch 200 determines the characteristics of the Internet data packet and determines the transmission channel.

[0312] The characteristic of the Internet data packet determined by the watch 200 can be that the watch 200 determines that the protocol type of the Internet data packet for downloading, updating and installing the upgrade package is the FTP protocol type. Then, as determined in the aforementioned scenario 1, it can be determined that the transmission channel corresponding to the Internet data packet is the Wi-Fi direct transmission channel.

[0313] In addition, it should be noted that when downloading data through Internet data packets of the FTP protocol type, the transmission characteristics of Internet data packets are usually low frequency and high bandwidth, and the transmission channel is released after a short period of use. In this scenario, the Wi-Fi direct transmission channel can provide higher bandwidth. Although the power consumption caused by Wi-Fi direct connection is high, the transmission channel can be closed after the download of the update package is completed, and the time to maintain Wi-Fi direct connection is short, so the Wi-Fi direct transmission channel is selected.

[0314] After the watch 200 determines the transmission channel, the watch 200 and the mobile phone 100 can open the Wi-Fi direct transmission channel to transmit Internet data packets. After the transmission is completed, the Wi-Fi direct transmission channel can be closed.

[0315] Scenario 5:

[0316] The watch 200 plays the live video through the live broadcast software. The live broadcast software of the watch 200 sends an Internet data packet for updating and installing the upgrade package. After the watch 200 monitors the Internet data packet, the watch 200 determines the characteristics of the Internet data packet and determines the transmission channel.

[0317] The characteristic of the Internet data packet determined by the watch 200 can be that the watch 200 determines that the live broadcast software transmits the Internet data packet of the live video through the RTP protocol. Then, as determined in the aforementioned scenario 1, it can be determined that the transmission channel corresponding to the Internet data packet is the Wi-Fi direct transmission channel.

[0318] In addition, it should be noted that the Internet data packet is large and the transmission result is not guaranteed. When packet loss occurs, the live broadcast will be stuck. At the same time, the Internet data packet also requires a higher transmission delay, and the Wi-Fi direct transmission channel basically meets these channel requirements for Internet data packets.

[0319] After the watch 200 determines the transmission channel, the watch 200 and the mobile phone 100 can open the Wi-Fi direct transmission channel to transmit Internet data packets. After the transmission is completed, the Wi-Fi direct transmission channel can be closed.

[0320] In the present application, when determining the transmission channel corresponding to the Internet data packet, the characteristics of the Internet data packet and the characteristics of the transmission channel can be directly matched, or the characteristics of the Internet data packet can be quantified to obtain quantized data packet characteristics, and then the quantized data packet characteristics are compared with the quantized channel characteristics to determine the transmission channel corresponding to the Internet data packet. For example, if the characteristics of the Internet data packet are that the power consumption requirement characteristic is 2 and the bandwidth requirement characteristic is 1, then the corresponding transmission channel is the Bluetooth transmission channel. If the data characteristics of the Internet data packet are that the power consumption requirement characteristic is 2 and the bandwidth requirement characteristic is 9, then the corresponding transmission channel is the Wi-Fi direct transmission channel. It can also be determined directly based on the corresponding relationship between the characteristics of the Internet data packet and the transmission channel. The selection of the transmission channel can be easily achieved.

[0321] When surfing the Internet, there is a situation where Internet traffic is transmitted concurrently through multiple channels between the watch 200 and the mobile phone 100, that is, there are multiple Internet data packets between the watch 200 and the mobile phone 100 at the same time. For the scenario of Internet traffic being transmitted concurrently through multiple channels, when there are Internet data packets, each transmission channel can be started on demand for transmission, and each transmission channel is independent of each other and does not affect each other. Since the transmission channels between the watch 200 and the mobile phone 100 are independent of each other and do not affect each other, different Internet data packets can be transmitted through different transmission channels.

[0322] In one implementation of the present application, when the watch 200 and the mobile phone 100 simultaneously have two Internet access request packets, namely the first Internet access request packet and the second Internet access request packet, for example, at a certain moment, the user uses the watch 200 to check the weather and at the same time uses the watch 200 to download an offline map packet for navigation, then the weather application sends the first Internet access request packet and the map application sends the second Internet access request packet. Figure 4D , wherein the transmission process of the first Internet access request data packet can be as shown in steps S201 to 217. Figure 6 The transmission process of the second Internet access request data packet may be as shown in steps S301 to S317. The first Internet access request data packet and the second Internet access request data packet may be transmitted simultaneously. The first Internet access request data packet is transmitted through transmission channel A (i.e., Bluetooth transmission channel), and the second Internet access request data packet is transmitted through transmission channel B (i.e., Wi-Fi Direct transmission channel).

[0323] In addition, the first Internet access request data packet and the second Internet access request data packet may be Internet access request data packets of two different system applications in the watch 200 , or may be Internet access request data packets of one system application in the watch 200 .

[0324] Furthermore, the process of sending the second Internet access request data packet and receiving the corresponding second reply data packet is S301-317, wherein for step S305, the forwarding management module determines that the transmission channel is transmission channel B, and data is transmitted between the watch 200 and the mobile phone 100 through transmission channel B. The remaining steps correspond to the steps in the aforementioned S201-217, and will not be repeated here.

[0325] In this implementation, the transmission processes of the first Internet access request data packet and the second Internet access request data packet are independent of each other, and the opening and closing of the transmission channel A and the transmission channel B are also independent, so the purpose of transmitting different Internet access data packets through their corresponding transmission channels can be achieved.

[0326] In the networking method provided by the present application, after two devices such as a mobile phone 100 and a watch 200 are paired, the mobile phone 100 and the watch 200 can pre-negotiate and determine multiple data transmission channels of various types within the local area network, and specify the characteristics of each transmission channel. The pre-negotiated transmission channel is used in the transmission channel decision algorithm for subsequent data transmission, that is, in the networking method provided by the present application, multiple transmission channels for proxy Internet access are provided, and the devices support forwarding Internet data packets through multiple transmission channels, which solves the problem of a single transmission channel in the existing proxy Internet access solution. In addition, the mobile phone 100 and the watch 200 can use the transmission channel decision algorithm to decide which transmission channel to use to transmit the Internet data packet according to the characteristics of the transmission channel and the characteristics of the Internet data packet, that is, the mobile phone 100 and the watch 200 can automatically identify and select the transmission channel for the Internet data packet, providing users with a better Internet experience.

[0327] In addition, the mobile phone 100 and the watch 200 can select a transmission channel as the default transmission channel, and other transmission channels are started and closed according to the needs of transmitting data packets. On the basis of meeting the transmission needs of data packets, power consumption can also be effectively communicated.

[0328] Furthermore, in the present application, during the process of negotiating and selecting the transmission channel between the mobile phone 100 and the watch 200, there is no need to notify the user of the transmission channel used between the mobile phone 100 and the watch 200, so that the user is unaware of the negotiation and determination of the transmission channel, and normal networking can be guaranteed to enhance the user experience.

[0329] Of course, during the negotiation and selection of the transmission channel between the mobile phone 100 and the watch 200, transmission channel reminder information can also be generated to remind the user of the transmission channels currently supported between the mobile phone 100 and the watch 200, as well as to remind the user of the use of the current transmission channel, so that the user can be more aware of the current network status.

[0330] See also Figure 7 , Figure 7 Another networking system provided by the present application is shown, which includes a mobile phone 100, a watch 200, a network 300, a tablet computer 400, and a PC 500. The networking method provided by the present application can also be applied to Figure 7 In the networking system shown, the mobile phone 100 acts as a server and can directly access the network 300. The watch 200, the tablet computer 400 and the PC 500 act as clients and need to access the network 300 with the help of the mobile phone 100. In addition, the mobile phone 100 and the watch 200 support two transmission channels: the Bluetooth transmission channel and the low-power Bluetooth transmission channel. The mobile phone 100 and the tablet computer 400 support two transmission channels: the Bluetooth transmission channel and the Wi-Fi direct connection transmission channel. The mobile phone 100 and the PC 500 also support two transmission channels: the Bluetooth transmission channel and the Wi-Fi direct connection transmission channel. It should be noted that the watch 200, the tablet computer 400 and the PC 500 do not have a cellular network modem, that is, they do not have the ability to achieve networking based on the cellular network, and cannot achieve autonomous networking in the absence of a Wi-Fi network.

[0331] When the watch 200, tablet computer 400 and PC 500 access the network 300 with the help of the mobile phone 100, the mobile phone 100 determines and selects the transmission channels for each Internet data transmission between the watch 200, tablet computer 400 and PC 500 respectively to realize the transmission of Internet data.

[0332] In addition, the watch 200 may also be other wearable devices such as headphones, glasses, bracelets, or any other device that requires the use of other devices to access the Internet; the mobile phone 100 may also be used to connect home appliances such as televisions that are not connected to the Wi-Fi network to the Internet; in addition, the mobile phone 100 may also be any other device that can provide Internet services.

[0333] Each embodiment of the mechanism disclosed in this application can be implemented in software, hardware, firmware, or a combination of these implementation methods. The embodiments of this application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, memory (or storage system, including volatile and non-volatile memory and / or storage unit).

[0334] It should be noted that the terms “first”, “second”, etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

Claims

1. A networking method, applied to a first electronic device, characterized in that: The method comprises: establishing a communication connection with a second electronic device; Determine at least two different types of transmission channels between the first electronic device and the second electronic device, the at least two different types of transmission channels comprising at least two of a low-power Bluetooth transmission channel, a Bluetooth transmission channel, a Wi-Fi direct transmission channel, a universal serial bus direct transmission channel, and an Ethernet data line direct transmission channel; Selecting a transmission channel from the at least two transmission channels as a default transmission channel that is always kept in an open state, wherein the default transmission channel is: a transmission channel with a lowest power consumption threshold or a transmission channel with a largest bandwidth among the at least two transmission channels; Determining first Internet access data to be transmitted; determining a data feature of the first Internet access data, and determining a first transmission channel for transmitting the first Internet access data among the at least two different types of transmission channels according to the data feature; Wherein, determining, according to the data feature, a first transmission channel for transmitting the first Internet access data among the at least two different types of transmission channels includes: Determining channel characteristics of each of the transmission channels; and determining channel requirements of the first Internet access data for the transmission channel according to the data characteristics of the first Internet access data; The channel characteristics include at least one of the following: power consumption characteristics, bandwidth characteristics, channel response speed characteristics, transmission delay characteristics and connection reliability characteristics; The channel requirement includes at least one of the following: power consumption requirement, bandwidth requirement, channel response speed requirement, transmission delay requirement, and connection reliability requirement; The channel characteristics and the channel requirements correspond to each other; Matching the channel requirement with the channel characteristics of each of the transmission channels to determine the first transmission channel for transmitting the first Internet access data; Wherein, matching the channel requirement with the channel characteristics of each of the transmission channels includes: determining a matching order of each of the channel requirements according to the attention degree of each of the channel requirements by the first Internet access data; matching the corresponding channel requirements with channel characteristics of each of the transmission channels according to the matching order of each of the channel requirements; If the first transmission channel determined by the first electronic device is the same as the default transmission channel, the default transmission channel is used as the first transmission channel, and the first Internet access data is sent to the second electronic device through the first transmission channel; If the first transmission channel determined by the first electronic device is another transmission channel different from the default transmission channel, the second electronic device is notified through the default transmission channel to select and open the first transmission channel for transmission of the first Internet access data, and the first Internet access data is sent to the second electronic device through the first transmission channel, and the first transmission channel is closed after the transmission is completed.

2. The networking method according to claim 1, characterized in that: The first Internet access data is an Internet access request generated by the first electronic device.

3. The networking method according to claim 2, characterized in that: The first electronic device is a wearable device, and the second electronic device is a mobile phone.

4. The networking method according to claim 1, characterized in that: The method also includes: the first Internet access data is data received by the first electronic device from a network and used to respond to an Internet access request of the second electronic device.

5. The networking method according to claim 4, characterized in that: The first electronic device is a mobile phone, and the second electronic device is a wearable device.

6. The networking method according to claim 1, characterized in that: Determining, according to the data feature, a first transmission channel for transmitting the first Internet access data among the at least two different types of transmission channels, includes: The first transmission channel for transmitting the first Internet access data is determined according to a preset correspondence between the data feature and the transmission channel.

7. The networking method according to claim 1, characterized in that: The method further comprises: quantizing the channel feature to obtain a corresponding first eigenvalue; quantizing the channel requirement to obtain a corresponding second eigenvalue; Obtaining an absolute value of a difference between the first eigenvalue and the second eigenvalue; The first transmission channel is determined according to the magnitude of the absolute value.

8. The networking method according to claim 7, characterized in that: The channel requirement is matched with the channel characteristics of each of the transmission channels, and the transmission channel corresponding to the smallest absolute value is determined as the first transmission channel.

9. The networking method according to claim 1, characterized in that: The data characteristics of the first Internet access data include at least one of the following: Transport protocol type; Data frame size; Five-tuple information.

10. The networking method according to claim 1, characterized in that: The method further comprises: Sending the determined channel information of the at least two different types of transmission channels to the second electronic device through the default transmission channel; If the first transmission channel is another transmission channel different from the default transmission channel, after determining the first transmission channel, information for opening the first transmission channel is sent to the second electronic device through the default transmission channel; and after sending the first Internet access data, information for closing the first transmission channel is sent to the second electronic device through the default transmission channel.

11. The networking method according to claim 1, characterized in that: The method further comprises: When the first electronic device and the second electronic device are paired to establish a communication connection, the first electronic device displays a statement and a consent control for enabling a proxy networking multi-transmission channel negotiation function; If the first electronic device detects a user triggering operation on the consent control, the first electronic device determines the at least two different types of transmission channels, and determines the first transmission channel for the first Internet data transmission during Internet data transmission with the second electronic device.

12. The networking method according to any one of claims 1 to 10, characterized in that: The first electronic device includes a proxy networking multi-transmission channel negotiation selection control; the method further includes: When the first electronic device and the second electronic device are paired to establish a communication connection, the first electronic device displays the proxy networking multi-transmission channel negotiation selection control; If the first electronic device detects that the user has activated the proxy networking multi-transmission channel negotiation selection control, the first electronic device determines the at least two different types of transmission channels, and determines the first transmission channel used for the first Internet data transmission during Internet data transmission with the second electronic device.

13. A networking method, characterized in that: The method comprises: The first electronic device establishes a communication connection with the second electronic device; The first electronic device determines at least two different types of transmission channels between the first electronic device and the second electronic device, the at least two different types of transmission channels comprising at least two of a low-power Bluetooth transmission channel, a Bluetooth transmission channel, a Wi-Fi direct transmission channel, a universal serial bus direct transmission channel, and an Ethernet data line direct transmission channel; The first electronic device selects a transmission channel from the at least two transmission channels as a default transmission channel that is always kept in an open state, wherein the default transmission channel is: a transmission channel with a lowest power consumption threshold or a transmission channel with a largest bandwidth; The first electronic device generates first Internet access data to be transmitted; The first electronic device determines a data feature of the first Internet access data, and determines a first transmission channel for transmitting the first Internet access data among the at least two different types of transmission channels according to the data feature; The first electronic device determines a data feature of the first Internet access data, and determines a first transmission channel for transmitting the first Internet access data among the at least two different types of transmission channels according to the data feature, including: The first electronic device determines the channel characteristics of each of the transmission channels; and determines the channel requirements of the first Internet access data for the transmission channel according to the data characteristics of the first Internet access data; The channel characteristics include at least one of the following: power consumption characteristics, bandwidth characteristics, channel response speed characteristics, transmission delay characteristics and connection reliability characteristics; The channel requirement includes at least one of the following: power consumption requirement, bandwidth requirement, channel response speed requirement, transmission delay requirement, and connection reliability requirement; The channel characteristics and the channel requirements correspond to each other; The first electronic device matches the channel requirement with channel characteristics of each of the transmission channels to determine the first transmission channel for transmitting the first Internet access data; Wherein, matching the channel requirement with the channel characteristics of each of the transmission channels includes: determining a matching order of each of the channel requirements according to the attention degree of the first Internet access data to each of the channel requirements; According to the matching order of each of the channel requirements, matching the corresponding channel requirements with the channel characteristics of each of the transmission channels; The first electronic device sends the first Internet access data to the second electronic device through the first transmission channel; The first electronic device sending the first Internet access data to the second electronic device through the first transmission channel includes: If the first transmission channel determined by the first electronic device is the same as the default transmission channel, the default transmission channel is used as the first transmission channel, and the first Internet access data is sent to the second electronic device through the first transmission channel; If the first transmission channel determined by the first electronic device is another transmission channel different from the default transmission channel, the second electronic device is notified through the default transmission channel to select and open the first transmission channel for transmission of the first Internet access data, and the first Internet access data is sent to the second electronic device through the first transmission channel, and the first transmission channel is closed after the transmission is completed; The second electronic device receives the first online data and sends the first online data to a network; The second electronic device receives second Internet access data sent from the network in response to the first Internet access data; The second electronic device sends the second Internet access data to the first electronic device through the first transmission channel; or the second electronic device determines data characteristics of the second Internet access data and determines a second transmission channel for transmitting the second Internet access data according to the data characteristics, and the second electronic device sends the second Internet access data to the first electronic device through the second transmission channel.

14. A networking system, characterized in that: At least comprising a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device establish a communication connection; The first electronic device is used to determine at least two different types of transmission channels between the first electronic device and the second electronic device, the at least two different types of transmission channels comprising at least two of a low-power Bluetooth transmission channel, a Bluetooth transmission channel, a Wi-Fi direct transmission channel, a universal serial bus direct transmission channel, and an Ethernet data line direct transmission channel; The first electronic device is used to select a transmission channel from at least two of the transmission channels as a default transmission channel that is always kept in an open state, wherein the default transmission channel is: a transmission channel with a lowest power consumption threshold or a transmission channel with a largest bandwidth; The first electronic device is used to determine first Internet access data to be transmitted; The first electronic device is used to determine a data feature of the first Internet access data, and determine a first transmission channel for transmitting the first Internet access data among the at least two different types of transmission channels according to the data feature; The first electronic device is used to determine a data feature of the first Internet access data, and determine a first transmission channel for transmitting the first Internet access data among the at least two different types of transmission channels according to the data feature, including: The first electronic device determines the channel characteristics of each of the transmission channels; and determines the channel requirements of the first Internet access data for the transmission channel according to the data characteristics of the first Internet access data; The channel characteristics include at least one of the following: power consumption characteristics, bandwidth characteristics, channel response speed characteristics, transmission delay characteristics and connection reliability characteristics; The channel requirement includes at least one of the following: power consumption requirement, bandwidth requirement, channel response speed requirement, transmission delay requirement, and connection reliability requirement; The channel characteristics and the channel requirements correspond to each other; The first electronic device matches the channel requirement with channel characteristics of each of the transmission channels to determine the first transmission channel for transmitting the first Internet access data; Wherein, matching the channel requirement with the channel characteristics of each of the transmission channels includes: determining a matching order of each of the channel requirements according to the attention degree of the first Internet access data to each of the channel requirements; According to the matching order of each of the channel requirements, matching the corresponding channel requirements with the channel characteristics of each of the transmission channels; The first electronic device is used to send the first Internet access data to the second electronic device through the first transmission channel; The first electronic device is used to send the first Internet access data to the second electronic device through the first transmission channel, including: If the first transmission channel determined by the first electronic device is the same as the default transmission channel, the default transmission channel is used as the first transmission channel, and the first Internet access data is sent to the second electronic device through the first transmission channel; If the first transmission channel determined by the first electronic device is another transmission channel different from the default transmission channel, the second electronic device is notified through the default transmission channel to select and open the first transmission channel for transmission of the first Internet access data, and the first Internet access data is sent to the second electronic device through the first transmission channel, and the first transmission channel is closed after the transmission is completed; The second electronic device is used to receive the first online data and send the first online data to a network; The second electronic device is used to receive second Internet access data sent by the network in response to the first Internet access data; The second electronic device is used to send the second Internet access data to the first electronic device through the first transmission channel; or the second electronic device determines data characteristics of the second Internet access data and determines a second transmission channel for transmitting the second Internet access data based on the data characteristics, and the second electronic device sends the second Internet access data to the first electronic device through the second transmission channel.

15. An electronic device, characterized in that: include: A memory for storing a computer program, wherein the computer program includes program instructions; A processor is used to execute the program instructions so that the electronic device executes the networking method as described in any one of claims 1-12.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and the program instructions are executed by an electronic device to enable the electronic device to perform the networking method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Mobile terminal network connection sharing method and mobile terminal

    CN111050377A

  • Data transmitting method, data receiving method, data transmitting end, and data receiving end

    WO2018120389A1

Cited By

  • Networking method and networking system, and electronic device

    WO2022028293A1