Communication method, electronic equipment and computer readable medium
By detecting network acceleration conditions in terminal devices, utilizing multiple WLAN network frequency band combinations and optimizing connection priorities, the problem of insufficient network environment was solved, resulting in improved network speed and enhanced user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2026-04-07
AI Technical Summary
The existing network environment cannot meet the download requirements of terminal devices, resulting in insufficient network speed and affecting user experience.
By detecting network acceleration trigger conditions, the system utilizes multiple network interfaces of terminal devices to connect to different or the same WLAN network frequency bands, optimizes network connection schemes, including the combined use of 2.4G frequency band, 5G high frequency band and 5G low frequency band, priority settings and network selection scoring mechanisms, and selects the most suitable network combination to improve network speed.
In speed-limited environments, increase network speed, for example, from 20M/s to 40M/s, to improve user experience; in unspeed-limited environments, make full use of channel resources to enhance acceleration capabilities and improve network stability and speed.
Smart Images

Figure CN121815456A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a communication method, electronic device and computer-readable medium. Background Technology
[0002] If a user needs network support for certain operations on their terminal device, and the current network environment cannot meet their needs, it may affect the user experience. For example, if a user needs to download or watch videos or download applications on their terminal device, and the current network speed is insufficient to support the download or loading of videos, it may result in slow downloads or video stuttering, thus impacting the user's viewing experience. Summary of the Invention
[0003] This application provides a communication method, electronic device, and computer-readable medium to optimize the network connection scheme of terminal devices and improve download speed.
[0004] In a first aspect, this application provides a communication method applied to an electronic device, the electronic device including a first network interface, a second network interface, and a third network interface. The method includes: detecting a network acceleration trigger condition; detecting multiple WLAN networks in the environment, wherein the communication frequency bands of the multiple WLAN networks include at least two frequency bands; determining a target frequency band combination that satisfies a combination condition from the multiple WLAN networks based on the connection priorities of the first network interface, the second network interface, and the third network interface, wherein the target frequency band combination includes the frequency bands of the WLAN networks corresponding to the first network interface, the second network interface, and the third network interface, respectively; selecting a target network combination that satisfies the communication condition from the multiple WLAN networks based on the target frequency band combination, wherein the target network combination includes the WLAN networks corresponding to the first network interface, the second network interface, and the third network interface, respectively; and controlling the first network interface, the second network interface, and the third network interface to connect to the WLAN network based on the target network combination.
[0005] It can be understood that the WLAN network connected to the first network interface is the first WLAN network, also known as the primary WLAN network mentioned below; the WLAN network connected to the second network interface is the secondary WLAN network mentioned below; and the WLAN network connected to the third network interface is the second WLAN network, also known as the secondary WLAN network mentioned below.
[0006] In some optional instances, corresponding to the electronic device (terminal device) detecting network acceleration trigger conditions, in order to avoid excessive data consumption when the terminal device uses the cellular network to open preset types of applications, including video applications, game applications, etc., and to improve the download speed of the terminal device, the terminal device can scan and obtain the WLAN network in the current network environment, so that multiple network interfaces of the terminal device can connect to the WLAN network, thereby improving the download speed of the terminal device.
[0007] In some optional instances, the terminal device's multiple network interfaces may include a first network interface, a second network interface, and a newly added third network interface. Thus, the terminal device can achieve WLAN network connectivity across three frequency bands (e.g., 2.4 GHz, 5 GHz high-frequency band, and 5 GHz low-frequency band) through the first, second, and third network interfaces.
[0008] For example, when the network environment contains 2.4GHz, 5GHz high-frequency, and 5GHz low-frequency bands, the terminal device can connect to the WLAN networks of all three bands for network communication through the first, second, and third network interfaces. When the network environment contains both 5GHz high-frequency and 5GHz low-frequency bands, the terminal device can connect to the WLAN networks of both bands through two of the first, second, and third network interfaces. This fully utilizes the WLAN network resources of the current network environment, thereby improving the network speed of the terminal device and enhancing the user experience.
[0009] In one possible implementation of the first aspect above, the combination conditions include: the frequency band corresponding to the first network interface, the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface are different.
[0010] It is understandable that when a terminal device includes two antennas for implementing WLAN network connectivity, and all three network interfaces of the terminal device are connected to the WLAN network, since two network interfaces share the same antenna, in order to avoid channel conflicts and affect the stability of the terminal device's network, the WLAN networks connected to the first, second, and third network interfaces are on different frequency bands.
[0011] In one possible implementation of the first aspect above, the combination conditions include: the frequency band corresponding to the first network interface, the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface are different; or, the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the second network interface.
[0012] In some instances, the terminal device includes a first antenna, a second antenna, and a third antenna. When the third network interface needs to connect to the 5G frequency band, it can reuse the first antenna with the first network interface that connects to the 5G frequency band. When the third network interface needs to connect to the 2.4G frequency band, it can connect to the WLAN network of the 2.4G frequency band through a separate 2.4G antenna (the third antenna).
[0013] In one possible implementation of the first aspect above, the combination conditions include: the frequency band corresponding to the first network interface, the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface are different; or, the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the first network interface.
[0014] In some instances, when the third network interface needs to connect to the 5G band, it can connect to the 5G WLAN network through a separate 5G antenna; when the third network interface needs to connect to the 2.4G band, if the second network interface is connected to the 2.4G band, the third network interface can reuse the antenna corresponding to the 2.4G band with the second network interface.
[0015] In one possible implementation of the first aspect above, the electronic device includes a first antenna and a second antenna; the first antenna is used for WLAN network connection between a first network interface, a second network interface and a third network interface and a first sub-band or a second sub-band in a first frequency band; the second antenna is used for WLAN network connection between the first network interface or the second network interface and a second frequency band, and for WLAN network connection between the third network interface and the second frequency band.
[0016] In some instances, the terminal device may include two antennas for implementing WLAN network connectivity, with the first antenna providing three network interfaces for connecting to the 5G band. The second antenna provides three network interfaces for connecting to the 2.4G band.
[0017] For example, when the third network interface needs to connect to the 5G low-frequency band (or 5G high-frequency band), if the first network interface is connected to the 5G high-frequency band (or 5G low-frequency band), the third network interface can reuse the antenna corresponding to the 5G frequency band with the first network interface; when the third network interface needs to connect to the 2.4G frequency band, it can reuse the antenna corresponding to the 2.4G frequency band with the interface of the first network interface or the second network interface that is connected to the 2.4G frequency band.
[0018] In one possible implementation of the first aspect above, the electronic device includes a first antenna, a second antenna, and a third antenna; the first antenna is used for WLAN network connection between the first network interface, the second network interface, and the third network interface and a first sub-band or a second sub-band in the first frequency band; the second antenna is used for WLAN network connection between the first network interface or the second network interface and a second frequency band; and the third antenna is used for WLAN network connection between the third network interface and the second frequency band.
[0019] It is understandable that the first frequency band can be the 5G frequency band mentioned below, the first sub-frequency band can be the 5G high frequency band mentioned below, the second sub-frequency band can be the 5G low frequency band mentioned below, and the second frequency band can be the 2.4G frequency band mentioned below.
[0020] In some instances, a separate antenna can be added for the third network interface. For example, a separate 2.4G antenna can be used to enable the third network interface to connect to the 2.4G frequency band. This allows the WLAN network connected to the third network interface to share the same frequency band and channel as the WLAN network connected to the second network interface (same frequency, same channel). For instance, a terminal device can use a first antenna to enable the first network interface to connect to the 5G high-frequency band, a second antenna to enable the second network interface to connect to the 2.4G frequency band, and a third antenna to enable the third network interface to connect to the 2.4G frequency band, and so on.
[0021] In one possible implementation of the first aspect described above, the electronic device includes a first antenna, a second antenna, and a fourth antenna; the first antenna is used for WLAN network connection between a first network interface, a second network interface, and a first sub-band or a second sub-band in a first frequency band; the second antenna is used for WLAN network connection between the first network interface or the second network interface and a second frequency band, and a third network interface for WLAN network connection in the second frequency band; the fourth antenna is used for WLAN network connection between the third network interface and the first sub-band or the second sub-band in the first frequency band.
[0022] In some instances, a separate antenna can be added for the third network interface, such as a dedicated 5G antenna for connecting the third network interface to the 5G frequency band. This allows the WLAN network connected to the third network interface to share the same frequency band and channel as the WLAN network connected to the first network interface (same frequency, same channel). For example, a terminal device can use the first antenna to connect the first network interface to the 5G high-frequency band, the second antenna to connect the second network interface to the 2.4G frequency band, and the third antenna to connect the third network interface to the 5G high-frequency band, and so on.
[0023] Therefore, by adding an independent antenna (the third or fourth antenna), the terminal device can make the frequency band connected to the third network interface the same as the frequency band connected to the first or second network interface, which helps the terminal device improve download speed.
[0024] In one possible implementation of the first aspect above, the first frequency band includes a 5G frequency band, the first sub-frequency band includes a first 5G sub-frequency band, the second sub-frequency band includes a second 5G sub-frequency band, and the communication frequency in the first 5G sub-frequency band is higher than the communication frequency in the second 5G sub-frequency band; the second frequency band includes a 2.4G frequency band.
[0025] It is understood that the communication frequency in the first 5G sub-band is higher than the communication frequency in the second 5G sub-band. The first 5G sub-band can be the 5G high frequency band mentioned below, the second 5G sub-band can be the 5G low frequency band mentioned below, and the second band can be the 2.4G band mentioned below.
[0026] In one possible implementation of the first aspect above, the electronic device includes a first WLAN chip and a second WLAN chip, the first WLAN chip includes a first network interface and a second network interface, and the second WLAN chip includes a third network interface; wherein the connection priority of the first network interface, the second network interface and the third network interface decreases sequentially.
[0027] It can be understood that the first WLAN chip and the second WLAN chip can respectively correspond to the main WLAN chip and the secondary WLAN chip mentioned below.
[0028] In some instances, the terminal device may have dual WLAN chips. The primary WLAN chip in the dual WLAN chips may include a first network interface and a second network interface, while the secondary WLAN chip in the dual WLAN chips may include a third network interface.
[0029] In one possible implementation of the first aspect above, the electronic device includes a first WLAN chip, which includes a first network interface, a second network interface, and a third network interface; wherein the connection priority of the first network interface, the second network interface, and the third network interface decreases sequentially.
[0030] In some instances, the terminal device may have a single WLAN chip, which includes a first network interface, a second network interface, and a third network interface.
[0031] In one possible implementation of the first aspect above, a target frequency band combination that satisfies the combination conditions is determined from multiple WLAN networks based on the connection priorities of the first network interface, the second network interface, and the third network interface, including: corresponding to the detection that the first network interface is connected to the first WLAN network, the frequency band corresponding to the first network interface in the target frequency band combination is determined to be the frequency band corresponding to the first WLAN network.
[0032] It is understandable that the first WLAN network can be the main WLAN network mentioned below.
[0033] In some optional instances, when a terminal device makes a network connection, it may have multiple connection options for the same frequency band of the WLAN network provided by different network devices.
[0034] Therefore, in some optional instances, the connection priority of the first network interface of the terminal device is set to be higher than that of the second network interface, and the connection priority of the second network interface is higher than that of the third network interface. The connection priority from high to low is: first network interface > second network interface > third network interface. Here, connection priority can be expressed as the connection order of the first, second, and third network interfaces.
[0035] In some optional instances, the target frequency band combinations corresponding to the first network interface, the second network interface, and the third network interface can be determined based on connection priority.
[0036] In one possible implementation of the first aspect above, selecting a target network combination that meets the communication conditions from multiple WLAN networks based on a target frequency band combination includes: determining a candidate network combination that meets the target frequency band combination from multiple WLAN networks; if there are multiple candidate network combinations, selecting a first target network combination from multiple candidate network combinations based on the network selection score of each candidate network combination; or, if there is only one candidate network combination, using the candidate network combination as the first target network combination.
[0037] In one possible implementation of the first aspect above, selecting a target network combination that meets the communication conditions from multiple WLAN networks based on a target frequency band combination includes: determining candidate network combinations that meet the target frequency band combination from multiple WLAN networks; obtaining the current network environment corresponding to the candidate network combinations including a first type of network combination and a second type of network combination; wherein, the first type of network combination is where the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the first network interface or the second network interface; the second type of network combination is where the frequency band corresponding to the first network interface, the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface are different; corresponding to a rate-limited network environment, the first type of network combination is used as the second target network combination; corresponding to a non-rate-limited network environment, the second type of network combination is used as the second target network combination; corresponding to multiple second target network combinations, selecting a first target network combination from multiple second target network combinations based on the network selection score of multiple second target network combinations; or, corresponding to one second target network combination, using the second target network combination as the first target network combination.
[0038] It is understandable that the first type of network combination can be a network combination where the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to either the first or second network interface; that is, the determined multiple candidate network combinations include cases of the same frequency and channel (e.g., network combinations of 5G high-frequency band, 2.4G frequency band, and 5G high-frequency band). The second type of network combination can be a network combination where the frequency band corresponding to the first network interface, the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface are different; that is, the WLAN network frequency bands connected to the three network interfaces are all different (e.g., network combinations of 2.4G frequency band, 5G high-frequency band, and 5G high-frequency band).
[0039] In some embodiments, WLAN networks can exist in both speed-limited and unlimited scenarios. For example, a WLAN network provided by a home router may be an unlimited network, while a WLAN network provided by a router in a public place such as an airport, hotel, or coffee shop may be a speed-limited network. Considering the user experience, when the terminal device determines multiple candidate network combinations that include cases with the same frequency and channel (e.g., a network combination of 5G high-frequency band, 2.4G frequency band, and 5G high-frequency band), and cases where the WLAN network frequency bands connected to the three network interfaces are all different (e.g., a network combination of 2.4G frequency band, 5G high-frequency band, and 5G high-frequency band), it can be determined whether the current network environment is a speed-limited or unlimited environment.
[0040] When a terminal device is identified as being in a speed-limited scenario, it will prioritize WLAN networks that share the same frequency and channel as the primary or secondary WLAN network when selecting WLAN networks. This can further increase the network speed on top of the original speed, for example, from 20M / s to 40M / s, effectively improving the terminal device's network speed and enhancing the user experience.
[0041] When the terminal device is determined to be in a non-speed-limited scenario, when selecting WLAN networks, it will prioritize WLAN networks with different frequency bands from the main WLAN network and the auxiliary WLAN network as secondary WLAN networks to be connected. For example, if the main WLAN network is a 5G high-frequency band and the auxiliary WLAN network is a 2.4G frequency band, it will prioritize connecting to the 5G low-frequency band. This can not only make full use of channel resources, but also improve the acceleration capability of the terminal device to a certain extent and improve the user experience.
[0042] In one possible implementation of the first aspect above, the method of determining the network environment as a speed-limited environment includes: determining the network environment as a speed-limited environment when it is determined that the location of the electronic device is within the geographical range corresponding to the preset speed-limited environment, and / or determining that the first WLAN network is a network that requires login authentication.
[0043] In some optional instances, the methods by which the terminal device determines a speed-limited scenario may include: obtaining the terminal device's current location; if the terminal device determines that its current location is a preset public place such as an airport, hotel, or coffee shop, the terminal device can determine that the current situation is a speed-limited scenario; and / or if the terminal device detects that connection verification is required when connecting to the main WLAN network, the terminal device can determine that the current situation is a speed-limited scenario.
[0044] It is understandable that if the terminal device determines that the current network environment does not meet the judgment method of the above-mentioned speed-limiting scenario, then the current network environment can be determined to be a non-speed-limiting scenario.
[0045] In one possible implementation of the first aspect above, there are multiple candidate network combinations. Based on the network selection score of each candidate network combination, a target network combination is selected from the multiple candidate network combinations, including: determining the network selection score of the candidate network combination based on the channel parameters of the WLAN network corresponding to the third network interface in the candidate network combination, wherein the communication parameters include at least one of the following: network bandwidth, signal strength, and network standard; and selecting the candidate network combination with the highest network selection score from the multiple candidate network combinations as the target network combination.
[0046] In one possible implementation of the first aspect above, the network selection score of the candidate network combination is determined based on the communication parameters of the WLAN network corresponding to the third network interface in the candidate network combination, including: using the sum of the bandwidth score, signal strength score and network standard score of the WLAN network corresponding to the third network interface in the candidate network combination as the network selection score of the candidate network combination.
[0047] The bandwidth score is determined based on the network bandwidth and basic network bandwidth of the WLAN network; the signal strength score is determined based on the WLAN signal strength and historical network selection scores of the WLAN network; and the network standard score is determined based on the protocol standard corresponding to the WLAN network. The higher the protocol standard corresponding to the WLAN network, the higher the network standard score. The basic network bandwidth includes one of the following: the maximum value of the network bandwidth, the minimum value of the network bandwidth, and the average value of the network bandwidth.
[0048] In some optional instances, by acquiring the communication parameters of the WLAN networks, multiple eligible WLAN networks are evaluated for network selection. The WLAN network with a selection score greater than a scoring threshold or the highest score is selected as a candidate network for secondary WLAN networks in the target network combination. The communication parameters may include: network bandwidth α, signal strength RSSI, and WLAN network standard (e.g., WiFi-6).
[0049] Specifically, the WLAN network can be scored as shown in formula (1):
[0050] wifi2SelectorScore=bandScore+β·rssiScore+categoryScore (1)
[0051] Wherein, wifi2SelectorScore represents the score of the WLAN network; bandScore represents the bandwidth score corresponding to the frequency band of the WLAN network, the larger the bandwidth, the larger the bandScore; rssiScore represents the signal strength score of the WLAN network, the stronger the signal, the larger the rssiScore; categoryScore represents the standard score of the WLAN network; β is the weighting factor of the historical scores of the WLAN network, 0<β<1.
[0052] Specifically, the bandwidth score (bandScore) corresponding to the frequency band of the WLAN network is calculated as shown in formula (2):
[0053] bandScore=α / 20 (2)
[0054] Where α represents the bandwidth corresponding to the frequency band of the WLAN network.
[0055] In some specific examples, bandwidth includes 20MHz, 40MHz, 80MHz, and 160MHz. A wider bandwidth indicates a higher wireless transmission rate for the WLAN network, resulting in faster download speeds for terminal devices. Therefore, a larger bandwidth leads to a larger band score.
[0056] The signal strength score rssiScore of a WLAN network is calculated as shown in formula (3):
[0057] rssiScore=(rssi+65)×3 (3)
[0058] Here, rssi represents the signal strength of the WLAN network. In some instances, when rssi > -65dN, it can be considered that the signal strength of the WLAN network is relatively strong. Therefore, by calculating the difference between the signal strength of the WLAN network and -65dBm using formula (3), the signal strength of the WLAN network can be determined, and the corresponding signal strength score rssiScore of the WLAN network can be obtained.
[0059] The determination of the WLAN network standard category score can be as follows: For networks using the 802.11ax standard, such as WiFi-6, corresponding to the second network standard mentioned above, the category score is 20; for networks using the 802.11be standard, such as WiFi-7, corresponding to the first network standard mentioned above, the category score is 50; and for networks using other standards, such as WiFi-5, corresponding to the third network standard mentioned above, the category score is 0.
[0060] The determination of the historical score weighting factor β for a WLAN network can include: the terminal device's server storing the scores (wifi2SelectorScore) of WLAN networks the terminal device has connected to; when selecting a secondary WLAN network, the terminal device can obtain the network's most recent historical score, the average of its last three historical scores, or the average of all historical scores. The historical score weighting factor β is then determined based on the historical score or its average. A higher historical score or average historical score corresponds to a larger β, meaning the WLAN network receives a higher weighting.
[0061] In some optional instances, the method for determining the historical score weighting factor β of a WLAN network may include: for multiple WLAN networks, the terminal device can obtain the most recent historical score of each of the multiple WLAN networks, as well as the sum of the most recent historical scores of each WLAN network; then calculate the ratio of the most recent historical score of each WLAN network to the sum, which is the historical score weighting factor β of that WLAN network.
[0062] For example, taking WLAN2, WLAN3, and WLAN5 as shown in Table 6, the terminal device can obtain the most recent historical scores of WLAN2, WLAN3, and WLAN5 as 50, 40, and 30, respectively. The corresponding weighting factor β of the historical score of WLAN2 is 50 / (50+40+30)=0.417, and the weighting factors β of the historical scores of WLAN3 and WLAN5 are 0.33 and 0.25, respectively.
[0063] Therefore, based on formulas (1) to (3), the terminal device can select the WLAN network with the strongest signal strength and the fastest network speed as the candidate network for the secondary WLAN network from three aspects: signal strength, bandwidth and network standard, thereby effectively improving the network speed of the terminal device.
[0064] In one possible implementation of the first aspect described above, a target frequency band combination that meets the combination conditions is determined from multiple WLAN networks based on the connection priorities of the first network interface, the second network interface, and the third network interface. This includes: when the speed measurement application of the electronic device is not in the foreground, the signal strength, signal reception rate, and signal transmission rate of the first WLAN network connected to the first network interface are obtained, and the signal strength of the first WLAN network is greater than a first strength threshold. If the signal reception rate of the first WLAN network is greater than or equal to a first start threshold and / or the signal transmission rate of the first WLAN network is greater than or equal to a second start threshold, then a target frequency band combination that meets the combination conditions is determined from multiple WLAN networks based on the connection priorities of the first network interface, the second network interface, and the third network interface.
[0065] In some optional instances, where the speed measurement application for the terminal device is not in the foreground, if the Rx and / or Tx of the main WLAN network satisfy Rx >= Th_W_RxA Mbps (first start threshold) and Tx >= Th_W_TxA Mbps (second start threshold), the terminal device enters the process of connecting to the secondary WLAN network. Based on the connection priorities of the first, second, and third network interfaces, it determines the target frequency band combination that meets the combination conditions from multiple WLAN networks.
[0066] In one possible implementation of the first aspect above, determining a target frequency band combination that satisfies the combination conditions from multiple WLAN networks based on the connection priorities of the first network interface, the second network interface, and the third network interface further includes:
[0067] The speed measurement application for electronic devices is in the foreground running state. Based on the connection priority of the first network interface, the second network interface and the third network interface, the target frequency band combination that meets the combination conditions is determined from multiple WLAN networks.
[0068] In some optional instances, the speed measurement application corresponding to the terminal device is in the foreground running state, and the terminal device enters the process of connecting to the secondary WLAN network. Based on the connection priority of the first network interface, the second network interface, and the third network interface, the target frequency band combination that meets the combination conditions is determined from multiple WLAN networks.
[0069] In one possible implementation of the first aspect above, the method further includes: when the third network interface is in a network connection state and the frequency band of the WLAN network connected to the first network interface is the same, the third network interface maintains connection with the WLAN network when the WLAN network connected to the third network interface satisfies the first connection maintenance condition, the second connection maintenance condition, or the third connection maintenance condition.
[0070] In some instances, by monitoring whether the primary and secondary WLAN networks meet the first, second, or third hold-up conditions, the terminal device can effectively determine whether the connected secondary WLAN network meets the terminal device's need for increased network speed. Specifically, if the primary and secondary WLAN networks meet these conditions, the terminal device can determine that the currently connected secondary WLAN network provides effective network speed without affecting the primary WLAN network's speed; conversely, if the secondary WLAN network fails to meet these conditions, the terminal device can determine that the currently connected secondary WLAN network not only fails to provide effective speed improvement but also affects the primary WLAN network's speed. Therefore, in some instances, the terminal device can disconnect from the secondary WLAN network in this situation.
[0071] In one possible implementation of the first aspect above, the first connection-maintaining condition includes: the signal strength of the first WLAN network connected to the first network interface is greater than a first strength threshold; the sum of the signal reception rate and signal transmission rate of the first WLAN network is less than the upper limit of the first WLAN network rate; and the signal strength of the second WLAN network connected to the third network interface is within the first strength range; and the sum of the signal reception rate and signal transmission rate of the second WLAN network is within the first rate range corresponding to the first strength range, and the signal transmission rate of the second WLAN network is within the second rate range corresponding to the first strength range; or, the signal reception rate of the first WLAN network is greater than a first monitoring rate threshold, and the signal transmission rate of the second WLAN network is less than a rate lower limit threshold.
[0072] It is understandable that the second WLAN network can be the secondary WLAN network mentioned below.
[0073] In some optional instances, the first keep-connection condition may include: the signal strength of the secondary WLAN network meets a first strength range (e.g., rssi > -60dBm). Then, the Tx+Rx of the secondary WLAN network is in a first rate range (Tx+Rx < Th_H1 Mbps), and the Tx of the secondary WLAN network is in a second rate range (Tx < Th_H_Tx1 Mbps). Alternatively, if the primary WLAN network's Rx rate monitoring condition is monitored, for example, the primary WLAN network's Rx is greater than a first monitoring rate threshold (Th_W_Rx1 Mbps), and the secondary WLAN network's Tx is limited to meet the secondary WLAN network's rate limiting condition, for example, the secondary WLAN network's Tx is less than a rate floor threshold (Th_H_txmin Mbps).
[0074] In one possible implementation of the first aspect above, the second connection-maintaining condition includes: the signal strength of the first WLAN network connected to the first network interface is greater than a first strength threshold, the sum of the signal reception rate and the signal transmission rate of the first WLAN network is less than the upper limit of the first WLAN network rate, and the signal strength of the second WLAN network connected to the third network interface is within a second strength range; and the sum of the signal reception rate and the signal transmission rate of the second WLAN network is within a third rate range corresponding to the second strength range, and the signal transmission rate of the second WLAN network is within a fourth rate range corresponding to the second strength range; or, the signal reception rate of the first WLAN network is greater than a second monitoring rate threshold, and the signal transmission rate of the second WLAN network is less than a rate lower limit threshold.
[0075] In some optional instances, the second hold-alive condition may include: the signal strength of the secondary WLAN network meets a second strength range (e.g., -60dBm >= rssi > -65dBm). Then, the Tx+Rx of the secondary WLAN network is in a third rate range (Tx+Rx < Th_H2 Mbps), and the Tx of the secondary WLAN network is in a fourth rate range (Tx < Th_H_Tx2 Mbps). Alternatively, if the Rx rate monitoring condition of the primary WLAN network is monitored, for example, the Rx of the primary WLAN network is greater than a second monitoring rate threshold (Th_W_Rx2 Mbps), and the Tx of the secondary WLAN network is limited to meet the rate limiting condition of the secondary WLAN network, for example, the Tx of the secondary WLAN network is less than a rate floor threshold (Th_H_txmin Mbps).
[0076] In one possible implementation of the first aspect above, the third connection-maintaining condition includes: the signal strength of the first WLAN network connected to the first network interface is greater than a first strength threshold, the sum of the signal reception rate and the signal transmission rate of the first WLAN network is less than the upper limit of the first WLAN network rate, and the signal strength of the second WLAN network connected to the third network interface is within a third strength range; and the sum of the signal reception rate and the signal transmission rate of the second WLAN network is within a fifth rate range corresponding to the third strength range, and the signal transmission rate of the second WLAN network is within a sixth rate range corresponding to the third strength range, then the third network interface maintains connection with the second WLAN network; or, the signal reception rate of the first WLAN network is greater than a third monitoring rate threshold, and the signal transmission rate of the second WLAN network is less than a rate lower limit threshold.
[0077] In some optional instances, the third hold-on condition may include: the signal strength of the secondary WLAN network meets a third strength range (e.g., -65dBm >= rssi > -70dBm); if the secondary WLAN network's rate cap condition is met, for example, monitoring the secondary WLAN network's Tx+Rx to be in the fifth rate range (Tx+Rx < Th_H3 Mbps); and the secondary WLAN network's rate limiting condition, for example, the secondary WLAN network's Tx to be in the sixth rate range (Tx < Th_H_Tx3 Mbps); or if the primary WLAN network's Rx rate monitoring condition is monitored, for example, the primary WLAN network's Rx is greater than a third monitoring rate threshold (Th_W_Rx3 Mbps), and the secondary WLAN network's Tx is limited to meet the secondary WLAN network's rate limiting condition, for example, the secondary WLAN network's Tx is less than a rate floor threshold (Th_H_txmin Mbps).
[0078] In one possible implementation of the first aspect above, the minimum value in the first intensity range is greater than or equal to the maximum value in the second intensity range, the minimum value in the second intensity range is greater than or equal to the maximum value in the third intensity range; the maximum value in the first rate range is greater than the maximum value in the third rate range, the maximum value in the third rate range is greater than the maximum value in the fifth rate range; the maximum value in the second rate range is greater than the maximum value in the fourth rate range, and the maximum value in the fourth rate range is greater than the maximum value in the sixth rate range; the first monitoring rate threshold is greater than the second monitoring rate threshold, and the second monitoring rate threshold is greater than the third monitoring rate threshold.
[0079] In some optional instances, this corresponds to Th_H1 Mbps > Th_H2 Mbps, Th_H2 Mbps > Th_H3 Mbps; Th_H_Tx1 Mbps > Th_H_Tx2 Mbps, Th_H_Tx2 Mbps > Th_H_Tx3 Mbps; Th_W_Rx1 Mbps > Th_W_Rx2 Mbps, Th_W_Rx2 Mbps > Th_W_Rx3 Mbps, as mentioned below.
[0080] Secondly, this application provides a communication method applied to an electronic device, the electronic device including a first network interface, a second network interface, and a third network interface. The method includes: detecting a network acceleration trigger condition; detecting multiple WLAN networks in the environment, wherein the communication frequency bands of the multiple WLAN networks include three frequency bands; determining a candidate network combination from the multiple WLAN networks that satisfies a target frequency band combination; corresponding to the candidate network combination including a first type of network combination and a second type of network combination, obtaining the current network environment; wherein the first type of network combination is where the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the first network interface or the second network interface; the second type of network combination includes a first type of network combination and a second type of network combination. The network combination has different frequency bands corresponding to the first network interface, the second network interface, and the third network interface; corresponding to a speed-limited network environment, the first type of network combination is used as the second target network combination; corresponding to an unspeed-limited network environment, the second type of network combination is used as the second target network combination; corresponding to multiple second target network combinations, the first target network combination is selected from the multiple second target network combinations based on the network selection score of the multiple second target network combinations; or, corresponding to one second target network combination, the second target network combination is used as the first target network combination; based on the first target network combination, the first network interface, the second network interface, and the third network interface are controlled to establish WLAN network connections.
[0081] In some optional instances, the terminal device's multiple network interfaces may include a first network interface, a second network interface, and a newly added third network interface. Corresponding to the electronic device (terminal device) detecting network acceleration trigger conditions, to avoid excessive data consumption when the terminal device uses a preset type of application on the cellular network, including video applications and games, and to improve the terminal device's download speed, the terminal device can scan and obtain WLAN networks in the current network environment. Thus, the terminal device can achieve WLAN network connections on three frequency bands (e.g., 2.4 GHz band, 5 GHz high-frequency band, and 5 GHz low-frequency band) through the first, second, and third network interfaces.
[0082] In some optional instances, the first type of network combination can be a network combination where the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to either the first or second network interface; that is, the determined multiple candidate network combinations include cases of co-frequency and co-channel operation (e.g., network combinations of 5G high-frequency band, 2.4G frequency band, and 5G high-frequency band). The second type of network combination can be a network combination where the frequency bands corresponding to the first, second, and third network interfaces are different; that is, the WLAN network frequency bands connected to the three network interfaces are all different (e.g., network combinations of 2.4G frequency band, 5G high-frequency band, and 5G high-frequency band).
[0083] In some embodiments, WLAN networks can exist in both speed-limited and unlimited scenarios. For example, a WLAN network provided by a home router may be an unlimited network, while a WLAN network provided by a router in a public place such as an airport, hotel, or coffee shop may be a speed-limited network. Considering the user experience, when the terminal device determines multiple candidate network combinations that include cases with the same frequency and channel (e.g., a network combination of 5G high-frequency band, 2.4G frequency band, and 5G high-frequency band), and cases where the WLAN network frequency bands connected to the three network interfaces are all different (e.g., a network combination of 2.4G frequency band, 5G high-frequency band, and 5G high-frequency band), it can be determined whether the current network environment is a speed-limited or unlimited environment.
[0084] When a terminal device is identified as being in a speed-limited scenario, it prioritizes connecting to WLAN networks that share the same frequency and channel as the primary or secondary WLAN network. This can further increase the original network speed, for example, from 20Mbps to 40Mbps, effectively improving the terminal device's network speed and enhancing the user experience. If, however, the secondary WLAN network is provided in a non-speed-limited scenario, and the device chooses to connect to a network sharing the same frequency and channel as the primary or secondary WLAN network, the speed increase may only be slight, such as from 20Mbps to 22Mbps. Compared to the energy consumption of connecting to the secondary WLAN network, if the speed increase is only slight, the secondary WLAN network may offer no benefit or even a negative benefit.
[0085] When the terminal device is determined to be in a non-speed-limited scenario, when selecting WLAN networks, it will prioritize WLAN networks with different frequency bands from the main WLAN network and the auxiliary WLAN network as secondary WLAN networks to be connected. For example, if the main WLAN network is a 5G high-frequency band and the auxiliary WLAN network is a 2.4G frequency band, it will prioritize connecting to the 5G low-frequency band. This can not only make full use of channel resources, but also improve the acceleration capability of the terminal device to a certain extent and improve the user experience.
[0086] In one possible implementation of the second aspect above, the method of determining the network environment as a speed-limited environment includes: determining the network environment as a speed-limited environment when it is determined that the location of the electronic device is within the geographical range corresponding to the preset speed-limited environment, and / or determining that the first WLAN network is a network that requires login authentication.
[0087] In some optional instances, the methods by which the terminal device determines a speed-limited scenario may include: obtaining the terminal device's current location; if the terminal device determines that its current location is a preset public place such as an airport, hotel, or coffee shop, the terminal device can determine that the current situation is a speed-limited scenario; and / or if the terminal device detects that connection verification is required when connecting to the main WLAN network, the terminal device can determine that the current situation is a speed-limited scenario.
[0088] It is understandable that if the terminal device determines that the current network environment does not meet the judgment method of the above-mentioned speed-limiting scenario, then the current network environment can be determined to be a non-speed-limiting scenario.
[0089] Thirdly, this application provides a communication method applied to a terminal device, the terminal device including a first WLAN chip and a second WLAN chip, and the method includes: detecting a network acceleration trigger condition; detecting multiple WLAN networks in the environment, wherein the communication frequency bands of the multiple WLAN networks include at least three frequency bands; determining a target frequency band combination from the multiple WLAN networks based on the connection priority of multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip, wherein the target frequency band combination includes the frequency bands of the WLAN networks corresponding to the multiple network interfaces of the first WLAN chip and the at least one network interface of the second WLAN chip, the multiple frequency bands in the target frequency band combination are different, and the connection priority of the network interface of the first WLAN chip is higher than the connection priority of the network interface of the second WLAN chip; selecting a target network combination from the multiple WLAN networks based on the target frequency band combination, wherein the target network combination includes the WLAN networks corresponding to each frequency band in the target frequency band combination; and controlling the multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip to perform network connections based on the target network combination.
[0090] It is understood that the first WLAN chip and the second WLAN chip included in the terminal device can respectively correspond to the main WLAN chip and the secondary WLAN chip mentioned below.
[0091] In some optional instances, corresponding to the terminal device detecting a network acceleration trigger condition, to avoid excessive data consumption when the terminal device is using a cellular network to open an application, and to improve the download speed of the terminal device, the terminal device's WLAN chip (e.g., a first WLAN chip and a second WLAN chip) can scan and acquire WLAN networks in the current network environment, enabling multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip to connect to the network, thereby improving the download speed of the terminal device.
[0092] For example, when multiple frequency bands of WLAN networks exist in a network environment, such as multiple 5G frequency band WLAN networks, including high-frequency 5G (above 5330MHz) and low-frequency 5G (below 5330MHz), to fully utilize the network resources of the current network environment, the terminal device can add a WLAN network on top of its existing cellular network and the dual-band WLAN network connected to the main WLAN chip. This means simultaneously utilizing the cellular network, multiple network interfaces of the main WLAN chip to connect to the WLAN network, and at least one network interface of the secondary WLAN chip to connect to the WLAN network for network communication. Thus, the terminal device adds at least one WLAN network channel through the secondary WLAN chip, improving download speeds.
[0093] In one possible implementation of the third aspect above, determining a target frequency band combination from multiple WLAN networks based on the connection priority of multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip includes: determining the frequency band corresponding to the first network interface in the target frequency band combination as the first frequency band if the first network interface among the multiple network interfaces of the first WLAN chip is detected to be connected to the first WLAN network.
[0094] It is understandable that in some optional instances, if terminal devices simultaneously connect to WLAN networks on the same frequency band, channel interference may occur, affecting the stability of the WLAN network. Therefore, to ensure that there is no channel interference between the WLAN networks connected to the primary WLAN chip and the secondary WLAN chip, the connection priority of the network interface of the primary WLAN chip can be set to be higher than that of the network interface of the secondary WLAN chip. Based on the connection priority of multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip, the target frequency band combination can be determined from multiple WLAN networks.
[0095] In some optional instances, based on the connection priority of the terminal device and the target frequency band combination, when the first network interface is already connected to the first frequency band, the corresponding frequency band of the first network interface in the target frequency band combination is determined to be the first frequency band.
[0096] For example, if it is detected that the first network interface is connected to a 5G high-frequency band, then it can be determined that the frequency band corresponding to the first network interface in the target frequency band combination is a 5G high-frequency band.
[0097] In one possible implementation of the third aspect above, the first WLAN chip further includes a second network interface, and the second WLAN chip includes a third network interface, wherein the connection priority of the first network interface, the second network interface, and the third network interface decreases sequentially, and at least three frequency bands include a 5G frequency band and a 2.4G frequency band, and the 5G frequency band includes a first 5G sub-frequency band and a second 5G sub-frequency band, wherein the communication frequency in the first 5G sub-frequency band is higher than the communication frequency in the second 5G sub-frequency band.
[0098] It is understood that the communication frequency in the first 5G sub-band is higher than the communication frequency in the second 5G sub-band. The first 5G sub-band can be the 5G high-frequency band mentioned below, and the second 5G sub-band can be the 5G low-frequency band mentioned below.
[0099] In some optional examples, for ease of description, the following description will take the case where the main WLAN chip includes two network interfaces, namely the first network interface and the second network interface, and the secondary WLAN chip includes one network interface, namely the third network interface.
[0100] In some alternative instances, the WLAN network provided by the same network device (e.g., a router) can have multiple frequency bands, the frequency bands of the WLAN networks provided by different network devices may overlap, and the communication quality of the WLAN networks provided by different network devices may not be the same. Thus, when the primary and secondary WLAN chips of a terminal device establish network connections, for the same frequency band of the WLAN networks provided by different network devices, the primary and secondary WLAN chips of the terminal device can have multiple connection schemes.
[0101] Therefore, in some optional instances, the connection priority of the network interface of the main WLAN chip in the terminal device is set higher than that of the network interface of the secondary WLAN chip. Simultaneously, the connection priority of the first network interface of the main WLAN chip is set higher than that of the second network interface, and the connection priority of the second network interface of the main WLAN chip is set higher than that of the third network interface of the secondary WLAN chip. The connection priority from high to low is: first network interface > second network interface > third network interface. Here, connection priority can be expressed as the connection order of the first, second, and third network interfaces.
[0102] In some alternative instances, the WLAN networks connected to the first and second network interfaces may correspond to the primary WLAN network and the secondary WLAN network mentioned below; the WLAN network connected to the third network interface may correspond to the secondary WLAN network mentioned below.
[0103] In one possible implementation of the third aspect above, a target frequency band combination is determined from multiple WLAN networks based on the connection priority of multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip. This includes: the frequency band of the first WLAN network connected to the first network interface of the first WLAN chip is designated as the first 5G sub-frequency band; and the target frequency band combination is determined as follows: the first 5G sub-frequency band of the first WLAN network connected to the first network interface, the frequency band of the WLAN network connected to the second network interface is designated as the 2.4G frequency band, and the frequency band of the WLAN network connected to the third network interface is designated as the second 5G sub-frequency band.
[0104] The frequency band of the first WLAN network connected to the first network interface of the first WLAN chip is the second 5G sub-frequency band. The target frequency band combination is determined to include: the second 5G sub-frequency band of the first network interface connected to the first WLAN network, the frequency band of the WLAN network connected to the second network interface is the 2.4G frequency band, and the frequency band of the WLAN network connected to the third network interface is the first 5G sub-frequency band.
[0105] The frequency band of the first WLAN network connected to the first network interface of the first WLAN chip is the 2.4G frequency band. The target frequency band combination is determined to include: the 2.4G frequency band of the first WLAN network connected to the first network interface, the frequency band of the WLAN network connected to the second network interface is the first 5G sub-frequency band, and the frequency band of the WLAN network connected to the third network interface is the second 5G sub-frequency band.
[0106] The frequency band of the first WLAN network connected to the first network interface of the first WLAN chip is the 2.4G frequency band. The target frequency band combination is determined to include: the 2.4G frequency band of the first WLAN network connected to the first network interface, the frequency band of the WLAN network connected to the second network interface is the second 5G sub-frequency band, and the frequency band of the WLAN network connected to the third network interface is the first 5G sub-frequency band.
[0107] In some alternative examples, for instance, if the first network interface of the main WLAN chip is already connected to the 5G high-frequency band as the main WLAN network, the main WLAN chip and the secondary WLAN chip cannot simultaneously connect to WLAN networks of the same frequency band because channel interference will occur when terminal devices connect to WLAN networks of the same frequency band. In this case, the second network interface of the main WLAN chip connects to the 2.4G frequency band as the auxiliary WLAN network, and the third network interface of the secondary WLAN chip connects to the 5G low-frequency band as the secondary WLAN network. Alternatively, if the first network interface of the main WLAN chip is pre-connected to the 2.4G frequency band as the main WLAN network, then the second network interface of the main WLAN chip connects to the 5G high-frequency band as the auxiliary WLAN network, and the third network interface of the secondary WLAN chip connects to either the 5G low-frequency band or the 5G high-frequency band as the secondary WLAN network.
[0108] Then, the terminal device can determine the target frequency band combination based on the WLAN network connection priority. Corresponding to the target frequency band combination determined by the terminal device, the terminal device can determine the WLAN networks to which the primary WLAN chip and the secondary WLAN chip connect.
[0109] In one possible implementation of the third aspect above, selecting a target network combination from multiple WLAN networks based on a target frequency band combination includes: determining candidate network combinations that satisfy the target frequency band combination from multiple WLAN networks; if there are multiple candidate network combinations, selecting a target network combination from the multiple candidate network combinations based on the network selection score of each candidate network combination; if there is only one candidate network combination, using the candidate network combination as the target network combination.
[0110] It is understandable that among multiple WLAN networks, there may be one or more candidate network combinations that meet the target frequency band combination, thereby determining the target network combination from the candidate network combinations.
[0111] In some optional instances, there are multiple candidate network combinations. The target network combination is determined from these candidate networks based on the network selection score of the secondary WLAN network within each candidate network combination. Alternatively, if there is only one candidate network combination, that combination can be designated as the target network combination. This involves determining the WLAN networks connected to the primary and secondary WLAN chips. The network selection score can be determined by the communication parameters of the secondary WLAN network within the candidate network combination.
[0112] In one possible implementation of the third aspect above, there are multiple candidate network combinations. Based on the network selection score of each candidate network combination, a target network combination is selected from the multiple candidate network combinations, including: selecting the candidate network combination with the highest network selection score from the multiple candidate network combinations as the target network combination.
[0113] In one possible implementation of the third aspect above, the method further includes: determining the network selection score of the candidate network combination based on the communication parameters of the WLAN network corresponding to the third network interface of the second WLAN chip in the candidate network combination.
[0114] In one possible implementation of the third aspect described above, the first WLAN chip further includes a second network interface, and the second WLAN chip includes a third network interface; and the communication parameters include: network bandwidth, signal strength, and network standard.
[0115] In one possible implementation of the third aspect above, the network selection score of the candidate network combination is determined based on the communication parameters of the WLAN network corresponding to the third network interface of the second WLAN chip in the candidate network combination. This includes: using the sum of the bandwidth score, signal strength score, and network standard score of the WLAN network corresponding to the third network interface in the candidate network combination as the network selection score of the candidate network combination; wherein, the bandwidth score is the ratio of the network bandwidth of the WLAN network to the basic network bandwidth, the signal strength score is related to the WLAN signal strength of the WLAN network and historical network selection scores, and the network standard score is related to the protocol standard corresponding to the WLAN network. The higher the protocol standard corresponding to the WLAN network, the higher the network standard score. The basic network bandwidth includes one of the following: the maximum value of the network bandwidth, the minimum value of the network bandwidth, and the average value of the network bandwidth.
[0116] In some optional instances, by obtaining the communication parameters of the WLAN network corresponding to the third network interface of the second WLAN chip in the candidate network combination, multiple qualified WLAN networks are evaluated for network selection. The WLAN network with a selection score greater than the scoring threshold or the highest score is selected as a candidate network for the secondary WLAN network in the target network combination. The communication parameters may include: network bandwidth α, signal strength RSSI, and WLAN network standard (e.g., WiFi-6).
[0117] In some optional instances, specifically, the WLAN network can be scored as shown in formula (1):
[0118] wifi2SelectorScore=bandScore+β·rssiScore+categoryScore (1)
[0119] Wherein, wifi2SelectorScore represents the score of the WLAN network; bandScore represents the bandwidth score corresponding to the frequency band of the WLAN network, the larger the bandwidth, the larger the bandScore; rssiScore represents the signal strength score of the WLAN network, the stronger the signal, the larger the rssiScore; categoryScore represents the standard score of the WLAN network; β is the weighting factor of the historical scores of the WLAN network, 0<β<1.
[0120] Specifically, the bandwidth score (bandScore) corresponding to the frequency band of the WLAN network is calculated as shown in formula (2):
[0121] bandScore=α / 20 (2)
[0122] Where α represents the bandwidth corresponding to the frequency band of the WLAN network; 20 can be represented as the basic network bandwidth.
[0123] In some specific examples, bandwidth includes 20MHz, 40MHz, 80MHz, and 160MHz. A wider bandwidth indicates a higher wireless transmission rate for the WLAN network, resulting in faster download speeds for terminal devices. Therefore, a larger bandwidth leads to a larger band score.
[0124] The signal strength score rssiScore of a WLAN network is calculated as shown in formula (3):
[0125] rssiScore=(rssi+65)×3 (3)
[0126] Here, rssi represents the signal strength of the WLAN network. In some instances, when rssi > -65 dBm, it can be considered that the signal strength of the WLAN network is relatively strong. Therefore, the difference between the signal strength of the WLAN network and -65 dBm is calculated using formula (3) to determine the signal strength of the WLAN network and obtain the corresponding WLAN network signal strength score rssiScore.
[0127] The determination of the WLAN network standard score (categoryScore) can be as follows: For networks using the 802.11ax standard (e.g., WiFi-6), the categoryScore is 20; for networks using the 802.11be standard (e.g., WiFi-7), the categoryScore is 50; and for networks using other standards (e.g., WiFi-5), the categoryScore is 0.
[0128] The determination of the historical score weighting factor β for a WLAN network can include: the terminal device's server storing the scores (wifi2SelectorScore) of the WLAN networks the terminal device has connected to; and the secondary WLAN chip, when selecting a secondary WLAN network, obtaining the network's most recent historical score, the average of its three most recent historical scores, or the average of all historical scores. The historical score weighting factor β is then determined based on the historical score or its average. A higher historical score or its average corresponds to a larger β, meaning the WLAN network receives a higher weighting.
[0129] In some optional instances, the method for determining the historical score weighting factor β of a WLAN network may include: for multiple WLAN networks, the secondary WLAN chip can obtain the most recent historical score of each of the multiple WLAN networks, as well as the sum of the most recent historical scores of the multiple WLAN networks; then, the ratio of the most recent historical score of each WLAN network to the sum is calculated, which is the historical score weighting factor β of that WLAN network.
[0130] Therefore, the secondary WLAN chip determines the WLAN network with the highest score as the secondary WLAN network according to formulas (1) to (3), and then determines the target network combination.
[0131] In one possible implementation of the third aspect above, the network acceleration triggering condition includes at least one of the following: detecting that a user performs a download operation; detecting that a user performs a loading operation; detecting that a user opens an application of a preset type, including video applications, game applications, and download applications.
[0132] In some optional instances, such as when a terminal device is downloading or loading videos, or running game applications, not only does the terminal device consume excessive data, but the network speed provided by the cellular network alone is insufficient to support fast video downloads. Therefore, when a user is detected performing a download operation, a loading operation, or / or opening a preset type of application, a network acceleration trigger condition can be triggered accordingly. The terminal device connects to the network by controlling multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip, thereby improving the download speed.
[0133] In one possible implementation of the third aspect above, the terminal device has mobile communication capabilities, and the method further includes: when controlling multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip to perform network connections based on the target network combination, the cellular network to which the terminal device is connected is in a data transmission state.
[0134] It is understandable that for terminal devices with mobile communication functions, when the terminal device controls multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip to connect to the network based on the target network combination, the cellular network connected to the terminal device is in a data transmission state, which can realize multi-network concurrency and improve download speed.
[0135] Fourthly, this application provides a communication method applied to a terminal device, the terminal device having mobile communication function, and the method further includes: when controlling multiple network interfaces of a first WLAN chip and at least one network interface of a second WLAN chip to connect to a network based on a target network combination, the cellular network connected to the terminal device is in a data transmission state.
[0136] It is understood that the first WLAN chip and the second WLAN chip included in the terminal device can respectively correspond to the main WLAN chip and the secondary WLAN chip mentioned below.
[0137] In some optional examples, corresponding to terminal devices with mobile communication capabilities, to avoid excessive data consumption when the terminal device uses a cellular network to launch applications and to improve the download speed of the terminal device, the terminal device can scan and obtain WLAN networks in the current network environment through a first WLAN chip, control multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip to connect to the network, and simultaneously the cellular network connected to the terminal device is in data transmission mode. That is, the terminal device can make full use of the network resources of the current network environment, and simultaneously use the cellular network, multiple network interfaces of the main WLAN chip to connect to the WLAN network, and at least one network interface of the secondary WLAN chip to connect to the WLAN network for network communication, realizing multi-network concurrency and improving download speed.
[0138] In one possible implementation of the fourth aspect above, the terminal device includes a first WLAN chip and a second WLAN chip, the first WLAN chip includes a first network interface and a second network interface, and the second WLAN chip includes a third network interface; and the method includes: detecting a network acceleration trigger condition; controlling the first WLAN chip and the second WLAN chip to connect to the network in an acceleration mode; wherein, the acceleration mode includes the first network interface, the second network interface, and the third network interface respectively connecting to their respective corresponding WLAN networks, and the WLAN networks connected to by the first network interface, the second network interface, and the third network interface are on different frequency bands.
[0139] In some alternative instances, the WLAN network provided by the same network device (e.g., a router) can operate on multiple frequency bands. The frequency bands of WLAN networks provided by different network devices may overlap, and the communication quality of WLAN networks provided by different network devices may vary. If terminal devices simultaneously connect to WLAN networks on the same frequency band, channel interference may occur, affecting the stability of the WLAN network. Therefore, to ensure that there is no channel interference between the WLAN networks connected to the main WLAN chip and the secondary WLAN chip, the first network interface, the second network interface, and the third network interface connect to WLAN networks on different frequency bands.
[0140] In one possible implementation of the fourth aspect above, the network acceleration triggering condition includes at least one of the following: detecting that a user performs a download operation; detecting that a user performs a loading operation; detecting that a user opens an application of a preset type, including video applications, game applications, and download applications.
[0141] It is understandable that, for example, when a terminal device is downloading or loading videos, or running games, not only does the terminal device consume too much data, but the network speed provided by the cellular network alone is insufficient to support fast video downloads. Therefore, when a user is detected performing a download operation, a loading operation, or / or an application of a preset type is detected, network acceleration conditions can be triggered accordingly. The terminal device connects to the network by controlling multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip, thereby improving the download speed.
[0142] In one possible implementation of the fourth aspect above, the frequency bands of the WLAN network include: a 5G frequency band and a 2.4G frequency band, and the 5G frequency band includes a first 5G sub-band and a second 5G sub-band, wherein the communication frequency in the first 5G sub-band is higher than the communication frequency in the second 5G sub-band.
[0143] It is understood that the communication frequency in the first 5G sub-band is higher than the communication frequency in the second 5G sub-band. The first 5G sub-band can be the 5G high-frequency band mentioned below, and the second 5G sub-band can be the 5G low-frequency band mentioned below.
[0144] In one possible implementation of the fourth aspect above, the frequency bands of the WLAN networks connected to the first network interface, the second network interface, and the third network interface respectively include at least one of the following frequency band combinations: the frequency band of the WLAN network connected to the first network interface is a first 5G sub-band, the frequency band of the WLAN network connected to the second network interface is a 2.4G band, and the frequency band of the WLAN network connected to the third network interface is a second 5G sub-band; the frequency band of the WLAN network connected to the first network interface is a second 5G sub-band, the frequency band of the WLAN network connected to the second network interface is a 2.4G band, and the frequency band of the WLAN network connected to the third network interface is a first 5G sub-band; the frequency band of the WLAN network connected to the first network interface is a 2.4G band, the frequency band of the WLAN network connected to the second network interface is a first 5G sub-band, and the frequency band of the WLAN network connected to the third network interface is a second 5G sub-band; the frequency band of the WLAN network connected to the first network interface is a 2.4G band, the frequency band of the WLAN network connected to the second network interface is a second 5G sub-band, and the frequency band of the WLAN network correspondingly connected to the third network interface is a first 5G sub-band.
[0145] In one possible implementation of the fourth aspect above, the method includes: determining the target frequency band combination corresponding to the first network interface, the second network interface, and the third network interface based on the connection priority of the first network interface, the second network interface, and the third network interface, and multiple WLAN networks detected in the environment; wherein the connection priority of the first network interface, the second network interface, and the third network interface decreases sequentially.
[0146] In some optional instances, when the main WLAN chip and the secondary WLAN chip of the terminal device are connected to the network, for the same frequency band of the WLAN network provided by different network devices, the main WLAN chip and the secondary WLAN chip of the terminal device can have multiple connection schemes.
[0147] Therefore, in some optional instances, the connection priority of the network interface of the main WLAN chip in the terminal device is set higher than that of the network interface of the secondary WLAN chip. Simultaneously, the connection priority of the first network interface of the main WLAN chip is set higher than that of the second network interface, and the connection priority of the second network interface of the main WLAN chip is set higher than that of the third network interface of the secondary WLAN chip. The connection priority from high to low is: first network interface > second network interface > third network interface. Here, connection priority can be expressed as the connection order of the first, second, and third network interfaces.
[0148] In some optional instances, the target frequency band combinations corresponding to the first network interface, the second network interface, and the third network interface can be determined based on connection priority.
[0149] In one possible implementation of the fourth aspect above, based on the connection priorities of the first network interface, the second network interface, and the third network interface, and the multiple WLAN networks detected in the environment, the target frequency band combination corresponding to the first network interface, the second network interface, and the third network interface is determined, including: if the frequency band corresponding to the WLAN network that the first network interface is detected to be connected to is the first frequency band, then the corresponding frequency band of the first network interface in the target frequency band combination is determined to be the first frequency band.
[0150] In some optional instances, based on connection priority and target frequency band combination, when the first network interface is already connected to the first frequency band, the corresponding frequency band of the first network interface in the target frequency band combination is determined to be the first frequency band.
[0151] For example, if it is detected that the first network interface is connected to a 5G high-frequency band, then it can be determined that the frequency band corresponding to the first network interface in the target frequency band combination is a 5G high-frequency band.
[0152] In one possible implementation of the fourth aspect above, the method further includes: selecting candidate network combinations from multiple WLAN networks based on target frequency band combinations; corresponding to multiple candidate network combinations, selecting a target network combination from multiple candidate network combinations based on the network selection score of each candidate network combination, wherein the network selection score is related to the communication parameters of the WLAN network corresponding to the third network interface in each candidate network combination.
[0153] In some optional instances, there are multiple candidate network combinations. The target network combination is determined from these candidate networks based on the network selection score of the secondary WLAN network within each candidate network combination. Alternatively, if there is only one candidate network combination, that combination can be designated as the target network combination. This involves determining the WLAN networks connected to the primary and secondary WLAN chips. The network selection score can be determined by the communication parameters of the secondary WLAN network within the candidate network combination.
[0154] In one possible implementation of the fourth aspect above, the terminal device has mobile communication capabilities, and the acceleration mode further includes: enabling the cellular network to which the terminal device is connected to to be in a data transmission state.
[0155] It is understandable that, corresponding to the terminal device detecting network acceleration conditions, the terminal device enters acceleration mode, controls the first network interface to connect to the main WLAN network, the second network interface to connect to the auxiliary WLAN network, and the third network interface to connect to the secondary WLAN network. Moreover, the frequency bands of the WLAN networks connected to the first, second, and third network interfaces are different, and the cellular network is in data transmission state.
[0156] Fifthly, this application provides an electronic device, including: one or more processors; one or more memories; the one or more memories storing one or more programs, which, when executed by one or more processors, cause the electronic device to perform the communication methods provided by various possible implementations of the first, second, third, and fourth aspects described above.
[0157] Sixthly, this application provides a computer-readable medium storing instructions that, when executed on a computer, cause the computer to perform the communication methods provided by various possible implementations of the first, second, third, and fourth aspects described above.
[0158] The beneficial effects of the fifth and sixth aspects mentioned above can be found in the relevant descriptions of the various possible implementations of the first, second, third, and fourth aspects mentioned above, and will not be repeated here. Attached Figure Description
[0159] Figure 1A According to some embodiments of this application, a schematic diagram of a scenario in a multi-frequency network environment is shown;
[0160] Figure 1B According to some embodiments of this application, a schematic diagram of a terminal device deploying an independent antenna is shown;
[0161] Figure 1C According to some embodiments of this application, a schematic diagram of a terminal device deploying an independent antenna is shown;
[0162] Figure 1D According to some embodiments of this application, a schematic diagram of a communication connection process is shown;
[0163] Figure 2 According to some embodiments of this application, a flowchart illustrating the preliminary screening of a WLAN network in the process of a terminal device connecting to a secondary WLAN network is shown.
[0164] Figure 3 According to some embodiments of this application, a schematic diagram of a process for further matching a WLAN network in the process of a terminal device connecting to a secondary WLAN network is shown.
[0165] Figure 4A A schematic diagram of a multi-channel network is shown according to some embodiments of this application;
[0166] Figure 4B A schematic diagram of a multi-channel network is shown according to some embodiments of this application;
[0167] Figure 4C A schematic diagram of a multi-channel network is shown according to some embodiments of this application;
[0168] Figure 4D A schematic diagram of a multi-channel network is shown according to some embodiments of this application;
[0169] Figure 5 According to some embodiments of this application, a schematic diagram of a system architecture is shown;
[0170] Figure 6 According to some embodiments of this application, a schematic diagram of a process for launching a secondary WLAN network and a process for maintaining the connection of the secondary WLAN network is shown.
[0171] Figure 7 According to some embodiments of this application, another schematic diagram of the process for starting a secondary WLAN network and maintaining the secondary WLAN network connection is shown;
[0172] Figure 8 According to some embodiments of this application, a schematic diagram of a process for disconnecting a secondary WLAN network connection is shown;
[0173] Figure 9 According to some embodiments of this application, a schematic diagram of a communication connection process is shown;
[0174] Figure 10 According to some embodiments of this application, a block diagram of an electronic device 001 is shown. Detailed Implementation
[0175] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0176] It is understood that the electronic devices in the embodiments of this application may also be referred to as terminal devices, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. Terminal devices may be devices that support cellular networks and WLAN networks, such as mobile phones and tablets, or they may be terminal devices that support WLAN networks, such as smart TVs and wearable devices. This application does not impose specific limitations.
[0177] As mentioned earlier, when users download or watch videos online via their terminal devices, the current network speed is insufficient to support video downloads or loading, resulting in slow download speeds when using video applications. To address this, in some embodiments, the terminal device can improve download speeds by providing both cellular and wireless local area network (WLAN) bandwidth. This means simultaneously utilizing both cellular and WLAN frequency bands for network communication.
[0178] For example, Figure 1A This diagram illustrates a scenario in a multi-frequency network environment, using a WLAN network in the environment with 2.4GHz and 5GHz frequency bands (including high-frequency 5GHz (e.g., 5.8GHz) and low-frequency 5GHz (e.g., 5.2GHz)) as an example. Currently, in some implementations, the terminal device includes a WLAN chip with two WLAN network interfaces, such as a first network interface and a second network interface. The antenna used for WLAN connection on the terminal device can include a first antenna (e.g., a dedicated 5G antenna) and a second antenna (e.g., a dedicated 2.4GHz antenna). Thus, the terminal device can connect to the WLAN network through the first and second antennas, enabling simultaneous network communication in both the 2.4GHz and 5GHz frequency bands. For example, the first network interface of the terminal device's WLAN chip connects to the 5GHz high-frequency band (or 5G low-frequency band) through the first antenna, and the second network interface connects to the 2.4GHz band through the second antenna. Therefore, the terminal device can simultaneously achieve WLAN network communication and cellular network communication in both the 2.4G and 5G high-frequency bands through the first and second antennas, or simultaneously achieve network communication and cellular network communication in both the 2.4G and 5G low-frequency bands.
[0179] Furthermore, if the terminal device's network environment does not have a 5G frequency band (i.e., neither the 5G high-frequency band nor the 5G low-frequency band) or a 2.4G frequency band, then the terminal device can only communicate via a single frequency band: connecting to the cellular network or connecting to WLAN via the first antenna or the second antenna. In other words, the terminal device supports only a single frequency band for both the cellular network and WLAN. In summary, the specific multi-channel networks supported by the terminal device are shown in Table 1 below:
[0180] Table 1
[0181]
[0182]
[0183] In some cases, this may prevent the full utilization of current network resources. For example, it may be impossible to achieve simultaneous connection of 5G high-frequency bands and 5G low-frequency bands. In some cases, the network speed of electronic devices may still be insufficient to support the download or loading of videos on the terminal device, resulting in slow video downloads or video stuttering when watching videos, which affects the user's viewing experience.
[0184] Therefore, in some embodiments of this application, a communication method is provided for a terminal device. This terminal device adds a third network interface for implementing WLAN network connections, thereby enabling WLAN network connections across three frequency bands (e.g., 2.4GHz, 5GHz high-frequency, and 5GHz low-frequency). For example, when 2.4GHz, 5GHz high-frequency, and 5GHz low-frequency bands exist in the network environment, the terminal device can connect to the WLAN networks of these three bands for network communication through the first, second, and third network interfaces. When 5GHz high-frequency and 5GHz low-frequency bands exist in the network environment, the terminal device can connect to the WLAN networks of both bands through two of the first, second, and third network interfaces for network communication. This fully utilizes the WLAN network resources of the current network environment, thereby improving the network speed of the terminal device and enhancing the user experience.
[0185] In some embodiments, depending on changes in the actual network environment, such as the presence of more WLAN networks on other frequency bands, more network interfaces can be added, such as a fourth network interface, a fifth network interface, etc. The following description uses a terminal device including a first network interface, a second network interface, and a third network interface as an example.
[0186] For ease of description, the WLAN network connected to the first network interface of the terminal device is called the primary WLAN network, the WLAN network connected to the second network interface is called the secondary WLAN network, and the WLAN network connected to the third network interface is called the secondary WLAN network.
[0187] In some instances, the terminal device may have a single WLAN chip, which includes a first network interface, a second network interface, and a third network interface.
[0188] In some instances, the terminal device may have dual WLAN chips. The primary WLAN chip in the dual WLAN chips may include a first network interface and a second network interface, while the secondary WLAN chip in the dual WLAN chips may include a third network interface.
[0189] In some instances, the terminal device may include two antennas for implementing WLAN network connectivity. One antenna, referred to as the first antenna, is used to enable three network interfaces to connect to the 5G frequency band. The other antenna, referred to as the second antenna, is used to enable three network interfaces to connect to the 2.4G frequency band. For example, when the third network interface needs to connect to the 5G low-frequency band (or 5G high-frequency band), if the first network interface is connected to the 5G high-frequency band (or 5G low-frequency band), the third network interface can reuse the antenna corresponding to the 5G frequency band with the first network interface. When the third network interface needs to connect to the 2.4G frequency band, it can reuse the antenna corresponding to the 2.4G frequency band with either the first or second network interface that connects to the 2.4G frequency band.
[0190] For example Figure 1B The diagram shows the antenna deployment of a terminal device. When the terminal device needs to connect to the 2.4G frequency band, the 5G high frequency band, and the 5G low frequency band, the terminal device can use the first antenna to connect to the 5G high frequency band and the 5G low frequency band through the first network interface and the third network interface, and use the second antenna to connect to the 2.4G frequency band through the second network interface.
[0191] It is understandable that when a terminal device includes two antennas for implementing WLAN network connectivity, and all three network interfaces of the terminal device are connected to the WLAN network, since two network interfaces share the same antenna, in order to avoid channel conflicts and affect the stability of the terminal device's network, the WLAN networks connected to the first, second, and third network interfaces are on different frequency bands.
[0192] In some instances, a separate antenna can be added for the third network interface. For example, a 2.4G antenna can be added to enable the third network interface to connect to the 2.4G frequency band, or a 5G antenna can be added to enable the third network interface to connect to the 5G frequency band. This allows the WLAN network connected to the third network interface to share the same frequency band and channel as the WLAN network connected to the first or second network interface (same frequency, same channel). For instance, a terminal device can use the first antenna to enable the first network interface to connect to the 5G high-frequency band, the second antenna to enable the second network interface to connect to the 2.4G frequency band, and the third antenna to enable the third network interface to connect to the 5G high-frequency band, and so on.
[0193] In some instances, the terminal device can add a separate 2.4G antenna. When the third network interface needs to connect to the 5G band, if the first network interface is connected to the 5G band, the third network interface can reuse the antenna corresponding to the 5G band with the first network interface. When the third network interface needs to connect to the 2.4G band, it can connect to the 2.4G band WLAN network through the separate 2.4G antenna.
[0194] For example, Figure 1C The diagram in (a) shows a terminal device with an independent antenna. When the third network interface needs to connect to the 5G band, it can reuse the first antenna with the first network interface that connects to the 5G band. When the third network interface needs to connect to the 2.4G band, it can connect to the WLAN network of the 2.4G band through the independent 2.4G antenna (third antenna).
[0195] In some instances, terminal devices can add a dedicated 5G antenna. When the third network interface needs to connect to the 5G frequency band, it can connect to the WLAN network of the 5G frequency band through the dedicated 5G antenna. When the third network interface needs to connect to the 2.4G frequency band, if the second network interface is connected to the 2.4G frequency band, the third network interface can reuse the antenna corresponding to the 2.4G frequency band with the second network interface.
[0196] For example, Figure 1C The diagram in (b) shows a terminal device with an independent antenna. When the terminal device needs to connect to the 5G band, it can connect to the WLAN network of the 5G band through the independent 5G antenna (fourth antenna). When the third network interface needs to connect to the 2.4G band, it can reuse the second antenna with the second network interface that connects to the 2.4G band.
[0197] By adding independent antennas, network resources in the current network environment can be fully utilized. Furthermore, connecting to the WLAN network with independent antennas avoids channel interference, allowing the WLAN networks connected to the first, second, and third network interfaces to share the same frequency band. When the frequency bands are the same, in a speed-limited environment, this can help to seize network resources, similar to two terminal devices competing for network resources, effectively improving the network speed of the terminal devices.
[0198] In some instances, a 2.4G standalone antenna can be referred to as a third antenna, and a 5G standalone antenna can be referred to as a fourth antenna.
[0199] In some instances, such as Figure 1B and Figure 1C The diagram shows the deployment of antennas on a terminal device. The terminal device can connect to the primary cellular network (e.g., NR (New Radio), i.e., 5G cellular network, LTE (Long Term Evolution), i.e., 4G cellular network) through the primary antenna, and connect to the secondary cellular network (e.g., NR (New Radio), i.e., 5G cellular network, LTE (Long Term Evolution), i.e., 4G cellular network) through the secondary antenna.
[0200] It is understandable that, based on the premise that the terminal device supports cellular networks, this example illustrates the multi-channel network supported by the terminal device, taking the presence of three WLAN networks in the network environment as an example.
[0201] Corresponding to the terminal device having a first antenna and a second antenna, the multi-channel networks supported by the terminal device are shown in Table 2 below:
[0202] Table 2
[0203]
[0204]
[0205] It is understandable that when the independent antennas of the terminal device include a first antenna and a second antenna, considering the impact of channel interference on the network stability of the terminal device, the frequency bands of the WLAN networks connected to the first, second, and third network interfaces are different. That is, the frequency bands of the main WLAN network, the auxiliary WLAN network, and the secondary WLAN network are different. Table 2 only illustrates, for example, the WLAN networks and frequency bands that the first, second, and third network interfaces of the terminal device may connect to when there are three WLAN networks in the network environment. For example, as shown in Scheme 1, the main WLAN network connected to the first network interface of the terminal device is the 5G high-frequency band of WLAN1, the auxiliary WLAN network connected to the second network interface is the 2.4G frequency band of WLAN1, and the secondary WLAN network connected to the third network interface is the 5G low-frequency band of WLAN2.
[0206] In some instances, such as the network environments corresponding to Schemes 1 and 2 in Table 2, the network communication scheme for the terminal device can also include: the primary WLAN network can be the 2.4 GHz band of WLAN1, the secondary WLAN network can be the 5 GHz high-frequency band of WLAN3, and the secondary WLAN network can be the 5 GHz low-frequency band of WLAN2. Similarly, in the network environments corresponding to Schemes 5 and 6 in Table 2, the network communication scheme for the terminal device can also include: the primary WLAN network can be the 5 GHz low-frequency band of WLAN2, and the secondary WLAN network can be the 5 GHz low-frequency band of WLAN3 or WLAN1, etc. For simplicity, these details will not be elaborated further here.
[0207] In some optional instances, a separate antenna corresponding to a third network interface is added to the terminal device. The secondary WLAN network connected to the third network interface can be on the same frequency and channel as the main WLAN network or the auxiliary WLAN network.
[0208] For example, in the network environment shown in Scheme 1 of Table 2, if the terminal device adds a 2.4G independent antenna (third antenna), the network connection scheme supported by the terminal device can also be: connecting to the 2.4G frequency band of the main WLAN network (WLAN1) through the first network interface, connecting to the 5G frequency band of the auxiliary WLAN network (WLAN2) through the second network interface, and connecting to the 2.4G frequency band of the secondary WLAN network (WLAN1) through the third network interface. If the terminal device adds a 5G independent antenna (fourth antenna), the network connection scheme supported by the terminal device can also be: connecting to the 5G frequency band of the main WLAN network (WLAN1) through the first network interface, connecting to the 2.4G frequency band of the auxiliary WLAN network (WLAN1) through the second network interface, and connecting to the 5G frequency band of the secondary WLAN network (WLAN1) through the third network interface.
[0209] It is understandable that in some network environments, such as the examples shown in Table 2, the WLAN network provided by the same router may have multiple frequency bands, the frequency bands of the WLAN networks provided by different routers may overlap, and the communication quality of the WLAN networks provided by different routers may not be the same. Therefore, when a terminal device connects to the network, for the same frequency band of the WLAN networks provided by different routers, the terminal device's first network interface, second network interface, and third network interface may have multiple connection schemes.
[0210] Therefore, in some instances, this application can further filter multiple connection schemes. For example, the terminal device can determine a target frequency band combination based on the WLAN network connection priority of the terminal device's network interface, and thus determine one or more candidate network combinations based on the target frequency band combination. Corresponding to the terminal device determining a candidate network combination, the terminal device can determine that candidate network combination as the target network combination, thereby determining the WLAN networks connected to the first, second, and third network interfaces. Corresponding to the terminal device determining multiple candidate network combinations, the terminal device can determine the target network combination corresponding to the WLAN networks connected to the first, second, and third network interfaces based on the network selection score of the secondary WLAN networks among the multiple candidate network combinations. The network selection score can be determined by the communication parameters of the secondary WLAN network corresponding to the third network interface among the multiple candidate network combinations.
[0211] In some embodiments, the connection priority of the first network interface of the terminal device can be set higher than that of the second network interface, and the connection priority of the second network interface can be set higher than that of the third network interface. That is, the connection priority from high to low is first network interface > second network interface > third network interface. Here, the connection priority can be expressed as the connection order of the first network interface, the second network interface, and the third network interface.
[0212] In some embodiments, when the determined multiple candidate network combinations include cases where the network combinations are on the same frequency and channel (e.g., the network combination is a 5G high-frequency band, a 2.4G frequency band, and a 5G high-frequency band), and cases where the WLAN network frequency bands connected to the three network interfaces are all different (e.g., the network combination is a 2.4G frequency band, a 5G high-frequency band, and a 5G high-frequency band), it is possible to determine whether the current network environment is a speed-limited environment or an unspeed-limited environment.
[0213] When a terminal device is identified as being in a speed-limited scenario, it prioritizes WLAN networks that share the same frequency and channel as the primary or secondary WLAN network as secondary WLAN networks to be connected when filtering WLAN networks. When a terminal device is identified as being in a non-speed-limited scenario, it prioritizes WLAN networks that operate on different frequency bands than the primary and secondary WLAN networks as secondary WLAN networks to be connected when filtering WLAN networks.
[0214] The methods by which a terminal device determines a speed-limited scenario may include: obtaining the terminal device's current location; if the terminal device determines that its current location is a preset public place such as an airport, hotel, or coffee shop, the terminal device can determine that the current location is a speed-limited scenario; and / or if the terminal device detects that connection verification is required when connecting to the main WLAN network, the terminal device can determine that the current location is a speed-limited scenario.
[0215] It is understandable that if the terminal device determines that the current network environment does not meet the judgment method of the above-mentioned speed-limiting scenario, then the current network environment can be determined to be a non-speed-limiting scenario.
[0216] In some optional instances, corresponding to terminal devices that support both cellular and WLAN networks, network connections can be established via cellular and WLAN networks to achieve multi-channel networking and improve download speeds. For example, when it is detected that the user has activated the internet access function of their communication card, such as a Subscriber Identity Module (SIM), such as enabling the cellular network corresponding to the SIM card on the terminal device, the terminal device can connect to the cellular network, putting the connected cellular network into data transmission mode, allowing data transmission during services such as downloading videos. Furthermore, the terminal device can have dual SIM cards installed, and the corresponding cellular networks connected to the terminal device can include a primary cellular network (corresponding to the primary SIM card) and a secondary cellular network (corresponding to the secondary SIM card). Thus, the terminal device can connect to the primary cellular network, the secondary cellular network, connect to the primary and secondary WLAN networks via a first network interface and a second network interface, and connect to the secondary WLAN network via a third network interface, thereby improving download speeds.
[0217] In other alternative examples, the terminal device is a smart TV, wearable device, or other device that supports WLAN networks but not cellular networks, or a terminal device with cellular networks disabled. The terminal device can connect to the main WLAN network and the auxiliary WLAN network via its first and second network interfaces, and connect to the secondary WLAN network via its third network interface, thus achieving a multi-channel WLAN network and improving download speeds.
[0218] The communication methods mentioned in the embodiments of this application are described in detail below with reference to the accompanying drawings.
[0219] like Figure 1D As shown, the flow of the communication method mentioned in the embodiments of this application may include:
[0220] S101: Network acceleration trigger condition detected.
[0221] In some optional instances, network acceleration is triggered when the terminal device detects that a user is performing a download or loading operation, or that the user has opened a preset type of application, including video applications and game applications. For example, if the terminal device detects that a user is downloading a video in a video application on the terminal device, then the network acceleration trigger condition is determined to have been detected.
[0222] In some optional instances, when the terminal device detects that the user is performing a download operation, loading operation, or opening a preset type of application, including video applications, game applications, etc., and detects that the first network interface is connected to the main WLAN network, it can be determined that the network acceleration trigger condition has been detected.
[0223] S102: Multiple WLAN networks were detected in the environment, wherein the communication frequency bands of the multiple WLAN networks include at least two frequency bands.
[0224] In some instances, when a terminal device detects that a user has opened a preset application, such as a video application, or when a terminal device detects that a user has enabled a WLAN network connection, the terminal device's WLAN chip can scan and obtain the WLAN network in the current network environment.
[0225] In other instances, when the terminal device detects that a user has opened a video application, it initiates a scan timeout command. If the terminal device fails to acquire a WLAN network in the current network environment within the set scan time (e.g., 50 seconds or 60 seconds), it can display a message to the user indicating that it cannot acquire a WLAN network through the terminal device's display interface.
[0226] In some instances, the WLAN chip of the terminal device can scan and obtain the WLAN networks in the current network environment, as shown in Table 3.
[0227] Table 3
[0228] WLAN network frequency band WLAN1 2.4G band + 5G high-frequency band + 5G low-frequency band WLAN2 5G high frequency band + 5G low frequency band WLAN3 5G high frequency band + 5G low frequency band WLAN4 2.4G band … … WLANn 2.4G band
[0229] It is understood that Table 3 only exemplifies the multiple WLAN networks and their frequency bands existing in the current network environment, and can be sorted from top to bottom according to preset methods such as the signal strength of the WLAN networks. For example, the signal strength of WLAN1 is greater than that of WLANn, the frequency bands of WLAN1 include the 2.4 GHz band, the 5 GHz high-frequency band, and the 5 GHz low-frequency band, and the frequency band of WLAN4 includes the 2.4 GHz band. In some optional instances, the first network interface of the terminal device can be selected to connect to the 2.4 GHz band, the 5 GHz high-frequency band, or the 5 GHz low-frequency band of WLAN1 as the main WLAN network.
[0230] For ease of description, the following description will focus on the 5G high-frequency band of the main WLAN network, WLAN1, denoted as 5.8G W1.
[0231] Corresponding to the first network interface of the terminal device being connected to 5.8G W1, and based on the aforementioned WLAN network connection priority, the second network interface of the terminal device can connect to the 2.4G band of WLAN1 (such as the WLAN network provided by a multi-frequency router), the 2.4G band of WLAN4, or the 2.4G band of other WLAN networks as an auxiliary WLAN network. The following description assumes that the second network interface of the terminal device is connected to the 2.4G band of WLAN4, and the auxiliary WLAN network is designated as 2.4G W4.
[0232] In some optional instances, corresponding to the terminal device detecting a network trigger condition, the terminal device is triggered to connect to the secondary WLAN network through a third network interface.
[0233] In some optional instances, multiple WLAN networks may exist in the network environment, and the communication frequency bands of these multiple WLAN networks may include at least two frequency bands. For example, in the WLAN network list shown in Table 3, WLAN1 may include the 2.4 GHz band, the 5 GHz high-frequency band, and the 5 GHz low-frequency band.
[0234] It is understandable that the communication frequency in the 5G high-frequency band is higher than the communication frequency in the 5G low-frequency band. The 5G high-frequency band and the 5G low-frequency band can be respectively referred to as the first sub-band and the second sub-band mentioned above.
[0235] In some alternative instances, the WLAN network may include other frequency bands. For ease of description, the following example uses the WLAN network frequency bands including the 2.4G band, the 5G high-frequency band, and the 5G low-frequency band.
[0236] S103: Based on the connection priorities of the first network interface, the second network interface, and the third network interface, determine the target frequency band combination that meets the combination conditions from multiple WLAN networks.
[0237] In some optional instances, the target frequency band combination includes the frequency bands of the WLAN networks corresponding to the first network interface, the second network interface, and the third network interface, respectively.
[0238] In some optional instances, when the independent antennas corresponding to the terminal device include a first antenna and a second antenna, channel interference may occur between any two networks connected to the same frequency band among the first, second, and third network interfaces, affecting network stability. Therefore, the target frequency band combination can be determined based on connection priority. The frequency bands corresponding to the first, second, and third network interfaces in the target frequency band combination are different, such as the multi-channel networks supported by the terminal device shown in Table 2 above.
[0239] In some instances, the independent antennas corresponding to the terminal device include a first antenna, a second antenna, and a third antenna, or include a first antenna, a second antenna, and a fourth antenna. Since the third antenna and the fourth antenna are independent antennas, the frequency band of the WLAN network connected to the third network interface in the target frequency band combination can be the same as the frequency band and channel of the WLAN network connected to the first network interface or the second network interface.
[0240] For example, if a terminal device adds a third antenna (a 2.4G independent antenna) and the second network connection interface is connected to the 2.4G frequency band, then the WLAN network connected to the third network interface can have the same frequency band and channel as the WLAN network connected to the second network interface. Similarly, if a terminal device adds a fourth antenna (a 5G independent antenna) and the first network connection interface is connected to the 5G frequency band, then the WLAN network connected to the third network interface can have the same frequency band and channel as the WLAN network connected to the first network interface.
[0241] It is understandable that when a terminal device adds a third or fourth antenna, the frequency band of the WLAN network connected to the third network interface in the target frequency band combination can be different from the frequency band and channel of the WLAN network connected to the first or second network interface.
[0242] In some optional instances, some combinations of the above target frequency bands can be shown in Table 4 below:
[0243] Table 4
[0244]
[0245] In Table 4, combinations 1-6 correspond to terminal devices including a first antenna and a second antenna; combinations 1-6, 8, and 10 correspond to terminal devices including a first antenna, a second antenna, and a third antenna; and combinations 1-6, 7, and 9 correspond to terminal devices including a first antenna, a second antenna, and a fourth antenna.
[0246] In some optional instances, such as combinations 5 and 6 in Table 4, the target frequency band combination may also include a primary WLAN network operating on a high-frequency 5G band, an unconnected secondary WLAN network, and a secondary WLAN network operating on a low-frequency 5G band; or a primary WLAN network operating on a low-frequency 5G band, an unconnected secondary WLAN network, and a secondary WLAN network operating on a high-frequency 5G band. Combinations 7 through 10 in Table 4 may also include cases where the secondary WLAN network is unconnected.
[0247] It can be understood that in the target frequency band combinations shown in combinations 7-10 in Table 4, the frequency band of the secondary WLAN network is the same as that of the primary WLAN network, that is, the frequency band and channel of the secondary WLAN network are the same as those of the primary WLAN network, or the frequency band and channel of the secondary WLAN network are the same as those of the auxiliary WLAN network.
[0248] Therefore, based on the possible combinations of target frequency bands, candidate network combinations can be selected, and the connection scheme of the terminal equipment can be determined according to the candidate network combinations.
[0249] S104: Select a target network combination from multiple WLAN networks based on the target frequency band combination.
[0250] In some optional instances, selecting a target network combination from multiple WLAN networks based on a target frequency band combination may include: identifying candidate network combinations from multiple WLAN networks that satisfy the target frequency band combination; if there are multiple candidate network combinations, selecting a target network combination from the multiple candidate network combinations based on the network selection score of each candidate network combination; if there is only one candidate network combination, using the candidate network combination as the target network combination.
[0251] For a detailed description of identifying the secondary WLAN network, please refer to [link / reference needed]. Figures 2 to 3 To avoid repetition, I will not go into further detail here.
[0252] S105: Based on the target network combination, control the first network interface, the second network interface and the third network to connect to the network.
[0253] In some optional instances, determining the secondary WLAN network suffices to define the target network combination. This target network combination includes the primary WLAN network, the auxiliary WLAN network, the secondary WLAN network, and the corresponding frequency bands. Therefore, the terminal device can control the first network interface to connect to the primary WLAN network, the second network interface to connect to the auxiliary WLAN network, and the third network interface to connect to the secondary WLAN network based on the target network combination.
[0254] If there are multiple candidate network combinations, the first target network combination is selected from the multiple candidate network combinations based on the network selection score of each candidate network combination; if there is only one candidate network combination, the candidate network combination is used as the first target network combination.
[0255] In some alternative instances, corresponding to the candidate network combinations including a first type of network combination and a second type of network combination, the terminal device can obtain the current network environment and determine the candidate network combination based on the network environment.
[0256] If the terminal device detects a rate-limited network environment, it can be identified as a rate-limited scenario, and the first type of network combination will be used as the second target network combination. If the terminal device detects a non-rate-limited network environment, it can be identified as a non-rate-limited scenario, and the second type of network combination will be used as the second target network combination.
[0257] If there are multiple second target network combinations, the first target network combination can be selected from the multiple second target network combinations based on the network selection score of each second target network combination; if there is only one second target network combination, the second target network combination is used as the first target network combination.
[0258] Among them, the first type of target combination is that the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the first network interface or the second network interface (corresponding to combination 7-combination 10 in the above-determined target frequency band combinations).
[0259] The second type of network combination is characterized by different frequency bands corresponding to the first network interface, the second network interface, and the third network interface (corresponding to combinations 1-6 in the target frequency band combinations determined above).
[0260] It is understandable that the selection score for the candidate network combination can be found in S306 below. To avoid repetition, it will not be elaborated on here.
[0261] In other implementations, corresponding to the process of determining a secondary WLAN network, the terminal device can also set a rate threshold for connecting to the primary or secondary WLAN network on the 5G band, and determine whether the signal strength (Received Signal Strength Indication, rssi), rate (e.g., signal reception rate (Rx), signal transmission rate (Tx)) of the primary or secondary WLAN network, and the signal strength of the secondary WLAN network meet the threshold conditions to determine whether to connect to the secondary WLAN network. In this way, in cases where the antenna isolation of the terminal device is insufficient, interference from the signal transmission power of the first or second antenna to the signal reception power of the newly added antenna (third or fourth antenna) can be reduced.
[0262] The following section uses the example of connecting the main WLAN network to the 5G band to introduce how to connect to the secondary WLAN network.
[0263] In some instances, upon detecting network acceleration conditions in S101, the terminal device enters a process of connecting to the secondary WLAN network. During this process, the terminal device can set the rate activation threshold for the primary WLAN network. The rate activation threshold for the primary WLAN network includes: Rx of the primary WLAN network being greater than or equal to a first activation threshold (Th_W_RxA Mbps), and / or Tx of the primary WLAN network being greater than or equal to a second activation threshold (Th_W_TxA Mbps).
[0264] Corresponding to the terminal device determining that the Rx and / or Tx of the main WLAN network meet the rate start threshold, the terminal device further determines whether the signal strength of the main WLAN network is greater than a first strength threshold (-65dBm). If the terminal device determines that the signal strength of the main WLAN network meets rssi > -65dBm, the terminal device then, according to the aforementioned target frequency band combination list, through arbitration (e.g., S305 below), determines the target frequency band combination that meets the combination conditions from multiple WLAN networks. If the terminal device determines that the signal strength of the main WLAN network does not meet rssi > -65dBm, the terminal device exits the connection to the secondary WLAN network.
[0265] If the terminal device determines that the Rx and / or Tx of the main WLAN network do not meet the rate start threshold, the terminal device will disconnect from the secondary WLAN network.
[0266] In some optional instances, the terminal device arbitrates according to the aforementioned target frequency band combination list. If the terminal device determines during the arbitration process that there is no WLAN network that can serve as a secondary WLAN network, for example, if the terminal device includes a first antenna and a second antenna, and the terminal device arbitrates according to the aforementioned target frequency band combination list and determines that there is no WLAN network with a different frequency band that can satisfy the connection of the first network interface, the second network interface, and the third network interface, then the terminal device withdraws from connecting to the secondary WLAN network.
[0267] In some optional instances, when the terminal device arbitrates according to the aforementioned target frequency band combination list and determines a secondary WLAN network, the terminal device connects to that secondary WLAN network. To ensure network stability of the terminal device and to avoid differences in scanning capabilities between the primary and secondary WLAN chips in a dual-WLAN chip terminal device, the terminal device needs to determine the signal strength of the secondary WLAN network.
[0268] If the signal strength of the secondary WLAN network satisfies rssi > -65dBm, the terminal device determines that the secondary WLAN network is the secondary WLAN network connected to the third network interface, and controls the third network interface to connect to the secondary WLAN network.
[0269] In some instances, this corresponds to a terminal device being connected to a primary WLAN network, an auxiliary WLAN network, and a secondary WLAN network via a first network interface, a second network interface, and a third network interface. To avoid data transmission interference and speed degradation when the secondary WLAN network shares the same 5G frequency band as the primary or auxiliary WLAN network, the terminal device can control the third network interface to maintain or disconnect its connection to the secondary WLAN network based on the speed cap conditions of the primary or auxiliary WLAN network, the speed cap and rate limiting conditions of the secondary WLAN network, and the Rx rate monitoring conditions of the primary or auxiliary WLAN network. This reduces the likelihood of data transmission interference causing speed degradation.
[0270] The following example illustrates how to maintain the connection of the secondary WLAN network, using the secondary WLAN network and the primary WLAN network on the same 5G frequency band.
[0271] In some optional instances, the rate cap condition for the primary WLAN network includes: the Tx+Rx of the primary WLAN network is less than the rate cap of the first WLAN network (Th_W1 Mbps).
[0272] In some optional instances, provided that the Tx+Rx of the primary WLAN network is less than the rate limit of the first WLAN network, the conditions for maintaining the connection of the secondary WLAN network are determined based on the rate limit and rate limiting conditions of the secondary WLAN network, the Rx rate monitoring conditions of the primary WLAN network, and the rate limiting conditions of the secondary WLAN network.
[0273] It is understandable that when the terminal device determines that the speeds of the primary WLAN network and the secondary WLAN network meet the first, second, or third keep-connection conditions, the terminal device controls the third network interface to maintain the connection with the secondary WLAN network.
[0274] The first condition for maintaining connectivity is that the signal strength of the secondary WLAN network meets a first strength range (e.g., rssi > -60dBm). Then, the Tx + Rx of the secondary WLAN network is within a first rate range (Tx + Rx < Th_H1 Mbps), and the Tx of the secondary WLAN network is within a second rate range (Tx < Th_H_Tx1 Mbps). Alternatively, if the monitoring condition for the Rx rate of the primary WLAN network is such that the Rx of the primary WLAN network is greater than a first monitoring rate threshold (Th_W_Rx1 Mbps), and the Tx of the secondary WLAN network is limited to meet the rate limiting condition of the secondary WLAN network, such as the Tx of the secondary WLAN network being less than a rate floor threshold (Th_H_txminMbps).
[0275] The second condition for maintaining connectivity is that the signal strength of the secondary WLAN network meets the second strength range (e.g., -60dBm >= rssi > -65dBm). Then, the Tx+Rx of the secondary WLAN network is in the third rate range (Tx+Rx < Th_H2 Mbps), and the Tx of the secondary WLAN network is in the fourth rate range (Tx < Th_H_Tx2 Mbps). Alternatively, if the monitoring condition for the Rx rate of the primary WLAN network is that the primary WLAN network's Rx is greater than the second monitoring rate threshold (Th_W_Rx2 Mbps), and the Tx of the secondary WLAN network is limited to meet the rate limiting condition of the secondary WLAN network, for example, the secondary WLAN network's Tx is less than the rate floor threshold (Th_H_txmin Mbps).
[0276] The third condition for maintaining connectivity is that the signal strength of the secondary WLAN network meets the third strength range (e.g., -65dBm >= rssi > -70dBm). This is also if the secondary WLAN network's rate upper limit condition is met, for example, monitoring the secondary WLAN network's Tx+Rx to be within the fifth rate range (Tx+Rx < Th_H3 Mbps); and the secondary WLAN network's rate limiting condition is met, for example, the secondary WLAN network's Tx to be within the sixth rate range (Tx < Th_H_Tx3 Mbps). Alternatively, if the primary WLAN network's Rx rate monitoring condition is met, for example, the primary WLAN network's Rx is greater than the third monitoring rate threshold (Th_W_Rx3 Mbps), and the secondary WLAN network's Tx is limited to meet the secondary WLAN network's rate limiting condition, for example, the secondary WLAN network's Tx is less than the rate lower limit threshold (Th_H_txmin Mbps).
[0277] Among them, the minimum value in the first strength range is greater than or equal to the maximum value in the second strength range, and the minimum value in the second strength range is greater than or equal to the maximum value in the third strength range.
[0278] And Th_H1 Mbps>Th_H2 Mbps, Th_H2 Mbps>Th_H3 Mbps; Th_H_Tx1 Mbps>Th_H_Tx2 Mbps, Th_H_Tx2 Mbps>Th_H_Tx3 Mbps; Th_W_Rx1 Mbps>Th_W_Rx2 Mbps, Th_W_Rx2Mbps>Th_W_Rx3 Mbps.
[0279] In some instances, the terminal device can determine whether the currently connected secondary WLAN network offers any benefit based on a rate comparison threshold between the secondary WLAN network and the primary or auxiliary WLAN network, a minimum rate limit condition for the primary WLAN network, and a rate activation threshold for the primary WLAN network. In some optional instances, if the terminal device determines that the rates of the primary and secondary WLAN networks meet a first or second benefit condition, it indicates that the secondary WLAN network connected to the third network interface offers any benefit, and the terminal device's third network interface maintains a connection with the secondary WLAN network.
[0280] It is understood that the first strength range, first rate range, second rate range, etc., mentioned above are merely illustrative examples and are not intended to impose specific limitations. For example, the conditions under which the terminal device controls the third network interface to maintain a connection with the secondary WLAN network may also include: the signal strength of the secondary WLAN network meeting the fourth strength range (e.g., -70dBm >= rssi > -75dBm); meeting the upper limit condition of the secondary WLAN network rate, including the secondary WLAN network's Tx+Rx being in the seventh rate range (Tx+Rx < Th_H4Mbps); and meeting the secondary WLAN network's rate limiting condition, including the secondary WLAN network's Rx being in the eighth rate range (Tx < Th_H_Tx4 Mbps), etc.
[0281] In some optional instances, the terminal device can disconnect its third network interface from the secondary WLAN network if there is no benefit from the secondary WLAN network.
[0282] In some optional instances, the first benefit condition includes: if the Rx corresponding to the primary WLAN network satisfies the first start threshold, then the rate comparison threshold between the secondary WLAN network and the primary WLAN network is satisfied, including the product of the primary parameter (coefB) and the Rx of the primary WLAN network being greater than or equal to the primary parameter (coefB), and the rate minimum condition of the primary WLAN network is satisfied, including the primary WLAN network's Rx being greater than or equal to the first sub-start threshold (Th_W_RxB Mbps).
[0283] The second benefit condition includes: if the Tx corresponding to the main WLAN network meets the second start threshold, then the rate comparison threshold between the secondary WLAN network and the main WLAN network is met, including the Tx of the secondary WLAN network being greater than or equal to the product of the first parameter (coefB) and the Tx of the main WLAN network, and the rate minimum condition of the main WLAN network is met, including the Tx of the main WLAN network being greater than or equal to the second sub-start threshold (Th_W_TxB Mbps).
[0284] The first sub-start threshold is a multiple of the first start threshold; for example, the first sub-start threshold = 0.8 * the first start threshold. The second sub-start threshold is a multiple of the second start threshold; for example, the second sub-start threshold = 0.8 * the second start threshold.
[0285] In some optional instances, disconnecting the terminal device from the secondary WLAN network may include:
[0286] First disconnection condition: The signal strength of the main WLAN network does not meet the first strength threshold (rssi > -65dBm), that is, the signal strength of the main WLAN network rssi ≤ -65dBm, or the Tx + Rx of the main WLAN network is greater than the first disconnection threshold (Th_W1 + hys_W1 Mbps).
[0287] Second disconnection condition: The signal strength of the secondary WLAN network does not meet the second strength threshold (rssi > -70dBm), and the terminal device disconnects from the secondary WLAN network.
[0288] Alternatively, when the signal strength of the secondary WLAN network meets the first strength range (rssi > -60dBm), the Tx + Rx of the secondary WLAN network is greater than the second disconnection threshold (Th_H1 + hys_H1 Mbps). Alternatively, when the signal strength of the secondary WLAN network meets the second strength range (-60dBm >= rssi > -65dBm), the Tx + Rx of the secondary WLAN network is greater than the third disconnection threshold (Th_H2 + hys_H2 Mbps). Alternatively, when the signal strength of the secondary WLAN network meets the third strength range (-65dBm >= rssi > -70dBm), the Tx + Rx of the secondary WLAN network is greater than the fourth disconnection threshold (Th_H3 + hys_H3 Mbps).
[0289] The third disconnection condition is that the Rx of the main WLAN network meets the first start threshold, the Rx of the secondary WLAN network is less than the product of the first parameter (coefB) and the Rx of the main WLAN network, and the Rx of the main WLAN network is less than the first sub-start threshold (Th_W_RxBMbps).
[0290] Alternatively, the Tx of the primary WLAN network satisfies the second start threshold, the Tx of the secondary WLAN network is less than the product of the first parameter (coefB) and the Tx of the primary WLAN network, and the Tx of the primary WLAN network is less than the second sub-start threshold (Th_W_TxB Mbps).
[0291] The following is combined with Figure 2 and Figure 3 The method for determining the secondary WLAN network in S104 above can be described as follows: determining the secondary WLAN network may include: preliminary screening of WLAN networks, further matching of WLAN networks, entering the WLAN network selection stage, and performing WLAN network detection and connection.
[0292] Specifically, such as Figure 2 As shown, the initial screening of WLAN networks by the terminal device may include:
[0293] S201: Process the scan results of the main WLAN chip.
[0294] In some optional instances, for terminal devices with dual WLAN chips, the scan result is the WLAN network obtained by the main WLAN chip scanning the current network environment, presented in the form of a WLAN network list or other formats. For terminal devices with a single WLAN chip, the scan result is the WLAN network obtained by the single WLAN chip scanning the current network environment. For ease of description, this application uses a WLAN network list as an example to describe the WLAN networks obtained by the terminal device scanning the current network environment, and the WLAN networks obtained after each filtering step.
[0295] In some embodiments, the WLAN network list generated by the terminal device scanning the current network environment can be the WLAN network list shown in Table 3.
[0296] S202: Determine if the signal strength (rssi) is greater than -65dBm.
[0297] In some specific implementations, the WLAN network list corresponding to the scanning results of the terminal device can include multiple WLAN networks, and the signal strength of each WLAN network can be determined. A WLAN network with a signal strength greater than -65 dBm is considered to have a strong signal strength; a WLAN network with a signal strength less than or equal to -65 dBm is considered to have a weak signal strength. WLAN networks with strong signal strength are more beneficial for improving the download speed of the terminal device; therefore, WLAN networks with a signal strength less than or equal to -65 dBm are filtered out from the WLAN network list, and a list of WLAN networks with a signal strength greater than -65 dBm is obtained.
[0298] It is understood that the relationship between the signal strength of a WLAN network and -65dBm is merely an example of how to judge signal strength. For example, a signal strength greater than -60dBm in a WLAN network can be preset as a strong signal strength. This application does not impose any specific limitations.
[0299] In some specific implementations, based on S203, WLAN networks with a signal strength (RSSI) greater than -65 dBm can be further filtered. That is, it can be determined whether a WLAN network with a signal strength (RSSI) greater than -65 dBm is the WLAN network that the terminal device is connecting to. If there is no WLAN network with a signal strength greater than -65 dBm in the WLAN network list, the terminal device terminates the connection to the secondary WLAN network. At this time, the terminal device only connects to the WLAN network through the first network interface and the second network interface.
[0300] S203: Determine whether it is a WLAN network connected to the main WLAN chip.
[0301] It is understandable that determining whether a device is connected to a WLAN network by the main WLAN chip can refer to determining whether it is connected to a WLAN network by the terminal device's first and second network interfaces.
[0302] In some specific implementations, terminal devices increase network channels and improve download speeds by adding independent antennas to connect to secondary WLAN networks. Therefore, for the case where the terminal device includes a first antenna and a second antenna, the WLAN networks connected to the terminal device through the first and second network interfaces and the secondary WLAN network connected to the third network interface cannot be the same WLAN network.
[0303] The primary WLAN network connected to the first network interface is 5.8G W1, and the secondary WLAN network to be connected to the second network interface is 2.4G W4. The WLAN networks that have been connected to the terminal device are filtered out from the list of WLAN networks in S202 that meet the requirement of signal strength (rssi) greater than -65dBm, and the list of WLAN networks that have not been connected to the terminal device is obtained.
[0304] In some optional instances, the process proceeds to S204 to determine if a WLAN network not connected to by the terminal device is a WLAN network already saved by the terminal device. If no WLAN network is found in the WLAN network list that the terminal device has not connected to, the terminal device terminates the connection to the secondary WLAN network. At this point, the terminal device only has its first and second network interfaces connected to the WLAN network.
[0305] If the terminal device includes a first antenna, a second antenna, and a third antenna, or includes a first antenna, a second antenna, and a fourth antenna, the terminal device does not execute S203. That is, after obtaining the list of WLAN networks with signal strength greater than -65dBm in S202, the terminal device proceeds to S204 to further determine whether it is a WLAN network already saved by the terminal device.
[0306] S204: Determine whether the WLAN network is already saved by the terminal device.
[0307] In some specific implementations, when a terminal device detects that a user is downloading video through a video application, to improve download speed, the terminal device's third network interface enters a process of connecting to a secondary WLAN network. The secondary WLAN network connected to by the terminal device's third network interface does not require manual connection by the user. Therefore, to ensure successful connection of the third network interface to the secondary WLAN network, the secondary WLAN network is a WLAN network already saved by the terminal device.
[0308] That is, corresponding to the terminal device including the first antenna and the second antenna, the terminal device needs to filter out the WLAN networks that are not saved in the WLAN network list in S203, which consists of WLAN networks that are both unconnected and WLAN networks with a signal strength (rssi) greater than -65dBm, and obtain the saved WLAN network list.
[0309] In some optional instances, if the WLAN network list consisting of both unconnected WLAN networks and WLAN networks with a signal strength (RSSI) greater than -65dBm does not contain a WLAN network that the terminal device has saved, then the terminal device terminates the connection to the secondary WLAN network. At this time, the terminal device only has the first network interface and the second network interface connected to the WLAN network.
[0310] For terminal devices that include a first antenna, a second antenna, and a third antenna, or a first antenna, a second antenna, and a fourth antenna, the terminal device needs to filter out the WLAN networks that are not saved in the WLAN network list consisting of WLAN networks with a signal strength (rssi) greater than -65dBm in S202, and obtain the saved WLAN network list.
[0311] In some specific implementations, the terminal device includes a first antenna and a second antenna. The WLAN network list after preliminary filtering by S202-S204 is the WLAN network that simultaneously meets the requirements of strong signal strength, not being connected by the terminal device, and being saved by the terminal device. The WLAN network list after preliminary filtering by S202-S204 is called the first WLAN network list (e.g., Table 5 below).
[0312] Table 5
[0313] WLAN network frequency band WLAN2 5G high frequency band + 5G low frequency band WLAN3 5G high frequency band + 5G low frequency band WLAN5 5G high frequency band + 5G low frequency band WLAN6 2.4G band
[0314] In some optional instances, performing the checks shown in S202-S204 on each WLAN network in the WLAN network list shown in Table 3 yields the WLAN network list shown in Table 5. For example, WLAN1 and WLAN4 in Table 3 do not meet the requirement of not being connected by a terminal device, and WLAN7-WLANn do not meet the requirement of signal strength (RSSI) greater than -65dBm. Therefore, WLAN1, WLAN4, and WLAN7-WLANn are filtered out, resulting in the WLAN network list shown in Table 5.
[0315] In some specific implementations, the terminal device includes a first antenna, a second antenna, and a third antenna, or includes a first antenna, a second antenna, and a fourth antenna. The WLAN network list after preliminary filtering by S202 and S204 is the WLAN network that simultaneously meets the requirements of strong signal strength and is saved by the terminal device. The WLAN network list after preliminary filtering by S202 and S204 can also be referred to as the first WLAN network list (e.g., Table 6 below).
[0316] Table 6
[0317] WLAN network frequency band WLAN1 2.4G band + 5G high-frequency band + 5G low-frequency band WLAN2 5G high frequency band + 5G low frequency band WLAN3 5G high frequency band + 5G low frequency band WLAN4 2.4G band WLAN5 5G high frequency band + 5G low frequency band WLAN6 2.4G band
[0318] In some optional instances, performing the checks shown in S202 and S204 on each WLAN network in the WLAN network list shown in Table 3 yields the WLAN network list shown in Table 6. For example, WLAN7-WLANn in Table 3 does not meet the requirement that its signal strength (rssi) is greater than -65dBm, so WLAN7-WLANn is filtered out, resulting in the WLAN network list shown in Table 6.
[0319] In some optional instances, the order of S202, S203 and S204 is not specifically restricted. That is, the execution order can be S203, S204 and S202, or S204, S203 and S202, or other execution orders. The WLAN network that simultaneously meets the requirements of not being connected by the terminal device, having a signal strength (RSSI) greater than -65dBm, and being saved by the terminal device is selected. This application does not impose specific restrictions.
[0320] In some specific implementations, such as Figure 3 As shown, further matching of the terminal device with the WLAN network may include:
[0321] S301: Process the saved WLAN network.
[0322] Based on the saved WLAN networks (first WLAN network list) initially screened in S201-S204 above, such as the WLAN network lists of secondary WLAN networks shown in Tables 5 and 6, the WLAN networks in the initially screened first WLAN network list are further processed, including matching the encrypted parameters of the saved WLAN networks with the scanning results of the main WLAN chip (S302), filtering out WLAN networks whose WLAN network names (SSID) and encrypted parameters do not match (S303), filtering out WLAN networks that are expected to have no network (S304), filtering out WLAN networks that have not passed the channel combination arbitration (S305), and finally determining the candidate list of secondary WLAN networks (S306).
[0323] S302: Match encryption parameters with the scan results of the main WLAN chip.
[0324] In some specific implementations, the encryption parameters of a WLAN network may include: Wi-Fi Protected Access (WPA), WPA2, Simultaneous Authentication of Equals (SAE), etc.
[0325] For example, if a WLAN network in the saved network list has WPA2 encryption parameters, and another WLAN network in the scanned network list has WPA2 encryption parameters, then these two WLAN networks can be said to have matched encryption parameters. It can be understood that by matching encryption parameters, the WLAN network in the saved network list that matches the encryption parameters of the initially selected WLAN networks is selected. Therefore, the process proceeds to S303 to determine whether the WLAN network name (SSID) and encryption parameters match.
[0326] S303: Determine if the WLAN network name (SSID) and encryption parameters match.
[0327] In some specific implementations, the list of WLAN networks to be matched includes a first list of WLAN networks and a list of WLAN networks that have been saved by the terminal device, such as WLAN networks that the user has connected to with a password.
[0328] The first WLAN network list is matched with the saved WLAN network list by WLAN network name (SSID) and encryption parameters. WLAN networks in the first WLAN network list that do not simultaneously meet the matching criteria are filtered out. WLAN networks in the first WLAN network list that simultaneously meet the matching criteria are obtained. Then, the process proceeds to S304 to further determine whether the WLAN networks that simultaneously meet the matching criteria are the expected WLAN networks without a network.
[0329] S304: Determine if it is a WLAN network that is not expected to have a network.
[0330] In some specific implementations, a WLAN network that is expected to have no network can refer to a WLAN network that a terminal device can connect to but cannot access the internet after connecting. Therefore, WLAN networks that are expected to have no network are further filtered out to obtain a list of WLAN networks that are expected to have network access. Then, the WLAN network list after further filtering in S301-S304 is recorded as the second WLAN network list. Then, it is determined whether the WLAN networks in the second WLAN network list have passed channel combination arbitration, that is, whether they meet the target frequency band combination.
[0331] S305: Determine whether to use channel combination arbitration.
[0332] In some optional instances, the terminal device can filter out non-compliant WLAN networks through channel combination arbitration, that is, filter out non-compliant WLAN networks through target frequency band combination.
[0333] In some specific implementations, the terminal device includes a first antenna, a second antenna, and a third antenna, with priority from highest to lowest as follows: the primary WLAN network connected to the first network interface > the auxiliary WLAN network connected to the second network interface > the secondary WLAN network connected to the third network interface.
[0334] Therefore, channel combination arbitration can be specifically manifested as follows: when the primary WLAN network of the first network interface is already connected to the 2.4G band, if a 5G band WLAN network exists in the network environment, the second network interface connects to the 5G band WLAN network as an auxiliary WLAN network, and the third network interface connects to the 2.4G band WLAN network (corresponding to combination 8 in Table 6) on the same frequency band and channel as the primary WLAN network as a secondary WLAN network, and the arbitration passes. If no 5G band WLAN network exists in the network environment, the second network interface does not connect.
[0335] When the primary WLAN network of the first network interface is connected to the 5G band, if there are one or more 2.4G band WLAN networks in the network environment, the second network interface connects to a 2.4G band WLAN network as an auxiliary WLAN network, and the third network interface connects to a 2.4G band WLAN network with the same frequency band and channel as the auxiliary WLAN network (corresponding to combination 10 in Table 4) as a secondary WLAN network, and the arbitration is successful.
[0336] In some specific implementations, the terminal device includes a first antenna, a second antenna, and a fourth antenna. Channel combination arbitration can be specifically manifested as follows: when the primary WLAN network of the first network interface is already connected to the 5G band, if a 2.4G band WLAN network exists in the network environment, the second network interface connects to this 2.4G band WLAN network as an auxiliary WLAN network, and the third network interface connects to a 5G band WLAN network (corresponding to combination 7 in Table 4) on the same frequency band and channel as the primary WLAN network as a secondary WLAN network, and arbitration passes. If no 2.4G band WLAN network exists in the network environment, the second network interface does not connect.
[0337] When the primary WLAN network of the first network interface is already connected to the 2.4G band, if there are one or more 5G band WLAN networks in the network environment, the second network interface connects to a 5G band WLAN network as an auxiliary WLAN network, and the third network interface connects to a 5G band WLAN network with the same frequency band and channel as the auxiliary WLAN network (corresponding to combination 9 in Table 4) as a secondary WLAN network, and the arbitration is successful.
[0338] In some specific implementations, the terminal device includes a first antenna and a second antenna. To avoid channel interference between the terminal device's first network interface connected to the 5G band WLAN network and its third network interface connected to the 5G band WLAN network (e.g., channel overlap or adjacent channels), which would reduce download speed and affect the stability of the WLAN network, channel combination arbitration is performed on the primary WLAN network, auxiliary WLAN network, and secondary WLAN network. The secondary WLAN network without channel interference is then selected as the candidate list of secondary WLAN networks.
[0339] In some specific implementations, the channels for 5G high-frequency bands (such as the 5.8G band) may include 149, 153, 157, 161, and 165; the channels for 5G low-frequency bands (such as the 5.2G band) may include 36, 40, 44, and 48; and the channels for the 2.4G band may include 1, 6, and 11. That is, the channels for the 5G high-frequency band, 5G low-frequency band, and 2.4G band are different. Therefore, it is only necessary to ensure that the frequency bands of the primary WLAN network, the secondary WLAN network, and the sub-WLAN network are different. For example, the primary WLAN network can be the 5G high-frequency band, the secondary WLAN network the 2.4G band, and the sub-WLAN network the 5G low-frequency band.
[0340] Therefore, channel combination arbitration can be specifically manifested as follows: When the primary WLAN network of the first network interface is already connected to the 5G low-frequency band, if only one 2.4G band WLAN network exists in the network environment, the second network interface will preferentially connect to the 2.4G band WLAN network as an auxiliary WLAN network. When the primary WLAN network of the first network interface is already connected to the 5G low-frequency band, if there are 2.4G band WLAN networks and other 5G band WLAN networks in the network environment, to avoid channel interference between the auxiliary WLAN network of the second network interface and the primary WLAN network caused by connecting to the 5G high-frequency band or 5G low-frequency band, the second network interface will preferentially connect to the 2.4G band WLAN network as an auxiliary WLAN network. When the WLAN chip of the terminal device requests to connect to the 5G high-frequency band WLAN network as a secondary WLAN network, the arbitration passes because the first and second network interfaces are already connected to the 5G low-frequency band and the 2.4G band (corresponding to combination 1 in Table 4). If the WLAN chip of the terminal device requests to connect to the 5G low-frequency band WLAN network as a secondary WLAN network at this time, the arbitration fails because the first network interface is already connected to the 5G low-frequency band.
[0341] When the primary WLAN network of the first network interface is already connected to the 5G high-frequency band, if only other 5G frequency band WLAN networks exist in the network environment, to avoid channel interference between the auxiliary WLAN network of the second network interface (connected to the 5G high-frequency band or 5G low-frequency band) and the primary WLAN network, the terminal device will not connect to the auxiliary WLAN network (corresponding to combination 5 in Table 4). When the terminal device's WLAN chip requests to connect to the 5G low-frequency band WLAN network as a secondary WLAN network, arbitration is successful (corresponding to combination 6 in Table 4). If, at this time, the terminal device's WLAN chip requests to connect to the 5G high-frequency band WLAN network as a secondary WLAN network, arbitration fails.
[0342] When the primary WLAN network of the first network interface is already connected to the 2.4GHz band, if multiple 5GHz band WLAN networks exist in the network environment, the second network interface of the terminal device will preferentially connect to the 5GHz band WLAN network as an auxiliary WLAN network. If the terminal device is connected to a high-frequency 5GHz WLAN network, and then requests to connect to a low-frequency 5GHz WLAN network as a secondary WLAN network, arbitration will be successful (corresponding to combination 4 in Table 4). Otherwise, arbitration will fail. That is, S305 can correspond to the aforementioned scenario where the terminal device can determine the target frequency band combination based on the WLAN network connection priority, thereby determining one or more candidate network combinations. Corresponding to the terminal device determining a candidate network combination, the terminal device can determine that candidate network combination as the target network combination, thereby determining the WLAN networks connected to the first, second, and third network interfaces.
[0343] S306: Determine the candidate list for secondary WLAN networks.
[0344] In some specific implementations, after the further matching of WLAN networks through the above S301 to S305 processes, the secondary WLAN network can identify one or more WLAN networks that meet the conditions, forming a candidate list of secondary WLAN networks.
[0345] In some instances, the terminal device includes a first antenna and a second antenna. Based on the WLAN network list shown in Table 5, the WLAN network list after filtering through S301 to S305 can be shown in Table 7.
[0346] Table 7
[0347] WLAN network frequency band WLAN2 5G high frequency band + 5G low frequency band WLAN3 5G high frequency band + 5G low frequency band WLAN5 5G high frequency band + 5G low frequency band
[0348] In some instances, the terminal device may include a first antenna, a second antenna, and a third antenna, or may include a first antenna, a second antenna, and a fourth antenna. Based on the WLAN network list shown in Table 6, the WLAN network list filtered by S301 to S305 can be as shown in Table 8.
[0349] Table 8
[0350] WLAN network frequency band WLAN1 2.4G band + 5G high-frequency band + 5G low-frequency band WLAN2 5G high frequency band + 5G low frequency band WLAN3 5G high frequency band + 5G low frequency band WLAN4 2.4G band WLAN5 5G high frequency band + 5G low frequency band
[0351] In some optional instances, the WLAN chip corresponding to the terminal device determines a candidate list of secondary WLAN networks and sends a service execution command to the terminal device, such as a video download command, to perform service arbitration. The terminal device receives the service execution command; if it is performing a service with higher priority than video download, the service arbitration fails; otherwise, the service arbitration succeeds.
[0352] It is understood that after the aforementioned channel combination arbitration and service arbitration, there is one candidate network combination. This candidate network combination is selected as the target network combination, and the terminal device enters acceleration mode, controlling the first network interface, second network interface, and third network interface to connect to their respective WLAN networks. Furthermore, the cellular network connected to the terminal device is in data transmission mode.
[0353] There are multiple candidate network combinations. Based on the network selection score of each candidate network combination, the target network combination is selected from the multiple candidate network combinations.
[0354] For example, corresponding to a primary WLAN network of 5.8 GHz W1 and an auxiliary WLAN network of 2.4 GHz W4, the secondary WLAN networks that satisfy the target frequency band combination can be WLAN1, WLAN2, WLAN3, WLAN4, and WLAN5. Therefore, the target network combination can include: a primary WLAN network of 5.8 GHz W1, an auxiliary WLAN network of 2.4 GHz W4, and a secondary WLAN network of WLAN1 in the 5 GHz band; or a target network combination can include: a primary WLAN network of 5.8 GHz W1, an auxiliary WLAN network of 2.4 GHz W4, and a secondary WLAN network of WLAN4 in the 2.4 GHz band; or a target network combination can include: a primary WLAN network of 5.8 GHz W1, an auxiliary WLAN network of 2.4 GHz W4, and a secondary WLAN network of WLAN2 in the 5 GHz low-frequency band, and so on.
[0355] Therefore, multiple eligible WLAN networks enter the WLAN network selection phase. This involves determining one or more candidate network combinations based on the network selection scores of secondary WLAN networks from multiple target frequency band combinations. The final connection scheme for the terminal device is then determined based on these candidate network combinations. The network selection score can be determined by the communication parameters of the WLAN network.
[0356] In some specific implementations, the WLAN network selection phase, which involves selecting a target network combination from multiple WLAN networks based on the target frequency band combination, may include:
[0357] By acquiring the communication parameters of WLAN networks, multiple qualified WLAN networks are evaluated for network selection. WLAN networks with a selection score greater than a scoring threshold or the highest score are selected as candidate networks for secondary WLAN networks in the target network combination. The communication parameters may include: network bandwidth α, signal strength RSSI, and WLAN network standard (e.g., WiFi-6).
[0358] Specifically, the WLAN network can be scored as shown in formula (1):
[0359] wifi2SelectorScore=bandScore+β·rssiScore+categoryScore (1)
[0360] Wherein, wifi2SelectorScore represents the score of the WLAN network; bandScore represents the bandwidth score corresponding to the frequency band of the WLAN network, the larger the bandwidth, the larger the bandScore; rssiScore represents the signal strength score of the WLAN network, the stronger the signal, the larger the rssiScore; categoryScore represents the standard score of the WLAN network; β is the weighting factor of the historical scores of the WLAN network, 0<β<1.
[0361] Specifically, the bandwidth score (bandScore) corresponding to the frequency band of the WLAN network is calculated as shown in formula (2):
[0362] bandScore=α / 20 (2)
[0363] Where α represents the bandwidth corresponding to the frequency band of the WLAN network.
[0364] In some specific examples, bandwidth includes 20MHz, 40MHz, 80MHz, and 160MHz. A wider bandwidth indicates a higher wireless transmission rate for the WLAN network, resulting in faster download speeds for terminal devices. Therefore, a larger bandwidth leads to a larger band score.
[0365] The signal strength score rssiScore of a WLAN network is calculated as shown in formula (3):
[0366] rssiScore=(rssi+65)×3 (3)
[0367] Here, rssi represents the signal strength of the WLAN network. In some instances, when rssi > -665 dBm, it can be considered that the signal strength of the WLAN network is relatively strong. Therefore, by calculating the difference between the signal strength of the WLAN network and -65 dBm using formula (3), the signal strength of the WLAN network can be determined, and the corresponding signal strength score rssiScore of the WLAN network can be obtained.
[0368] The determination of the WLAN network standard category score can be as follows: For networks using the 802.11ax standard, such as WiFi-6, corresponding to the second network standard mentioned above, the category score is 20; for networks using the 802.11be standard, such as WiFi-7, corresponding to the first network standard mentioned above, the category score is 50; and for networks using other standards, such as WiFi-5, corresponding to the third network standard mentioned above, the category score is 0.
[0369] The determination of the historical score weighting factor β for a WLAN network can include: the terminal device's server storing the scores (wifi2SelectorScore) of WLAN networks the terminal device has connected to; when selecting a secondary WLAN network, the terminal device can obtain the network's most recent historical score, the average of its last three historical scores, or the average of all historical scores. The historical score weighting factor β is then determined based on the historical score or its average. A higher historical score or average historical score corresponds to a larger β, meaning the WLAN network receives a higher weighting.
[0370] In some optional instances, the method for determining the historical score weighting factor β of a WLAN network may include: for multiple WLAN networks, the terminal device can obtain the most recent historical score of each of the multiple WLAN networks, as well as the sum of the most recent historical scores of each WLAN network; then calculate the ratio of the most recent historical score of each WLAN network to the sum, which is the historical score weighting factor β of that WLAN network.
[0371] For example, taking WLAN2, WLAN3, and WLAN5 as shown in Table 6, the terminal device can obtain the most recent historical scores of WLAN2, WLAN3, and WLAN5 as 50, 40, and 30, respectively. The corresponding weighting factor β of the historical score of WLAN2 is 50 / (50+40+30)=0.417, and the weighting factors β of the historical scores of WLAN3 and WLAN5 are 0.33 and 0.25, respectively.
[0372] Therefore, the terminal device determines the WLAN network with the highest score as the candidate network for the secondary WLAN network according to formulas (1) to (3).
[0373] In some optional instances, based on the WLAN network lists shown in Tables 7 and 8, the final results of selecting the WLAN network as the secondary WLAN network through network selection scoring are shown in Table 9:
[0374] Table 9
[0375] WLAN network frequency band WLAN1 2.4G band + 5G high-frequency band + 5G low-frequency band WLAN2 5G high frequency band + 5G low frequency band WLAN3 5G high frequency band + 5G low frequency band WLAN4 2.4G band
[0376] When the terminal device includes a first antenna and a second antenna, the WLAN networks in Table 9 that meet the requirements of connecting the first network interface, the second network interface and the third network interface but have different frequency bands include: WLAN2 and WLAN3.
[0377] The terminal device includes a first antenna, a second antenna, and a third antenna, or includes a first antenna, a second antenna, and a fourth antenna. The WLAN networks in Table 9 that satisfy the connection of the first network interface, the second network interface, and the third network interface may include: WLAN1, WLAN2, WLAN3, and WLAN4.
[0378] It is understandable that in some optional instances, after network selection scoring, multiple WLAN networks may have network selection scores greater than the scoring threshold, or multiple WLAN networks may have the highest network selection scores. Therefore, the WLAN network with the highest signal strength among these multiple WLAN networks can be selected as the secondary WLAN network.
[0379] For example, when the terminal device includes a first antenna and a second antenna, the WLAN networks in Table 9 that satisfy the connection of the first network interface, the second network interface, and the third network interface have different frequency bands include WLAN2 and WLAN3. Therefore, WLAN2 can be selected as the secondary WLAN network because its signal strength is higher than that of WLAN3.
[0380] The terminal device includes a first antenna, a second antenna, and a third antenna. Since the WLAN networks listed in Table 9 that satisfy the connection requirements of the first, second, and third network interfaces are WLAN1 and WLAN4, WLAN4 can be selected as the secondary WLAN network because its signal strength is higher than that of WLAN1.
[0381] The terminal device includes a first antenna, a second antenna, and a fourth antenna. Since the WLAN networks listed in Table 9 that satisfy the connection requirements of the first, second, and third network interfaces are WLAN1, WLAN2, and WLAN3, WLAN1 can be selected as the secondary WLAN network because its signal strength is higher than that of WLAN2 and also higher than that of WLAN3.
[0382] Then, the secondary WLAN network to be connected (e.g., WLAN1, WLAN2, or WLAN4) is detected and connected. In some specific implementations, the WLAN network detection and connection process during the connection of the terminal device's third network interface to the secondary WLAN network to be connected may include:
[0383] Specifically, WLAN network detection may include: before the terminal device connects to the secondary WLAN network via its third network interface, the terminal device needs to trigger a specified channel scan of the secondary WLAN network to be connected.
[0384] Once the terminal device obtains the WLAN network frequency band corresponding to the specified channel, it then determines whether the signal strength of the secondary WLAN network to be connected to is greater than -65 dBm. If the signal strength is greater than -65 dBm, the terminal device selects to connect to the secondary WLAN network. If the signal strength is less than or equal to -65 dBm, the terminal device does not select to connect to the secondary WLAN network.
[0385] It is understandable that establishing a WLAN network connection may include, for example, the terminal device selecting WLAN1 as the secondary WLAN network, initiating a connection request, and setting a connection timeout. Within the connection timeout period, the terminal device connects to the best candidate network as the secondary WLAN network and performs the video download operation. For example, based on the WLAN network list shown in Table 9, if the secondary WLAN network is WLAN1, then the terminal device connects to the 5GHz high-frequency band of WLAN1, which can be denoted as 5.8GW1. The terminal device then controls the first, second, and third network interfaces to establish a network connection. Therefore, the primary WLAN network is 5.8GHz W1, the secondary WLAN network is 2.4GHz W4, and the secondary WLAN network is 5.8GHz W1.
[0386] Thus, as Figure 4A The diagram illustrates a multi-channel network. Application programming interface (socket) 1 corresponds to the primary cellular network, socket 2 to the secondary cellular network, socket 3 to the second network interface, socket 4 to the third network interface, and socket 5 to the first network interface. The terminal device can connect to the primary cellular network via socket 1, the secondary cellular network via socket 2, the 2.4GHz WLAN network via socket 3, the 5GHz low-frequency WLAN network via socket 4, and the 5GHz high-frequency WLAN network via socket 5. This allows the terminal device to connect to all five networks simultaneously, improving download speeds.
[0387] In some instances, terminal devices bind video application sockets to corresponding network interface cards (NICs) in a specific ratio. This means that download tasks are allocated to appropriate network interfaces, and downloads are performed through the networks connected to those interfaces. The NIC includes a WLAN chip. The terminal device receives WLAN signals from the router via the NIC and connects to the WLAN network through the corresponding network interface based on its frequency band (e.g., if the NIC receives a 2.4GHz WLAN signal, the 2.4GHz WLAN signal is connected to the second network interface). This enables network communication. For example, if the terminal device is downloading a 210MB video, it can allocate the download size in a 1:1:2:1:2 ratio, meaning 30MB, 30MB, 60MB, 30MB, and 60MB are downloaded via the primary cellular network, secondary cellular network, primary WLAN network, auxiliary WLAN network, and secondary WLAN network, respectively. This increases the number of WLAN connection channels available to the terminal device, improving network speed when multiple WLAN bands exist in the network environment.
[0388] In other instances, the corresponding terminal devices are smart TVs, wearable devices, or other devices that support WLAN networks but not cellular networks, or terminal devices with cellular networks disabled. A multi-channel network diagram can be shown as follows: Figure 4B As shown, socket 3 corresponds to the second network interface, socket 4 to the third network interface, and socket 5 to the first network interface. The terminal device can connect to a 2.4GHz WLAN network via socket 3, a 5GHz low-frequency WLAN network via socket 4, and a 5GHz high-frequency WLAN network via socket 5. This allows the terminal device to combine the primary, secondary, and auxiliary WLAN networks, thereby improving download speeds.
[0389] In some instances, corresponding to terminal devices that include three antennas, Figure 4C and Figure 4D The diagrams show multi-channel network schematics for terminal devices. For example, in... Figure 4C In this context, socket4 can connect to a 5G 5200MHz WLAN network on the same frequency communication channel as socket5; for example, in... Figure 4D In this configuration, socket4 can connect to a 2.4GHz 2412MHz WLAN network on the same frequency and communication channel as socket3. This means the secondary WLAN network can connect to the primary or auxiliary WLAN network on the same frequency and channel.
[0390] In this embodiment, the terminal device's ability to operate five networks concurrently can meet users' demands and expectations for network acceleration capabilities, improving download speeds when downloading videos using certain applications. Furthermore, with the addition of an independent antenna, the terminal device can achieve six networks concurrently, fully utilizing network resources in a multi-band network environment to increase network speed and further satisfy users' demands and expectations for network acceleration capabilities.
[0391] In some instances, when a terminal device communicates using a primary WLAN network, an auxiliary WLAN network, and a secondary WLAN network, due to antenna isolation limitations in the terminal device, the secondary WLAN network may concurrently access services with the primary or auxiliary WLAN network connected to the same frequency band or frequency point (corresponding to the terminal device detecting the network acceleration trigger condition mentioned above). To avoid mutual interference and speed reduction during concurrent data transmission between the secondary WLAN network and the primary or auxiliary WLAN network, the terminal device often monitors the network interface speed and limits the speed of the network card corresponding to the secondary WLAN network when the terminal device meets the limiting conditions.
[0392] The following diagram illustrates how to use rate monitoring and speed limiting methods to avoid mutual interference between secondary WLAN networks and primary or auxiliary WLAN networks during concurrent data transmission.
[0393] In some instances, Figure 5 An electronic device system architecture diagram is shown, including: an available frequency band arbitration module 501, a multi-network device path selection and splitting module 502, a secondary WLAN network start-up control module 503, a secondary WLAN network connection control module 504, and a rate monitoring and rate limiting module 505.
[0394] The secondary WLAN network activation control module 503 can be used to send available, unavailable, or lost secondary WLAN networks to the multi-path network device selection and splitting module 502 using a callback method; it can also be used to request a list of available channels that meet the channel combination arbitration requirements from the available frequency band arbitration module 501 via IF3. For example, based on path IF1, it executes the sending of available, unavailable, or lost secondary WLAN networks to the multi-path network device selection and splitting module 502 using a callback method.
[0395] The available frequency band arbitration module 501 can be used to send the list of available channels to the secondary WLAN network start-up control module 503 via path IF4.
[0396] The multi-path network device selection and traffic splitting module 502 can be used to send a path start request to the secondary WLAN network start control module 503 via path IF1, thereby enabling the terminal device to enter the process of connecting to the secondary WLAN network, for example... Figure 1D , Figure 2 and Figure 3 The process is shown below.
[0397] The secondary WLAN network connection control module 504 can be used to send the connection and disconnection results of the secondary WLAN network to the secondary WLAN network start-up control module 503 via path IF9. It can also be used to send information that the secondary WLAN network is detected as being offline to the secondary WLAN network start-up control module 503 via path IF10.
[0398] The rate monitoring and rate limiting module 505 can be used to send the rate monitoring status of a specified network card to the secondary WLAN network start control module 503 via path IF7.
[0399] In some specific instances, the rate monitoring and limiting module 505 can provide the following information regarding the rate of a specified network interface card (NIC): ① Rate query of the specified NIC: The secondary WLAN network startup control module 503 can query the signal reception rate (Rx) and signal transmission rate (Tx) of the specified NIC, as well as the sum of the signal reception rate (Rx) and signal transmission rate (Tx) (Rx+Tx), through the rate monitoring and limiting module 505. For example, it can query the Rx of the secondary WLAN network. ② Rate monitoring of the specified NIC: When the values of Rx, Tx, and / or Rx+Tx are greater than the corresponding upper limit threshold and less than the corresponding lower limit threshold, the rate monitoring and limiting module 505 sends the current rate of the specified NIC to the secondary WLAN startup control module. Control module 503; ③: Rate comparison of the specified network card, that is, comparing the rate of the secondary WLAN network with the rate of the primary WLAN network or the auxiliary WLAN network of the same frequency band. The rate monitoring and limiting module 505 sends the comparison result to the secondary WLAN network pull-up control module 503 if it is greater than the corresponding upper limit threshold or less than the corresponding lower limit threshold (e.g., S616 below); ④: Simultaneously supports rate monitoring and limiting of the specified network card's Rx+Tx (e.g., S614 below); ⑤: The rate monitoring and limiting module 505 collects the rate of the specified network card every certain time interval (e.g., every 1 second), and then uses alpha filtering to process the collected rate, outputting the smoothed rate as the result. The specific calculation method of alpha filtering can be: y(i)=alpha*x(i)+(1-alpha)*y(i-1); In this formula, alpha is a coefficient, for example 0.3, i represents the collection time, y(i) is the output rate result, and x(i) is the input collection rate (e.g., S606 below).
[0400] Based on the above system structure, a communication method provided by an embodiment of the present application may specifically include: a process of pulling up the secondary WLAN network, a process of maintaining the connection of the secondary WLAN network, and a process of disconnecting the connection of the secondary WLAN network.
[0401] The following combines Figure 6 The process schematic diagram shown below introduces the process of pulling up the secondary WLAN network and the process of maintaining the connection of the secondary WLAN network.
[0402] It can be understood that the process of pulling up the secondary WLAN network may specifically include:
[0403] S601: The multi-path network device path selection and shunting module 502 detects the start of concurrent services.
[0404] In some optional instances, when the multi-path network device path selection and shunting module 502 detects the start of concurrent services, that is, corresponding to the network acceleration trigger condition detected by the terminal device mentioned above, the multi-path network device path selection and shunting module 502 may send a path application request to the secondary WLAN network pulling control module 503.
[0405] S602: The secondary WLAN network pulling control module 503 reads the configuration information.
[0406] In some optional instances, the secondary WLAN network pulling control module 503 may read the configuration information from an external configuration information module (not shown).
[0407] Among them, the configuration information may include: the rate upper limit condition when the primary WLAN network is connected to the 5G band (Tx + Rx of the primary WLAN network < Th_W1 Mbps), or the rate upper limit condition when the secondary WLAN network is connected to the 5G band (Tx + Rx of the secondary WLAN network < Th_W1 Mbps); the start threshold of the primary WLAN network (Rx of the primary WLAN network >= Th_W_Rx A Mbps and / or Tx >= Th_W_Tx A Mbps); the rate upper limit condition and speed limit condition of the secondary WLAN network; the Rx rate monitoring condition when the primary WLAN network is connected to the 5G band, or the Rx rate monitoring condition when the secondary WLAN network is connected to the 5G band; the rate comparison threshold between the secondary WLAN network and the primary WLAN network or the secondary WLAN network; the rate bottom limit condition of the primary WLAN network. For the configuration information list, please refer to Tables 10 and 11 below, and details will not be elaborated here.
[0408] For ease of description, the following takes the primary WLAN network connected to the 5G band as an example for introduction.
[0409] S603: The multi-path network device path selection and splitting module 502 sends a path start request to the secondary WLAN network start control module 503.
[0410] In some optional instances, based on the detection of concurrent service initiation by the multi-path network device path selection and splitting module 502, the multi-path network device path selection and splitting module 502 sends a path initiation request to the secondary WLAN network initiation control module 503. This initiates the process of the terminal device connecting to the secondary WLAN network, for example... Figure 1D , Figure 2 and Figure 3 The process is shown below.
[0411] In some alternative instances, if the concurrent service detected by the multi-path network device path selection and splitting module 502 corresponds to a non-speed test application, i.e., the speed test application is not in the foreground, then the multi-path network device path selection and splitting module 502 sends a path start request to the secondary WLAN network start control module 503, including a judgment instruction. The secondary WLAN network start control module 503, based on this judgment instruction, determines whether the rate of the primary WLAN network meets the start threshold. That is, whether the Rx and / or Tx of the primary WLAN network satisfy Rx>=Th_W_RxAMbps and Tx>=Th_W_TxAMbps. If the secondary WLAN network start control module 503 determines that the Rx and / or Tx of the primary WLAN network meet the start threshold, then the secondary WLAN network start control module 503 enters the secondary WLAN network start process. Otherwise, the secondary WLAN network start control module 503 exits the secondary WLAN network start process.
[0412] In some optional instances, if the concurrent service detected by the multi-path network device path selection and traffic splitting module 502 corresponds to the speed test application, that is, the speed test application is in the foreground running state, the secondary WLAN network start-up control module 503 directly enters the secondary WLAN network start-up process according to the path start-up request sent by the multi-path network device path selection and traffic splitting module 502.
[0413] S604: The secondary WLAN network start-up control module 503 sets the rate start-up threshold of the primary WLAN network.
[0414] In some optional instances, the secondary WLAN network start-up control module 503 may set the rate start threshold of the primary WLAN network in the rate monitoring and rate limiting module 505 based on the read configuration data. This may include: the primary WLAN network's Rx is greater than or equal to the first start threshold (Th_W_RxAMbps), and / or the primary WLAN network's Tx is greater than or equal to the second start threshold (Th_W_TxAMbps).
[0415] S605: The rate monitoring and rate limiting module 505 sends a start threshold satisfaction event to the secondary WLAN network start control module 503.
[0416] In some optional instances, when the rate monitoring and rate limiting module 505 detects that the main WLAN network meets either the first start threshold (Rx>=Th_W_RxAMbps) or the second start threshold (Tx>=Th_W_TxAMbps), it is determined that a start threshold satisfaction event has been triggered.
[0417] In some optional instances, if the rate monitoring and limiting module 505 fails to detect that the main WLAN network meets either the first or the second start threshold within a preset time period (e.g., 30 seconds), the rate monitoring and limiting module 505 sequentially sends a path closing request to the multi-path network device path selection and splitting module 502 via the secondary WLAN network start control module 503. The multi-path network device path selection and splitting module 502 can respond to the path closing request and exit the secondary WLAN network start process.
[0418] S606: The secondary WLAN network start-up control module 503 judges the signal strength of the primary WLAN network.
[0419] In some optional instances, when the secondary WLAN network start-up control module 503 determines that the start-up threshold event is met, the secondary WLAN network start-up control module 503 obtains the signal strength of the primary WLAN network and makes a judgment on the signal strength of the primary WLAN network.
[0420] If the signal strength of the main WLAN network meets the first strength threshold (e.g., the signal strength of the main WLAN network is greater than -65dBm), the secondary WLAN network start-up control module 503 obtains the main WLAN network rate.
[0421] In some optional instances, the secondary WLAN network start-up control module 503 can use the rate monitoring and rate limiting module 505 to smooth the signal corresponding to the primary WLAN network using alpha filtering, which can avoid the impact of instantaneous timing fluctuations on the signal corresponding to the primary WLAN network.
[0422] If the signal strength of the primary WLAN network does not meet the first strength threshold (e.g., the signal strength of the primary WLAN network is less than or equal to -65dBm), the process of launching the secondary WLAN network will be terminated.
[0423] S607: The secondary WLAN network start-up control module 503 obtains the primary WLAN network speed.
[0424] In some optional instances, when the secondary WLAN network start-up control module 503 determines that the signal strength of the primary WLAN network meets the first strength threshold, the secondary WLAN network start-up control module 503 further obtains the Rx and Tx of the primary WLAN network from the rate monitoring and rate limiting module 505, thereby judging the Rx and Tx of the primary WLAN network.
[0425] S608: The secondary WLAN network start-up control module 503 determines the speed of the primary WLAN network.
[0426] In some optional instances, the secondary WLAN network startup control module 503 further determines the primary WLAN network rate by: if the Rx+Tx of the primary WLAN network is less than the upper limit of the first WLAN network rate (Rx+Tx<Th_W1Mbps), it indicates that the rate of the primary WLAN network meets the upper limit condition. The secondary WLAN network startup control module 503 then further requests and obtains a list of available channels that meet the channel combination arbitration through the available frequency band arbitration module 501, and selects the WLAN network connected by the secondary WLAN network connection control module 504 according to the list of available channels for channel combination arbitration.
[0427] If Rx+Tx of the main WLAN network is greater than or equal to the upper limit of the first WLAN network rate (Th_W1 Mbps), it means that the rate of the main WLAN network does not meet the upper limit condition, and the secondary WLAN network start-up control module 503 exits the process of starting the secondary WLAN network.
[0428] S609: The secondary WLAN network activation control module 503 arbitrates to obtain available frequency bands and selects the WLAN network to connect to.
[0429] In some optional instances, when the rate of the primary WLAN network meets the rate limit condition, it means that the secondary WLAN network start-up control module 503 can further apply for a list of available channels that meet the channel combination arbitration through the available frequency band arbitration module 501, and select the WLAN network connected to the secondary WLAN network connection control module 504 according to the list of available channels for channel combination arbitration.
[0430] In some optional instances, the secondary WLAN network connection control module 503 can query a blacklist to obtain the WLAN networks included in the blacklist. The blacklist consists of WLAN networks that the secondary WLAN network connection control module 504 has failed to connect to.
[0431] It is understandable that the secondary WLAN network start-up control module 503 requests arbitration from the available frequency band arbitration module 501, and can obtain a list of available channels that meet the channel combination arbitration requirements (corresponding to...). Figure 2 and Figure 3(The process is shown below). If the arbitration of the secondary WLAN network start-up control module 503 fails or it is determined that there is no available channel list that satisfies the channel combination arbitration, the secondary WLAN network start-up control module 503 exits the process of starting up the secondary WLAN network.
[0432] In some optional instances, if the secondary WLAN network startup control module 503 successfully arbitrates, the secondary WLAN network startup control module 503 can obtain a list of available channels that meet the channel combination arbitration requirements, and select a designated WLAN network as the secondary WLAN network for the secondary WLAN network connection control module 504 to connect to based on the list.
[0433] If the secondary WLAN network start-up control module 503 fails to connect to the WLAN network, it exits and adds the WLAN network to the blacklist. If the secondary WLAN network start-up control module 503 successfully connects to the WLAN network and the network communication time reaches a certain threshold (e.g., more than 30 seconds), and the WLAN network is in the blacklist, it is deleted from the blacklist.
[0434] S610: The secondary WLAN network start-up control module 503 sends a specified WLAN network connection message to the secondary WLAN network connection control module 504.
[0435] In some optional instances, the secondary WLAN network launch control module 503 determines the secondary WLAN network based on the list of available channels that meet the channel combination arbitration. The secondary WLAN network launch control module 503 sends a specified WLAN network connection command to the secondary WLAN network connection control module 504. The secondary WLAN network connection control module 504 can respond to the connection command and connect to the specified WLAN network as the secondary WLAN network.
[0436] S611: The secondary WLAN network connection control module 504 sends the connection result to the secondary WLAN network pull-up control module 503.
[0437] In some optional instances, the secondary WLAN network connection control module 504 may respond to the connection command sent by the secondary WLAN network start-up control module 503, connect to the specified WLAN network as a secondary WLAN network, and return the connection result to the secondary WLAN network start-up control module 503.
[0438] When the secondary WLAN network connection control module 504 successfully connects to the designated WLAN network, the secondary WLAN network start-up control module 503 can further determine the signal strength of the connected WLAN network based on this successful connection result. Furthermore, if the WLAN network successfully connected by the secondary WLAN network connection control module 504 exists in the blacklist, then that WLAN network will be removed from the blacklist.
[0439] If the secondary WLAN network connection control module 504 fails to connect to the specified WLAN network, the secondary WLAN network startup control module 503 can add the specified WLAN network to the blacklist based on the failure to connect and exit the secondary WLAN network startup process.
[0440] S612: The secondary WLAN network start-up control module 503 judges the signal strength of the secondary WLAN network.
[0441] In some optional instances, the secondary WLAN network startup control module 503 can successfully connect to the secondary WLAN network based on the secondary WLAN network connection control module 504. Further determination of the signal strength of the connected secondary WLAN network may include:
[0442] If the signal strength of the secondary WLAN network meets the second strength threshold (for example, the signal strength of the secondary WLAN network is greater than -70dBm), the secondary WLAN network start-up control module 503 sends a path availability notification to the multi-network device path selection and splitting module 502, that is, it determines that the WLAN network connected by the secondary WLAN network connection control module 504 can be used as a secondary WLAN network for communication.
[0443] If the signal strength of the secondary WLAN network does not meet the second strength threshold (for example, the signal strength of the secondary WLAN network is less than or equal to -70dBm), the secondary WLAN network start-up control module 503 sends a disconnection command to the secondary WLAN network connection control module 504. Based on the disconnection command, the secondary WLAN network connection control module 504 disconnects from the connected secondary WLAN network, and the secondary WLAN network start-up control module 503 exits the secondary WLAN network start-up process.
[0444] S613: The secondary WLAN network start-up control module 503 notifies the multi-network device path selection and splitting module 502 that the path is available.
[0445] In some optional instances, corresponding to the secondary WLAN network start-up control module 503 determining that the signal strength of the WLAN network connected to the secondary WLAN network connection control module 504 meets the second strength threshold, the secondary WLAN network start-up control module 503 notifies the multi-path network device path selection and splitting module 502 that the path is available, that is, it determines that the WLAN network connected to the secondary WLAN network connection control module 504 can be used as a secondary WLAN network for communication.
[0446] It is understandable that S601-S613 above describes the process of starting up a secondary WLAN network in a terminal device, that is, the process of the terminal device connecting to the secondary WLAN network (corresponding to the above). Figure 2 and Figure 3 (The process is shown). In some instances, due to limitations in antenna isolation within the terminal device, when a secondary WLAN network connects to a primary or auxiliary WLAN network on the same frequency band or point for concurrent services, to avoid mutual interference and speed reduction caused by concurrent data transmission between the secondary WLAN network and the primary or auxiliary WLAN network, the terminal device can configure upper limits on the speeds of the primary, auxiliary, and secondary WLAN networks and monitor their speeds. This involves configuring the maintain-connectivity conditions for the secondary WLAN network to prevent mutual interference during concurrent data transmission.
[0447] See below for further reading. Figure 6 This section describes the process for maintaining a secondary WLAN network connection, which may include:
[0448] S614: Rate monitoring and rate limiting module 505 configures the rate limit conditions when the main WLAN network is connected to the 5G frequency band, configures the rate limit and rate limiting conditions of the secondary WLAN network, and configures the Rx rate monitoring conditions when the main WLAN network is connected to the 5G frequency band.
[0449] In some optional instances, the conditions configured by the terminal device during the process of maintaining the secondary WLAN network connection mainly include: the secondary WLAN network start-up control module 503, based on the configuration information read in S602, configures the upper limit conditions for the primary WLAN network connection to the 5G frequency band, the upper limit and lower limit conditions for the secondary WLAN network rate, and the Rx rate monitoring conditions for the primary WLAN network connection to the 5G frequency band through the rate monitoring and rate limiting module 505. Specifically, as shown in Table 10:
[0450] Table 10
[0451]
[0452] It can be understood that referring to Table 10, the upper rate limit condition when configuring the main WLAN network to connect to the 5G band is: when the main WLAN network connects to the 5G band, Tx + Rx < Th_W1 Mbps.
[0453] On the basis that Tx + Rx of the main WLAN network is less than the upper rate limit of the first WLAN network, the conditions for maintaining the connection of the secondary WLAN network include:
[0454] The first connection maintenance condition: the signal strength of the secondary WLAN network satisfies rssi > -60 dBm. The upper rate limit condition of the secondary WLAN network Tx + Rx < Th_H1 Mbps is satisfied, and Tx < Th_H_Tx1 Mbps is satisfied.
[0455] Or, Rx of the main WLAN network > Th_W_Rx1 Mbps is satisfied, and the rate limit condition of the secondary WLAN network Tx < Th_H_txmin Mbps is satisfied.
[0456] The second connection maintenance condition: the signal strength of the secondary WLAN network satisfies -60 dBm >= rssi > -65 dBm. The upper rate limit condition of the secondary WLAN network Tx + Rx < Th_H2 Mbps is satisfied, and Tx < Th_H_Tx2 Mbps is satisfied;
[0457] Rx of the main WLAN network > Th_W_Rx2 Mbps is satisfied, and the rate limit condition of the secondary WLAN network Tx < Th_H_txmin Mbps is satisfied.
[0458] The third connection maintenance condition: the signal strength of the secondary WLAN network satisfies -65 dBm >= rssi > -70 dBm. The upper rate limit condition of the secondary WLAN network Tx + Rx < Th_H3 Mbps is satisfied, and Tx < Th_H_Tx3 Mbps is satisfied;
[0459] Rx of the main WLAN network > Th_W_Rx3 Mbps is satisfied, and the rate limit condition of the secondary WLAN network Tx < Th_H_txmin Mbps is satisfied.
[0460] Among them, Th_H1 Mbps > Th_H2 Mbps > Th_H3 Mbps; Th_H_Tx1 Mbps > Th_H_Tx2 Mbps > Th_H_Tx3 Mbps; Th_W_Rx1 Mbps > Th_W_Rx2 Mbps > Th_W_Rx3 Mbps.
[0461] In some alternative instances, the aforementioned connectivity maintenance conditions differ depending on the number of independent antennas included in the terminal device. For example, the connectivity maintenance conditions differ for a terminal device with a first antenna and a second antenna compared to a terminal device with a first antenna, a second antenna, and a third antenna.
[0462] The reasons for the different maintenance conditions involved in the terminal devices are explained below.
[0463] In some optional instances, where the antenna isolation of the terminal device is sufficient (the antenna isolation between the first antenna and the fourth antenna is greater than the isolation threshold): if the terminal device connects the secondary WLAN network to the primary WLAN network via the first antenna and the fourth antenna respectively to the 5G high frequency and the 5G low frequency, then the secondary WLAN network and the primary WLAN network do not overlap in the spectrum at all. Therefore, there can be no interference when the secondary WLAN network and the primary WLAN network transmit data, thereby achieving the highest speed of the WLAN network.
[0464] For example, if the antenna isolation between the 5G antenna of the secondary WLAN network and the 5G antenna of the primary WLAN network is 30dB, which is greater than the isolation threshold, and the main WLAN network's transmit power is 15dBm with an out-of-band attenuation of 40dBm, then the interference signal generated by the main WLAN network's transmit power on the secondary WLAN network is 15-40-30=-55dBm. If the secondary WLAN network's receive power is -45dBm, then the secondary WLAN network's receive power is 10dB higher than the interference signal, meaning the main WLAN network's transmit power will not cause any interference to the secondary WLAN network's receive power.
[0465] In cases where the antenna isolation of the terminal device is insufficient: the signal transmission power of the main WLAN network will cause great interference to the signal reception power of the secondary WLAN network, resulting in a serious performance degradation of the terminal device, or even the secondary WLAN network being unable to communicate.
[0466] For example, if the antenna isolation between the 5G antenna of the secondary WLAN network and the 5G antenna of the primary WLAN network is 20dB, and the main WLAN network's transmit power is 15dBm with an out-of-band attenuation of 40dBm, then the interference signal generated by the main WLAN network's transmit power on the secondary WLAN network is 15-40-20 = -45dBm. If the secondary WLAN network's receive power is -45dBm, then the secondary WLAN network's receive power equals the interference signal, and the main WLAN network's transmit power will not interfere with the secondary WLAN network's receive power.
[0467] Therefore, in the case of insufficient antenna isolation, in order to avoid interference between the signal transmission power of the main WLAN network and the signal reception power of the secondary WLAN network, it is necessary not only to connect the secondary WLAN network to the 5G high frequency and the 5G low frequency respectively, but also to perform rate control on the secondary WLAN network and the main WLAN network to reduce the probability of interference between the signal transmission power of the main WLAN network and the signal reception power of the secondary WLAN network, so as to obtain a better balance.
[0468] In some optional instances, if the secondary WLAN network determined by S306 or the secondary WLAN network startup module 503 is connected to the 5G high-frequency and 5G low-frequency networks respectively, then Th_W1 Mbps and Th_H1 Mbps in Table 10 can be 50 Mbps. If the secondary WLAN network determined by S306 or the secondary WLAN network startup module 503 is on the same frequency and channel as the primary WLAN network, then Th_W1 Mbps and Th_H1 Mbps in Table 10 can be 100 Mbps.
[0469] When the secondary WLAN network and the primary WLAN network operate on the same frequency and channel, the distributed coordination function (DCF) and clear channel assessment (CCA) mechanisms specified in the protocol can prevent timing conflicts between the transmission and reception of the secondary WLAN network and the primary WLAN network. When the total channel bandwidth can meet the transmission and reception requirements of the secondary WLAN network and the primary WLAN network, data transmission between the secondary WLAN network and the primary WLAN network can be achieved without interference.
[0470] Since the secondary WLAN network and the primary WLAN network are connected to 5G high frequency and 5G low frequency respectively, there is no avoidance mechanism in the protocol for concurrent services. The timing conflict between the transmission and reception of the secondary WLAN network and the primary WLAN network is random. Therefore, stricter rate limiting conditions are needed to reduce the probability of the signal transmission power of the primary WLAN network interfering with the signal reception power of the secondary WLAN network.
[0471] Therefore, the secondary WLAN network start-up control module 503 configures the upper limit conditions for the primary WLAN network when connecting to the 5G frequency band, the upper limit and lower limit conditions for the secondary WLAN network, and the Rx rate monitoring conditions when the primary WLAN network connects to the 5G frequency band through the rate monitoring and rate limiting module 505. It also monitors the rates of the primary and secondary WLAN networks through the rate monitoring and rate limiting module 505 to maintain the connection status of the secondary WLAN network.
[0472] S615: Secondary WLAN network start-up control module 503 connects to timer Tdelta.
[0473] In some optional instances, when the secondary WLAN network remains connected, the secondary WLAN network start-up control module 503 can set and connect a timer Tdelta to periodically monitor the rate of the primary WLAN network, thereby determining the network benefit based on whether the rate of the primary WLAN network meets the start threshold and by comparing the rates of the primary and secondary WLAN networks.
[0474] S616: The secondary WLAN network start-up control module 503 configures the rate comparison threshold between the secondary WLAN network and the primary WLAN network, and configures the rate minimum condition of the primary WLAN network.
[0475] In some optional instances, the secondary WLAN network startup control module 503, based on the configuration information read in S602, configures the rate comparison threshold between the secondary WLAN network and the primary WLAN network, and configures the minimum rate conditions for the primary WLAN network through the rate monitoring and rate limiting module 505. Specifically, as shown in Table 11:
[0476] Table 11
[0477]
[0478]
[0479] It is understandable that the first benefit condition includes: the main WLAN network's Rx >= Th_W_RxAMbps, satisfying the rate comparison threshold between the secondary WLAN network and the main WLAN network, including the secondary WLAN network's Rx >= coefB * the main WLAN network's Rx, and satisfying the main WLAN network's rate minimum condition, including Rx >= Th_W_RxB Mbp.
[0480] Among them, Th_W_RxB Mbp can be equal to 0.8 times Th_W_RxA Mbp.
[0481] The second benefit conditions include: the Tx of the main WLAN network satisfies Tx>=Th_W_TxA Mbps, satisfies the rate comparison threshold between the secondary WLAN network and the main WLAN network, including the Tx of the secondary WLAN network satisfying Tx>=coefB*Tx of the main WLAN network, and satisfies the rate minimum condition of the main WLAN network, including Tx>=Th_W_TxB Mbps.
[0482] Among them, Th_W_TxB Mbp can be equal to 0.8 times Th_W_TxA Mbp.
[0483] Furthermore, corresponding to the secondary WLAN network activation control module 503 determining that the primary WLAN network and the secondary WLAN network meet the first benefit condition and / or the second benefit condition, it can be determined that the secondary WLAN network has benefits.
[0484] In some instances, because some applications on the terminal device establish all download streams at once at the start of the download (and do not continuously build streams), it is impossible to monitor the rate. Therefore, the above... Figure 6 The illustrated process of monitoring whether the speed of the primary WLAN network meets the first or second start threshold before connecting to the secondary WLAN network is not applicable to this situation. Therefore, for this situation, embodiments of this application provide an alternative secondary WLAN network process and a process for maintaining the secondary WLAN network connection. In this process, the terminal device no longer connects to the secondary WLAN network based on whether the speed of the primary WLAN network meets the first or second start threshold. Instead, upon receiving a path activation request, it enters the process of connecting to the secondary WLAN network. Furthermore, the first or second start threshold is used as a benefit threshold to determine whether there is any benefit from the secondary WLAN network.
[0485] The following is combined with Figure 7 The diagram shown illustrates the secondary WLAN network process and the process for maintaining the secondary WLAN network connection.
[0486] It is understandable that the process of setting up a secondary WLAN network may specifically include:
[0487] S701: The multi-path network device path selection and traffic splitting module 502 detected the start of concurrent services.
[0488] In some optional instances, when the multi-path network device path selection and traffic splitting module 502 detects the start of concurrent services, that is, corresponding to the terminal device detecting the network acceleration trigger condition mentioned above, the multi-path network device path selection and traffic splitting module 502 can send a path request to the secondary WLAN network start-up control module 503.
[0489] S702: The secondary WLAN network start-up control module 503 reads configuration information.
[0490] In some optional instances, the secondary WLAN network startup control module 503 can read configuration information from an external configuration information module (not shown). See S702 above for details; the configuration information list can be found in Tables 10 and 11, and will not be elaborated further here.
[0491] For ease of description, the following example uses the main WLAN network connecting to the 5G frequency band.
[0492] S703: The multi-path network device path selection and splitting module 502 sends a path start request to the secondary WLAN network start control module 503.
[0493] In some optional instances, based on the detection of concurrent service initiation by the multi-path network device path selection and splitting module 502, the multi-path network device path selection and splitting module 502 sends a path initiation request to the secondary WLAN network initiation control module 503. This initiates the process of the terminal device connecting to the secondary WLAN network, for example... Figure 1D , Figure 2 and Figure 3 The process is shown below.
[0494] S704: The secondary WLAN network start-up control module 503 judges the signal strength of the primary WLAN network.
[0495] In some optional instances, when the secondary WLAN network startup control module 503 determines that the startup threshold event is met, the secondary WLAN network startup control module 503 acquires the signal strength of the primary WLAN network and makes a judgment on the signal strength of the primary WLAN network. See S606 above for details, which will not be elaborated further here.
[0496] S705: The secondary WLAN network start-up control module 503 arbitrates to obtain available frequency bands and selects the WLAN network to connect to.
[0497] In some optional instances, the secondary WLAN network startup control module 503 can select the WLAN network connected to the secondary WLAN network connection control module 504 based on the available channel list obtained from channel combination arbitration. See S609 above for details; further elaboration is omitted here.
[0498] S706: The secondary WLAN network start-up control module 503 sends a specified WLAN network connection message to the secondary WLAN network connection control module 504.
[0499] In some optional instances, the secondary WLAN network launch control module 503 determines the secondary WLAN network based on the list of available channels that meet the channel combination arbitration. The secondary WLAN network launch control module 503 sends a specified WLAN network connection command to the secondary WLAN network connection control module 504. The secondary WLAN network connection control module 504 can respond to the connection command and connect to the specified WLAN network as the secondary WLAN network.
[0500] S707: The secondary WLAN network connection control module 504 sends the connection result to the secondary WLAN network pull-up control module 503.
[0501] In some optional instances, the secondary WLAN network connection control module 504 can respond to the connection command sent by the secondary WLAN network start-up control module 503, connect to the specified WLAN network as a secondary WLAN network, and return the connection result to the secondary WLAN network start-up control module 503. See S611 above for details, which will not be elaborated further here.
[0502] S708: The secondary WLAN network start-up control module 503 judges the signal strength of the secondary WLAN network.
[0503] In some optional instances, the secondary WLAN network activation control module 503 can further determine the signal strength of the connected secondary WLAN network based on the successful connection of the secondary WLAN network connection control module 504. See S612 above for details, which will not be elaborated further here.
[0504] S709: The secondary WLAN network start-up control module 503 notifies the multi-network device path selection and distribution module 502 that the path is available.
[0505] In some optional instances, corresponding to the secondary WLAN network start-up control module 503 determining that the signal strength of the WLAN network connected to the secondary WLAN network connection control module 504 meets the second strength threshold, the secondary WLAN network start-up control module 503 notifies the multi-path network device path selection and splitting module 502 that the path is available, that is, it determines that the WLAN network connected to the secondary WLAN network connection control module 504 can be used as a secondary WLAN network for communication.
[0506] S710: The secondary WLAN network startup control module 503 sets the primary WLAN network startup revenue monitoring threshold.
[0507] In some optional instances, because some applications on the terminal device establish all download streams at once at the start of the download (and do not continuously build streams), it is impossible to monitor the rate. Figure 6 In the illustrated process, the first and second startup thresholds serve as revenue thresholds. The secondary WLAN network startup control module 503 sets the primary WLAN network startup revenue monitoring thresholds, which may include: the primary WLAN network's Rx and Tx satisfying Rx>=Th_W_RxA Mbps and Tx>=Th_W_TxA Mbps.
[0508] S711: The rate monitoring and rate limiting module 505 sends a threshold condition fulfillment event to the secondary WLAN network start-up control module 503.
[0509] In some optional instances, the rate monitoring and rate limiting module 505 monitors the rate of the primary WLAN network and, based on the primary WLAN network startup benefit monitoring threshold set by the secondary WLAN network startup control module 503, sends a threshold condition fulfillment event to the secondary WLAN network startup control module 503 when the primary WLAN network rate satisfies Rx>=Th_W_RxA Mbps and Tx>=Th_W_TxA Mbps. The secondary WLAN network startup control module 503 then configures the rate conditions to maintain the secondary WLAN network connection.
[0510] See below for further reading. Figure 7 This section describes the process for maintaining a secondary WLAN network connection, which may include:
[0511] S712: The secondary WLAN network start-up control module 503 configures the rate limit conditions when the primary WLAN network is connected to the 5G frequency band, configures the rate limit and speed limit conditions of the secondary WLAN network, and configures the Rx rate monitoring conditions when the primary WLAN network is connected to the 5G frequency band.
[0512] In some optional instances, the conditions configured by the terminal device during the process of maintaining the secondary WLAN network connection mainly include: the secondary WLAN network start-up control module 503, based on the configuration information read in S602, configuring the upper limit conditions for the primary WLAN network connection to the 5G frequency band, configuring the upper limit and lower limit conditions for the secondary WLAN network rate, and configuring the Rx rate monitoring conditions for the primary WLAN network connection to the 5G frequency band through the rate monitoring and rate limiting module 505. For details, please refer to S616; to avoid repetition, further elaboration will not be provided here.
[0513] S713: Secondary WLAN network start-up control module 503 sets timer Tdelta.
[0514] In some optional instances, when the secondary WLAN network remains connected, the secondary WLAN network start-up control module 503 can set and connect a timer Tdelta to periodically monitor the rate of the primary WLAN network. Based on the primary WLAN network rate meeting the start threshold, and by comparing the rates of the primary and secondary WLAN networks, the network benefit is determined, i.e., whether the network acceleration capability of the primary, secondary, and auxiliary WLAN networks currently connected to the terminal device is positive.
[0515] S714: The secondary WLAN network start-up control module 503 configures the threshold for comparing the secondary WLAN network rate with the primary WLAN network rate.
[0516] In some optional instances, the secondary WLAN network start-up control module 503 configures the rate comparison threshold between the secondary WLAN network and the primary WLAN network and the minimum rate condition of the primary WLAN network through the rate monitoring and rate limiting module 505 based on the configuration information read in S602. For details on configuring the minimum rate condition of the primary WLAN network, please refer to S618. To avoid repetition, it will not be elaborated further here.
[0517] The following is combined with Figure 8 The diagram illustrating the process of disconnecting the secondary WLAN network connection explains the procedure, which may include:
[0518] S801: The rate monitoring and rate limiting module 505 reports rate monitoring events to the secondary WLAN network start-up control module 503.
[0519] In some optional instances, the rate monitoring and rate limiting module 505 reports the rate of the monitored primary WLAN network to the secondary WLAN network start control module 503.
[0520] In some optional instances, the rate update process includes two cases, specifically:
[0521] The first rate update process includes:
[0522] S802: The secondary WLAN network start-up control module 503 determines that the Rx rate is greater than the threshold when the primary WLAN network connects to the 5G frequency band.
[0523] In some optional instances, the secondary WLAN network startup control module 503 determines, based on the receive rate monitoring and the rate of the primary WLAN network reported by the rate limiting module 505, that the Rx rate of the primary WLAN network is greater than a threshold when it connects to the 5G band. Specifically, it determines that when the primary WLAN network connects to the 5G band, Rx satisfies any one of the following: Rx > Th_W_Rx1 Mbps, Rx > Th_W_Rx2 Mbps, and Rx > Th_W_Rx3 Mbps, where Th_W_Rx1 Mbps > Th_W_Rx2 Mbps > Th_W_Rx3 Mbps.
[0524] Therefore, the secondary WLAN network start-up control module 503 determines the Tx rate limiting condition of the secondary WLAN network based on the threshold that the Rx rate meets when the primary WLAN network connects to the 5G frequency band.
[0525] S803: The secondary WLAN network start-up control module 503 updates the Tx rate limiting conditions of the secondary WLAN network.
[0526] In some optional instances, when the primary WLAN network is connected to the 5G band and Rx satisfies Rx > Th_W_Rx1 Mbps, the Tx rate limiting condition for the secondary WLAN network can be Tx less than the first rate limiting threshold; when the primary WLAN network is connected to the 5G band and Rx satisfies Rx > Th_W_Rx2 Mbps, the Tx rate limiting condition for the secondary WLAN network can be Tx less than the second rate limiting threshold; when the primary WLAN network is connected to the 5G band and Rx satisfies Rx > Th_W_Rx3 Mbps, the Tx rate limiting condition for the secondary WLAN network can be Tx less than the third rate limiting threshold. Wherein, the first rate limiting threshold ≥ the second rate limiting threshold ≥ the third rate limiting threshold ≥ the minimum rate threshold for Tx (Th_H_txmin Mbps).
[0527] Then, the secondary WLAN network start-up control module 503 determines the Tx rate limiting conditions of the secondary WLAN network based on the threshold that the Rx rate meets when the primary WLAN network connects to the 5G frequency band, and then updates the Tx rate limiting conditions of the secondary WLAN network through the rate monitoring and rate limiting module 505.
[0528] In some optional instances, if the Tx rate limiting condition of the secondary WLAN network is already the minimum rate threshold for Tx (Th_H_txmin Mbps), then the Tx rate limiting condition of the secondary WLAN network will not be updated.
[0529] The second rate update process includes:
[0530] S804: The secondary WLAN network start-up control module 503 determines the signal strength change level of the secondary WLAN network.
[0531] In some optional instances, corresponding to the secondary WLAN network startup control module 503 determining the signal strength change cascade level of the secondary WLAN network, for example as shown in Table 10, the signal strength of the secondary WLAN network changes from rssi>-60dBm to -60dBm>=rssi>-65dBm. Then, based on the changed signal strength and the rate conditions shown in Table 10, the secondary WLAN network startup control module 503 reconfigures the secondary WLAN network rate limit and rate limiting conditions through the rate monitoring and rate limiting module 505.
[0532] S805: The secondary WLAN network start-up control module 503 updates the secondary WLAN network speed limit and speed limiting conditions.
[0533] In some optional instances, the secondary WLAN network start-up control module 503 determines the signal strength of the secondary WLAN network, and then updates the secondary WLAN network rate limit and rate limiting conditions through the rate monitoring and rate limiting module 505 based on the signal strength of the secondary WLAN network and the rate conditions shown in Table 10.
[0534] In some optional instances, the abnormal exit process includes three cases, specifically:
[0535] The first type of abnormal exit procedure includes:
[0536] S806: The secondary WLAN network start-up control module 503 determines that the rate of the primary WLAN network or the rate of the secondary WLAN network does not meet the hold condition.
[0537] In some optional instances, when the rate of the primary WLAN network satisfies Tx+Rx>Th_W1+hys_W1 Mbps, the secondary WLAN network start-up control module 503 exits the connection to the secondary WLAN network and switches to S810, whereby the secondary WLAN network start-up control module 503 sends a disconnection notification to the secondary WLAN network start-up control module 503.
[0538] In some optional instances, when the signal strength of the secondary WLAN network satisfies rssi > -60dBm, if the rate of the secondary WLAN network satisfies Tx + Rx > Th_H1 + hys_H1 Mbps, then the secondary WLAN network activation control module 503 disconnects from the secondary WLAN network. When the signal strength of the secondary WLAN network satisfies -60dBm >= rssi > -65dBm, if the rate of the secondary WLAN network satisfies Tx + Rx > Th_H2 + hys_H2 Mbps, then the secondary WLAN network activation control module 503 disconnects from the secondary WLAN network. Alternatively, when the signal strength of the secondary WLAN network satisfies -65dBm >= rssi > -70dBm, if the rate of the secondary WLAN network satisfies Tx + Rx > Th_H3 + hys_H3 Mbps, then the secondary WLAN network activation control module 503 disconnects from the secondary WLAN network. Among them, Th_H1+hys_H1 Mbps>Th_H2+hys_H2 Mbps>Th_H3+hys_H3 Mbps.
[0539] The second type of abnormal exit procedure includes:
[0540] S807: The rate monitoring and rate limiting module 505 reports rate monitoring events to the secondary WLAN network start-up control module 503.
[0541] In some optional instances, the rate monitoring and rate limiting module 505 reports the rate of the monitored primary WLAN network to the secondary WLAN network start-up control module 503.
[0542] S808: The secondary WLAN network pull-up control module 503 determines that the rate of the primary WLAN network or the rate of the secondary WLAN network is greater than the upper limit, the rate of the primary WLAN network is lower than the lower threshold, and the rate of the secondary WLAN network has not reached the revenue threshold.
[0543] In some optional instances, based on the rate of the primary WLAN network reported by the receive rate monitoring and rate limiting module 505, the secondary WLAN network pull-up control module 503 determines that the rate of the primary WLAN network or the rate of the secondary WLAN network exceeds the upper limit, the rate of the primary WLAN network is lower than the threshold lower limit, and the rate of the secondary WLAN network has not reached the revenue threshold.
[0544] That is, when the rate of the primary WLAN network satisfies Tx + Rx > Th_W1 + hys_W1 Mbps or the rate of the secondary WLAN network satisfies any one of Tx + Rx > Th_H1 + hys_H1 Mbps, Tx + Rx > Th_H2 + hys_H2 Mbps, and Tx + Rx > Th_H3 + hys_H3 Mbps; and Rx < Th_W_RxB or Tx < Th_W_TxB for the primary WLAN network; and Rx < coefB * Rx of the primary WLAN network or Tx < coefB * Tx of the primary WLAN network for the secondary WLAN network, the secondary WLAN network pull-up control module 503 exits the connection to the secondary WLAN network, proceeds to S810, and the secondary WLAN network pull-up control module 503 sends a disconnection notice to the secondary WLAN network pull-up control module 503.
[0545] The third abnormal exit process includes:
[0546] S809: The secondary WLAN network connection control module 504 detects no network and reports it to the secondary WLAN network pull-up control module 503.
[0547] In some optional instances, the secondary WLAN network connection control module 504 detects that the currently connected secondary WLAN network has no network and reports this no-network situation to the secondary WLAN network pull-up control module 503. Based on this no-network situation, the secondary WLAN network pull-up control module 503 exits the connection to the secondary WLAN network, proceeds to S810, and the secondary WLAN network pull-up control module 503 sends a disconnection notice to the secondary WLAN network pull-up control module 503.
[0548] S810: The secondary WLAN network pull-up control module 503 sends a disconnection notice to the secondary WLAN network connection control module 504.
[0549] In some optional instances, the secondary WLAN network start-up control module 503 disconnects from the secondary WLAN network based on the abnormal conditions mentioned in S806, S808 and S809 above, and sends a disconnection notification to the secondary WLAN network start-up control module 503.
[0550] S811: The secondary WLAN network start-up control module 503 notifies the multi-network device path selection and distribution module 502 that the path is unavailable.
[0551] In some optional instances, the secondary WLAN network start-up control module 503, based on the abnormal situations mentioned in S806, S808 and S809 above, exits the connection to the secondary WLAN network and also notifies the multi-path network device path selection and splitting module 502 that the path is unavailable, that is, it will no longer conduct network communication through the currently connected secondary WLAN network.
[0552] S812: The secondary WLAN network start-up control module 503, based on the anomaly, performs the operation of adding the secondary WLAN network to the blacklist.
[0553] In some optional instances, the secondary WLAN network activation control module 503 adds the malfunctioning WLAN network to a blacklist.
[0554] The normal termination process includes:
[0555] S813: The multi-path network device path selection and distribution module 502 requests the secondary WLAN network pull-up control module 503 to close the path.
[0556] In some optional instances, the multi-path network device path selection and splitting module 502 requests the secondary WLAN network pull-up control module 503 to close the path, that is, requests the secondary WLAN network pull-up control module 503 to disconnect from the secondary WLAN network.
[0557] S814: The secondary WLAN network start-up control module 503 sends a disconnection notification to the secondary WLAN network connection control module 504.
[0558] In some optional instances, the secondary WLAN network start-up control module 503 sends a disconnection notification to the secondary WLAN network connection control module 504 based on the received request to shut down the path. The secondary WLAN network connection control module 504 then disconnects from the secondary WLAN network according to the disconnection notification.
[0559] It is understandable that WLAN networks can exist in both speed-limited and speed-unlimited scenarios. For example, a WLAN network provided by a home router may be a speed-unlimited network, while a WLAN network provided by a router in a public place such as an airport, hotel, or coffee shop may be a speed-limited network.
[0560] Considering user experience, this application provides an alternative communication method for both speed-limited and speed-unlimited scenarios. In this method, for multiple candidate network combinations determined by the terminal device, including cases where the network shares the same frequency and channel (e.g., a combination of 5G high-frequency band, 2.4G frequency band, and 5G high-frequency band), and cases where the WLAN networks connected to the three network interfaces do not share the same frequency band (e.g., a combination of 2.4G frequency band, 5G high-frequency band, and 5G high-frequency band), the method can determine whether the current network environment is speed-limited or not. When the terminal device determines it is in a speed-limited scenario, when filtering WLAN networks, it prioritizes WLAN networks sharing the same frequency and channel as the primary or secondary WLAN network as secondary WLAN networks to be connected. When the terminal device determines it is in a speed-unlimited scenario, when filtering WLAN networks, it prioritizes WLAN networks in different frequency bands than the primary and secondary WLAN networks as secondary WLAN networks to be connected.
[0561] The following explains how to determine speed-limited and non-speed-limited scenarios.
[0562] In some optional instances, if the terminal device obtains its current location and determines that the current location is a public place such as an airport, hotel, or coffee shop, the terminal device can determine that the current situation is a speed-limited scenario. Alternatively, if the terminal device detects that it is trying to connect to a secondary WLAN network and needs to perform connection verification, the terminal device can determine that the current situation is a speed-limited scenario.
[0563] In some optional instances, the terminal device determines that its current location is a public place such as an airport, hotel, or coffee shop, and when the terminal device detects that it needs to perform connection verification when connecting to the secondary WLAN network to be connected, the terminal device can determine that the current scenario is a speed-limited scenario.
[0564] When a terminal device determines that the current scenario is a speed-limited scenario, it will prioritize selecting a WLAN network that shares the same communication frequency channel as the main WLAN network or auxiliary WLAN network as the secondary WLAN network to connect to.
[0565] It is understandable that if the terminal device determines that the current network environment does not meet the above-mentioned criteria for determining a speed-limited environment, then the current network environment can be determined to be a non-speed-limited environment.
[0566] When a terminal device determines that the current scenario is not speed-limited, it will prioritize selecting a WLAN network with a different frequency band than the main WLAN network and the auxiliary WLAN network as the secondary WLAN network to connect to.
[0567] It's understandable that when connecting to a secondary WLAN network in a speed-limited scenario, prioritizing a connection to a WLAN network sharing the same frequency and communication channel as the primary or secondary WLAN network can further increase the original speed, for example, from 20Mbps to 40Mbps. However, if the secondary WLAN network is not speed-limited, choosing a WLAN network sharing the same frequency and communication channel as the primary or secondary WLAN network might only result in a slight increase in speed, such as from 20Mbps to 22Mbps. Compared to the energy consumption of the terminal device connecting to the secondary WLAN network, if the speed increase is only slight, the secondary WLAN network may offer no benefit or even a negative benefit.
[0568] For secondary WLAN networks that are not speed-limited, priority is given to selecting WLAN networks that are different from the primary and secondary WLAN networks. For example, if the primary WLAN network is a 5G high-frequency band and the secondary WLAN network is a 2.4G frequency band, priority is given to connecting to the 5G low-frequency band. This not only makes full use of channel resources but also improves the acceleration capability of terminal devices to a certain extent, thereby enhancing the user experience.
[0569] In some instances, corresponding to terminal devices with dual WLAN chips, embodiments of this application provide a communication method.
[0570] like Figure 9 As shown, the flow of the communication method mentioned in the embodiments of this application may include:
[0571] S901: Network acceleration trigger condition detected.
[0572] In some optional instances, network acceleration is triggered when the terminal device detects that a user is performing a download or loading operation, or that the user has opened a preset type of application, including video applications and game applications. For example, if the terminal device detects that a user is downloading a video in a video application on the terminal device, then network acceleration is triggered.
[0573] In some optional instances, corresponding to the terminal device detecting a network trigger condition, the secondary WLAN chip is triggered to connect to the secondary WLAN network through the third network interface.
[0574] S902: Multiple WLAN networks were detected in the environment, wherein at least one of the multiple WLAN networks has a communication frequency band including at least three frequency bands.
[0575] In some optional instances, multiple WLAN networks may exist in the network environment, and at least one of these WLAN networks may have at least three frequency bands. For example, it may include the 2.4 GHz band, the 5 GHz high-frequency band, and the 5 GHz low-frequency band.
[0576] S903: Based on the connection priority of multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip, determine the target frequency band combination from multiple WLAN networks.
[0577] In some optional instances, the first WLAN chip can correspond to the main WLAN chip, and the second WLAN chip can correspond to the secondary WLAN chip. As mentioned above, the main WLAN chip includes a first network interface and a second network interface, and the secondary WLAN chip includes a third network interface, wherein the connection priority of the first network interface, the second network interface, and the third network interface decreases sequentially.
[0578] In some optional instances, since any two of the first, second, and third network interfaces connected to networks on the same frequency band may affect network stability, the target frequency band combination can be determined based on connection priority.
[0579] S904: Select a target network combination from multiple WLAN networks based on the target frequency band combination.
[0580] In some optional instances, selecting a target network combination from multiple WLAN networks based on a target frequency band combination may include: identifying candidate network combinations from multiple WLAN networks that satisfy the target frequency band combination; if there are multiple candidate network combinations, selecting a target network combination from the multiple candidate network combinations based on the network selection score of each candidate network combination; if there is only one candidate network combination, using the candidate network combination as the target network combination.
[0581] S905: Based on the target network combination, control multiple network interfaces of the first WLAN chip and at least one network interface of the second WLAN chip to connect to the network.
[0582] In some optional instances, determining the secondary WLAN network suffices to define the target network combination. This target network combination includes the primary WLAN network, the auxiliary WLAN network, the secondary WLAN network, and their corresponding frequency bands. Thus, the terminal device can control the primary WLAN chip's first network interface to connect to the primary WLAN network, its second network interface to connect to the auxiliary WLAN network, and the secondary WLAN chip's third network interface to connect to the secondary WLAN network, all based on the target network combination.
[0583] It is understood that, in the embodiments of this application, the above-described communication method can be executed by electronic device 001. Figure 10 This is a schematic diagram of the hardware structure of the electronic device 001 provided in the embodiments of this application. It is understood that the structure illustrated in the embodiments of this invention does not constitute a specific limitation on the terminal device. In other embodiments of this application, the terminal device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0584] Electronic device 001 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a proximity 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.
[0585] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0586] It is understood that the processor 110 can be used to execute the communication methods in the embodiments of this application.
[0587] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0588] The wireless communication function of electronic device 001 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0589] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 001 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0590] Understandable. Figure 10 Antennas 1 and 2 are only shown as examples, corresponding to the first and second antennas mentioned above. According to some embodiments of this application, electronic device 001 may also include a third or fourth antenna (not shown).
[0591] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 001. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0592] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 001, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0593] In some embodiments, antenna 1 of electronic device 001 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 001 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0594] It is understood that electronic device 001, through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, and a third antenna (or a fourth antenna (not shown)), achieves the above-mentioned implementation in the embodiments of this application: the terminal device connects to the main WLAN network through the first antenna (antenna 1) via the first antenna (antenna 1), connects to the auxiliary WLAN network through the second antenna (antenna 2) via the second antenna (antenna 2), and connects to the secondary WLAN network through the third antenna or the fourth antenna via the third antenna. Alternatively, the terminal device connects to both the main WLAN network and the secondary WLAN network through the first antenna (antenna 1) via the first antenna (antenna 1), and connects to the auxiliary WLAN network through the second antenna (antenna 2), etc.
[0595] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 001. The electronic device 001 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 001 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 001 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 001 and cannot be separated from the electronic device 001.
[0596] In some instances, electronic device 001 can connect to the primary cellular network and the secondary cellular network for network communication by inserting two SIM cards and activating both SIM cards.
[0597] The communication method provided in this application embodiment can be executed by the processor 110 in the above-mentioned electronic device 001.
[0598] This application provides an electronic device, including: one or more processors; one or more memories; the one or more memories storing one or more programs, which, when executed by one or more processors, cause the electronic device to perform the communication method provided in this application.
[0599] It should be noted that in the examples and description of this patent, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0600] Although this application has been illustrated and described with reference to certain embodiments thereof, those skilled in the art will understand that various changes in form and detail may be made thereto without departing from the scope of this application.
Claims
1. A communication method applied to electronic devices, characterized in that, The electronic device includes a first network interface, a second network interface, and a third network interface; the method includes: Network acceleration trigger condition detected; Multiple WLAN networks were detected in the environment, wherein the communication frequency bands of the multiple WLAN networks include at least two frequency bands; Based on the connection priorities of the first network interface, the second network interface, and the third network interface, a target frequency band combination that meets the combination conditions is determined from the plurality of WLAN networks, wherein the target frequency band combination includes the frequency bands of the WLAN networks corresponding to the first network interface, the second network interface, and the third network interface, respectively; Based on the target frequency band combination, a target network combination that meets the communication conditions is selected from the plurality of WLAN networks, wherein the target network combination includes the WLAN networks corresponding to the first network interface, the second network interface and the third network interface respectively; Based on the target network combination, the first network interface, the second network interface, and the third network interface are controlled to establish WLAN network connections.
2. The method according to claim 1, characterized in that, The combination conditions include: the frequency bands corresponding to the first network interface, the second network interface, and the third network interface are different.
3. The method according to claim 1, characterized in that, The combination conditions include: the frequency bands corresponding to the first network interface, the second network interface, and the third network interface are different; Alternatively, the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the second network interface.
4. The method according to claim 1, characterized in that, The combination conditions include: the frequency bands corresponding to the first network interface, the second network interface, and the third network interface are different; Alternatively, the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the first network interface.
5. The method according to claim 2, characterized in that, The electronic device includes a first antenna and a second antenna; The first antenna is used for the first network interface, the second network interface, and the third network interface to connect to a WLAN network in the first sub-band or the second sub-band of the first frequency band; The second antenna is used for the connection between the first network interface or the second network interface and the WLAN network of the second frequency band, and the connection between the third network interface and the WLAN network of the second frequency band.
6. The method according to claim 3, characterized in that, The electronic device includes a first antenna, a second antenna, and a third antenna; The first antenna is used for the first network interface, the second network interface, and the third network interface to connect to a WLAN network in the first sub-band or the second sub-band of the first frequency band; The second antenna is used for connecting the first network interface or the second network interface to a WLAN network in the second frequency band; The third antenna is used for the third network interface to connect to the WLAN network of the second frequency band.
7. The method according to claim 4, characterized in that, The electronic device includes a first antenna, a second antenna, and a fourth antenna; The first antenna is used for the first network interface, the second network interface and the WLAN network of the first sub-band or the second sub-band in the first frequency band; The second antenna is used for the connection between the first network interface or the second network interface and the WLAN network of the second frequency band, and the connection between the third network interface and the WLAN network of the second frequency band; The fourth antenna is used for the third network interface to connect to the WLAN network of the first sub-band or the second sub-band in the first frequency band.
8. The method according to any one of claims 5-7, characterized in that, The first frequency band includes a 5G frequency band, the first sub-frequency band includes a first 5G sub-frequency band, the second sub-frequency band includes a second 5G sub-frequency band, and the communication frequency in the first 5G sub-frequency band is higher than the communication frequency in the second 5G sub-frequency band. The second frequency band includes the 2.4 GHz band.
9. The method according to any one of claims 1-8, characterized in that, The electronic device includes a first WLAN chip and a second WLAN chip. The first WLAN chip includes a first network interface and a second network interface, and the second WLAN chip includes the third network interface. The connection priority of the first network interface, the second network interface, and the third network interface decreases sequentially.
10. The method according to any one of claims 1-8, characterized in that, The electronic device includes a first WLAN chip, which includes a first network interface, a second network interface, and a third network interface. The connection priority of the first network interface, the second network interface, and the third network interface decreases sequentially.
11. The method according to any one of claims 1-10, characterized in that, The step of determining the target frequency band combination that meets the combination conditions from the plurality of WLAN networks based on the connection priorities of the first network interface, the second network interface, and the third network interface includes: If it is detected that the first network interface is connected to the first WLAN network, then it is determined that in the target frequency band combination, the frequency band corresponding to the first network interface is the frequency band corresponding to the first WLAN network.
12. The method according to claim 11, characterized in that, The step of selecting a target network combination that meets the communication conditions from the plurality of WLAN networks based on the target frequency band combination includes: From the plurality of WLAN networks, determine the candidate network combination that satisfies the target frequency band combination; There are multiple candidate network combinations. Based on the network selection score of each candidate network combination, a first target network combination is selected from the multiple candidate network combinations; or, There is one candidate network combination, and the candidate network combination is used as the first target network combination.
13. The method according to claim 11, characterized in that, The step of selecting a target network combination that meets the communication conditions from the plurality of WLAN networks based on the target frequency band combination includes: From the plurality of WLAN networks, determine the candidate network combination that satisfies the target frequency band combination; Corresponding to the candidate network combinations, including a first type of network combination and a second type of network combination, the current network environment is obtained; wherein, the first type of network combination is where the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the first network interface or the second network interface; the second type of network combination is where the frequency band corresponding to the first network interface, the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface are different. When the network environment is a rate-limited environment, the first type of network combination is used as the second target network combination; when the network environment is an unrate-limited environment, the second type of network combination is used as the second target network combination. There are multiple corresponding second target network combinations. Based on the network selection scores of multiple second target network combinations, a first target network combination is selected from the multiple second target network combinations; or, There is one corresponding to the second target network combination, and the second target network combination is used as the first target network combination.
14. The method according to claim 11, characterized in that, The methods for determining that the network environment is the rate-limited environment include: When it is determined that the location of the electronic device is within the geographical range corresponding to the preset speed-limited environment, and / or it is determined that the first WLAN network is a network that requires login authentication, then the network environment is determined to be a speed-limited environment.
15. The method according to claim 12, characterized in that, There are multiple candidate network combinations. Based on the network selection score of each candidate network combination, the target network combination is selected from the multiple candidate network combinations, including: Based on the channel parameters of the WLAN network corresponding to the third network interface in the candidate network combination, the network selection score of the candidate network combination is determined, wherein the communication parameters include at least one of the following: network bandwidth, signal strength, and network standard; From the multiple candidate network combinations, the candidate network combination with the highest network selection score is selected as the target network combination.
16. The method according to claim 15, characterized in that, Based on the communication parameters of the WLAN network corresponding to the third network interface in the candidate network combination, the network selection score of the candidate network combination is determined, including: The sum of the bandwidth score, signal strength score, and network standard score of the WLAN network corresponding to the third network interface in the candidate network combination is used as the network selection score of the candidate network combination. The bandwidth score is determined based on the network bandwidth and basic network bandwidth of the WLAN network; the signal strength score is determined based on the WLAN signal strength and historical network selection scores of the WLAN network; and the network standard score is determined based on the protocol standard corresponding to the WLAN network. The higher the protocol standard corresponding to the WLAN network, the higher the network standard score. The basic network bandwidth includes one of the following: the maximum value of the network bandwidth, the minimum value of the network bandwidth, and the average value of the network bandwidth.
17. The method according to any one of claims 1-16, characterized in that, The step of determining the target frequency band combination that meets the combination conditions from the plurality of WLAN networks based on the connection priorities of the first network interface, the second network interface, and the third network interface includes: The speed measurement application of the electronic device is not in the foreground. It acquires the signal strength, signal reception rate, and signal transmission rate of the first WLAN network connected to the first network interface. If the signal strength of the first WLAN network is greater than the first strength threshold, and if the signal reception rate of the first WLAN network is greater than or equal to the first activation threshold and / or the signal transmission rate of the first WLAN network is greater than or equal to the second activation threshold, then based on the connection priority of the first network interface, the second network interface and the third network interface, a target frequency band combination that meets the combination conditions is determined from the plurality of WLAN networks.
18. The method according to any one of claims 1-16, characterized in that, The step of determining the target frequency band combination that meets the combination conditions from the plurality of WLAN networks based on the connection priorities of the first network interface, the second network interface, and the third network interface further includes: When the speed measurement application of the electronic device is in the foreground, a target frequency band combination that meets the combination conditions is determined from the multiple WLAN networks based on the connection priority of the first network interface, the second network interface and the third network interface.
19. The method according to claim 17 or 18, characterized in that, The method further includes: This corresponds to the situation where the third network interface is in a network connected state, and the frequency band of the WLAN network connected to the first network interface is the same. If the WLAN network connected to the third network interface satisfies the first, second, or third connection retention conditions, the third network interface maintains a connection with the WLAN network.
20. The method according to claim 19, characterized in that, The first connection-keeping condition includes: The signal strength of the first WLAN network connected to the first network interface is greater than the first strength threshold, the sum of the signal receiving rate and the signal sending rate of the first WLAN network is less than the upper limit of the first WLAN network rate, and the signal strength of the second WLAN network connected to the third network interface is within the first strength range. And the sum of the signal receiving rate and the signal transmitting rate of the second WLAN network is within a first rate range corresponding to the first intensity range, and the signal transmitting rate of the second WLAN network is within a second rate range corresponding to the first intensity range; or, the signal receiving rate of the first WLAN network is greater than the first monitoring rate threshold, and the signal transmitting rate of the second WLAN network is less than the rate lower limit threshold.
21. The method according to claim 20, characterized in that, The second connection maintenance condition includes: The signal strength of the first WLAN network connected to the first network interface is greater than the first strength threshold, the sum of the signal receiving rate and the signal sending rate of the first WLAN network is less than the upper limit of the first WLAN network rate, and the signal strength of the second WLAN network connected to the third network interface is within the second strength range. And the sum of the signal receiving rate and the signal transmitting rate of the second WLAN network is in the third rate range corresponding to the second strength range, and the signal transmitting rate of the second WLAN network is in the fourth rate range corresponding to the second strength range; or, the signal receiving rate of the first WLAN network is greater than the second monitoring rate threshold, and the signal transmitting rate of the second WLAN network is less than the rate lower limit threshold.
22. The method according to claim 21, characterized in that, The third condition for maintaining the connection includes: The signal strength of the first WLAN network connected to the first network interface is greater than the first strength threshold, the sum of the signal receiving rate and the signal sending rate of the first WLAN network is less than the upper limit of the first WLAN network rate, and the signal strength of the second WLAN network connected to the third network interface is within the third strength range. If the sum of the signal reception rate and signal transmission rate of the second WLAN network is within the fifth rate range corresponding to the third strength range, and the signal transmission rate of the second WLAN network is within the sixth rate range corresponding to the third strength range, then the third network interface remains connected to the second WLAN network; or, the signal reception rate of the first WLAN network is greater than the third monitoring rate threshold, and the signal transmission rate of the second WLAN network is less than the rate lower limit threshold.
23. The method according to claim 22, characterized in that, The minimum value in the first strength range is greater than or equal to the maximum value in the second strength range, and the minimum value in the second strength range is greater than or equal to the maximum value in the third strength range; The maximum value in the first rate range is greater than the maximum value in the third rate range, and the maximum value in the third rate range is greater than the maximum value in the fifth rate range; The maximum value in the second rate range is greater than the maximum value in the fourth rate range, and the maximum value in the fourth rate range is greater than the maximum value in the sixth rate range; The first monitoring rate threshold is greater than the second monitoring rate threshold, and the second monitoring rate threshold is greater than the third monitoring rate threshold.
24. A communication method applied to an electronic device, characterized in that, The electronic device includes a first network interface, a second network interface, and a third network interface; the method includes: Network acceleration trigger condition detected; Multiple WLAN networks were detected in the environment, wherein the communication frequency bands of the multiple WLAN networks include three frequency bands; From the plurality of WLAN networks, determine the candidate network combination that satisfies the target frequency band combination; Corresponding to the candidate network combinations, including a first type of network combination and a second type of network combination, the current network environment is obtained; wherein, the first type of network combination is where the frequency band corresponding to the first network interface is different from the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface is the same as the frequency band corresponding to the first network interface or the second network interface; the second type of network combination is where the frequency band corresponding to the first network interface, the frequency band corresponding to the second network interface, and the frequency band corresponding to the third network interface are different. When the network environment is a rate-limited environment, the first type of network combination is used as the second target network combination; when the network environment is an unrate-limited environment, the second type of network combination is used as the second target network combination. There are multiple corresponding second target network combinations. Based on the network selection scores of multiple second target network combinations, a first target network combination is selected from the multiple second target network combinations; or, There is one corresponding to the second target network combination, and the second target network combination is used as the first target network combination; Based on the first target network combination, control the first network interface, the second network interface and the third network interface to establish a WLAN network connection.
25. The method according to claim 24, characterized in that, The methods for determining that the network environment is a rate-limited environment include: When it is determined that the location of the electronic device is within the geographical range corresponding to the preset speed-limited environment, and / or it is determined that the first WLAN network is a network that requires login authentication, then the network environment is determined to be a speed-limited environment.
26. An electronic device, characterized in that, include: One or more processors; One or more memories; the one or more memories storing one or more programs, which, when executed by the one or more processors, cause the electronic device to perform the communication method of any one of claims 1 to 25.
27. A computer-readable medium, characterized in that, The readable medium stores instructions that, when executed on a computer, cause the computer to perform the communication method according to any one of claims 1 to 25.