WO2015131439A1 - Wireless connection management method, device, terminal and computer storage medium - Google Patents

Wireless connection management method, device, terminal and computer storage medium Download PDF

Info

Publication number
WO2015131439A1
WO2015131439A1 PCT/CN2014/076834 CN2014076834W WO2015131439A1 WO 2015131439 A1 WO2015131439 A1 WO 2015131439A1 CN 2014076834 W CN2014076834 W CN 2014076834W WO 2015131439 A1 WO2015131439 A1 WO 2015131439A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless connection
ratio
priority
wireless
access
Prior art date
Application number
PCT/CN2014/076834
Other languages
French (fr)
Chinese (zh)
Inventor
李凯
李川
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131439A1 publication Critical patent/WO2015131439A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/09Management thereof
    • H04W28/0958Management thereof based on metrics or performance parameters

Definitions

  • the present invention relates to communication technologies, and in particular, to a wireless connection management method, apparatus, terminal, and computer storage medium. Background technique
  • WiFi Wireless Fidelity
  • Bluetooth For access via a wireless network, the terminal can access the network by accessing a wireless network base station, such as a Global System for Mobile Communications (GSM) base station, a code division multiple access (CDMA) code division multiple access base station. Wideband Code Division Multiple Access (WCDMA) base station, Long Term Evolution (LTE) base station, etc.
  • GSM Global System for Mobile Communications
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • WiFi hotspot For accessing the network via Bluetooth, the terminal can access the network by accessing the Bluetooth hotspot.
  • WiFi hotspots and Bluetooth hotspots are also known as access points (APs, Access Point).
  • the related technology selects the way to access the network by:
  • the data service on the terminal tries to access the network using the WiFi connection and the Bluetooth connection as much as possible, thereby avoiding the use of the wireless network to access the network, thereby saving money;
  • Hotspots such as ChinaNet, ChinaNet (CW, ChinaNet-HomeCW) established by China Telecom, the above-mentioned WiFi hotspots are charged according to the access duration; and, in the public area where free WiFi hotspot service is provided, the user prefers the terminal to pass Free access points such as free WiFi hotspots access the network, resulting in high load on the access point, unstable network connection, and slow network access, which seriously affects the user experience.
  • the embodiments of the present invention provide a method, a device, a terminal, and a computer storage medium for wireless connection management, which can solve the problem that the load of the access point is unbalanced when the terminal accesses the network through the access point.
  • the embodiment of the invention provides a wireless connection management method, including:
  • the wireless connection is probed to obtain an average loopback time of each wireless connection in the wireless connection;
  • the wireless connection used by the access network is selected among the wireless connections supporting the network access.
  • the embodiment of the invention further provides a wireless connection management device, including:
  • a determining unit configured to determine the number of wireless connections supporting network access
  • a detecting unit configured to: when the number of wireless connections supporting network access is greater than 1, detect the wireless connection, obtain an average return time of each wireless connection in the wireless connection; and select a unit, configured according to the wireless The average loopback time of the connection, and the preset conditions, select the wireless connection used by the access network among the wireless connections that support network access.
  • the embodiment of the invention further provides a terminal, including the wireless connection management device described above.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the wireless connection management method described above.
  • the wireless connection access network is selected based on the average return time of the wireless connection and the preset condition; the fluctuation of the average return time of the same wireless connection can reflect the load of the corresponding access point, and the average of the same wireless connection
  • the fluctuation of the loopback time is large, the wireless connection access network is avoided, and the technical effect of load balancing of the access point is achieved, and the user can enjoy a good network access experience.
  • FIG. 1 is a schematic flowchart 1 of a method for implementing a wireless connection management method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram 1 of a wireless management device according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram 2 of a wireless management apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing a setting operation of a terminal provided with a wireless connection management apparatus according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of an implementation flow of a wireless connection management method according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of an implementation process of a wireless connection management method according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of an implementation of detecting a wireless connection quality according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of an implementation flow of a wireless connection management method according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of an implementation flow of a wireless connection management method according to an embodiment of the present invention
  • FIG. 10 is a schematic diagram of wireless connection management according to an embodiment of the present invention
  • FIG. 10 is a schematic diagram of wireless connection management according to an embodiment of the present invention
  • FIG. 11 is a schematic flowchart of an implementation flow of a wireless connection management method according to an embodiment of the present invention
  • FIG. 12 is a schematic flowchart of an implementation process of a wireless connection management method according to an embodiment of the present invention
  • FIG. Schematic diagram 3 of the wireless management device
  • FIG. 14 is a schematic structural diagram 4 of a wireless management apparatus according to an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic flowchart 1 of an implementation process of a wireless connection management method according to an embodiment of the present invention
  • Step S101 Determine the number of wireless connections that support network access.
  • the terminal determines through wireless search that the number of wireless connections supporting network access can be determined.
  • Step S102 When the number of the wireless connections is greater than 1, respectively, detecting the quality of the wireless connection, and obtaining an average return time of each wireless connection in the wireless connection.
  • the detecting the quality of the wireless connection, and obtaining an average return time of the wireless connection includes: transmitting, by using the wireless connection, an Internet Message Control Protocol (ICMP) multiple times. An echo request message; calculating an average loopback time of the wireless connection by the received ICMP echo reply message.
  • ICMP Internet Message Control Protocol
  • the terminal may send a ping packet to the network multiple times through the wireless connection, and calculate an average return time of the wireless connection by receiving the time of responding to the ping packet and the time of sending the ping packet.
  • Step S103 Select, according to the obtained wireless connection quality information and a preset condition, a wireless connection used by the access network in the wireless connection.
  • the preset condition includes: a user preference, the user preference includes a speed priority and a fee priority; the preset condition further includes a wireless connection prioritization, and an example of the wireless connection prioritization is: WiFi connection>Bluetooth connection> The wireless network connection, that is, the WiFi connection has the highest priority, and the wireless network connection has the lowest priority.
  • the wireless connection supporting network access includes a first wireless connection and a second wireless connection
  • the wireless connection used by the access network is selected, including: when the first ratio is greater than the first preset threshold, selecting the second wireless connection as a wireless connection used by the access network;
  • the first wireless connection is selected as a wireless connection used by the access network
  • the first preset threshold is greater than 1, the first ratio is a ratio of an average return time of the first wireless connection to the second wireless connection, and in the wireless connection prioritization, the first The priority of the wireless connection is higher than the priority of the second wireless connection;
  • the first ratio is greater than the first preset threshold, indicating that the average return time of the first wireless connection is much larger than the average return time of the second wireless connection, that is, the access point load corresponding to the first wireless connection Higher, at this time, selecting the second wireless connection as the wireless connection used by the access network, and balancing the load of the first wireless connection corresponding access point and the second wireless connection corresponding access point; when the first ratio is smaller than the first
  • the threshold is preset, the difference between the average return time of the first wireless connection and the average return time of the second wireless connection is not large, that is, the first wireless connection corresponding access point is connected with the second wireless connection.
  • the load at the ingress is relatively balanced, so the first wireless connection with the highest priority is selected as the wireless connection used by the access network.
  • the method further includes: determining that the second ratio is smaller than the first preset threshold, the foregoing, before the selecting the first wireless connection as the wireless connection used by the access network, The ratio is a ratio of an average return time of the first wireless connection to the third wireless connection;
  • the method further includes: selecting the third wireless connection as a wireless connection used by the access network;
  • the method further includes:
  • the third ratio is smaller than the first preset threshold, and the third ratio is a ratio of an average return time of the second wireless connection to the third wireless connection;
  • the method further comprises: selecting the third wireless connection as a wireless connection used by the access network.
  • the second ratio when the second ratio is smaller than the first preset threshold, it indicates that the average return time of the second wireless connection is not much different from the average sending time of the third wireless connection, that is, the second wireless connection corresponds to the access.
  • the load of the point is not much different from the load of the access point corresponding to the third wireless connection.
  • the second wireless connection with a relatively higher priority is selected as the wireless connection used by the access network; when the second ratio is greater than the first A preset threshold value indicating the average loopback of the second wireless connection.
  • the time difference between the time and the third wireless connection is larger, that is, the load of the second wireless connection corresponding access point is much larger than the load of the third wireless connection corresponding access point, and in order to balance the load, the priority is relatively low.
  • the third wireless connection is used as a wireless connection used by the access network; when the third ratio is smaller than the first preset threshold, it indicates that the average return time of the first wireless connection is not much different from the average sending time of the third wireless connection. That is, the load of the first wireless connection corresponding access point is not much different from the load of the third wireless connection corresponding access point. At this time, the first wireless connection with a relatively high priority is selected as the wireless connection used by the access network.
  • the third ratio is greater than the first preset threshold, indicating that the average return time of the first wireless connection is different from the average sending time of the third wireless connection, that is, the load of the first wireless connection corresponding to the access point is large
  • the third wireless connection corresponds to the load of the access point, and in order to balance the load, the third wireless connection with a relatively lower priority is selected as the access network.
  • the type of the wireless connection that supports the terminal to perform network access may be more than three types.
  • the wireless connection access network may be selected by using the technical solution described in the embodiment of the present invention, and correspondingly, the wireless Connection prioritization also needs to be set according to the type of wireless connection in the actual application.
  • the wireless connection supporting network access includes a fourth wireless connection and a fifth wireless connection
  • the wireless connection used by the access network is selected, including: when the fourth ratio is greater than a second preset threshold, selecting the fifth wireless connection as a wireless connection used by the access network;
  • the fourth wireless connection is selected as a wireless connection used by the access network
  • the second preset threshold is greater than 1, and the fourth ratio is a ratio of an average return time of the fourth wireless connection to the fifth wireless connection, and in the wireless connection prioritization, the fourth The priority of the wireless connection is higher than the priority of the fifth wireless connection.
  • the wireless connection supporting network access further includes a sixth wireless connection, and in the wireless connection prioritization, the priority of the fifth wireless connection is higher than the priority of the sixth wireless connection Level,
  • the method further includes: determining that the fifth ratio is smaller than the second preset threshold, and the fifth ratio is the fourth wireless a ratio of an average return time of the connection to the sixth wireless connection;
  • the method further includes: selecting the sixth wireless connection as a wireless connection used by the access network;
  • the method further includes:
  • the sixth ratio is smaller than the second preset threshold, and the sixth ratio is a ratio of an average return time of the fifth wireless connection to the sixth wireless connection;
  • the method further comprises: selecting the sixth wireless connection as a wireless connection used by the access network.
  • the first preset threshold is different from the second preset threshold; for different user preferences (including speed priority and cost priority), the wireless connection prioritization may use a uniform ordering, or Please use a different sort.
  • the terminal user often wants the terminal not to use a certain wireless connection, and the preset condition further includes the excluded connection, and the excluded connection is the lowest, considering the different usage habits and requirements of different end users.
  • Priority level wireless connection the excluded connection can be set by the terminal according to the operation of the terminal user;
  • the method further includes: updating the wireless connection prioritization according to the excluded connection ; to select according to the updated wireless connection priority The wireless connection used to access the network.
  • FIG. 2 is a schematic structural diagram 1 of a wireless connection management apparatus according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
  • the determining unit 201 is configured to determine the number of wireless connections that support network access.
  • the detecting unit 202 is configured to detect the wireless connection when the number of wireless connections supporting the network access is greater than one, to obtain the wireless connection. Average return time for each wireless connection;
  • the selecting unit 203 is configured to select a wireless connection used by the access network in the wireless connection supporting the network access according to the average return time of the wireless connection and the preset condition.
  • the detecting unit 202 is further configured to send an ICMP echo request message multiple times through the wireless connection; and calculate an average return time of the wireless connection by using the received ICMP echo reply message.
  • the preset condition includes: a user preference, where the user preference includes a speed priority and a fee priority; and the preset condition further includes a wireless connection priority ordering.
  • the selection unit 203 includes a first selection subunit (not shown in FIG. 2) configured to: when the wireless connection supporting network access includes a first wireless connection and a second wireless connection, the user preference is speed priority And selecting, by the second wireless connection, a wireless connection used by the access network when the first ratio is greater than the first preset threshold; when the first ratio is less than the first preset threshold, selecting the first a wireless connection is used as a wireless connection used by the access network; wherein the first preset threshold is greater than 1, the first ratio is a ratio of an average return time of the first wireless connection to the second wireless connection In the wireless connection prioritization, the priority of the first wireless connection is higher than the priority of the second wireless connection.
  • a first selection subunit (not shown in FIG. 2) configured to: when the wireless connection supporting network access includes a first wireless connection and a second wireless connection, the user preference is speed priority And selecting, by the second wireless connection, a wireless connection used by the access network when the first ratio is greater than the first preset threshold; when the first ratio is less than the
  • the selection unit 203 further includes a second determining subunit, a third selecting subunit, a fourth determining subunit, and a fifth selecting subunit (not shown in FIG. 2);
  • the second determining subunit configured to include a third when the wireless connection supporting network access further a wireless connection, before the first selection subunit selects the first wireless connection as a wireless connection used by the access network, determining that the second ratio is smaller than the first preset threshold, and the second ratio is the a ratio of an average return time of the first wireless connection to the third wireless connection, in the wireless connection prioritization, a priority of the second wireless connection is higher than a priority of the third wireless connection;
  • the third selection subunit is configured to select the third wireless connection as a wireless connection used by the access network when the second ratio is greater than the first preset threshold;
  • the fourth determining subunit is configured to determine, before the first selecting subunit selects the second wireless connection as the wireless connection used by the access network, that the third ratio is smaller than the first preset threshold,
  • the third ratio is a ratio of an average return time of the second wireless connection to the third wireless connection;
  • the fifth selection subunit is configured to select the third wireless connection as a wireless connection used by the access network when the third ratio is greater than the first preset threshold.
  • the wireless connection management device further includes a sixth selection subunit (not shown in FIG. 2) configured to include a fourth wireless connection and a fifth wireless connection when the wireless connection supporting the network access, and when the user The preference is the cost priority, and when the fourth ratio is greater than the second preset threshold, the fifth wireless connection is selected as the wireless connection used by the access network; when the fourth ratio is less than the second preset threshold, Selecting the fourth wireless connection as a wireless connection used by the access network;
  • the second preset threshold is greater than 1, and the fourth ratio is a ratio of an average return time of the fourth wireless connection to the fifth wireless connection, and in the wireless connection prioritization, the fourth The priority of the wireless connection is higher than the priority of the fifth wireless connection.
  • the wireless connection management apparatus further includes a seventh determining subunit, an eighth selecting subunit, a ninth determining subunit, and a tenth selecting subunit (not shown in FIG. 2);
  • the seventh determining subunit configured to include a sixth when the wireless connection supporting network access further a wireless connection, before the sixth selection subunit selects the fourth wireless connection as a wireless connection used by the access network, determining that the fifth ratio is smaller than the second preset threshold, and the fifth ratio is the a ratio of a fourth wireless connection to an average return time of the sixth wireless connection, in the wireless connection prioritization, a priority of the fifth wireless connection is higher than a priority of the sixth wireless connection;
  • the eighth selection subunit is configured to: when the fifth ratio is greater than the second preset threshold, select the sixth wireless connection as a wireless connection used by the access network;
  • the ninth determining subunit is configured to determine, before the sixth selecting subunit selects the fifth wireless connection as the wireless connection used by the access network, that the sixth ratio is smaller than the second preset threshold,
  • the sixth ratio is a ratio of an average return time of the fifth wireless connection to the sixth wireless connection;
  • the tenth selection subunit is configured to select the sixth wireless connection as a wireless connection used by the access network when the sixth ratio is greater than the second preset threshold.
  • the wireless connection management device further includes:
  • the updating unit 204 is configured to: when the preset condition further includes the excluded connection, update the wireless connection priority according to the excluded connection before the selecting unit 203 selects the wireless connection used by the access network Sort; the excluded connection is the lowest priority wireless connection.
  • the determining unit 201, the selecting unit 203, and the updating unit 204 may be implemented by a central processing unit (CPU) in a wireless connection management device, a digital signal processor (DSP), or a field programmable device.
  • the gate unit array (FPGA) is implemented by the FPGA (Field Programmable Gate Array);
  • the detection unit 202 can be implemented by a microprocessor in the wireless connection management device that supports a corresponding wireless connection communication protocol such as a WiFi protocol or a Bluetooth protocol.
  • FIG. 3 is a second schematic structural diagram of a wireless connection management apparatus according to an embodiment of the present invention.
  • the configuration includes a read configuration unit 301, a load detection unit 302, and a load adjustment unit 303.
  • the read configuration unit 301 is configured to read various options configured by the user, including a preset load balancing function that is turned on or off, and a preset condition.
  • the terminal can perform the wireless connection management method shown in Figure 1 to implement the technical effect of load balancing of the access point.
  • Preset conditions include: wireless connection prioritization, user preferences, and excluded connections; user preferences include speed priority and cost priority; for multiple wireless connections that the terminal can use, if there is a wireless connection for charging (eg some A WiFi hotspot and a Bluetooth hotspot that can be used for a fee;), the terminal can add a charged wireless connection to the excluded connection according to the user's setting operation.
  • the load detecting unit 302 is configured to determine the number of wireless connections that support network access; when the number of wireless connections supporting network access is greater than 1, respectively, the quality of the wireless connection is detected, and the wireless connection is obtained. Average return time for each wireless connection;
  • the load adjustment unit 303 is configured to select a wireless connection used by the access network in the wireless connection supporting the network access according to the average return time of the wireless connection and the preset condition.
  • the load detecting unit 302 is further configured to send an ICMP echo request message multiple times by using the wireless connection; and calculate an average return time of the wireless connection by using the received ICMP echo reply message.
  • the read configuration unit 301 and the load adjustment unit 303 may be implemented by a CPU, a DSP, or an FPGA in the wireless connection management device.
  • the load detection unit 302 may support a corresponding wireless connection communication protocol in the wireless connection management device. WiFi protocol, microprocessor implementation of Bluetooth protocol;
  • FIG. 4 is a schematic diagram showing the setting operation of the terminal provided with the wireless connection management device according to the embodiment of the present invention.
  • the terminal screen displays whether the load is turned on.
  • the information of the equalization function, the excluded connections, and the user preferences are set by the end user, and the user preferences include speed priority and cost priority;
  • the hotspot (corresponding to the wireless connection) is added to the excluded connection, and the hotspot added to the excluded connection can also be deleted.
  • the terminal when the terminal is provided with the load balancing device according to the embodiment of the present invention, if the terminal does not enable the load balancing function, the wireless connection access network is selected according to the related technical solution; if the terminal has the load balancing function enabled, Can allow multiple wireless connections to coexist, such as terminal setup
  • the wireless network connection can also be activated.
  • FIG. 5 is a schematic flowchart 2 of an implementation process of a wireless connection management method according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
  • Step 501 The terminal reads the relevant configuration in the settings.
  • Step 502 Detect the quality of the wireless connection.
  • the average return time of the wireless connection supporting network access is obtained by sending an ICMP message to the network.
  • Step 503 Determine a wireless connection used by the access network.
  • the wireless connection used by the access network is determined according to preset conditions.
  • Step 504 The terminal accesses the network by using the determined wireless connection.
  • FIG. 6 is a schematic flowchart 3 of an implementation process of a wireless connection management method according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
  • Step 601 The terminal arrives at a newly established wireless connection or timed.
  • the terminal performs step 602 when a new wireless connection is established, or after the scheduled time has elapsed.
  • Step 602 the configuration information is read to detect whether the load balancing function is enabled. If yes, step 604 is performed; otherwise, step 603 is performed.
  • Step 604 Determine whether the detected number of wireless connections supporting network access is greater than 1. If greater than 1, perform step 606; otherwise, perform step 605.
  • Step 605 Access the network using the detected wireless connection.
  • Step 606 Detect the average loopback time of each wireless connection.
  • Step 607 Select a wireless connection used by the access network according to the average return time of the wireless connection and the preset condition.
  • Step 608 accessing the network using the determined wireless connection.
  • FIG. 7 is a schematic diagram of realizing the quality of detecting a wireless connection according to an embodiment of the present invention.
  • the state of the wireless connection such as the data transmission speed
  • the network condition occurs after a period of time.
  • To detect the quality of the wireless connection for example, when detecting the quality of the wireless connection 1 in each detection period, send it to the URL 1 to the URL 3 respectively.
  • the ICMP echo request message calculates the average loopback time of the wireless connection 1 according to the receiving time of the ICMP echo reply message and the sending time of the ICMP echo request message. It should also be noted that the probe period is 10 in each detection period.
  • the terminal user is detecting the quality of the wireless connection 1 when performing network-related operations; if there is no data traffic within 10 minutes, the wireless connection may not be The quality of the connection 1 is detected until the wireless connection 1 is found According to the flow further probing.
  • the average sending time of the wireless connection reflects the load of the corresponding access point of the wireless connection. Therefore, the average sending time of detecting the wireless connection is equivalent to detecting the load of the corresponding access point.
  • Sending an ICMP echo request message to a specific network determining the loopback time according to the time of receiving the ICMP echo reply message and the time of sending the ICMP echo request message.
  • the terminal sends an ICMP echo request message the domain name is generally parsed first. , get the Internet Protocol (IP) address, and then ing the IP address. For example, there are 10 URLs in the list below.
  • IP Internet Protocol
  • the terminal can parse the URL in the above list, obtain the corresponding IP address and ping the operation. Each IP address is pinged 4 times, and a total of 40 sending times are obtained. The average value of the 40 sending times is taken as Average return time; It should be noted that when the ICMP echo reply message is not received after the ping operation times out, the loopback time can take the timeout period of the ping operation (4 seconds).
  • Each wireless connection of the network supporting the terminal access has different priorities, and the following wireless connection priority ordering is illustrated in FIG. 8 to FIG. 11:
  • the terminal when the user sets the excluded wireless connection in the terminal, the terminal also needs to update the wireless connection priority ordering, that is, the priority of the set excluded wireless connection is set to the lowest, for example, the current WiFi connection is set to be excluded.
  • the update wireless connection prioritization becomes: Bluetooth connection > Wireless network connection > WiFi connection; In this way, according to user preferences such as speed priority, cost priority, combined with wireless connection prioritization, determine the access network Use the wireless connection.
  • 8 is a schematic diagram 4 of the implementation process of the wireless connection management method in the embodiment of the present invention. As shown in FIG. 8, the method includes the following steps:
  • Step 801 detecting the quality of the wireless connection 1 and the wireless connection 2, and obtaining the average delivery time of the wireless connection and the wireless connection 2.
  • the terminal preferentially uses the wireless connection with the highest priority, but when the wireless connection with high priority has a large load, the terminal selects a wireless connection with a relatively lower priority to balance the access point load; According to the processing method shown in FIG. 7, the average transmission time T (h_pri) of the wireless connection 1 and the average return time T (l_pri) of the wireless connection 2 can be calculated.
  • step 802 it is determined whether the ratio of the average transmission time of the wireless connection 1 and the wireless connection 2 is greater than the first preset threshold. If yes, step 803 is performed; otherwise, step 804 is performed.
  • the first preset threshold value is 1.2, and the average loopback time of the wireless connection 1 is divided by the average loopback time of the wireless connection 2 to obtain a ratio. If the obtained ratio is greater than 1.2, step 803 is performed; otherwise, step 804 is performed.
  • Step 803 selecting the wireless connection 2 as the wireless connection used by the access network.
  • Step 804 selecting the wireless connection 1 as the wireless connection used by the access network.
  • the wireless connection 1 is a WiFi connection and the wireless connection 2 is a wireless network connection
  • the average connection time of the wireless network connection is 500 milliseconds (ms)
  • the average return time of the WiFi connection is greater than 600 ms, it indicates that the WiFi access point is at this time.
  • the wireless network connection is used to access the network to balance the load of the WiFi access point and the wireless network access point; if the average return time of the WiFi connection is less than 600 ms, it indicates that When the load of the WiFi access point is not high, the WiFi connection is preferentially used to access the network; the processing for the wireless connection 1 is similar to the Bluetooth connection, if the average return time of the Bluetooth connection is greater than 600 ms, indicating At this time, the load of the Bluetooth access point is large, resulting in a low data transmission speed of the Bluetooth connection, and then the wireless network connection is used to access the network to balance the load of the Bluetooth access point and the wireless network access point; if the average of the Bluetooth connection The loopback time d is 600ms, and the Bluetooth connection is used to access the network.
  • FIG. 9 is a schematic flowchart of the implementation process of the wireless connection management method in the embodiment of the present invention. As shown in FIG. 9, the method includes the following steps:
  • step 901 the quality of the wireless connection 1 and the wireless connection 2 are detected, and the average delivery time of the wireless connection 1 and the wireless connection 2 is obtained.
  • the terminal preferentially uses the highest priority wireless connection 1, and when the difference is large, the terminal preferentially uses the wireless connection 2 To balance the load of the access point and ensure the user experience; according to the processing method shown in Figure 7, the average transmission time T ( h_pri ) of the wireless connection 1 and the average return time T ( l_pri ) of the wireless connection 2 can be calculated.
  • Step 902 The ratio of the average transmission time of the wireless connection 1 and the wireless connection 2 is greater than the second preset threshold. If yes, step 903 is performed; otherwise, step 904 is performed.
  • Step 903 selecting the wireless connection 2 as the wireless connection used by the access network.
  • Step 904 selecting the wireless connection 1 as the wireless connection used by the access network.
  • the ratio of the average loopback time T ( h_pri ) of the wireless connection 1 divided by the average loopback time T ( l_pri ) of the low priority wireless connection 2 is obtained, and if the obtained ratio is less than the second preset threshold 3, the wireless connection 2
  • the wireless connection 1 is a WiFi connection and the wireless connection 2 is a wireless network connection
  • the average return time of the wireless network connection is 300 ms
  • the wireless network connection is used to access the network to balance the load of the WiFi access point and the wireless network access point
  • the average loopback time of the connection is less than 900ms, indicating that the load of the WiFi access point is not high at this time, then the WiFi connection is used to access the network
  • the processing for the wireless connection 1 is similar to the Bluetooth connection, if the average return time of the Bluetooth connection is greater than 900ms, indicating At this time, the load of the Bluetooth connection corresponding to the access point is large, and the data transmission speed of the Bluetooth connection is low, and the wireless network connection is used to access the network to balance the load of the Bluetooth access point and the wireless network access point; if the Bluetooth connection
  • FIG. 10 is an implementation of the wireless connection management method according to the embodiment of the present invention.
  • the schematic diagram 6 of the process, as shown in FIG. 10, includes the following steps: Step 1001: Detect a WiFi connection, a Bluetooth connection, and a wireless network connection to obtain an average delivery time.
  • T WiFi
  • T bluetooth
  • T the average loopback time of the Bluetooth connection
  • T(wire) the average loopback time of the wireless network connection.
  • step 1002 it is determined whether the ratio T(WiFi) /T (bluetooth) of the WiFi connection and the average return time of the Bluetooth connection is less than the first preset threshold 1.2. If not, step 1003 is performed; otherwise, step 1006 is performed.
  • step 1003 it is determined whether the ratio T (WiFi) / T (wire) of the WiFi connection and the average return time of the wireless network connection is less than 1.2. If not, step 1004 is performed; otherwise, step 1005 is performed.
  • Step 1004 Select a WiFi connection to access the network.
  • Step 1005 Select a wireless network connection to access the network.
  • Step 1006 determining a ratio T of the average loopback time of the Bluetooth connection and the wireless network connection. (bluetooth) /T (wirea) is less than the first preset threshold of 1.2, if it is less, step 1007 is performed; otherwise, step 1008 is performed.
  • Step 1007 select a Bluetooth connection to access the network.
  • Step 1008 Select a wireless network connection to access the network.
  • FIG. 11 is an implementation of the wireless connection management method according to the embodiment of the present invention.
  • the flow diagram VII includes the following steps: Step 1101: Detect the average sending time of the WiFi connection, the Bluetooth connection, and the wireless network connection.
  • T (WiFi) denote the average loopback time of the WiFi connection
  • T (bluetooth) denotes the average loopback time of the Bluetooth connection
  • T(wire) denotes the average loopback time of the wireless network connection.
  • Step 1102 determining a ratio of the average return time of the WiFi connection to the Bluetooth connection T (WiFi)
  • step 1106 is performed.
  • Step 1103 Determine whether the ratio T (WiFi) / T ( wireless ) of the WiFi connection and the average return time of the wireless network connection is less than 3, if not, execute step 1104; otherwise, go to step 1105.
  • Step 1104 selecting a WiFi connection as the wireless connection used by the network access.
  • Step 1105 Select a wireless network connection as the wireless connection used by the network access.
  • Step 1106 Determine whether the ratio T (bluetooth ) /T ( wireless ) of the average connection time of the Bluetooth connection and the wireless network connection is less than the second preset threshold 3 . If not, execute step 1107; otherwise, perform step 1108 .
  • Step 1107 Select a Bluetooth connection as the wireless connection used for network access.
  • Step 1108 Select a wireless network connection as the wireless connection used for network access.
  • the embodiment of the invention further describes a terminal, including the wireless connection management device shown in FIG. 2 or FIG.
  • the embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute any one of FIG. 1, FIG. 5, FIG. 6, FIG. 8 to FIG.
  • the wireless connection management method shown in the drawing is not limited to any one of FIG. 1, FIG. 5, FIG. 6, FIG. 8 to FIG.
  • the embodiment of the invention further describes a wireless connection management method, as shown in FIG. 12, including the following steps:
  • Step 1201 Determine the number of wireless connections that the terminal can access
  • the number of wireless connections that the mobile terminal can make is determined by wireless search.
  • Step 1202 When the number of the wireless connections is greater than 1, respectively, the quality of each wireless connection is detected to obtain the quality of each wireless connection.
  • the detecting the quality of each wireless connection separately, and obtaining the quality of each wireless connection comprises: sending, by each wireless connection, a ping packet to multiple networks; sending the wireless connection by receiving the wireless connection
  • the average loopback time of each wireless connection is calculated in response to the plurality of ping packets; and the quality of each wireless connection is obtained using the calculated average loopback time of each wireless connection.
  • Step 1203 Select a wireless connection to access according to the obtained wireless connection quality and preset conditions.
  • the preset condition includes: a connection priority, a user preference, and an excluded connection; wherein, the connection priority refers to a priority level of each wireless connection, and the user preference includes a speed priority and a fee priority,
  • the excluded connection refers to the lowest priority level among the connection priorities. That is, based on the connection priority set by the user, the user's preference, the excluded connection, and the quality of each of the wireless connections, a wireless connection is selected and data communication is performed in accordance with the selected wireless connection.
  • selecting a wireless connection for accessing comprises: respectively calculating the average return time difference between the two priority levels Multiple, get multiples of one or more wireless connections
  • the first comparison result is obtained by sequentially comparing the multiplied value of the obtained one or more wireless connections with the preset speed threshold according to the priority level from high to low; according to the first comparison result, selecting one The wireless connection is connected. For example, if the multiple value is greater than the preset speed threshold, select a low priority wireless connection for access; if the multiple value is less than the preset speed threshold, select a high priority wireless Connect for access.
  • selecting a wireless connection for accessing includes: calculating the multiple of the average return time difference of the two priority levels respectively, a multiple value of one or more wireless connections; in accordance with a priority level from high to low, sequentially comparing the obtained multiple value of one or more wireless connections with a preset cost threshold to obtain a second comparison result; Referring to the second comparison result, a wireless connection is selected for access. For example, if the multiple value is greater than the preset cost threshold, select a low priority wireless connection for access; if the multiple value is less than the preset cost threshold, select a high priority wireless connection. Access is made.
  • the mobile terminal performs data communication using the determined wireless connection.
  • the embodiment of the present invention further describes a wireless connection management device.
  • the method includes: determining a wireless connection quantity module 1301, configured to determine a number of wireless connections that the terminal can access; obtaining a wireless connection quality module 1302, configured to When the number of the wireless connections is greater than 1, the quality of each wireless connection is separately detected to obtain the quality of each wireless connection; the wireless connection access module 1303 is configured to determine the quality and preset of each wireless connection according to the obtained wireless connection. Conditions select a wireless connection for access.
  • the preset condition includes: a connection priority, a user preference, and an excluded connection; wherein, the connection priority refers to a priority level of each wireless connection, and the user preference includes a speed priority and a fee priority, where The excluded connection refers to the lowest priority level among the connection priorities.
  • the obtaining the wireless connection quality module 1302 includes: sending a ping packet unit, Setting the ping packet to the plurality of networks multiple times for each wireless connection; calculating an average loopback time unit, configured to calculate the each wireless by receiving a response of multiple ping packets sent by each wireless connection The average loopback time of the connection; the wireless connection quality unit is configured to use the calculated average loopback time of each wireless connection to obtain the quality of each wireless connection.
  • the wireless connection access module 1303 includes a speed priority access list and a fee priority access list, and the speed priority access unit includes: acquiring the first subunit, configured to calculate the average return time difference of the two priority levels respectively Multiples, obtain the multiple value of one or more wireless connections; compare and select the first sub-unit, configured to sequentially change the multiplier value of the obtained one or more wireless connections according to the priority level from high to low
  • the speed threshold is compared to obtain a first comparison result, and according to the first comparison result, a wireless connection is selected for access. For example, if the multiple value is greater than the preset speed threshold, select a low priority wireless connection for access; if the multiple value is less than the preset speed threshold, select a high priority wireless Connect for access.
  • the cost preferred access unit includes: obtaining a second subunit configured to obtain a multiple of one or more wireless connections by separately calculating a multiple of the average return time difference of the two priority levels; comparing and selecting the second subunit, configuring In order to compare the multiplier values of the obtained one or more wireless connections with the preset fee thresholds according to the priority level from high to low, a second comparison result is obtained, and according to the second comparison result, one is selected.
  • the wireless connection is connected. For example, if the multiple value is greater than the preset cost threshold, select a low priority wireless connection for access; if the multiple value is less than the preset cost threshold, select a high priority wireless Connect for access.
  • the embodiment of the invention further describes a wireless connection management device.
  • the device includes a read configuration module 1401, a load detection module 1402, and a load adjustment module 1403.
  • the read configuration module 1401 is configured to read various options configured by the user, such as the user may choose to enable or disable the load balancing function, or select user preferences.
  • the user preferences include speed priority and cost priority.
  • For multiple wireless connections that exist simultaneously, the two strategies have different criteria for judgment. In real life, some WiFi hotspots and Bluetooth hotspots are charged. "Excluded connections" are provided in the configuration for users to add, and users can add these charged hotspots to the excluded connections.
  • the load detection module 1402 is configured to detect the quality of each connection; the load adjustment module 1403 is configured to determine an appropriate wireless connection for data communication according to user preferences and certain judgment strategies.
  • the wireless connection access network is selected based on the average return time of the wireless connection and the preset condition; the fluctuation of the average return time of the same wireless connection can reflect the load of the corresponding access point, and the average of the same wireless connection
  • the fluctuation of the loopback time is large, the wireless connection access network is avoided, and the effect of the load balancing technology of the access point is realized, and the user can enjoy a good network access experience.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that stored in the computer readable memory
  • the instructions in the reservoir produce an article of manufacture comprising an instruction device that implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps that are configured to implement the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
  • the wireless connection access network is selected based on the average return time of the wireless connection and the preset condition; the fluctuation of the average return time of the same wireless connection can reflect the load of the corresponding access point, and the average of the same wireless connection
  • the fluctuation of the loopback time is large, the wireless connection access network is avoided, and the technical effect of load balancing of the access point is achieved, and the user can enjoy a good network access experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A wireless connection management method, device, terminal and a computer storage medium are disclosed in the embodiments of the present invention. The method comprises: determining the number of wireless connections supporting network access; when the number of wireless connections supporting network access is greater than 1, detecting the wireless connections and obtaining average loopback time of each wireless connection of the wireless connections; selecting a wireless connection to be used for accessing a network from the wireless connections supporting network access on the basis of the average loopback time and a predetermined condition of the wireless connections.

Description

无线连接管理方法、 装置、 终端及计算机存储介质 技术领域  Wireless connection management method, device, terminal and computer storage medium
本发明涉及通信技术, 特别涉及一种无线连接管理方法、 装置、 终端 及计算机存储介质。 背景技术  The present invention relates to communication technologies, and in particular, to a wireless connection management method, apparatus, terminal, and computer storage medium. Background technique
终端访问网络的方式有^艮多种, 比如通过无线网络、 无线相容性认证 There are many ways for a terminal to access the network, such as wireless network and wireless compatibility authentication.
( WiFi, Wireless Fidelity )或蓝牙访问。 对于通过无线网络访问的方式, 终 端可通过接入无线网络基站的方式访问网络, 比如全球移动通信系统 ( GSM , Global System For Mobile Communications ) 基站, 码分多址 ( CDMA, Code Division Multiple Access )基站、 宽频码分多址( WCDMA, Wide band Code Division Multiple Access )基站、 长期演进技术 ( LTE, Long Term Evolution )基站等; 对于通过 WiFi访问网络的方式, 终端可通过接入 WiFi热点的方式访问网络; 对于通过蓝牙访问网络的方式, 终端可通过接 入蓝牙热点访问网络。 WiFi 热点和蓝牙热点也称为接入点 (AP, Access Point )。 (WiFi, Wireless Fidelity) or Bluetooth access. For access via a wireless network, the terminal can access the network by accessing a wireless network base station, such as a Global System for Mobile Communications (GSM) base station, a code division multiple access (CDMA) code division multiple access base station. Wideband Code Division Multiple Access (WCDMA) base station, Long Term Evolution (LTE) base station, etc. For accessing the network through WiFi, the terminal can access the network by accessing the WiFi hotspot. For accessing the network via Bluetooth, the terminal can access the network by accessing the Bluetooth hotspot. WiFi hotspots and Bluetooth hotspots are also known as access points (APs, Access Point).
在有多种接入方式共存的情况下, 相关技术通过如下方式选择接入网 络的方式:  In the case where multiple access modes coexist, the related technology selects the way to access the network by:
在存在可利用的 WiFi连接和蓝牙连接的情况下, 终端上的数据业务尽 量使用 WiFi连接和蓝牙连接接入网络, 避免使用通过无线网络方式访问网 络, 以节省费用; 但当前也存在收费的 WiFi热点, 比如中国电信建立的 3 个特定 WiFi热点 (ChinaNet, ChinaNet— CW, ChinaNet— HomeCW ), 上述 WiFi热点按接入时长收费; 并且, 在提供免费 WiFi热点服务的公众区域, 由于用户首选终端通过免费 WiFi热点等免费接入点访问网络, 导致接入点 负载很高, 网络连接不稳定, 网络访问速度慢, 严重影响用户体验。 发明内容 In the case where there is an available WiFi connection and a Bluetooth connection, the data service on the terminal tries to access the network using the WiFi connection and the Bluetooth connection as much as possible, thereby avoiding the use of the wireless network to access the network, thereby saving money; Hotspots, such as ChinaNet, ChinaNet (CW, ChinaNet-HomeCW) established by China Telecom, the above-mentioned WiFi hotspots are charged according to the access duration; and, in the public area where free WiFi hotspot service is provided, the user prefers the terminal to pass Free access points such as free WiFi hotspots access the network, resulting in high load on the access point, unstable network connection, and slow network access, which seriously affects the user experience. Summary of the invention
本发明实施例提供一种无线连接管理方法、 装置、 终端及计算机存储 介质, 能解决在终端在通过接入点接入网络时导致接入点负载不均衡的问 题。  The embodiments of the present invention provide a method, a device, a terminal, and a computer storage medium for wireless connection management, which can solve the problem that the load of the access point is unbalanced when the terminal accesses the network through the access point.
本发明实施例提供一种无线连接管理方法, 包括:  The embodiment of the invention provides a wireless connection management method, including:
确定支持网络接入的无线连接的数量;  Determine the number of wireless connections that support network access;
当支持网络接入的无线连接的数量大于 1 时, 对所述无线连接进行探 测, 得到所述无线连接中每个无线连接的平均回送时间;  When the number of wireless connections supporting network access is greater than 1, the wireless connection is probed to obtain an average loopback time of each wireless connection in the wireless connection;
根据所述无线连接的平均回送时间、 以及预设条件, 在支持网络接入 的无线连接中选择接入网络所使用的无线连接。  According to the average loopback time of the wireless connection and the preset condition, the wireless connection used by the access network is selected among the wireless connections supporting the network access.
本发明实施例还提供一种无线连接管理装置, 包括:  The embodiment of the invention further provides a wireless connection management device, including:
确定单元, 配置为确定支持网络接入的无线连接的数量;  a determining unit configured to determine the number of wireless connections supporting network access;
探测单元, 配置为当支持网络接入的无线连接的数量大于 1 时, 对所 述无线连接进行探测, 得到所述无线连接中每个无线连接的平均回送时间; 选择单元, 配置根据所述无线连接的平均回送时间、 以及预设条件, 在支持网络接入的无线连接中选择接入网络所使用的无线连接。  a detecting unit configured to: when the number of wireless connections supporting network access is greater than 1, detect the wireless connection, obtain an average return time of each wireless connection in the wireless connection; and select a unit, configured according to the wireless The average loopback time of the connection, and the preset conditions, select the wireless connection used by the access network among the wireless connections that support network access.
本发明实施例还提供一种终端, 包括以上所述的无线连接管理装置。 本发明实施例还提供一种计算机存储介质, 所述计算机存储介质中存 储有计算机可执行指令, 所述计算机可执行指令用于执行以上所述的无线 连接管理方法。  The embodiment of the invention further provides a terminal, including the wireless connection management device described above. The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the wireless connection management method described above.
本发明实施例中, 基于无线连接的平均回送时间, 以及预设条件选择 无线连接接入网络; 由于同一无线连接的平均回送时间的波动能够反映相 应接入点的负载, 在同一无线连接的平均回送时间的波动较大时, 避免选 择该无线连接接入网络, 实现了接入点负载均衡的技术效果, 能够保证用 户良好的网络访问体验。 附图说明 In the embodiment of the present invention, the wireless connection access network is selected based on the average return time of the wireless connection and the preset condition; the fluctuation of the average return time of the same wireless connection can reflect the load of the corresponding access point, and the average of the same wireless connection When the fluctuation of the loopback time is large, the wireless connection access network is avoided, and the technical effect of load balancing of the access point is achieved, and the user can enjoy a good network access experience. DRAWINGS
图 1 为本发明实施例中无线连接管理方法的实现流程示意图一; 图 2为本发明实施例中无线管理装置的结构示意图一;  1 is a schematic flowchart 1 of a method for implementing a wireless connection management method according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram 1 of a wireless management device according to an embodiment of the present invention;
图 3为本发明实施例中无线管理装置的结构示意图二;  3 is a schematic structural diagram 2 of a wireless management apparatus according to an embodiment of the present invention;
图 4 为本发明实施例中设置有无线连接管理装置的终端的设置操作示 意图;  FIG. 4 is a schematic diagram showing a setting operation of a terminal provided with a wireless connection management apparatus according to an embodiment of the present invention; FIG.
图 5为本发明实施例中无线连接管理方法的实现流程示意图二; 图 6为本发明实施例中无线连接管理方法的实现流程示意图三; 图 7是本发明实施例中探测无线连接质量的实现流程示意图; 图 8为本发明实施例中无线连接管理方法的实现流程示意图四; 图 9为本发明实施例中无线连接管理方法的实现流程示意图五; 图 10为本发明实施例中无线连接管理方法的实现流程示意图六; 图 11为本发明实施例中无线连接管理方法的实现流程示意图七; 图 12为本发明实施例中无线连接管理方法的实现流程示意图八; 图 13为本发明实施例中无线管理装置的结构示意图三;  FIG. 5 is a schematic diagram of an implementation flow of a wireless connection management method according to an embodiment of the present invention; FIG. 6 is a schematic flowchart of an implementation process of a wireless connection management method according to an embodiment of the present invention; FIG. 7 is a schematic diagram of an implementation of detecting a wireless connection quality according to an embodiment of the present invention; FIG. 8 is a schematic diagram of an implementation flow of a wireless connection management method according to an embodiment of the present invention; FIG. 9 is a schematic diagram of an implementation flow of a wireless connection management method according to an embodiment of the present invention; FIG. 10 is a schematic diagram of wireless connection management according to an embodiment of the present invention; FIG. 11 is a schematic flowchart of an implementation flow of a wireless connection management method according to an embodiment of the present invention; FIG. 12 is a schematic flowchart of an implementation process of a wireless connection management method according to an embodiment of the present invention; FIG. Schematic diagram 3 of the wireless management device;
图 14为本发明实施例中无线管理装置的结构示意图四。 具体实施方式  FIG. 14 is a schematic structural diagram 4 of a wireless management apparatus according to an embodiment of the present invention. detailed description
下面结合附图和具体实施例对本发明作进一步详细说明, 应当理解, 以下所说明实施例仅用于说明和解释本发明, 并不用于限定本发明。  The present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
图 1 为本发明实施例中无线连接管理方法的实现流程示意图一, 如图 FIG. 1 is a schematic flowchart 1 of an implementation process of a wireless connection management method according to an embodiment of the present invention;
1所示, 包括以下步骤: As shown in 1, it includes the following steps:
步骤 S101 : 确定支持网络接入的无线连接的数量。  Step S101: Determine the number of wireless connections that support network access.
终端通过无线搜索确定可以确定支持网络接入的无线连接的数量。 步骤 S102: 当所述无线连接的数量大于 1时, 分别对所述无线连接的 质量进行探测, 得到所述无线连接中每个无线连接的平均回送时间。 作为一个实施方式, 所述对所述无线连接的质量进行探测, 得到所述 无线连接的平均回送时间, 包括: 通过所述无线连接多次发送因特网信报 控制协议 ( ICMP, Internet Control Message Protocol ) 回声请求消息; 通过 所接收的 ICMP回声应答消息, 计算所述无线连接的平均回送时间。 The terminal determines through wireless search that the number of wireless connections supporting network access can be determined. Step S102: When the number of the wireless connections is greater than 1, respectively, detecting the quality of the wireless connection, and obtaining an average return time of each wireless connection in the wireless connection. As an implementation manner, the detecting the quality of the wireless connection, and obtaining an average return time of the wireless connection, includes: transmitting, by using the wireless connection, an Internet Message Control Protocol (ICMP) multiple times. An echo request message; calculating an average loopback time of the wireless connection by the received ICMP echo reply message.
例如, 终端可以通过所述无线连接多次向网络发送 ping包, 通过接收 到响应 ping包的时间以及发送 ping包的时间, 计算所述无线连接的平均回 送时间。  For example, the terminal may send a ping packet to the network multiple times through the wireless connection, and calculate an average return time of the wireless connection by receiving the time of responding to the ping packet and the time of sending the ping packet.
步骤 S103 : 根据所得到的所述无线连接质量信息、 以及预设条件, 在 所述无线连接中选择接入网络所使用的无线连接。  Step S103: Select, according to the obtained wireless connection quality information and a preset condition, a wireless connection used by the access network in the wireless connection.
所述预设条件包括: 用户偏好, 所述用户偏好包括速度优先和费用优 先; 所述预设条件还包括无线连接优先级排序, 无线连接优先级排序的一 个示例为: WiFi连接 >蓝牙连接 >无线网络连接, 即 WiFi连接的优先 级最高, 无线网络连接的优先级最低。  The preset condition includes: a user preference, the user preference includes a speed priority and a fee priority; the preset condition further includes a wireless connection prioritization, and an example of the wireless connection prioritization is: WiFi connection>Bluetooth connection> The wireless network connection, that is, the WiFi connection has the highest priority, and the wireless network connection has the lowest priority.
作为一个实施方式, 当支持网络接入的无线连接包括第一无线连接和 第二无线连接, 且当所述用户偏好为速度优先时, 所述根据所述无线连接 的平均回送时间、 以及预设条件, 选择接入网络所使用的无线连接, 包括: 当第一比值大于第一预设阈值时, 选择所述第二无线连接作为接入网 络所使用的无线连接;  As an embodiment, when the wireless connection supporting network access includes a first wireless connection and a second wireless connection, and when the user preference is speed priority, the average return time according to the wireless connection, and a preset Condition, the wireless connection used by the access network is selected, including: when the first ratio is greater than the first preset threshold, selecting the second wireless connection as a wireless connection used by the access network;
当所述第一比值小于所述第一预设阈值时, 选择所述第一无线连接作 为接入网络所使用的无线连接; 其中,  When the first ratio is smaller than the first preset threshold, the first wireless connection is selected as a wireless connection used by the access network;
所述第一预设阈值大于 1,所述第一比值为所述第一无线连接与所述第 二无线连接的平均回送时间的比值, 在所述无线连接优先级排序中, 所述 第一无线连接的优先级高于所述第二无线连接的优先级;  The first preset threshold is greater than 1, the first ratio is a ratio of an average return time of the first wireless connection to the second wireless connection, and in the wireless connection prioritization, the first The priority of the wireless connection is higher than the priority of the second wireless connection;
当第一比值大于第一预设阈值时, 表明第一无线连接的平均回送时间 远大于第二无线连接的平均回送时间, 即第一无线连接对应的接入点负载 较高, 此时, 选择第二无线连接作为接入网络所使用的无线连接, 能够平 衡第一无线连接对应接入点与第二无线连接对应接入点的负载; 当第一比 值小于第一预设阈值时, 表明第一无线连接的平均回送时间与第二无线连 接的平均回送时间的差值不大, 也就是说, 此时第一无线连接对应接入点 与第二无线连接对应接入点的负载相对均衡, 因此选择优先级最高的第一 无线连接作为接入网络所使用的无线连接。 When the first ratio is greater than the first preset threshold, indicating that the average return time of the first wireless connection is much larger than the average return time of the second wireless connection, that is, the access point load corresponding to the first wireless connection Higher, at this time, selecting the second wireless connection as the wireless connection used by the access network, and balancing the load of the first wireless connection corresponding access point and the second wireless connection corresponding access point; when the first ratio is smaller than the first When the threshold is preset, the difference between the average return time of the first wireless connection and the average return time of the second wireless connection is not large, that is, the first wireless connection corresponding access point is connected with the second wireless connection. The load at the ingress is relatively balanced, so the first wireless connection with the highest priority is selected as the wireless connection used by the access network.
上述实施方式中, 当支持网络接入的无线连接还包括第三无线连接, 且在所述无线连接优先级排序中, 所述第二无线连接的优先级高于所述第 三无线连接的优先级时, 作为一个实施方式, 所述选择所述第一无线连接 作为接入网络所使用的无线连接之前, 所述方法还包括: 确定第二比值小 于所述第一预设阈值, 所述第二比值为所述第一无线连接与所述第三无线 连接的平均回送时间的比值;  In the foregoing implementation manner, when the wireless connection supporting network access further includes a third wireless connection, and in the wireless connection prioritization, the priority of the second wireless connection is higher than the priority of the third wireless connection In an embodiment, the method further includes: determining that the second ratio is smaller than the first preset threshold, the foregoing, before the selecting the first wireless connection as the wireless connection used by the access network, The ratio is a ratio of an average return time of the first wireless connection to the third wireless connection;
相应地, 当所述第二比值大于所述第一预设阈值时, 所述方法还包括: 选择所述第三无线连接作为接入网络所使用的无线连接;  Correspondingly, when the second ratio is greater than the first preset threshold, the method further includes: selecting the third wireless connection as a wireless connection used by the access network;
所述选择所述第二无线连接作为接入网络所使用的无线连接之前, 所 述方法还包括:  Before the selecting the second wireless connection as the wireless connection used by the access network, the method further includes:
确定第三比值小于所述第一预设阈值, 所述第三比值为所述第二无线 连接与所述第三无线连接的平均回送时间的比值;  Determining that the third ratio is smaller than the first preset threshold, and the third ratio is a ratio of an average return time of the second wireless connection to the third wireless connection;
相应地, 当所述第三比值大于所述第一预设阈值时, 所述方法还包括: 选择所述第三无线连接作为接入网络所使用的无线连接。  Correspondingly, when the third ratio is greater than the first preset threshold, the method further comprises: selecting the third wireless connection as a wireless connection used by the access network.
上述实施方式中, 当第二比值小于所述第一预设阈值时, 表明第二无 线连接的平均回送时间与第三无线连接的平均会送时间相差不大, 即第二 无线连接对应接入点的负载与第三无线连接对应接入点的负载相差不大, 此时, 选择优先级相对较高的第二无线连接作为接入网络所使用的无线连 接; 当第二比值大于所述第一预设阈值时, 表明第二无线连接的平均回送 时间与第三无线连接的平均会送时间相差较大, 即第二无线连接对应接入 点的负载远大于第三无线连接对应接入点的负载, 为了均衡负载, 选择优 先级相对较低的第三无线连接作为接入网络所使用的无线连接; 当第三比 值小于所述第一预设阈值时, 表明第一无线连接的平均回送时间与第三无 线连接的平均会送时间相差不大, 即第一无线连接对应接入点的负载与第 三无线连接对应接入点的负载相差不大, 此时, 选择优先级相对较高的第 一无线连接作为接入网络所使用的无线连接; 当第三比值大于所述第一预 设阈值时, 表明第一无线连接的平均回送时间与第三无线连接的平均会送 时间相差较大, 即第一无线连接对应接入点的负载远大于第三无线连接对 应接入点的负载, 为了均衡负载, 选择优先级相对较低的第三无线连接作 为接入网络所使用的无线连接。 In the above embodiment, when the second ratio is smaller than the first preset threshold, it indicates that the average return time of the second wireless connection is not much different from the average sending time of the third wireless connection, that is, the second wireless connection corresponds to the access. The load of the point is not much different from the load of the access point corresponding to the third wireless connection. At this time, the second wireless connection with a relatively higher priority is selected as the wireless connection used by the access network; when the second ratio is greater than the first A preset threshold value indicating the average loopback of the second wireless connection The time difference between the time and the third wireless connection is larger, that is, the load of the second wireless connection corresponding access point is much larger than the load of the third wireless connection corresponding access point, and in order to balance the load, the priority is relatively low. The third wireless connection is used as a wireless connection used by the access network; when the third ratio is smaller than the first preset threshold, it indicates that the average return time of the first wireless connection is not much different from the average sending time of the third wireless connection. That is, the load of the first wireless connection corresponding access point is not much different from the load of the third wireless connection corresponding access point. At this time, the first wireless connection with a relatively high priority is selected as the wireless connection used by the access network. When the third ratio is greater than the first preset threshold, indicating that the average return time of the first wireless connection is different from the average sending time of the third wireless connection, that is, the load of the first wireless connection corresponding to the access point is large The third wireless connection corresponds to the load of the access point, and in order to balance the load, the third wireless connection with a relatively lower priority is selected as the access network. Wireless connections.
需要说明的是, 实际应用中, 支持终端进行网络接入的无线连接的种 类可能超过三种, 此时, 仍然可以使用本发明实施例记载的技术方案选择 无线连接接入网络, 相应地, 无线连接优先排序也需要根据实际应用中无 线连接的种类进行相应设定。  It should be noted that, in an actual application, the type of the wireless connection that supports the terminal to perform network access may be more than three types. In this case, the wireless connection access network may be selected by using the technical solution described in the embodiment of the present invention, and correspondingly, the wireless Connection prioritization also needs to be set according to the type of wireless connection in the actual application.
作为一个实施方式, 当支持网络接入的无线连接包括第四无线连接和 第五无线连接, 且当所述用户偏好为费用优先时, 所述根据所述无线连接 的平均回送时间、 以及预设条件, 选择接入网络所使用的无线连接, 包括: 当第四比值大于第二预设阈值时, 选择所述第五无线连接作为接入网 络所使用的无线连接;  As an embodiment, when the wireless connection supporting network access includes a fourth wireless connection and a fifth wireless connection, and when the user preference is cost priority, the average return time according to the wireless connection, and a preset Condition, the wireless connection used by the access network is selected, including: when the fourth ratio is greater than a second preset threshold, selecting the fifth wireless connection as a wireless connection used by the access network;
当所述第四比值小于所述第二预设阈值时, 选择所述第四无线连接作 为接入网络所使用的无线连接; 其中,  When the fourth ratio is smaller than the second preset threshold, the fourth wireless connection is selected as a wireless connection used by the access network;
所述第二预设阈值大于 1,所述第四比值为所述第四无线连接与所述第 五无线连接的平均回送时间的比值, 在所述无线连接优先级排序中, 所述 第四无线连接的优先级高于所述第五无线连接的优先级。 作为一个实施方式, 当支持网络接入的无线连接还包括第六无线连接, 且在所述无线连接优先级排序中, 所述第五无线连接的优先级高于所述第 六无线连接的优先级时, The second preset threshold is greater than 1, and the fourth ratio is a ratio of an average return time of the fourth wireless connection to the fifth wireless connection, and in the wireless connection prioritization, the fourth The priority of the wireless connection is higher than the priority of the fifth wireless connection. As an embodiment, when the wireless connection supporting network access further includes a sixth wireless connection, and in the wireless connection prioritization, the priority of the fifth wireless connection is higher than the priority of the sixth wireless connection Level,
所述选择所述第四无线连接作为接入网络所使用的无线连接之前, 所 述方法还包括: 确定第五比值小于所述第二预设阈值, 所述第五比值为所 述第四无线连接与所述第六无线连接的平均回送时间的比值;  Before the selecting the fourth wireless connection as the wireless connection used by the access network, the method further includes: determining that the fifth ratio is smaller than the second preset threshold, and the fifth ratio is the fourth wireless a ratio of an average return time of the connection to the sixth wireless connection;
相应地, 当所述第五比值大于所述第二预设阈值时, 所述方法还包括: 选择所述第六无线连接作为接入网络所使用的无线连接;  Correspondingly, when the fifth ratio is greater than the second preset threshold, the method further includes: selecting the sixth wireless connection as a wireless connection used by the access network;
所述选择所述第五无线连接作为接入网络所使用的无线连接之前, 所 述方法还包括:  Before the selecting the fifth wireless connection as the wireless connection used by the access network, the method further includes:
确定第六比值小于所述第二预设阈值, 所述第六比值为所述第五无线 连接与所述第六无线连接的平均回送时间的比值;  Determining that the sixth ratio is smaller than the second preset threshold, and the sixth ratio is a ratio of an average return time of the fifth wireless connection to the sixth wireless connection;
相应地, 当所述第六比值大于所述第二预设阈值时, 所述方法还包括: 选择所述第六无线连接作为接入网络所使用的无线连接。 实际应用中, 所述第一预设阈值和所述第二预设阈值不同; 对于不同用户 偏好 (包括速度优先和费用优先), 所述无线连接优先级排序可以釆用统一 的排序, 也可以釆用不同的排序。  Correspondingly, when the sixth ratio is greater than the second preset threshold, the method further comprises: selecting the sixth wireless connection as a wireless connection used by the access network. In an actual application, the first preset threshold is different from the second preset threshold; for different user preferences (including speed priority and cost priority), the wireless connection prioritization may use a uniform ordering, or Please use a different sort.
考虑到不同终端用户的使用习惯、 及需求的不同, 终端用户往往会希 望终端不使用某一无线连接, 作为一个实施方式, 所述预设条件还包括排 除的连接, 所述排除的连接为最低优先级别的无线连接, 排除的连接可由 终端根据终端用户的操作设定;  The terminal user often wants the terminal not to use a certain wireless connection, and the preset condition further includes the excluded connection, and the excluded connection is the lowest, considering the different usage habits and requirements of different end users. Priority level wireless connection, the excluded connection can be set by the terminal according to the operation of the terminal user;
相应地, 当终端用户设定排除的连接时, 所述选择接入网络所使用的 无线连接之前, 作为一个实施方式, 所述方法还包括: 根据所述排除的连 接, 更新无线连接优先级排序; 以根据更新后的无线连接优先接排序选择 接入网络所使用的无线连接。 Correspondingly, when the terminal user sets the excluded connection, before the wireless connection used by the access network is selected, as an implementation manner, the method further includes: updating the wireless connection prioritization according to the excluded connection ; to select according to the updated wireless connection priority The wireless connection used to access the network.
图 2为本发明实施例中无线连接管理装置的结构示意图一, 如图 2所 示, 包括:  FIG. 2 is a schematic structural diagram 1 of a wireless connection management apparatus according to an embodiment of the present invention. As shown in FIG. 2, the method includes:
确定单元 201, 配置为确定支持网络接入的无线连接的数量; 探测单元 202, 配置为当支持网络接入的无线连接的数量大于 1时,对 所述无线连接进行探测, 得到所述无线连接中每个无线连接的平均回送时 间;  The determining unit 201 is configured to determine the number of wireless connections that support network access. The detecting unit 202 is configured to detect the wireless connection when the number of wireless connections supporting the network access is greater than one, to obtain the wireless connection. Average return time for each wireless connection;
选择单元 203, 配置为根据所述无线连接的平均回送时间、 以及预设条 件, 在支持网络接入的无线连接中选择接入网络所使用的无线连接。  The selecting unit 203 is configured to select a wireless connection used by the access network in the wireless connection supporting the network access according to the average return time of the wireless connection and the preset condition.
其中, 所述探测单元 202, 还配置为通过所述无线连接多次发送 ICMP 回声请求消息; 通过所接收的 ICMP 回声应答消息, 计算所述无线连接的 平均回送时间。  The detecting unit 202 is further configured to send an ICMP echo request message multiple times through the wireless connection; and calculate an average return time of the wireless connection by using the received ICMP echo reply message.
其中, 所述预设条件包括: 用户偏好, 所述用户偏好包括速度优先和 费用优先; 所述预设条件还包括无线连接优先级排序。  The preset condition includes: a user preference, where the user preference includes a speed priority and a fee priority; and the preset condition further includes a wireless connection priority ordering.
其中, 所述选择单元 203包括第一选择子单元(图 2中未示出), 配置 为当支持网络接入的无线连接包括第一无线连接和第二无线连接, 所述用 户偏好为速度优先, 且第一比值大于第一预设阈值时, 选择所述第二无线 连接作为接入网络所使用的无线连接; 当所述第一比值小于所述第一预设 阈值时, 选择所述第一无线连接作为接入网络所使用的无线连接; 其中, 所述第一预设阈值大于 1,所述第一比值为所述第一无线连接与所述第 二无线连接的平均回送时间的比值, 在所述无线连接优先级排序中, 所述 第一无线连接的优先级高于所述第二无线连接的优先级。  The selection unit 203 includes a first selection subunit (not shown in FIG. 2) configured to: when the wireless connection supporting network access includes a first wireless connection and a second wireless connection, the user preference is speed priority And selecting, by the second wireless connection, a wireless connection used by the access network when the first ratio is greater than the first preset threshold; when the first ratio is less than the first preset threshold, selecting the first a wireless connection is used as a wireless connection used by the access network; wherein the first preset threshold is greater than 1, the first ratio is a ratio of an average return time of the first wireless connection to the second wireless connection In the wireless connection prioritization, the priority of the first wireless connection is higher than the priority of the second wireless connection.
其中, 所述选择单元 203还包括第二确定子单元、 第三选择子单元、 第四确定子单元和第五选择子单元(图 2中未示出);  The selection unit 203 further includes a second determining subunit, a third selecting subunit, a fourth determining subunit, and a fifth selecting subunit (not shown in FIG. 2);
所述第二确定子单元, 配置为当支持网络接入的无线连接还包括第三 无线连接, 在所述第一选择子单元选择所述第一无线连接作为接入网络所 使用的无线连接之前, 确定第二比值小于所述第一预设阈值, 所述第二比 值为所述第一无线连接与所述第三无线连接的平均回送时间的比值, 在所 述无线连接优先级排序中, 所述第二无线连接的优先级高于所述第三无线 连接的优先级; The second determining subunit, configured to include a third when the wireless connection supporting network access further a wireless connection, before the first selection subunit selects the first wireless connection as a wireless connection used by the access network, determining that the second ratio is smaller than the first preset threshold, and the second ratio is the a ratio of an average return time of the first wireless connection to the third wireless connection, in the wireless connection prioritization, a priority of the second wireless connection is higher than a priority of the third wireless connection;
所述第三选择子单元, 配置为当所述第二比值大于所述第一预设阈值 时, 选择所述第三无线连接作为接入网络所使用的无线连接;  The third selection subunit is configured to select the third wireless connection as a wireless connection used by the access network when the second ratio is greater than the first preset threshold;
所述第四确定子单元, 配置为在所述第一选择子单元选择所述第二无 线连接作为接入网络所使用的无线连接之前, 确定第三比值小于所述第一 预设阈值, 所述第三比值为所述第二无线连接与所述第三无线连接的平均 回送时间的比值;  The fourth determining subunit is configured to determine, before the first selecting subunit selects the second wireless connection as the wireless connection used by the access network, that the third ratio is smaller than the first preset threshold, The third ratio is a ratio of an average return time of the second wireless connection to the third wireless connection;
所述第五选择子单元, 配置为当所述第三比值大于所述第一预设阈值 时, 选择所述第三无线连接作为接入网络所使用的无线连接。  The fifth selection subunit is configured to select the third wireless connection as a wireless connection used by the access network when the third ratio is greater than the first preset threshold.
其中,所述无线连接管理装置还包括第六选择子单元(图 2中未示出), 配置为当支持网络接入的无线连接包括第四无线连接和第五无线连接, 且 当所述用户偏好为费用优先, 且第四比值大于第二预设阈值时, 选择所述 第五无线连接作为接入网络所使用的无线连接; 当所述第四比值小于所述 第二预设阈值时, 选择所述第四无线连接作为接入网络所使用的无线连接; 其中,  The wireless connection management device further includes a sixth selection subunit (not shown in FIG. 2) configured to include a fourth wireless connection and a fifth wireless connection when the wireless connection supporting the network access, and when the user The preference is the cost priority, and when the fourth ratio is greater than the second preset threshold, the fifth wireless connection is selected as the wireless connection used by the access network; when the fourth ratio is less than the second preset threshold, Selecting the fourth wireless connection as a wireless connection used by the access network;
所述第二预设阈值大于 1,所述第四比值为所述第四无线连接与所述第 五无线连接的平均回送时间的比值, 在所述无线连接优先级排序中, 所述 第四无线连接的优先级高于所述第五无线连接的优先级。  The second preset threshold is greater than 1, and the fourth ratio is a ratio of an average return time of the fourth wireless connection to the fifth wireless connection, and in the wireless connection prioritization, the fourth The priority of the wireless connection is higher than the priority of the fifth wireless connection.
其中, 所述无线连接管理装置还包括第七确定子单元、 第八选择子单 元、 第九确定子单元和第十选择子单元(图 2中未示出);  The wireless connection management apparatus further includes a seventh determining subunit, an eighth selecting subunit, a ninth determining subunit, and a tenth selecting subunit (not shown in FIG. 2);
所述第七确定子单元, 配置为当支持网络接入的无线连接还包括第六 无线连接, 在所述第六选择子单元选择所述第四无线连接作为接入网络所 使用的无线连接之前, 确定第五比值小于所述第二预设阈值, 所述第五比 值为所述第四无线连接与所述第六无线连接的平均回送时间的比值, 在所 述无线连接优先级排序中, 所述第五无线连接的优先级高于所述第六无线 连接的优先级; The seventh determining subunit, configured to include a sixth when the wireless connection supporting network access further a wireless connection, before the sixth selection subunit selects the fourth wireless connection as a wireless connection used by the access network, determining that the fifth ratio is smaller than the second preset threshold, and the fifth ratio is the a ratio of a fourth wireless connection to an average return time of the sixth wireless connection, in the wireless connection prioritization, a priority of the fifth wireless connection is higher than a priority of the sixth wireless connection;
所述第八选择子单元, 配置为当所述第五比值大于所述第二预设阈值 时, 选择所述第六无线连接作为接入网络所使用的无线连接;  The eighth selection subunit is configured to: when the fifth ratio is greater than the second preset threshold, select the sixth wireless connection as a wireless connection used by the access network;
所述第九确定子单元, 配置为在所述第六选择子单元选择所述第五无 线连接作为接入网络所使用的无线连接之前, 确定第六比值小于所述第二 预设阈值, 所述第六比值为所述第五无线连接与所述第六无线连接的平均 回送时间的比值;  The ninth determining subunit is configured to determine, before the sixth selecting subunit selects the fifth wireless connection as the wireless connection used by the access network, that the sixth ratio is smaller than the second preset threshold, The sixth ratio is a ratio of an average return time of the fifth wireless connection to the sixth wireless connection;
所述第十选择子单元, 配置为当所述第六比值大于所述第二预设阈值 时, 选择所述第六无线连接作为接入网络所使用的无线连接。  The tenth selection subunit is configured to select the sixth wireless connection as a wireless connection used by the access network when the sixth ratio is greater than the second preset threshold.
其中, 所述无线连接管理装置还包括:  The wireless connection management device further includes:
更新单元 204, 配置为在所述预设条件还包括排除的连接时, 在所述选 择单元 203选择接入网络所使用的无线连接之前, 根据所述排除的连接, 更新所述无线连接优先级排序; 所述排除的连接为最低优先级别的无线连 接。  The updating unit 204 is configured to: when the preset condition further includes the excluded connection, update the wireless connection priority according to the excluded connection before the selecting unit 203 selects the wireless connection used by the access network Sort; the excluded connection is the lowest priority wireless connection.
实际应用中, 所述确定单元 201、 选择单元 203、 更新单元 204可由无 线连接管理装置中的中央处理器(CPU, Central Processing Unit ), 数字信 号处理器 (DSP, Digital Signal Processor )或现场可编程门阵列 ( FPGA, Field Programmable Gate Array )实现; 所述探测单元 202可由无线连接管理 装置中支持相应无线连接通信协议如 WiFi协议、蓝牙协议的微处理器实现。  In an actual application, the determining unit 201, the selecting unit 203, and the updating unit 204 may be implemented by a central processing unit (CPU) in a wireless connection management device, a digital signal processor (DSP), or a field programmable device. The gate unit array (FPGA) is implemented by the FPGA (Field Programmable Gate Array); the detection unit 202 can be implemented by a microprocessor in the wireless connection management device that supports a corresponding wireless connection communication protocol such as a WiFi protocol or a Bluetooth protocol.
图 3为本发明实施例中无线连接管理装置的结构示意图二, 如图 3所 示, 包括读取配置单元 301、 负载探测单元 302、 负载调整单元 303; 其中, 所述读取配置单元 301, 配置为读取用户所配置的各种选项, 包括预先 设置的开启或关闭负载均衡功能, 以及预设条件。 FIG. 3 is a second schematic structural diagram of a wireless connection management apparatus according to an embodiment of the present invention. As shown in FIG. 3, the configuration includes a read configuration unit 301, a load detection unit 302, and a load adjustment unit 303. The read configuration unit 301 is configured to read various options configured by the user, including a preset load balancing function that is turned on or off, and a preset condition.
设置开启负载均衡功能时, 终端可以执行图 1 所示的无线连接管理方 法, 以实现接入点负载均衡的技术效果;  When the load balancing function is enabled, the terminal can perform the wireless connection management method shown in Figure 1 to implement the technical effect of load balancing of the access point.
预设条件包括: 无线连接优先级排序、 用户偏好和排除的连接; 用户 偏好包括速度优先和费用优先; 对于终端能够使用的多种无线连接中, 如 果存在收费使用的无线连接时 (例如某些收费才能使用的 WiFi热点和蓝牙 热点;), 则终端可根据用户的设置操作在排除的连接中添加收费的无线连 接。  Preset conditions include: wireless connection prioritization, user preferences, and excluded connections; user preferences include speed priority and cost priority; for multiple wireless connections that the terminal can use, if there is a wireless connection for charging (eg some A WiFi hotspot and a Bluetooth hotspot that can be used for a fee;), the terminal can add a charged wireless connection to the excluded connection according to the user's setting operation.
所述负载探测单元 302, 配置为确定支持网络接入的无线连接的数量; 当支持网络接入的无线连接的数量大于 1 时, 分别对所述无线连接的质量 进行探测, 得到所述无线连接中每个无线连接的平均回送时间;  The load detecting unit 302 is configured to determine the number of wireless connections that support network access; when the number of wireless connections supporting network access is greater than 1, respectively, the quality of the wireless connection is detected, and the wireless connection is obtained. Average return time for each wireless connection;
所述负载调整单元 303, 配置根据所述无线连接的平均回送时间、 以及 预设条件, 在支持网络接入的无线连接中选择接入网络所使用的无线连接。  The load adjustment unit 303 is configured to select a wireless connection used by the access network in the wireless connection supporting the network access according to the average return time of the wireless connection and the preset condition.
作为一个实施方式, 所述负载探测单元 302,还配置为通过所述无线连 接多次发送 ICMP回声请求消息; 通过所接收的 ICMP回声应答消息,计算 所述无线连接的平均回送时间。  As an embodiment, the load detecting unit 302 is further configured to send an ICMP echo request message multiple times by using the wireless connection; and calculate an average return time of the wireless connection by using the received ICMP echo reply message.
实际应用中, 所述读取配置单元 301、 负载调整单元 303可由无线连接 管理装置中的 CPU、 DSP或 FPGA实现; 所述负载探测单元 302, 可由无 线连接管理装置中支持相应无线连接通信协议如 WiFi协议、 蓝牙协议的微 处理器实现;  In a practical application, the read configuration unit 301 and the load adjustment unit 303 may be implemented by a CPU, a DSP, or an FPGA in the wireless connection management device. The load detection unit 302 may support a corresponding wireless connection communication protocol in the wireless connection management device. WiFi protocol, microprocessor implementation of Bluetooth protocol;
下面对设置有无线连接管理装置的终端的设置操作进行说明, 图 4 为 本发明实施例中设置有无线连接管理装置的终端的设置操作示意图,如图 4 所示, 终端屏幕显示是否开启负载均衡功能的信息, 排除的连接、 以及用 户偏好供终端用户进行设置, 用户偏好包括速度优先和费用优先; 终端支 持用户在终端搜索到有收费的热点时, 将收费的热点 (与无线连接对应) 添加到排除的连接中, 还可以将已添加到排除的连接中的热点删除。 The following is a description of the setting operation of the terminal provided with the wireless connection management device. FIG. 4 is a schematic diagram showing the setting operation of the terminal provided with the wireless connection management device according to the embodiment of the present invention. As shown in FIG. 4, the terminal screen displays whether the load is turned on. The information of the equalization function, the excluded connections, and the user preferences are set by the end user, and the user preferences include speed priority and cost priority; When the user searches for a hotspot with a charge at the terminal, the hotspot (corresponding to the wireless connection) is added to the excluded connection, and the hotspot added to the excluded connection can also be deleted.
需要说明的是, 终端在设置有本发明实施例记载的负载均衡装置时, 若终端未开启负载均衡功能, 则按相关技术的方案选择无线连接接入网络; 若终端开启了负载均衡功能, 则可以允许多种无线连接共存, 如终端建立 It should be noted that, when the terminal is provided with the load balancing device according to the embodiment of the present invention, if the terminal does not enable the load balancing function, the wireless connection access network is selected according to the related technical solution; if the terminal has the load balancing function enabled, Can allow multiple wireless connections to coexist, such as terminal setup
WiFi连接后, 还可以保持无线网络连接的激活状态。 After the WiFi connection, the wireless network connection can also be activated.
图 5为本发明实施例中无线连接管理方法的实现流程示意图二,如图 5 所示, 包括以下步骤:  FIG. 5 is a schematic flowchart 2 of an implementation process of a wireless connection management method according to an embodiment of the present invention. As shown in FIG. 5, the method includes the following steps:
步骤 501 : 终端读取设置里的相关配置。  Step 501: The terminal reads the relevant configuration in the settings.
读取用户所配置的各种选项, 包括预先设置的开启或关闭负载均衡功 能, 以及预设条件。  Read various options configured by the user, including pre-set load balancing functions on or off, and preset conditions.
步骤 502: 探测无线连接的质量。  Step 502: Detect the quality of the wireless connection.
通过向网络发送 ICMP 消息, 得到支持网络接入的无线连接的平均回 送时间。  The average return time of the wireless connection supporting network access is obtained by sending an ICMP message to the network.
步骤 503, 确定接入网络所使用的无线连接。  Step 503: Determine a wireless connection used by the access network.
在负载均衡功能开启时, 根据预设条件确定接入网络所使用的无线连 接。  When the load balancing function is enabled, the wireless connection used by the access network is determined according to preset conditions.
步骤 504: 终端使用所确定的无线连接访问网络。  Step 504: The terminal accesses the network by using the determined wireless connection.
图 6为本发明实施例中无线连接管理方法的实现流程示意图三,如图 6 所示, 包括以下步骤:  FIG. 6 is a schematic flowchart 3 of an implementation process of a wireless connection management method according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps:
步骤 601 : 终端在新建立了无线连接或定时时间到达。  Step 601: The terminal arrives at a newly established wireless connection or timed.
终端在新建立无线连接时, 或定时时间到达后执行步骤 602。  The terminal performs step 602 when a new wireless connection is established, or after the scheduled time has elapsed.
步骤 602,读取配置信息,以检测是否开启了负载均衡功能,如果开启, 则执行步骤 604; 否则, 执行步骤 603.  Step 602, the configuration information is read to detect whether the load balancing function is enabled. If yes, step 604 is performed; otherwise, step 603 is performed.
步骤 603, 根据相关技术的处理流程进行处理, 本实施例中不作讨论。 步骤 604, 判断所检测到的支持网络接入的无线连接数量是否大于 1, 如果大于 1, 则执行步骤 606; 否则, 执行步骤 605。 Step 603, processing according to the processing flow of the related art, which is not discussed in this embodiment. Step 604: Determine whether the detected number of wireless connections supporting network access is greater than 1. If greater than 1, perform step 606; otherwise, perform step 605.
步骤 605, 使用所检测到的无线连接接入网络。  Step 605: Access the network using the detected wireless connection.
步骤 606, 探测每个无线连接的平均回送时间。  Step 606: Detect the average loopback time of each wireless connection.
步骤 607,根据无线连接的平均回送时间和预设条件, 选择接入网络所 使用的无线连接。  Step 607: Select a wireless connection used by the access network according to the average return time of the wireless connection and the preset condition.
步骤 608, 使用所确定的无线连接接入网络。  Step 608, accessing the network using the determined wireless connection.
图 7为本发明实施例中探测无线连接质量的实现示意图, 如图 7所示, 在实际使用中, 由于无线连接的状态如数据传输速度会发生变化, 探测一 次后, 过一段时间网络情况就可能发生了很大的变化, 这就需要周期性探 测无线连接的质量, 以探测无线连接 1 质量为例, 在每个探测周期内探测 无线连接 1的质量时, 分别向网址 1〜网址 3发送 ICMP回声请求消息, 根 据 ICMP回声应答消息的接收时间、 以及 ICMP回声请求消息的发送时间, 计算无线连接 1 的平均回送时间; 还需要说明的是, 在每个探测周期内, 以探测周期为 10分钟为例, 如果在 10分钟内无线连接有数据流量(即传 输数据), 说明终端用户在进行与网络有关操作, 则探测无线连接 1质量; 如果在 10分钟内没有数据流量, 则可以不对无线连接 1的质量进行探测, 直至发现无线连接 1有数据流量时再进行探测。  FIG. 7 is a schematic diagram of realizing the quality of detecting a wireless connection according to an embodiment of the present invention. As shown in FIG. 7, in actual use, since the state of the wireless connection, such as the data transmission speed, changes, after the detection, the network condition occurs after a period of time. There may be a big change, which requires periodic detection of the quality of the wireless connection. To detect the quality of the wireless connection 1, for example, when detecting the quality of the wireless connection 1 in each detection period, send it to the URL 1 to the URL 3 respectively. The ICMP echo request message calculates the average loopback time of the wireless connection 1 according to the receiving time of the ICMP echo reply message and the sending time of the ICMP echo request message. It should also be noted that the probe period is 10 in each detection period. For example, if there is data traffic (that is, data transmission) in the wireless connection within 10 minutes, the terminal user is detecting the quality of the wireless connection 1 when performing network-related operations; if there is no data traffic within 10 minutes, the wireless connection may not be The quality of the connection 1 is detected until the wireless connection 1 is found According to the flow further probing.
无线连接的平均会送时间反映了无线连接对应接入点的负载情况, 因 此探测无线连接的平均会送时间等同于探测相应接入点的负载情况, 对接 入点的负载进行探测时, 可以向特定的网络发送 ICMP 回声请求消息, 根 据收到的 ICMP回声应答消息的时间、以及发送 ICMP回声请求消息的时间 来确定回送时间, 终端发送 ICMP 回声请求消息时, 一般先将特定网址进 行域名解析, 得到网际协议(IP, Internet Protocol )地址, 然后对 IP地址 进行 ing操作。 比如, 列表中有如下 10个网址 The average sending time of the wireless connection reflects the load of the corresponding access point of the wireless connection. Therefore, the average sending time of detecting the wireless connection is equivalent to detecting the load of the corresponding access point. When detecting the load of the access point, Sending an ICMP echo request message to a specific network, determining the loopback time according to the time of receiving the ICMP echo reply message and the time of sending the ICMP echo request message. When the terminal sends an ICMP echo request message, the domain name is generally parsed first. , get the Internet Protocol (IP) address, and then ing the IP address. For example, there are 10 URLs in the list below.
www.baidu.com  Www.baidu.com
www.google.com  Www.google.com
www.yahoo.com  Www.yahoo.com
www.bbc.co.uk  Www.bbc.co.uk
br.yahoo.com  Br.yahoo.com
www.yahoo.co.jp  Www.yahoo.co.jp
in.yahoo.com  In.yahoo.com
www.wikipedia.org  Www.wikipedia.org
www.qq.com  Www.qq.com
www.taobao.com  Www.taobao.com
终端可以对以上列表中的网址进行解析, 得到对应的 IP地址并进行 ping操作, 每个 IP地址 ping 4次, 共得到 40个会送时间, 取所述 40个会 送时间的平均值来作为平均回送时间; 需要说明的是, 在 ping操作超时后 没有接收到 ICMP回声应答消息时, 回送时间可以取 ping操作的超时时间 ( 4秒)。  The terminal can parse the URL in the above list, obtain the corresponding IP address and ping the operation. Each IP address is pinged 4 times, and a total of 40 sending times are obtained. The average value of the 40 sending times is taken as Average return time; It should be noted that when the ICMP echo reply message is not received after the ping operation times out, the loopback time can take the timeout period of the ping operation (4 seconds).
下面结合图 8至图 11, 来对本发明实施例所述记载的技术方案作详细 说明。  The technical solutions described in the embodiments of the present invention are described in detail below with reference to FIG. 8 to FIG.
支持终端接入的网络的各个无线连接有不同的优先级, 图 8至图 11中 以如下无线连接优先级排序进行说明:  Each wireless connection of the network supporting the terminal access has different priorities, and the following wireless connection priority ordering is illustrated in FIG. 8 to FIG. 11:
WiFi连接 >蓝牙连接 > 无线网络连接; 其中, WiFi连接的优先级最 高, 无线网络连接的优先级最低。  WiFi connection > Bluetooth connection > Wireless network connection; Among them, WiFi connection has the highest priority, and wireless network connection has the lowest priority.
此外, 当用户在终端中设置排除的无线连接时, 终端还需要更新无线 连接优先级排序, 即将所设置的排除的无线连接无的优先级设置为最低, 比如当前的 WiFi连接被设置为排除的无线连接, 则更新无线连接优先级排 序变为: 蓝牙连接 > 无线网络连接 > WiFi连接; 这样, 可以根据用户偏 好如速度优先、 费用优先, 结合无线连接优先级排序, 确定接入网络所使 用的无线连接。 In addition, when the user sets the excluded wireless connection in the terminal, the terminal also needs to update the wireless connection priority ordering, that is, the priority of the set excluded wireless connection is set to the lowest, for example, the current WiFi connection is set to be excluded. For wireless connection, the update wireless connection prioritization becomes: Bluetooth connection > Wireless network connection > WiFi connection; In this way, according to user preferences such as speed priority, cost priority, combined with wireless connection prioritization, determine the access network Use the wireless connection.
当支持终端接入网络的无线连接的数量为 2个(设为无线连接 1和无 线连接 2, 无线连接 1的优先级高于无线连接 2的优先级), 且用户偏好为 速度优先时, 图 8 为本发明实施例中无线连接管理方法的实现流程示意图 四, 如图 8所示, 包括以下步骤:  When the number of wireless connections supporting the terminal access network is two (set to wireless connection 1 and wireless connection 2, the priority of wireless connection 1 is higher than the priority of wireless connection 2), and the user preference is speed priority, 8 is a schematic diagram 4 of the implementation process of the wireless connection management method in the embodiment of the present invention. As shown in FIG. 8, the method includes the following steps:
步骤 801,探测无线连接 1和无线连接 2的质量,得到无线连接和无线 连接 2的平均会送时间。  Step 801, detecting the quality of the wireless connection 1 and the wireless connection 2, and obtaining the average delivery time of the wireless connection and the wireless connection 2.
当用户偏好为速度优先时, 终端会优先使用优先级最高的无线连接, 但当优先级高的无线连接负载较大时, 终端会选择优先级相对较低的无线 连接以均衡接入点负载; 根据图 7所示的处理方式, 可以计算出无线连接 1 的平均会送时间 T ( h_pri )和无线连接 2的平均回送时间 T ( l_pri )。  When the user prefers speed priority, the terminal preferentially uses the wireless connection with the highest priority, but when the wireless connection with high priority has a large load, the terminal selects a wireless connection with a relatively lower priority to balance the access point load; According to the processing method shown in FIG. 7, the average transmission time T (h_pri) of the wireless connection 1 and the average return time T (l_pri) of the wireless connection 2 can be calculated.
步骤 802,判断无线连接 1和无线连接 2的平均会送时间的比值是否大 于第一预设阈值, 如果大于, 则执行步骤 803; 否则, 执行步骤 804。  In step 802, it is determined whether the ratio of the average transmission time of the wireless connection 1 and the wireless connection 2 is greater than the first preset threshold. If yes, step 803 is performed; otherwise, step 804 is performed.
第一预设阈值取值为 1.2, 将无线连接 1的平均回送时间除以无线连接 2的平均回送时间获得比值, 如果所获得的比值大于 1.2, 则执行步骤 803; 否则, 执行步骤 804。  The first preset threshold value is 1.2, and the average loopback time of the wireless connection 1 is divided by the average loopback time of the wireless connection 2 to obtain a ratio. If the obtained ratio is greater than 1.2, step 803 is performed; otherwise, step 804 is performed.
步骤 803, 选择无线连接 2作为接入网络使用的无线连接。  Step 803, selecting the wireless connection 2 as the wireless connection used by the access network.
步骤 804, 选择无线连接 1作为接入网络使用的无线连接。  Step 804, selecting the wireless connection 1 as the wireless connection used by the access network.
比如, 无线连接 1为 WiFi连接, 无线连接 2为无线网络连接时, 当无 线网络连接的平均回送时间为 500毫秒( ms ), 如果 WiFi连接的平均回送 时间大于 600ms, 表明此时 WiFi接入点的负载较大, 导致 WiFi连接数据 传输速度较低, 则使用无线网络连接接入网络, 以均衡 WiFi接入点和无线 网络接入点的负载; 如果 WiFi连接的平均回送时间小于 600ms, 表明此时 WiFi接入点的负载不高, 则优先使用 WiFi连接接入网络; 对无线连接 1 为蓝牙连接的处理类似, 如果蓝牙连接的平均回送时间大于 600ms, 表明 此时蓝牙接入点的负载较大, 导致蓝牙连接的数据传输速度较低, 则使用 无线网络连接接入网络, 以均衡蓝牙接入点和无线网络接入点的负载; 如 果蓝牙连接的平均回送时间 d、于 600ms, 则使用蓝牙连接接入网络。 For example, when the wireless connection 1 is a WiFi connection and the wireless connection 2 is a wireless network connection, when the average connection time of the wireless network connection is 500 milliseconds (ms), if the average return time of the WiFi connection is greater than 600 ms, it indicates that the WiFi access point is at this time. If the load of the WiFi connection is relatively low, the data transmission speed of the WiFi connection is low, and the wireless network connection is used to access the network to balance the load of the WiFi access point and the wireless network access point; if the average return time of the WiFi connection is less than 600 ms, it indicates that When the load of the WiFi access point is not high, the WiFi connection is preferentially used to access the network; the processing for the wireless connection 1 is similar to the Bluetooth connection, if the average return time of the Bluetooth connection is greater than 600 ms, indicating At this time, the load of the Bluetooth access point is large, resulting in a low data transmission speed of the Bluetooth connection, and then the wireless network connection is used to access the network to balance the load of the Bluetooth access point and the wireless network access point; if the average of the Bluetooth connection The loopback time d is 600ms, and the Bluetooth connection is used to access the network.
当支持终端接入网络的无线连接的数量为 2个(设为无线连接 1和无 线连接 2, 无线连接 1的优先级高于无线连接 2的优先级), 且用户偏好为 费用优先时, 图 9 为本发明实施例中无线连接管理方法的实现流程示意图 五, 如图 9所示, 包括以下步骤:  When the number of wireless connections supporting the terminal accessing the network is two (set to wireless connection 1 and wireless connection 2, the priority of wireless connection 1 is higher than the priority of wireless connection 2), and the user preference is cost priority, 9 is a schematic flowchart of the implementation process of the wireless connection management method in the embodiment of the present invention. As shown in FIG. 9, the method includes the following steps:
步骤 901,探测无线连接 1和无线连接 2的质量,得到无线连接 1和无 线连接 2的平均会送时间。  In step 901, the quality of the wireless connection 1 and the wireless connection 2 are detected, and the average delivery time of the wireless connection 1 and the wireless connection 2 is obtained.
当用户偏好为费用优先时, 在无线连接 1与无线连接 2的平均回送时 间相差不大时, 终端会优先使用最高优先级的无线连接 1, 在相差较大时, 终端会优先使用无线连接 2, 以均衡接入点负载, 保证用户体验; 根据图 7 所示的处理方式, 可以计算出的无线连接 1的平均会送时间 T ( h_pri )和 无线连接 2的平均回送时间 T ( l_pri )。  When the user prefers the cost priority, when the average return time of the wireless connection 1 and the wireless connection 2 is not much different, the terminal preferentially uses the highest priority wireless connection 1, and when the difference is large, the terminal preferentially uses the wireless connection 2 To balance the load of the access point and ensure the user experience; according to the processing method shown in Figure 7, the average transmission time T ( h_pri ) of the wireless connection 1 and the average return time T ( l_pri ) of the wireless connection 2 can be calculated.
步骤 902,无线连接 1和无线连接 2的平均会送时间的比值是否大于第 二预设阈值, 如果大于, 则执行步骤 903; 否则, 执行步骤 904。  Step 902: The ratio of the average transmission time of the wireless connection 1 and the wireless connection 2 is greater than the second preset threshold. If yes, step 903 is performed; otherwise, step 904 is performed.
步骤 903, 选择无线连接 2作为接入网络使用的无线连接。  Step 903, selecting the wireless connection 2 as the wireless connection used by the access network.
步骤 904, 选择无线连接 1作为接入网络使用的无线连接。  Step 904, selecting the wireless connection 1 as the wireless connection used by the access network.
将无线连接 1 的平均回送时间 T ( h_pri ) 除以低优先级的无线连接 2 的平均回送时间 T ( l_pri )获得比值, 如果所获得的比值小于第二预设阈值 3, 此时无线连接 2的数据传输速度最高, 则使用低优先级的无线连接 2以 均衡负载并保证用户体验, 如果所获得的比值大于 3, 此时无线连接 1的数 据传输速度最高, 则使用高优先级的无线连接 1。  The ratio of the average loopback time T ( h_pri ) of the wireless connection 1 divided by the average loopback time T ( l_pri ) of the low priority wireless connection 2 is obtained, and if the obtained ratio is less than the second preset threshold 3, the wireless connection 2 The highest data transmission speed, the use of low priority wireless connection 2 to balance the load and ensure the user experience, if the obtained ratio is greater than 3, then the wireless connection 1 data transmission speed is the highest, then use the high priority wireless connection 1.
比如, 无线连接 1为 WiFi连接, 无线连接 2为无线网络连接时, 当无 线网络连接的平均回送时间为 300ms时,如果 WiFi连接的平均回送时间大 于 900ms, 表明此时 WiFi接入点的负载较大, 导致 WiFi连接数据传输速 度较低, 则使用无线网络连接接入网络, 以均衡 WiFi接入点和无线网络接 入点的负载; 如果 WiFi连接的平均回送时间小于 900ms, 表明此时 WiFi 接入点的负载不高, 则使用 WiFi连接接入网络; 对无线连接 1为蓝牙连接 的处理类似, 如果蓝牙连接的平均回送时间大于 900ms, 表明此时蓝牙连 接对应接入点的负载较大, 导致蓝牙连接的数据传输速度较低, 则使用无 线网络连接接入网络, 以均衡蓝牙接入点和无线网络接入点的负载; 如果 蓝牙连接的平均回送时间小于 900ms, 表明此时蓝牙接入点的负载不高, 则优先使用蓝牙连接接入网络。 For example, when the wireless connection 1 is a WiFi connection and the wireless connection 2 is a wireless network connection, when the average return time of the wireless network connection is 300 ms, if the average connection time of the WiFi connection is large, At 900ms, indicating that the load of the WiFi access point is large at this time, resulting in a lower WiFi connection data transmission speed, the wireless network connection is used to access the network to balance the load of the WiFi access point and the wireless network access point; The average loopback time of the connection is less than 900ms, indicating that the load of the WiFi access point is not high at this time, then the WiFi connection is used to access the network; the processing for the wireless connection 1 is similar to the Bluetooth connection, if the average return time of the Bluetooth connection is greater than 900ms, indicating At this time, the load of the Bluetooth connection corresponding to the access point is large, and the data transmission speed of the Bluetooth connection is low, and the wireless network connection is used to access the network to balance the load of the Bluetooth access point and the wireless network access point; if the Bluetooth connection The average loopback time is less than 900ms, indicating that the Bluetooth access point load is not high at this time, and the Bluetooth connection is preferentially used to access the network.
当支持终端接入网络的无线连接的数量为 3个(设为 WiFi连接、 蓝牙 连接和无线网络连接), 且用户偏好为速度优先时, 图 10 为本发明实施例 中无线连接管理方法的实现流程示意图六, 如图 10所示, 包括以下步骤: 步骤 1001, 探测 WiFi连接、 蓝牙连接和无线网络连接, 得到平均会送 时间。  When the number of wireless connections supporting the terminal accessing the network is three (set to WiFi connection, Bluetooth connection, and wireless network connection), and the user preference is speed priority, FIG. 10 is an implementation of the wireless connection management method according to the embodiment of the present invention. The schematic diagram 6 of the process, as shown in FIG. 10, includes the following steps: Step 1001: Detect a WiFi connection, a Bluetooth connection, and a wireless network connection to obtain an average delivery time.
设 T ( WiFi )表示 WiFi连接的平均回送时间, T ( bluetooth ) 表示蓝 牙连接的平均回送时间, T ( wireless ) 表示无线网络连接的平均回送时间。  Let T (WiFi) denote the average loopback time of the WiFi connection, T (bluetooth) denotes the average loopback time of the Bluetooth connection, and T(wire) denotes the average loopback time of the wireless network connection.
步骤 1002,判断 WiFi连接与蓝牙连接的平均回送时间的比值 T( WiFi ) /T ( bluetooth )是否小于第一预设阈值 1.2 , 如果小于, 则执行步骤 1003; 否则, 执行步骤 1006。  In step 1002, it is determined whether the ratio T(WiFi) /T (bluetooth) of the WiFi connection and the average return time of the Bluetooth connection is less than the first preset threshold 1.2. If not, step 1003 is performed; otherwise, step 1006 is performed.
步骤 1003, 判断 WiFi连接和无线网络连接的平均回送时间的比值 T ( WiFi ) /T ( wireless ) 是否小于 1.2, 如果小于, 则执行步骤 1004; 否则, 执行步骤 1005。  In step 1003, it is determined whether the ratio T (WiFi) / T (wire) of the WiFi connection and the average return time of the wireless network connection is less than 1.2. If not, step 1004 is performed; otherwise, step 1005 is performed.
步骤 1004, 选择 WiFi连接接入网络。  Step 1004: Select a WiFi connection to access the network.
步骤 1005, 选择无线网络连接接入网络。  Step 1005: Select a wireless network connection to access the network.
步骤 1006, 判断蓝牙连接和无线网络连接的平均回送时间的比值 T ( bluetooth ) /T ( wireless )是否小于第一预设阈值 1.2, 如果小于, 则执行 步骤 1007; 否则, 执行步骤 1008。 Step 1006, determining a ratio T of the average loopback time of the Bluetooth connection and the wireless network connection. (bluetooth) /T (wirea) is less than the first preset threshold of 1.2, if it is less, step 1007 is performed; otherwise, step 1008 is performed.
步骤 1007, 选择蓝牙连接接入网络。  Step 1007, select a Bluetooth connection to access the network.
步骤 1008, 选择无线网络连接接入网络。  Step 1008: Select a wireless network connection to access the network.
当支持终端接入网络的无线连接的数量为 3个(设为 WiFi连接、 蓝牙 连接和无线网络连接), 且用户偏好为费用优先时, 图 11 为本发明实施例 中无线连接管理方法的实现流程示意图七, 如图 11所示, 包括以下步骤: 步骤 1101,探测 WiFi连接、蓝牙连接和无线网络连接的平均会送时间。 设 T ( WiFi ) 表示 WiFi连接的平均回送时间, T ( bluetooth ) 表示蓝 牙连接的平均回送时间, T ( wireless ) 表示无线网络连接的平均回送时间。  When the number of wireless connections supporting the terminal accessing the network is three (set to WiFi connection, Bluetooth connection, and wireless network connection), and the user preference is cost priority, FIG. 11 is an implementation of the wireless connection management method according to the embodiment of the present invention. The flow diagram VII, as shown in FIG. 11, includes the following steps: Step 1101: Detect the average sending time of the WiFi connection, the Bluetooth connection, and the wireless network connection. Let T (WiFi) denote the average loopback time of the WiFi connection, T (bluetooth) denotes the average loopback time of the Bluetooth connection, and T(wire) denotes the average loopback time of the wireless network connection.
步骤 1102,判断 WiFi连接与蓝牙连接的平均回送时间的比值 T( WiFi ) Step 1102, determining a ratio of the average return time of the WiFi connection to the Bluetooth connection T (WiFi)
/T ( bluetooth ) 是否小于第二预设阈值 3 , 如果小于则执行步骤 1103; 否 则, 执行步骤 1106。 /T (bluetooth) is less than the second preset threshold 3, if it is less than step 1103; otherwise, step 1106 is performed.
步骤 1103, 判断 WiFi连接和无线网络连接的平均回送时间的比值 T ( WiFi ) /T ( wireless ) 是否小于 3 , 如果小于, 则执行步骤 1104; 否贝 'J, 执行步骤 1105。  Step 1103: Determine whether the ratio T (WiFi) / T ( wireless ) of the WiFi connection and the average return time of the wireless network connection is less than 3, if not, execute step 1104; otherwise, go to step 1105.
步骤 1104, 选择 WiFi连接作为网络接入所使用的无线连接。  Step 1104, selecting a WiFi connection as the wireless connection used by the network access.
步骤 1105, 选择无线网络连接作为网络接入所使用的无线连接。  Step 1105: Select a wireless network connection as the wireless connection used by the network access.
步骤 1106, 判断蓝牙连接和无线网络连接的平均回送时间的比值 T ( bluetooth ) /T ( wireless ) 是否小于第二预设阈值 3 , 如果小于, 则执 行步骤 1107; 否则, 执行步骤 1108。  Step 1106: Determine whether the ratio T (bluetooth ) /T ( wireless ) of the average connection time of the Bluetooth connection and the wireless network connection is less than the second preset threshold 3 . If not, execute step 1107; otherwise, perform step 1108 .
步骤 1107, 选择蓝牙连接作为网络接入所使用的无线连接。  Step 1107: Select a Bluetooth connection as the wireless connection used for network access.
步骤 1108, 选择无线网络连接作为网络接入所使用的无线连接。  Step 1108: Select a wireless network connection as the wireless connection used for network access.
本发明实施例还记载一种终端, 包括图 2或图 3所示的无线连接管理 装置。 本发明实施例还记载一种计算机存储介质, 所述计算机存储介质中存 储有计算机可执行指令, 所述计算机可执行指令用于执行图 1、 图 5、 图 6、 图 8至图 11任一附图所示的无线连接管理方法。 The embodiment of the invention further describes a terminal, including the wireless connection management device shown in FIG. 2 or FIG. The embodiment of the invention further describes a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute any one of FIG. 1, FIG. 5, FIG. 6, FIG. 8 to FIG. The wireless connection management method shown in the drawing.
本发明实施例还记载一种无线连接管理方法, 如图 12所示, 包括以下 步骤:  The embodiment of the invention further describes a wireless connection management method, as shown in FIG. 12, including the following steps:
步骤 1201 : 确定终端可以接入的无线连接的数量;  Step 1201: Determine the number of wireless connections that the terminal can access;
通过无线搜索确定移动终端可以进行无线连接的数量。  The number of wireless connections that the mobile terminal can make is determined by wireless search.
步骤 1202: 当所述无线连接的数量大于 1时, 分别对每个无线连接的 质量进行探测, 得到每个无线连接质量。  Step 1202: When the number of the wireless connections is greater than 1, respectively, the quality of each wireless connection is detected to obtain the quality of each wireless connection.
其中, 所述分别对每个无线连接的质量进行探测, 得到每个无线连接 质量包括: 所述每个无线连接向多个网络多次发送 ping包; 通过接收所述 每个无线连接所发送的多个 ping包的响应, 计算所述每个无线连接的平均 回送时间; 利用所计算出的每个无线连接的平均回送时间, 得到每个无线 连接的质量。  The detecting the quality of each wireless connection separately, and obtaining the quality of each wireless connection comprises: sending, by each wireless connection, a ping packet to multiple networks; sending the wireless connection by receiving the wireless connection The average loopback time of each wireless connection is calculated in response to the plurality of ping packets; and the quality of each wireless connection is obtained using the calculated average loopback time of each wireless connection.
步骤 1203 : 根据所得到的每个无线连接质量和预设条件选择一个无线 连接进行接入。  Step 1203: Select a wireless connection to access according to the obtained wireless connection quality and preset conditions.
所述预设条件包括: 连接优先级、 用户偏好和排除的连接; 其中, 所 述连接优先级是指所述每个无线连接的优先级别, 所述用户偏好包括速度 优先和费用优先, 所述排除的连接是指所述连接优先级中的最低优先级别。 也就是说, 根据用户设置的连接优先级、 用户偏好、 排除的连接以及所述 每个无线连接质量, 选择一个无线连接, 并按照所选择的无线连接进行数 据通信。  The preset condition includes: a connection priority, a user preference, and an excluded connection; wherein, the connection priority refers to a priority level of each wireless connection, and the user preference includes a speed priority and a fee priority, The excluded connection refers to the lowest priority level among the connection priorities. That is, based on the connection priority set by the user, the user's preference, the excluded connection, and the quality of each of the wireless connections, a wireless connection is selected and data communication is performed in accordance with the selected wireless connection.
优选地, 当根据所得到的每个无线连接质量和预设条件中的用户偏好 所包含的速度优先时, 选择一个无线连接进行接入包括: 通过分别计算两 两优先级别的平均回送时间相差的倍数, 得到一个或多个无线连接的倍数 值; 按照从高到低的优先级别, 依次将所得到的一个或多个无线连接的倍 数值与预置的速度阈值进行比较, 得到第一比较结果; 根据所述第一比较 结果, 选择一个无线连接进行接入。 例如, 若所述倍数值大于所述预置的 速度阈值, 则选择低优先级别的无线连接进行接入; 若所述倍数值小于所 述预置的速度阈值时, 则选择高优先级别的无线连接进行接入。 Preferably, when priority is selected according to the obtained speed of each wireless connection and the speed included in the user preference in the preset condition, selecting a wireless connection for accessing comprises: respectively calculating the average return time difference between the two priority levels Multiple, get multiples of one or more wireless connections The first comparison result is obtained by sequentially comparing the multiplied value of the obtained one or more wireless connections with the preset speed threshold according to the priority level from high to low; according to the first comparison result, selecting one The wireless connection is connected. For example, if the multiple value is greater than the preset speed threshold, select a low priority wireless connection for access; if the multiple value is less than the preset speed threshold, select a high priority wireless Connect for access.
当根据所得到的每个无线连接质量和预设条件中的用户偏好所包含的 费用优先时, 选择一个无线连接进行接入包括: 通过分别计算两两优先级 别的平均回送时间相差的倍数, 得到一个或多个无线连接的倍数值; 按照 从高到低的优先级别, 依次将所得到的一个或多个无线连接的倍数值与预 置的费用阈值进行比较, 得到第二比较结果; 根据所述第二比较结果, 选 择一个无线连接进行接入。 例如, 若所述倍数值大于所述预置费用阈值时, 则选择低优先级别的无线连接进行接入; 若所述倍数值小于所述预置费用 阈值时, 则选择高优先级别的无线连接进行接入。  When the cost included in each of the obtained wireless connection quality and the user preference in the preset condition is prioritized, selecting a wireless connection for accessing includes: calculating the multiple of the average return time difference of the two priority levels respectively, a multiple value of one or more wireless connections; in accordance with a priority level from high to low, sequentially comparing the obtained multiple value of one or more wireless connections with a preset cost threshold to obtain a second comparison result; Referring to the second comparison result, a wireless connection is selected for access. For example, if the multiple value is greater than the preset cost threshold, select a low priority wireless connection for access; if the multiple value is less than the preset cost threshold, select a high priority wireless connection. Access is made.
此外, 当通过无线搜索确定可以进行无线连接的数量为一个时, 则移 动终端使用所确定的无线连接进行数据通信。  Further, when it is determined by wireless search that the number of wireless connections that can be made is one, the mobile terminal performs data communication using the determined wireless connection.
本发明实施例还记载一种无线连接管理装置, 如图 13所示, 包括: 确 定无线连接数量模块 1301, 配置为确定终端可以接入的无线连接的数量; 获得无线连接质量模块 1302, 配置为当所述无线连接的数量大于 1时, 分 别对每个无线连接的质量进行探测, 得到每个无线连接质量; 无线连接接 入模块 1303, 配置为根据所得到的每个无线连接质量和预设条件选择一个 无线连接进行接入。 其中所述预设条件包括: 连接优先级、 用户偏好和排 除的连接; 其中, 所述连接优先级是指所述每个无线连接的优先级别, 所 述用户偏好包括速度优先和费用优先, 所述排除的连接是指所述连接优先 级中的最低优先级别。  The embodiment of the present invention further describes a wireless connection management device. As shown in FIG. 13, the method includes: determining a wireless connection quantity module 1301, configured to determine a number of wireless connections that the terminal can access; obtaining a wireless connection quality module 1302, configured to When the number of the wireless connections is greater than 1, the quality of each wireless connection is separately detected to obtain the quality of each wireless connection; the wireless connection access module 1303 is configured to determine the quality and preset of each wireless connection according to the obtained wireless connection. Conditions select a wireless connection for access. The preset condition includes: a connection priority, a user preference, and an excluded connection; wherein, the connection priority refers to a priority level of each wireless connection, and the user preference includes a speed priority and a fee priority, where The excluded connection refers to the lowest priority level among the connection priorities.
优选地, 所述获得无线连接质量模块 1302包括: 发送 ping包单元, 配 置为所述每个无线连接向多个网络多次发送 ping包; 计算平均回送时间单 元, 配置为通过接收所述每个无线连接所发送的多个 ping包的响应, 计算 所述每个无线连接的平均回送时间; 获取无线连接质量单元, 配置为利用 所计算出的每个无线连接的平均回送时间, 得到每个无线连接的质量。 Preferably, the obtaining the wireless connection quality module 1302 includes: sending a ping packet unit, Setting the ping packet to the plurality of networks multiple times for each wireless connection; calculating an average loopback time unit, configured to calculate the each wireless by receiving a response of multiple ping packets sent by each wireless connection The average loopback time of the connection; the wireless connection quality unit is configured to use the calculated average loopback time of each wireless connection to obtain the quality of each wireless connection.
所述无线连接接入模块 1303包括速度优先接入单和费用优先接入单, 其速度优先接入单元包括: 获取第一子单元, 配置为通过分别计算两两优 先级别的平均回送时间相差的倍数, 得到一个或多个无线连接的倍数值; 比较及选择第一子单元, 配置为按照从高到低的优先级别, 依次将所得到 的一个或多个无线连接的倍数值与预置的速度阈值进行比较, 得到第一比 较结果, 并根据所述第一比较结果, 选择一个无线连接进行接入。 例如, 若所述倍数值大于所述预置的速度阈值, 则选择低优先级别的无线连接进 行接入; 若所述倍数值小于所述预置的速度阈值时, 则选择高优先级别的 无线连接进行接入。 费用优选接入单元包括: 获取第二子单元, 配置为通 过分别计算两两优先级别的平均回送时间相差的倍数, 得到一个或多个无 线连接的倍数值; 比较及选择第二子单元, 配置为按照从高到低的优先级 别, 依次将所得到的一个或多个无线连接的倍数值与预置的费用阈值进行 比较, 得到第二比较结果, 并根据所述第二比较结果, 选择一个无线连接 进行接入。 更例如, 若所述倍数值大于所述预置费用阈值时, 则选择低优 先级别的无线连接进行接入; 若所述倍数值小于所述预置费用阈值时, 则 选择高优先级别的无线连接进行接入。  The wireless connection access module 1303 includes a speed priority access list and a fee priority access list, and the speed priority access unit includes: acquiring the first subunit, configured to calculate the average return time difference of the two priority levels respectively Multiples, obtain the multiple value of one or more wireless connections; compare and select the first sub-unit, configured to sequentially change the multiplier value of the obtained one or more wireless connections according to the priority level from high to low The speed threshold is compared to obtain a first comparison result, and according to the first comparison result, a wireless connection is selected for access. For example, if the multiple value is greater than the preset speed threshold, select a low priority wireless connection for access; if the multiple value is less than the preset speed threshold, select a high priority wireless Connect for access. The cost preferred access unit includes: obtaining a second subunit configured to obtain a multiple of one or more wireless connections by separately calculating a multiple of the average return time difference of the two priority levels; comparing and selecting the second subunit, configuring In order to compare the multiplier values of the obtained one or more wireless connections with the preset fee thresholds according to the priority level from high to low, a second comparison result is obtained, and according to the second comparison result, one is selected. The wireless connection is connected. For example, if the multiple value is greater than the preset cost threshold, select a low priority wireless connection for access; if the multiple value is less than the preset cost threshold, select a high priority wireless Connect for access.
本发明实施例还记载一种无线连接管理装置, 如图 14所示, 包括读取 配置模块 1401、 负载探测模块 1402、 负载调整模块 1403。 所述读取配置模 块 1401配置为读取用户所配置的各种选项, 比如用户可以选择开启或关闭 负载均衡功能, 也可以选择用户偏好。 所述用户偏好包括速度优先和费用 优先。 对于同时存在的多种无线连接, 两种策略有不同的判断准则, 在现 实生活中, 某些 WiFi热点和蓝牙热点是收费的。 配置里提供了 "排除的连 接" 供用户添加, 用户可以将这些收费的热点加到排除的连接中。 所述负 载探测模块 1402配置为探测各个连接的质量; 所述负载调整模块 1403, 配 置为根据用户偏好和一定的判断策略, 决定选用合适的无线连接来进行数 据通信。 The embodiment of the invention further describes a wireless connection management device. As shown in FIG. 14, the device includes a read configuration module 1401, a load detection module 1402, and a load adjustment module 1403. The read configuration module 1401 is configured to read various options configured by the user, such as the user may choose to enable or disable the load balancing function, or select user preferences. The user preferences include speed priority and cost priority. For multiple wireless connections that exist simultaneously, the two strategies have different criteria for judgment. In real life, some WiFi hotspots and Bluetooth hotspots are charged. "Excluded connections" are provided in the configuration for users to add, and users can add these charged hotspots to the excluded connections. The load detection module 1402 is configured to detect the quality of each connection; the load adjustment module 1403 is configured to determine an appropriate wireless connection for data communication according to user preferences and certain judgment strategies.
本发明实施例中, 基于无线连接的平均回送时间, 以及预设条件选择 无线连接接入网络; 由于同一无线连接的平均回送时间的波动能够反映相 应接入点的负载, 在同一无线连接的平均回送时间的波动较大时, 避免选 择该无线连接接入网络, 实现了接入点负载均衡技术效果, 能够保证用户 良好的网络访问体验。  In the embodiment of the present invention, the wireless connection access network is selected based on the average return time of the wireless connection and the preset condition; the fluctuation of the average return time of the same wireless connection can reflect the load of the corresponding access point, and the average of the same wireless connection When the fluctuation of the loopback time is large, the wireless connection access network is avoided, and the effect of the load balancing technology of the access point is realized, and the user can enjoy a good network access experience.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可釆用硬件实施例、 软件实施例、 或结 合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器和光学存储器等 )上实施的计算机程序产品的形式。  Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment of a combination of software and hardware. Moreover, the invention can be embodied in the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程 图和 /或方框图中的每一流程和 /或方框、以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得 通过计算机或其他可编程数据处理设备的处理器执行的指令产生配置为实 现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart and/or block diagrams, and combinations of flow and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine that causes configuration of instructions executed by a processor of a computer or other programmable data processing device Means for implementing the functions specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。 The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that stored in the computer readable memory The instructions in the reservoir produce an article of manufacture comprising an instruction device that implements the functions specified in one or more blocks of the flow or in a flow or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供配置为实 现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps that are configured to implement the functions specified in one or more blocks of the flowchart or in a block or blocks of the flowchart.
以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的 普通技术人员来说, 在不脱离本发明原理的前提下, 还可以做出若干改进 和润饰, 这些改进和润饰也应视为本发明的保护范围。 工业实用性  The above description is only a preferred embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention. Industrial applicability
本发明实施例中, 基于无线连接的平均回送时间, 以及预设条件选择 无线连接接入网络; 由于同一无线连接的平均回送时间的波动能够反映相 应接入点的负载, 在同一无线连接的平均回送时间的波动较大时, 避免选 择该无线连接接入网络, 实现了接入点负载均衡的技术效果, 能够保证用 户良好的网络访问体验。  In the embodiment of the present invention, the wireless connection access network is selected based on the average return time of the wireless connection and the preset condition; the fluctuation of the average return time of the same wireless connection can reflect the load of the corresponding access point, and the average of the same wireless connection When the fluctuation of the loopback time is large, the wireless connection access network is avoided, and the technical effect of load balancing of the access point is achieved, and the user can enjoy a good network access experience.

Claims

权利要求书 claims
1、 一种无线连接管理方法, 包括: 1. A wireless connection management method, including:
确定支持网络接入的无线连接的数量; Determine the number of wireless connections that support network access;
当支持网络接入的无线连接的数量大于 1 时, 对所述无线连接进行探 测, 得到所述无线连接中每个无线连接的平均回送时间; When the number of wireless connections supporting network access is greater than 1, detect the wireless connections and obtain the average loopback time of each wireless connection in the wireless connections;
根据所述无线连接的平均回送时间、 以及预设条件, 在支持网络接入 的无线连接中选择接入网络所使用的无线连接。 According to the average loopback time of the wireless connection and the preset conditions, the wireless connection used to access the network is selected from the wireless connections that support network access.
2、根据权利要求 1所述的方法, 其中, 所述对所述无线连接进行探测, 得到所述无线连接的平均回送时间, 包括: 2. The method according to claim 1, wherein said detecting the wireless connection and obtaining the average loopback time of the wireless connection includes:
通过所述无线连接发送因特网信报控制协议 ICMP回声请求消息; 通过所接收的 ICMP 回声应答消息, 计算所述无线连接的平均回送时 间。 Send an Internet Messaging Control Protocol ICMP echo request message through the wireless connection; calculate the average echo time of the wireless connection through the received ICMP echo response message.
3、根据权利要求 1所述的方法, 其中, 所述预设条件包括: 用户偏好, 所述用户偏好包括速度优先和费用优先; 所述预设条件还包括无线连接优 先级排序。 3. The method according to claim 1, wherein the preset conditions include: user preferences, the user preferences include speed priority and cost priority; the preset conditions also include wireless connection priority sorting.
4、 根据权利要求 3所述的方法, 其中, 当支持网络接入的无线连接包 括第一无线连接和第二无线连接, 且所述用户偏好为速度优先时, 所述根 据所述无线连接的平均回送时间、 以及预设条件, 在支持网络接入的无线 连接中选择接入网络所使用的无线连接, 包括: 4. The method according to claim 3, wherein when the wireless connection supporting network access includes a first wireless connection and a second wireless connection, and the user preference is speed priority, the wireless connection according to the wireless connection Average loopback time, and preset conditions, select the wireless connection used to access the network among the wireless connections that support network access, including:
当第一比值大于第一预设阈值时, 选择所述第二无线连接作为接入网 络所使用的无线连接; When the first ratio is greater than the first preset threshold, select the second wireless connection as the wireless connection used by the access network;
当所述第一比值小于所述第一预设阈值时, 选择所述第一无线连接作 为接入网络所使用的无线连接; 其中, When the first ratio is less than the first preset threshold, select the first wireless connection as the wireless connection used by the access network; wherein,
所述第一预设阈值大于 1,所述第一比值为所述第一无线连接与所述第 二无线连接的平均回送时间的比值, 在所述无线连接优先级排序中, 所述 第一无线连接的优先级高于所述第二无线连接的优先级。 The first preset threshold is greater than 1, and the first ratio is the ratio of the average loopback time of the first wireless connection and the second wireless connection. In the wireless connection priority sorting, the The first wireless connection has a higher priority than the second wireless connection.
5、 根据权利要求 4所述的方法, 其中, 当支持网络接入的无线连接还 包括第三无线连接, 且在所述无线连接优先级排序中, 所述第二无线连接 的优先级高于所述第三无线连接的优先级时, 所述选择所述第一无线连接 作为接入网络所使用的无线连接之前, 所述方法还包括: 5. The method according to claim 4, wherein when the wireless connection supporting network access also includes a third wireless connection, and in the wireless connection priority ranking, the priority of the second wireless connection is higher than When the priority of the third wireless connection is determined, before selecting the first wireless connection as the wireless connection used by the access network, the method further includes:
确定第二比值小于所述第一预设阈值, 所述第二比值为所述第一无线 连接与所述第三无线连接的平均回送时间的比值; Determine that the second ratio is less than the first preset threshold, and the second ratio is the ratio of the average loopback time of the first wireless connection and the third wireless connection;
相应地, 当所述第二比值大于所述第一预设阈值时, 所述方法还包括: 选择所述第三无线连接作为接入网络所使用的无线连接。 Correspondingly, when the second ratio is greater than the first preset threshold, the method further includes: selecting the third wireless connection as the wireless connection used by the access network.
6、 根据权利要求 5所述的方法, 其中, 所述选择所述第二无线连接作 为接入网络所使用的无线连接之前, 所述方法还包括: 6. The method according to claim 5, wherein before selecting the second wireless connection as the wireless connection used by the access network, the method further includes:
确定第三比值小于所述第一预设阈值, 所述第三比值为所述第二无线 连接与所述第三无线连接的平均回送时间的比值; It is determined that a third ratio is less than the first preset threshold, and the third ratio is the ratio of the average loopback time of the second wireless connection and the third wireless connection;
相应地, 当所述第三比值大于所述第一预设阈值时, 所述方法还包括: 选择所述第三无线连接作为接入网络所使用的无线连接。 Correspondingly, when the third ratio is greater than the first preset threshold, the method further includes: selecting the third wireless connection as the wireless connection used by the access network.
7、 根据权利要求 3所述的方法, 其中, 当支持网络接入的无线连接包 括第四无线连接和第五无线连接, 且所述用户偏好为费用优先时, 所述根 据所述无线连接的平均回送时间、 以及预设条件, 选择接入网络所使用的 无线连接, 包括: 7. The method according to claim 3, wherein when the wireless connection supporting network access includes a fourth wireless connection and a fifth wireless connection, and the user preference is cost priority, the wireless connection according to the wireless connection Average loopback time, and preset conditions for selecting the wireless connection used to access the network, including:
当第四比值大于第二预设阈值时, 选择所述第五无线连接作为接入网 络所使用的无线连接; When the fourth ratio is greater than the second preset threshold, select the fifth wireless connection as the wireless connection used by the access network;
当所述第四比值小于所述第二预设阈值时, 选择所述第四无线连接作 为接入网络所使用的无线连接; 其中, When the fourth ratio is less than the second preset threshold, select the fourth wireless connection as the wireless connection used by the access network; wherein,
所述第二预设阈值大于 1,所述第四比值为所述第四无线连接与所述第 五无线连接的平均回送时间的比值, 在所述无线连接优先级排序中, 所述 第四无线连接的优先级高于所述第五无线连接的优先级。 The second preset threshold is greater than 1, and the fourth ratio is the ratio of the average loopback time of the fourth wireless connection and the fifth wireless connection. In the wireless connection priority sorting, the The priority of the fourth wireless connection is higher than the priority of the fifth wireless connection.
8、 根据权利要求 7所述的方法, 其中, 当支持网络接入的无线连接还 包括第六无线连接, 且在所述无线连接优先级排序中, 所述第五无线连接 的优先级高于所述第六无线连接的优先级时, 所述选择所述第四无线连接 作为接入网络所使用的无线连接之前, 所述方法还包括: 8. The method according to claim 7, wherein when the wireless connection supporting network access also includes a sixth wireless connection, and in the wireless connection priority ranking, the fifth wireless connection has a higher priority than When the priority of the sixth wireless connection is determined, before selecting the fourth wireless connection as the wireless connection used by the access network, the method further includes:
确定第五比值小于所述第二预设阈值, 所述第五比值为所述第四无线 连接与所述第六无线连接的平均回送时间的比值; It is determined that a fifth ratio is less than the second preset threshold, and the fifth ratio is the ratio of the average loopback time of the fourth wireless connection and the sixth wireless connection;
相应地, 当所述第五比值大于所述第二预设阈值时, 所述方法还包括: 选择所述第六无线连接作为接入网络所使用的无线连接。 Correspondingly, when the fifth ratio is greater than the second preset threshold, the method further includes: selecting the sixth wireless connection as the wireless connection used by the access network.
9、 根据权利要求 8所述的方法, 其中, 所述选择所述第五无线连接作 为接入网络所使用的无线连接之前, 所述方法还包括: 9. The method according to claim 8, wherein before selecting the fifth wireless connection as the wireless connection used by the access network, the method further includes:
确定第六比值小于所述第二预设阈值, 所述第六比值为所述第五无线 连接与所述第六无线连接的平均回送时间的比值; It is determined that a sixth ratio is less than the second preset threshold, and the sixth ratio is the ratio of the average loopback time of the fifth wireless connection and the sixth wireless connection;
相应地, 当所述第六比值大于所述第二预设阈值时, 所述方法还包括: 选择所述第六无线连接作为接入网络所使用的无线连接。 Correspondingly, when the sixth ratio is greater than the second preset threshold, the method further includes: selecting the sixth wireless connection as the wireless connection used by the access network.
10、 根据权利要求 3至 9任一项所述的方法, 其中, 所述预设条件还 包括排除的连接, 所述排除的连接为最低优先级别的无线连接; 10. The method according to any one of claims 3 to 9, wherein the preset conditions also include excluded connections, and the excluded connections are wireless connections with the lowest priority;
相应地, 所述选择接入网络所使用的无线连接之前, 所述方法还包括: 根据所述排除的连接, 更新所述无线连接优先级排序。 Correspondingly, before selecting the wireless connection used by the access network, the method further includes: updating the wireless connection priority ranking according to the excluded connection.
11、 一种无线连接管理装置, 包括: 11. A wireless connection management device, including:
确定单元, 配置为确定支持网络接入的无线连接的数量; a determining unit configured to determine a number of wireless connections supporting network access;
探测单元, 配置为当支持网络接入的无线连接的数量大于 1 时, 对所 述无线连接进行探测, 得到所述无线连接中每个无线连接的平均回送时间; 选择单元, 配置为根据所述无线连接的平均回送时间、 以及预设条件, 在支持网络接入的无线连接中选择接入网络所使用的无线连接。 The detection unit is configured to detect the wireless connection when the number of wireless connections supporting network access is greater than 1, and obtain the average loopback time of each wireless connection in the wireless connection; the selection unit is configured to perform the detection according to the The average loopback time of the wireless connection, and the preset conditions, select the wireless connection used to access the network among the wireless connections that support network access.
12、 根据权利要求 11所述的无线连接管理装置, 其中, 所述探测单元, 还配置为通过所述无线连接多次发送因特网信报控制 协议 ICMP回声请求消息; 通过所接收的 ICMP回声应答消息,计算所述无 线连接的平均回送时间。 12. The wireless connection management device according to claim 11, wherein the detection unit is further configured to send an Internet Messaging Control Protocol ICMP echo request message multiple times through the wireless connection; through the received ICMP echo response message , calculate the average loopback time of the wireless connection.
13、 根据权利要求 11所述的无线连接管理装置, 其中, 所述预设条件 包括: 用户偏好, 所述用户偏好包括速度优先和费用优先; 所述预设条件 还包括无线连接优先级排序。 13. The wireless connection management device according to claim 11, wherein the preset conditions include: user preferences, the user preferences include speed priority and cost priority; the preset conditions also include wireless connection priority sorting.
14、 根据权利要求 13所述的无线连接管理装置, 其中, 所述选择单元 包括第一选择子单元, 配置为当支持网络接入的无线连接包括第一无线连 接和第二无线连接, 所述用户偏好为速度优先, 且第一比值大于第一预设 阈值时, 选择所述第二无线连接作为接入网络所使用的无线连接; 14. The wireless connection management device according to claim 13, wherein the selection unit includes a first selection sub-unit configured to when the wireless connection supporting network access includes a first wireless connection and a second wireless connection, the When the user preference is speed priority and the first ratio is greater than the first preset threshold, select the second wireless connection as the wireless connection used to access the network;
当所述第一比值小于所述第一预设阈值时, 选择所述第一无线连接作 为接入网络所使用的无线连接; 其中, When the first ratio is less than the first preset threshold, select the first wireless connection as the wireless connection used by the access network; wherein,
所述第一预设阈值大于 1,所述第一比值为所述第一无线连接与所述第 二无线连接的平均回送时间的比值, 在所述无线连接优先级排序中, 所述 第一无线连接的优先级高于所述第二无线连接的优先级。 The first preset threshold is greater than 1, and the first ratio is the ratio of the average loopback time of the first wireless connection and the second wireless connection. In the wireless connection priority sorting, the first The priority of the wireless connection is higher than the priority of the second wireless connection.
15、 根据权利要求 14所述的无线连接管理装置, 其中, 所述选择单元 还包括第二确定子单元和第三选择子单元; 15. The wireless connection management device according to claim 14, wherein the selection unit further includes a second determination subunit and a third selection subunit;
所述第二确定子单元, 配置为当支持网络接入的无线连接还包括第三 无线连接, 在所述第一选择子单元选择所述第一无线连接作为接入网络所 使用的无线连接之前, 确定第二比值小于所述第一预设阈值, 所述第二比 值为所述第一无线连接与所述第三无线连接的平均回送时间的比值, 在所 述无线连接优先级排序中, 所述第二无线连接的优先级高于所述第三无线 连接的优先级; The second determination subunit is configured to when the wireless connection supporting network access also includes a third wireless connection, before the first selection subunit selects the first wireless connection as the wireless connection used by the access network. , it is determined that the second ratio is less than the first preset threshold, the second ratio is the ratio of the average loopback time of the first wireless connection and the third wireless connection, in the wireless connection priority ranking, The priority of the second wireless connection is higher than the priority of the third wireless connection;
所述第三选择子单元, 配置为当所述第二比值大于所述第一预设阈值 时, 选择所述第三无线连接作为接入网络所使用的无线连接。 The third selection subunit is configured to: when the second ratio is greater than the first preset threshold , select the third wireless connection as the wireless connection used by the access network.
16、 根据权利要求 15所述的无线连接管理装置, 其中, 所述选择单元 还包括第四确定子单元和第五选择子单元; 16. The wireless connection management device according to claim 15, wherein the selection unit further includes a fourth determination subunit and a fifth selection subunit;
所述第四确定子单元, 配置为在所述第一选择子单元选择所述第二无 线连接作为接入网络所使用的无线连接之前, 确定第三比值小于所述第一 预设阈值, 所述第三比值为所述第二无线连接与所述第三无线连接的平均 回送时间的比值; The fourth determination subunit is configured to determine that the third ratio is less than the first preset threshold before the first selection subunit selects the second wireless connection as the wireless connection used by the access network, so The third ratio is the ratio of the average loopback time of the second wireless connection and the third wireless connection;
所述第五选择子单元, 配置为当所述第三比值大于所述第一预设阈值 时, 选择所述第三无线连接作为接入网络所使用的无线连接。 The fifth selection subunit is configured to select the third wireless connection as the wireless connection used by the access network when the third ratio is greater than the first preset threshold.
17、 根据权利要求 13所述的无线连接管理装置, 其中, 17. The wireless connection management device according to claim 13, wherein,
所述无线连接管理装置还包括第六选择子单元, 配置为当支持网络接 入的无线连接包括第四无线连接和第五无线连接, 所述用户偏好为费用优 先, 且第四比值大于第二预设阈值时, 选择所述第五无线连接作为接入网 络所使用的无线连接; The wireless connection management device further includes a sixth selection subunit configured to: when the wireless connection supporting network access includes a fourth wireless connection and a fifth wireless connection, the user preference is cost priority, and the fourth ratio is greater than the second When the threshold is preset, select the fifth wireless connection as the wireless connection used to access the network;
当所述第四比值小于所述第二预设阈值时, 选择所述第四无线连接作 为接入网络所使用的无线连接; 其中, When the fourth ratio is less than the second preset threshold, select the fourth wireless connection as the wireless connection used by the access network; wherein,
所述第二预设阈值大于 1,所述第四比值为所述第四无线连接与所述第 五无线连接的平均回送时间的比值, 在所述无线连接优先级排序中, 所述 第四无线连接的优先级高于所述第五无线连接的优先级。 The second preset threshold is greater than 1, and the fourth ratio is the ratio of the average loopback time of the fourth wireless connection and the fifth wireless connection. In the wireless connection priority sorting, the fourth ratio The priority of the wireless connection is higher than the priority of the fifth wireless connection.
18、 根据权利要求 17所述的无线连接管理装置, 其中, 所述无线连接 管理装置还包括第七确定子单元和第八选择子单元; 18. The wireless connection management device according to claim 17, wherein the wireless connection management device further includes a seventh determination subunit and an eighth selection subunit;
所述第七确定子单元, 配置为当支持网络接入的无线连接还包括第六 无线连接, 在所述第六选择子单元选择所述第四无线连接作为接入网络所 使用的无线连接之前, 确定第五比值小于所述第二预设阈值, 所述第五比 值为所述第四无线连接与所述第六无线连接的平均回送时间的比值, 在所 述无线连接优先级排序中, 所述第五无线连接的优先级高于所述第六无线 连接的优先级; The seventh determining subunit is configured to when the wireless connection supporting network access also includes a sixth wireless connection, before the sixth selection subunit selects the fourth wireless connection as the wireless connection used by the access network. , it is determined that the fifth ratio is less than the second preset threshold, the fifth ratio is the ratio of the average loopback time of the fourth wireless connection and the sixth wireless connection, where In the wireless connection priority sorting, the priority of the fifth wireless connection is higher than the priority of the sixth wireless connection;
所述第八选择子单元, 配置为当所述第五比值大于所述第二预设阈值 时, 选择所述第六无线连接作为接入网络所使用的无线连接。 The eighth selection subunit is configured to select the sixth wireless connection as the wireless connection used by the access network when the fifth ratio is greater than the second preset threshold.
19、 根据权利要求 18所述的无线连接管理装置, 其中, 所述无线连接 管理装置还包括第九确定子单元和第十选择子单元; 19. The wireless connection management device according to claim 18, wherein the wireless connection management device further includes a ninth determination subunit and a tenth selection subunit;
所述第九确定子单元, 配置为在所述第六选择子单元选择所述第五无 线连接作为接入网络所使用的无线连接之前, 确定第六比值小于所述第二 预设阈值, 所述第六比值为所述第五无线连接与所述第六无线连接的平均 回送时间的比值; The ninth determination subunit is configured to determine that the sixth ratio is less than the second preset threshold before the sixth selection subunit selects the fifth wireless connection as the wireless connection used by the access network, so The sixth ratio is the ratio of the average loopback time of the fifth wireless connection and the sixth wireless connection;
所述第十选择子单元, 配置为当所述第六比值大于所述第二预设阈值 时, 选择所述第六无线连接作为接入网络所使用的无线连接。 The tenth selection subunit is configured to select the sixth wireless connection as the wireless connection used by the access network when the sixth ratio is greater than the second preset threshold.
20、 根据权利要求 11至 19任一项所述的无线连接管理装置, 其中, 所述无线连接管理装置还包括: 20. The wireless connection management device according to any one of claims 11 to 19, wherein the wireless connection management device further includes:
更新单元, 配置为在所述预设条件还包括排除的连接时, 在所述选择 单元选择接入网络所使用的无线连接之前, 根据所述排除的连接, 更新所 述无线连接优先级排序; 所述排除的连接为最低优先级别的无线连接。 An update unit configured to update the wireless connection priority ranking according to the excluded connection before the selection unit selects the wireless connection used to access the network when the preset condition also includes an excluded connection; The excluded connection is the wireless connection with the lowest priority.
21、 一种终端, 包括权利要求 11至 20任一项所述的无线连接管理装 置。 21. A terminal, including the wireless connection management device according to any one of claims 11 to 20.
22、 一种计算机存储介质, 所述计算机存储介质中存储有计算机可执 行指令, 所述计算机可执行指令用于执行权利要求 1至 10任一项所述的无 线连接管理方法。 22. A computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the wireless connection management method according to any one of claims 1 to 10.
PCT/CN2014/076834 2014-03-07 2014-05-06 Wireless connection management method, device, terminal and computer storage medium WO2015131439A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410084130.8 2014-03-07
CN201410084130.8A CN104902514A (en) 2014-03-07 2014-03-07 Load balance method and device

Publications (1)

Publication Number Publication Date
WO2015131439A1 true WO2015131439A1 (en) 2015-09-11

Family

ID=54034850

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/076834 WO2015131439A1 (en) 2014-03-07 2014-05-06 Wireless connection management method, device, terminal and computer storage medium

Country Status (2)

Country Link
CN (1) CN104902514A (en)
WO (1) WO2015131439A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528564A (en) * 2015-09-11 2017-03-22 中国移动通信集团河北有限公司 Congestion data processing method and apparatus
CN106879027A (en) * 2017-03-30 2017-06-20 上海斐讯数据通信技术有限公司 A kind of load-balancing method and system based on wireless routing device response speed

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895886A (en) * 2009-05-22 2010-11-24 南京中兴软件有限责任公司 Method and device for selecting access point
CN102811475A (en) * 2012-08-28 2012-12-05 哈尔滨工业大学 Method for selecting optimal network to access based on android intelligent terminal
WO2013100629A1 (en) * 2011-12-27 2013-07-04 엘지전자 주식회사 Method for offloading data in wireless communication system and apparatus for same
WO2013103349A1 (en) * 2012-01-06 2013-07-11 Hewlett-Packard Development Company, L.P. Wireless access point assignment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102685750A (en) * 2012-06-12 2012-09-19 刘梦阳 Method for accessing wireless network, equipment and wireless network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895886A (en) * 2009-05-22 2010-11-24 南京中兴软件有限责任公司 Method and device for selecting access point
WO2013100629A1 (en) * 2011-12-27 2013-07-04 엘지전자 주식회사 Method for offloading data in wireless communication system and apparatus for same
WO2013103349A1 (en) * 2012-01-06 2013-07-11 Hewlett-Packard Development Company, L.P. Wireless access point assignment
CN102811475A (en) * 2012-08-28 2012-12-05 哈尔滨工业大学 Method for selecting optimal network to access based on android intelligent terminal

Also Published As

Publication number Publication date
CN104902514A (en) 2015-09-09

Similar Documents

Publication Publication Date Title
JP6700155B2 (en) Connection manager for wireless communication devices
JP6274211B2 (en) Wireless communication terminal, communication method, program, information processing apparatus, and distribution server
US10064127B2 (en) Automated service provider network selection using a wireless air-time auction
KR101584922B1 (en) Wireless communication device, wireless communication system, and related methods
US11611931B2 (en) WI-FI hotspot recommendation method, terminal, and graphical user interface
US10805875B2 (en) Method and apparatus for automatically selecting network according to tariff, server, and terminal
CN104703254B (en) network access method and device
US8174998B2 (en) Network connecting apparatus and connection setup method
WO2016095118A1 (en) Method and device for home wifi station device to select link for data transmitting
US8249505B1 (en) Method and apparatus for selecting a mode in a multi-mode communications client
WO2016165235A1 (en) Wireless network connection method, device and terminal
WO2010051460A1 (en) Network selection method and a terminal device incorporating the method
US10932123B2 (en) Systems and methods for temporary wireless data service
KR20140049612A (en) Providing communication path information in hybrid networks
US9014036B2 (en) Dynamic band selection and aggregation
WO2015058583A1 (en) Method and apparatus for processing network access
JP2016512674A (en) Apparatus and method for performing a more desirable PLMN search during DRX in connected mode
WO2015184820A1 (en) Wifi hotspot connection method and device
WO2014180302A1 (en) Application internet access processing method, apparatus, and terminal
WO2015131439A1 (en) Wireless connection management method, device, terminal and computer storage medium
WO2011110104A1 (en) Access method, device and system for terminals
WO2015139292A1 (en) Connected state admission method, apparatus and device
JP2008187417A (en) Cellular phone
JP2015146470A (en) Radio communication terminal, information processing device, communication method, control method, program, and distribution server
WO2015006943A1 (en) Method, apparatus and terminal for preferentially selecting trusted wlan access network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14884459

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14884459

Country of ref document: EP

Kind code of ref document: A1