Application Access Method, Device, Equipment and Medium in Dual WIFI Networks

By identifying and managing the access status of WIFI networks applied in terminals, the problem of application lag in multiple WIFI network environments is solved, and a better user experience is achieved.

CN114390592BActive Publication Date: 2025-07-01GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011123031.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-20
Publication Date
2025-07-01
Estimated Expiration
2040-10-20

AI Technical Summary

Technical Problem

When there are multiple WIFI networks, how to effectively utilize each WIFI network to avoid application lags and affect user experience is an urgent problem.

Method used

By receiving the instruction to start the target application, the number of applications that have been connected to the first WIFI network and the number of applications that have been connected to the second WIFI network in the packet where the target application is located is identified. According to the network traffic difference value within the preset difference threshold, the target application is connected to the WIFI network with a small number of applications.

Benefits of technology

Effectively utilize each WIFI network to avoid lag in the service provided by a certain WIFI network in the application, and improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114390592B_ABST
    Figure CN114390592B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and medium for application access in a dual-WiFi network, aiming to solve the problem in the prior art of how to effectively utilize each WiFi network in the presence of multiple WiFi networks to avoid application lag and affect the user experience. Since in the embodiment of the present invention, the terminal receives an input start instruction for a target application, and according to each preset group, identifies the number of the first applications that have accessed the first WiFi network and the number of the second applications that have accessed the second WiFi network in the target group where the target application is located, wherein the difference in the network traffic consumed by the applications in each group is within a preset difference threshold range, and the target application is connected to the WiFi network corresponding to the smaller value of the number of the first applications and the number of the second applications, so as to effectively utilize each WiFi network, avoid the phenomenon of lag caused by the applications being concentratedly served by a certain WiFi network, and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of terminal communication, and in particular to an application access method, device, equipment and medium in a dual-WiFi network. Background Art

[0002] With the development of random technology and people's pursuit of Internet speed, some existing manufacturers have added a dual-WiFi network client framework (Static Timing Analysis, STA) to the terminal system, that is, the terminal can connect to two Wi-Fi networks at the same time, and the terminal can use these two Wi-Fi networks to access the Internet at the same time, improving the download speed of the terminal.

[0003] However, in the prior art, only the basic framework for turning on the dual-WiFi network is provided, and there is no corresponding implementation solution for how to use the dual-WiFi network and how to allocate the application software in the terminal and the dual-WiFi network.

[0004] Therefore, when there are multiple Wi-Fi networks, how to effectively utilize each Wi-Fi network to avoid application lag and affect the user experience is an urgent problem to be solved. Summary of the Invention

[0005] The present invention provides an application access method, device, equipment and medium in a dual-WiFi network to solve the problem in the prior art of how to effectively utilize each Wi-Fi network when there are multiple Wi-Fi networks, avoid application lag, and affect the user experience.

[0006] An embodiment of the present invention provides an application access method in a dual-WiFi network, and the method includes:

[0007] Receiving an instruction to start a target application;

[0008] According to each preset group, identifying the number of first applications that have accessed the first Wi-Fi network and the number of second applications that have accessed the second Wi-Fi network in the target group where the target application is located, wherein the difference in the network traffic consumed by the applications in each group is within a preset difference threshold range;

[0009] Connecting the target application to the Wi-Fi network corresponding to the smaller value of the number of the first applications and the number of the second applications.

[0010] Further, before receiving the instruction to start the target application, the method further includes:

[0011] Identifying each group of first applications whose total network traffic difference is within a preset difference threshold range according to the total network traffic consumed by each application in the terminal collected within a set time length;

[0012] Save the identification information of each first application into the corresponding group.

[0013] Further, before identifying each group of applications whose difference in total network traffic is within a preset difference threshold range according to the total network traffic consumed by each application in the terminal collected within a set time length, the method further includes:

[0014] Identify a second application whose total network traffic is less than a set threshold;

[0015] Save the identification information of each second application in a preset traffic-saving group.

[0016] Further, after receiving an instruction to start a target application, before identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group, the method further includes:

[0017] Determine whether the target group where the target application is located is a traffic-saving group;

[0018] If not, perform the subsequent steps of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

[0019] Further, if the target group where the target application is located is the traffic-saving group, the method further includes:

[0020] Generate a target random number, where the target random number is an integer;

[0021] Determine the target WIFI network to which the target application is to be connected according to the parity of the target random number and the corresponding relationship between the preset WIFI network and the parity of the target random number.

[0022] Further, after receiving an instruction to start a target application, before identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group, the method further includes:

[0023] Determine whether the current network state of the terminal is a dual-WIFI network;

[0024] If so, perform the subsequent steps of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

[0025] Further, the method further includes:

[0026] If the current network state of the terminal is not a dual-WiFi network, connect the target application to the current first Wi-Fi network of the terminal.

[0027] Further, the method further includes:

[0028] If an instruction to start the second Wi-Fi network is received, determine the third applications that have been connected to the first Wi-Fi network in each group;

[0029] Obtain some of the fourth applications in the third applications, and connect the fourth applications to the second Wi-Fi network that has been started, where the fourth applications are not foreground applications.

[0030] An embodiment of the present invention further provides an application access device in a dual-WiFi network. The device includes:

[0031] A receiving module, configured to receive an instruction to start a target application;

[0032] A processing module, configured to identify, according to each preset group, the number of first applications that have been connected to the first Wi-Fi network in the target group where the target application is located, and the number of second applications that have been connected to the second Wi-Fi network, where the difference in the network traffic consumed by the applications in each group is within a preset difference threshold range;

[0033] An access module, configured to connect the target application to the Wi-Fi network corresponding to the smaller value of the number of the first applications and the number of the second applications.

[0034] Further, the processing module is further configured to identify each group of first applications whose total network traffic difference is within a preset difference threshold range according to the total network traffic consumed by each application in the terminal collected within a set time length; save the identification information of each first application to the corresponding group.

[0035] Further, the processing module is further configured to identify second applications whose total network traffic is less than a set threshold; save the identification information of each second application in a preset traffic-saving group.

[0036] Further, the device further includes:

[0037] A judgment module, configured to judge whether the target group where the target application is located is a traffic-saving group;

[0038] The processing module is further configured to, if the target group where the target application is located is not a traffic-saving group, perform the subsequent step of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

[0039] Further, the processing module is further configured to, if the target group where the target application is located is the traffic-saving group, generate a target random number, where the target random number is an integer; and determine the target WIFI network to which the target application is to be connected according to the parity of the target random number and the pre-set correspondence between the WIFI network and the parity of the target random number.

[0040] Further, the judging module is further configured to judge whether the current network state of the terminal is a dual-WIFI network; if so, perform the subsequent step of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

[0041] Further, the judging module is further configured to, if the current network state of the terminal is not a dual-WIFI network, connect the target application to the first WIFI network of the terminal currently.

[0042] Further, the processing module is further configured to, if a command to start the second WIFI network is received, determine third applications that have accessed the first WIFI network in each group; obtain some fourth applications from the third applications, and connect the fourth applications to the second WIFI network that has been started, where the fourth applications are not foreground applications.

[0043] An embodiment of the present invention further provides an electronic device, where the electronic device at least includes a processor and a memory, and the processor is configured to implement the steps of the application access method in any of the above dual-WIFI networks when executing a computer program stored in the memory.

[0044] An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and the computer program implements the steps of the application access method in any of the above dual-WIFI networks when being executed by a processor.

[0045] Since in the embodiments of the present invention, the terminal receives an input start instruction for a target application, and according to each preset group, identifies the number of the first applications that have accessed the first WIFI network and the number of the second applications that have accessed the second WIFI network in the target group where the target application is located, wherein the difference in the network traffic consumed by the applications in each group is within a preset difference threshold range, and the target application is connected to the WIFI network corresponding to the smaller value of the number of the first applications and the number of the second applications, thereby effectively utilizing each WIFI network, avoiding the phenomenon of jamming caused by applications being concentratedly served by a certain WIFI network, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the present invention, the accompanying drawings required for the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings according to these drawings without creative efforts.

[0047] Figure 1 FIG. is a schematic diagram of the application access process in a dual WIFI network provided by an embodiment of the present invention;

[0048] Figure 2 FIG. is a schematic flow chart of grouping applications provided by an embodiment of the present invention;

[0049] Figure 3 FIG. is a schematic flow chart of the application access in a dual WIFI network provided by an embodiment of the present invention;

[0050] Figure 4 FIG. is a schematic flow chart of the dual WIFI network switching provided by an embodiment of the present invention;

[0051] Figure 5 FIG. is a schematic structural diagram of an application access device in a dual WIFI network provided by an embodiment of the present invention;

[0052] Figure 6 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0053] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part rather than all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the scope of protection of the present invention.

[0054] To improve the running speed of an application and enhance the user experience, an embodiment of the present invention provides a method, apparatus, device, and medium for an application to access a dual-WIFI network.

[0055] Embodiment 1:

[0056] Figure 1 The following is a schematic diagram of the process for an application to access a dual-WIFI network provided by an embodiment of the present invention. The process includes the following steps:

[0057] S101: Receive an instruction to start a target application.

[0058] The method for an application to access a dual-WIFI network provided by an embodiment of the present invention is based on a terminal, where the terminal can be a mobile terminal, a PC, or other devices that support network access.

[0059] In an embodiment of the present invention, when there is a need to use a certain application, an instruction to start the application can be sent to the terminal. To facilitate the distinction between applications that require WIFI network usage and those that do not, in an embodiment of the present invention, an application that requires WIFI network usage is referred to as a target application. In an embodiment of the present invention, the way to send an instruction to the terminal can be to input a trigger instruction on the display interface. For example, by triggering the icon of the target application displayed on the display interface.

[0060] S102: According to each preset group, identify the number of the first applications that have accessed the first WIFI network and the number of the second applications that have accessed the second WIFI network in the target group where the target application is located, where the difference in the network traffic consumed by the applications in each group is within a preset difference threshold range.

[0061] In an embodiment of the present invention, the network traffic consumed by each target application during operation is different. Some target applications consume a relatively large amount of network traffic during operation, such as video applications, game applications, etc., while some target applications consume a relatively small amount of network traffic during operation, such as calendar, clock applications, etc.

[0062] To make full use of the two WIFI networks and balance the network traffic consumed by the target applications accessing the two WIFI networks, the target applications can be accessed to different WIFI networks according to the network traffic consumption situation of each target application. To improve the efficiency of accessing the target applications to the WIFI network, in an embodiment of the present invention, the terminal pre-groups the installed applications according to the traffic consumption situation of each installed application within a set time length, and for each group, the identification information of the applications divided into the group can be saved.

[0063] To further ensure the full utilization of network resources and avoid lags during the use of applications, when grouping applications, the difference in network traffic consumed by the applications in each group within a preset time length is within a preset difference threshold range. The preset difference threshold range can be set according to the actual usage of the terminal.

[0064] After receiving an instruction to start a target application, the terminal determines the target group where the target application is located according to the preset grouping. And it identifies the number of the first applications that have accessed the first WIFI network and the number of the second applications that have accessed the second WIFI network in the target group.

[0065] During the actual use of the terminal, some of the installed applications on the terminal may not be used, that is, these applications do not consume network traffic currently. Therefore, it is necessary to count the number of applications with network consumption in the target group that have accessed each WIFI network, that is, the number of the first applications that have accessed the first WIFI network and the number of the second applications that have accessed the second WIFI network in the target group.

[0066] S103: Connect the target application to the WIFI network corresponding to the smaller value of the number of the first applications and the number of the second applications.

[0067] In the embodiment of the present invention, after identifying the number of the first applications that have accessed the first WIFI network and the number of the second applications that have accessed the second WIFI network in the target group, since the target group is obtained by the terminal pre-grouping the installed applications according to the network traffic consumption of each application, the difference in network traffic consumed by the applications in the target group does not exceed the preset difference threshold range. Therefore, to balance the load of each WIFI network, the terminal connects the target application to the WIFI network corresponding to the smaller value of the number of the first applications and the number of the second applications.

[0068] For example, there are three applications in the target group that have accessed the first WIFI network and four applications that have accessed the second WIFI network. That is, the number of the first applications that have accessed the first WIFI network in the target group is three, and the number of the second applications that have accessed the second WIFI network is four. At this time, the number of the first applications is less than the number of the second applications, so the target application is connected to the first WIFI network.

[0069] If the number of the first applications is the same as the number of the second applications, the target application can be randomly connected to any WIFI network; or, when the number of the first applications is the same as the number of the second applications, the terminal can randomly generate a target random number that is an integer, and according to the correspondence between the parity of the preset target random number and the two WIFI networks, connect the target application to the corresponding WIFI network.

[0070] For example, three applications in the target group have been connected to the first WIFI network, and three applications have been connected to the second WIFI network, that is, the number of the first applications that have been connected to the first WIFI network in the target group is three, and the number of the second applications that have been connected to the second WIFI network is three. At this time, the number of the first applications is equal to the number of the second applications. At this time, the target random number generated by the terminal is 8. It is preset that if the target random number is odd, the target application will be connected to the first WIFI network, and if the target random number is even, the target application will be connected to the second WIFI network. At this time, the target random number 8 is even, so the target application will be connected to the second WIFI network.

[0071] Since in the embodiment of the present invention, the applications with the difference in the consumed network traffic within the preset difference threshold range are grouped into one group. When receiving an instruction to start a target application, according to the number of applications that have been connected to each WIFI network in the group where the target application is located, the target application is connected to the WIFI network with a smaller number of applications, so that each WIFI network can be effectively utilized, avoiding the situation that applications are concentrated on a certain WIFI network and causing the service provided by it to be stuck, and improving the user experience.

[0072] Embodiment 2:

[0073] In order to group the applications of the terminal, on the basis of the above embodiment, in the embodiment of the present invention, before receiving the instruction to start a target application, the method further includes:

[0074] According to the total network traffic consumed by each application in the terminal collected within a set time length, identify each group of first applications with the difference in the total network traffic within the preset difference threshold range;

[0075] Save the identification information of each first application into the corresponding group.

[0076] In the embodiment of the present invention, in order to improve the efficiency of connecting a target application to a WIFI network, the terminal will count the total network traffic consumed by each installed application within a set time length, and arrange the consumed total network traffic in a certain order, group the applications according to the sorting, and the difference in the total network traffic consumed by the first applications in each group is within the preset difference threshold range.

[0077] Among them, the set time length can be set by the user himself or pre-configured in the terminal before leaving the factory. The set time length can be one day, several days, one week, one month, etc., and can be specifically set according to requirements.

[0078] And when counting the total network traffic consumed by the applications in the terminal within the set time length, it can be carried out when the terminal is relatively idle. For example, generally the terminal is less used in the early morning, so the network traffic consumed by each application in the terminal collected within the set time length can be counted in the early morning, so as to determine the total network traffic consumed by each application.

[0079] In the embodiment of the present invention, when arranging the consumed total network traffic in a certain order, it can be arranged in descending order of the consumed total network traffic. Grouping is carried out according to the sorting result and the difference between the total network traffic consumed by each application.

[0080] Specifically, the highest value of the consumed total network traffic can be used as the first reference total network traffic, and the difference between the first reference total network traffic and other total network traffic is calculated in turn according to the sorting result, and it is judged whether the difference is within the preset difference threshold range. The applications corresponding to the total network traffic with all differences within the preset difference threshold range are grouped into one group, and then the remaining total network traffic is continued to be grouped according to the above method, that is, the highest value of the remaining total network traffic is used as the second reference total network traffic, and the total network traffic with the difference from the second reference total network traffic within the preset difference threshold range is identified, and the applications corresponding to the total network traffic with all differences within the preset difference threshold range are grouped into one group. After that, the above grouping is continued for the remaining total network traffic. Since the grouping process is the same as the above method, it will not be elaborated here.

[0081] Figure 2 It is a schematic flow chart of grouping applications provided by the embodiment of the present invention, as Figure 2 shown, and the process includes:

[0082] S201: Record the network traffic consumed by each application according to the network usage situation of each application.

[0083] Specifically, in order to avoid resource waste caused by too frequent recording, the recording time interval can be set; in order to enable the terminal to record the network traffic consumption of each application in time, the network traffic consumed by each application is counted and recorded every day.

[0084] S202: Count the total network traffic consumed by each application within the set time length, and sort the total network traffic consumed by each application.

[0085] S203: Identify each group of first applications whose difference in total network traffic is within a preset difference threshold range.

[0086] In addition, after recording the total network traffic consumed by each target application installed within a set time length, the daily average network traffic consumption of each target application can be calculated, and the target applications can be grouped according to the daily average network traffic consumption and the preset difference threshold. Among them, the set time length can be set by the user himself, or can be pre-configured in the terminal before leaving the factory. The set time length can be one day, several days, one week, one month, etc., and can be specifically set according to requirements; the preset difference threshold can also be set by the user himself, or can be pre-configured in the terminal before leaving the factory. Among them, the user's self-setting is more flexible. Specifically, when there are many applications with a large total network traffic consumption, the preset difference threshold can be set smaller; when there are few applications with a large total network traffic consumption, the preset difference threshold can be set larger. Similarly, when the user uses the terminal not very frequently, the set time length can be set longer; when the user uses the terminal very frequently, the set time length can be set shorter.

[0087] After the grouping is completed, save the identification information of each first application to the corresponding group. In this way, after receiving an instruction to start a target application, it is possible to find out which group the identification information of the target application is in, so as to confirm the target group of the target application.

[0088] In order to distinguish from the applications mentioned later, in the embodiments of the present invention, the grouped applications are called first applications. In addition, in the embodiments of the present invention, all applications in the terminal can be grouped. However, for some applications, the network traffic they consume is very small. Such applications will not bring load pressure to the WIFI network after accessing the WIFI network. On the contrary, grouping them will waste the resources of the terminal. Therefore, these applications can be not grouped.

[0089] In order to improve the access efficiency of applications, on the basis of the above embodiments, in the embodiments of the present invention, before identifying each group of applications whose difference in total network traffic is within a preset difference threshold range according to the total network traffic consumed by each application in the terminal collected within a set time length, the method further includes:

[0090] Identify second applications whose total network traffic is less than a set threshold;

[0091] Save the identification information of each second application in a preset traffic-saving group.

[0092] During use, some applications are not used very frequently, or some applications consume very little network traffic and do not impose a load on the WIFI network. In the embodiments of the present invention, when grouping applications, second applications with a total network traffic less than a set threshold can be identified. And the identification information of each identified second application is saved in a preset traffic-saving group. The difference in the total network traffic of the second applications in the traffic-saving group is not affected by the preset difference threshold range, that is, the difference in the total network traffic of the second applications in the traffic-saving group can be within the preset difference threshold range or can exceed the preset difference threshold range.

[0093] To connect a target application to a WIFI network, based on the above embodiments, in the embodiments of the present invention, after receiving an instruction to start the target application, before identifying the number of first applications that have entered the first WIFI network and the number of second applications that have entered the second WIFI network in the target group where the target application is located according to each preset group, the method further includes:

[0094] Determine whether the target group where the target application is located is a traffic-saving group;

[0095] If not, then perform the subsequent steps of identifying the number of first applications that have entered the first WIFI network and the number of second applications that have entered the second WIFI network in the target group where the target application is located according to each preset group.

[0096] To connect the target application to a WIFI network, based on the above embodiments, in the embodiments of the present invention, if the target group where the target application is located is the traffic-saving group, the method further includes:

[0097] Generate a target random number, where the target random number is an integer;

[0098] According to the parity of the target random number and the pre-set correspondence between the WIFI network and the parity of the target random number, determine the target WIFI network to which the target application is connected.

[0099] In the embodiments of the present invention, because the second applications in the traffic-saving group consume less network traffic, when the second applications in the traffic-saving group are connected to the WIFI network, they will not impose an excessive load on the connected WIFI network. Therefore, the second applications in the traffic-saving group can be connected to any WIFI network. To improve the efficiency of connecting the target application to the WIFI network, after receiving an instruction to start the target application, it can be first determined whether the target application is located in the traffic-saving group. If the target application is not located in the traffic-saving group, then continue with the subsequent operations.

[0100] If the target application is within the traffic-saving group, the terminal randomly generates a target random number corresponding to the target application. The terminal stores the corresponding relationship between the pre-set WIFI networks and the parity of the target random numbers. According to the target random number and the corresponding relationship, the target WIFI network to which the target application is to be connected is determined.

[0101] For example, it can be pre-set that the first WIFI network corresponds to a target random number that is odd, and the second WIFI network corresponds to a target random number that is even. When the target application is an application in the traffic-saving group, the terminal generates a target random number. If the target random number is odd, the target application is connected to the first WIFI network. If the target random number is even, the target application is connected to the second WIFI network.

[0102] Embodiment 3:

[0103] In order to connect the target application to the WIFI network, based on the above embodiments, in an embodiment of the present invention, after receiving an instruction to start the target application, before identifying the number of the first applications that have been connected to the first WIFI network and the number of the second applications that have been connected to the second WIFI network in the target group where the target application is located according to each pre-set group, the method further includes:

[0104] Determine whether the current network state of the terminal is a dual-WIFI network;

[0105] If so, perform the subsequent steps of identifying the number of the first applications that have been connected to the first WIFI network and the number of the second applications that have been connected to the second WIFI network in the target group where the target application is located according to each pre-set group.

[0106] In an embodiment of the present invention, the terminal supports a dual-WIFI network, but whether the dual-WIFI network of the terminal is turned on simultaneously can be selected, that is, the terminal can currently be a dual-WIFI network or a single-WIFI network.

[0107] After receiving an instruction to start the target application, it can be determined whether the current network state of the terminal is a dual-WIFI network, that is, to determine whether the terminal is currently connected to two WIFI networks. When the current network state of the terminal is a dual-WIFI network, the subsequent steps of identifying the number of the first applications that have been connected to the first WIFI network and the number of the second applications that have been connected to the second WIFI network in the target group where the target application is located according to each pre-set group are performed.

[0108] In order to accurately connect the target application, based on the above embodiments, in an embodiment of the present invention, the method further includes:

[0109] If the current network status of the terminal is not a dual-WiFi network, connect the target application to the current first Wi-Fi network of the terminal.

[0110] When the current network status is not a dual-WiFi network, it means that the terminal is only connected to one Wi-Fi network at this time, that is, the terminal is only working through the first Wi-Fi network at this time. At this time, connect the target application to the current first Wi-Fi network of the terminal, where the first Wi-Fi network is the Wi-Fi network currently connected by the terminal.

[0111] Figure 3 The following is a schematic flowchart of the application access in a dual-WiFi network provided by an embodiment of the present invention. As Figure 3 shown, the process includes:

[0112] S301: Receive an instruction to start a target application.

[0113] S302: Determine whether the current network status of the terminal is a dual-WiFi network. If so, execute S303; if not, execute S308.

[0114] S303: Determine whether the target group where the target application is located is a traffic-saving group. If not, execute S304; if so, execute S307.

[0115] S304: Identify the number of the first applications that have been connected to the first Wi-Fi network and the number of the second applications that have been connected to the second Wi-Fi network in the target group where the target application is located according to each preset group.

[0116] S305: Connect the target application to the Wi-Fi network corresponding to the smaller value of the number of the first applications and the number of the second applications.

[0117] S306: Update the number of applications connected to each Wi-Fi network.

[0118] In the embodiment of the present invention, after connecting the target application to the Wi-Fi network corresponding to the smaller value of the number of the first applications and the number of the second applications, it is necessary to update the number of applications corresponding to the connected Wi-Fi network to ensure the accuracy of the saved number of the first applications and the number of the second applications.

[0119] S307: Generate a target random number, and determine the target Wi-Fi network to which the target application is connected according to the parity of the target random number and the corresponding relationship between the pre-set Wi-Fi network and the parity of the target random number.

[0120] S308: If the current network status of the terminal is not a dual-WiFi network, connect the target application to the current first Wi-Fi network.

[0121] In order to accurately connect an application to a newly started WIFI network, based on the above embodiments, in an embodiment of the present invention, the method further includes:

[0122] If a command to start a second WIFI network is received, determine third applications that have been connected to the first WIFI network in each group;

[0123] Obtain some fourth applications in the third applications, and connect the fourth applications to the second WIFI network that has been started, where the fourth applications are non-foreground applications.

[0124] In an embodiment of the present invention, when the current network state of the terminal device is not a dual-WIFI network, if you want to improve the running speed or download speed of the terminal, you can trigger a command to start a second WIFI network. After the terminal receives the command to start the second WIFI network, it starts the second WIFI network. At this time, no application is connected to the second WIFI network. In order to reduce the load pressure on the first WIFI network, some applications that have been connected to the first WIFI network can be connected to the second WIFI network.

[0125] In order to achieve load balancing between the first WIFI network and the second WIFI network, after starting the second WIFI network, the terminal determines third applications that have been connected to the first WIFI network in each group. For each group, some applications that have been connected to the first WIFI network in the group are connected to the second WIFI network. Some fourth applications in the third applications may not be all the applications in the third applications. For example, they can be several with a fixed number in the third applications. However, in order to achieve load balancing, when considering connecting some fourth applications in the third applications to the second WIFI network, the number of third applications that have been connected to the first WIFI network also needs to be considered, and the partial quantity is determined based on this number, and the fourth applications with this partial quantity are connected to the second WIFI network. The above third applications and fourth applications are both described for applications in the same group.

[0126] In order to further achieve load balancing, when connecting some applications that have been connected to the first WIFI network to the second WIFI network, the specific number of applications connected to the second WIFI network is determined according to the number of the third applications. Preferably, half of the number of the fourth applications in the third applications can be connected to the second WIFI network.

[0127] Because when connecting the fourth application to the second WIFI network, the fourth application needs to switch from the first WIFI network to the second WIFI network, and there may be a lag situation. In order not to affect the user experience, the fourth application is a non-foreground application.

[0128] Figure 4 A schematic flowchart of dual WIFI network switching provided by an embodiment of the present invention is as follows Figure 4 shown, and the process includes:

[0129] S401: Receive an instruction to start the second WIFI network.

[0130] In an embodiment of the present invention, when the current network state of the terminal device is not a dual WIFI network, if it is desired to improve the running speed or download speed of the terminal, an instruction to start the second WIFI network can be triggered, and the terminal receives this instruction.

[0131] S402: Determine the third applications that have accessed the first WIFI network in each group.

[0132] S403: For each group, determine some fourth applications in the third application.

[0133] When a part of the fourth applications that have accessed the first WIFI network are to be accessed to the second WIFI network, the specific number of fourth applications accessed to the second WIFI network is determined according to the number of the third applications. Preferably, half of the number of the third applications of the fourth applications can be accessed to the second WIFI network.

[0134] S404: According to the identification information of each fourth application, determine whether the fourth application is a foreground application. If so, execute S406; if not, execute S405.

[0135] In an embodiment of the present invention, in order to avoid affecting the user experience, the WIFI network is not switched for the foreground application that is currently working. Therefore, when switching the WIFI network, it is necessary to determine whether the fourth application to be switched is a foreground application.

[0136] S405: Access the fourth application to the second WIFI network.

[0137] S406: Keep the access of the fourth application unchanged in the first WIFI network.

[0138] Embodiment 4:

[0139] Figure 5 A schematic structural diagram of an application access device in a dual WIFI network provided by an embodiment of the present invention, the device includes:

[0140] A receiving module 501, configured to receive an instruction to start a target application;

[0141] A processing module 502 is configured to identify the number of first applications that have accessed a first WIFI network and the number of second applications that have accessed a second WIFI network in a target group where the target application is located according to each preset group, wherein the difference in network traffic consumed by applications in each group is within a preset difference threshold range.

[0142] An access module 503 is configured to access the target application to the WIFI network corresponding to the smaller value of the number of first applications and the number of second applications.

[0143] In a possible implementation manner, the processing module 502 is further configured to identify each group of first applications whose total network traffic difference is within a preset difference threshold range according to the total network traffic consumed by each application in the terminal collected within a set time length; and save the identification information of each first application into the corresponding group.

[0144] In a possible implementation manner, the processing module 502 is further configured to identify second applications whose total network traffic is less than a set threshold; and save the identification information of each second application in a preset traffic-saving group.

[0145] In a possible implementation manner, the device further includes:

[0146] A judgment module 504 is configured to judge whether the target group where the target application is located is a traffic-saving group.

[0147] The processing module 502 is further configured to, if the target group where the target application is located is not a traffic-saving group, perform the subsequent step of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

[0148] In a possible implementation manner, the processing module 502 is further configured to, if the target group where the target application is located is the traffic-saving group, generate a target random number, where the target random number is an integer; and determine the target WIFI network accessed by the target application according to the parity of the target random number and the corresponding relationship between the preset WIFI network and the parity of the target random number.

[0149] In a possible implementation manner, the judgment module 504 is further configured to judge whether the current network state of the terminal is a dual-WIFI network; if so, perform the subsequent step of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

[0150] In a possible implementation, the determination module 504 is further configured to connect the target application to the current first WIFI network of the terminal if the current network state of the terminal is not a dual-WIFI network.

[0151] In a possible implementation, the processing module 502 is further configured to, if a command to start the second WIFI network is received, determine third applications that have been connected to the first WIFI network in each group; obtain some fourth applications among the third applications, and connect the fourth applications to the second WIFI network that has been started, where the fourth applications are not foreground applications.

[0152] Embodiment 5:

[0153] Figure 6 FIG. is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. On the basis of the above embodiments, an embodiment of the present invention further provides an electronic device, as Figure 6 shown, including: a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604;

[0154] A computer program is stored in the memory 603. When the program is executed by the processor 601, the processor 601 is caused to execute the following steps:

[0155] Receive a command to start a target application;

[0156] According to each preset group, identify the number of first applications that have been connected to the first WIFI network and the number of second applications that have been connected to the second WIFI network in the target group where the target application is located, where the difference in the network traffic consumed by the applications in each group is within a preset difference threshold range;

[0157] Connect the target application to the WIFI network corresponding to the smaller value of the number of first applications and the number of second applications.

[0158] In a possible implementation, before receiving the command to start the target application, the method further includes:

[0159] According to the total network traffic consumed by each application in the terminal collected within a set time period, identify each group of first applications whose difference in total network traffic is within a preset difference threshold range;

[0160] Save the identification information of each first application to the corresponding group.

[0161] In a possible implementation, before identifying each group of applications whose difference in total network traffic is within a preset difference threshold range according to the total network traffic consumed by each application in the terminal collected within a set time length, the method further includes:

[0162] Identifying a second application whose total network traffic is less than a set threshold;

[0163] Saving the identification information of each second application in a preset traffic-saving group.

[0164] In a possible implementation, after receiving an instruction to start a target application, before identifying, according to each preset group, the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located, the method further includes:

[0165] Judging whether the target group where the target application is located is a traffic-saving group;

[0166] If not, then perform the subsequent steps of identifying, according to each preset group, the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located.

[0167] In a possible implementation, if the target group where the target application is located is the traffic-saving group, the method further includes:

[0168] Generating a target random number, where the target random number is an integer;

[0169] Determining the target WIFI network to which the target application is to be connected according to the parity of the target random number and the corresponding relationship between the preset WIFI network and the parity of the target random number.

[0170] In a possible implementation, after receiving an instruction to start a target application, before identifying, according to each preset group, the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located, the method further includes:

[0171] Judging whether the current network state of the terminal is a dual-WIFI network;

[0172] If so, then perform the subsequent steps of identifying, according to each preset group, the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located.

[0173] In a possible implementation, the method further includes:

[0174] If the current network state of the terminal is not a dual-WiFi network, connect the target application to the current first WiFi network of the terminal.

[0175] In a possible implementation, the method further includes:

[0176] If a command to start the second WiFi network is received, determine the third applications that have been connected to the first WiFi network in each group;

[0177] Obtain some of the fourth applications in the third applications, and connect the fourth applications to the second WiFi network that has been started, where the fourth applications are not foreground applications.

[0178] Since the principle of the above electronic device for solving problems is similar to that of the communication method, the implementation of the above electronic device can refer to the implementation of the method, and the repeated parts will not be described again.

[0179] The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of simplicity, only a thick line is shown in the figure, but it does not mean that there is only one bus or one type of bus.

[0180] The communication interface 602 is used for communication between the above electronic device and other devices.

[0181] The memory may include a Random Access Memory (RAM), and may also include a Non-Volatile Memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far from the aforementioned processor.

[0182] The above processor may be a general-purpose processor, including a central processor, a Network Processor (NP), etc.; it may also be a Digital Signal Processing (DSP), an application-specific integrated circuit, a field-programmable gate array, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0183] Embodiment 6:

[0184] Based on the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored. When the program runs on the processor, the processor is caused to execute the following steps:

[0185] Receive an instruction to start a target application;

[0186] According to each preset group, identify the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located, where the difference in network traffic consumed by the applications in each group is within a preset difference threshold range;

[0187] Connect the target application to the WIFI network corresponding to the smaller value of the number of the first applications and the number of the second applications.

[0188] In a possible implementation manner, before receiving the instruction to start the target application, the method further includes:

[0189] According to the total network traffic consumed by each application in the terminal collected within a set time length, identify each group of first applications whose difference in total network traffic is within a preset difference threshold range;

[0190] Save the identification information of each first application into the corresponding group.

[0191] In a possible implementation manner, before identifying each group of applications whose difference in total network traffic is within a preset difference threshold range according to the total network traffic consumed by each application in the terminal collected within a set time length, the method further includes:

[0192] Identify second applications whose total network traffic is less than a set threshold;

[0193] Save the identification information of each second application in a preset traffic-saving group.

[0194] In a possible implementation manner, after receiving the instruction to start the target application and before identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group, the method further includes:

[0195] Determine whether the target group where the target application is located is a traffic-saving group;

[0196] Otherwise, perform the subsequent steps of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

[0197] In a possible implementation manner, if the target group where the target application is located is the traffic-saving group, the method further includes:

[0198] Generate a target random number, where the target random number is an integer;

[0199] According to the parity of the target random number and the pre-set correspondence between the WIFI network and the parity of the target random number, determine the target WIFI network to which the target application is to be connected.

[0200] In a possible implementation manner, after receiving the instruction to start the target application and before the step of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group, the method further includes:

[0201] Determine whether the current network state of the terminal is a dual-WIFI network;

[0202] If so, perform the subsequent steps of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

[0203] In a possible implementation manner, the method further includes:

[0204] If the current network state of the terminal is not a dual-WIFI network, connect the target application to the first WIFI network of the terminal currently.

[0205] In a possible implementation manner, the method further includes:

[0206] If receiving an instruction to start the second WIFI network, determine the third applications that have accessed the first WIFI network in each group;

[0207] Obtain some fourth applications among the third applications and connect the fourth applications to the second WIFI network that has been started, where the fourth applications are not foreground applications.

[0208] Since the principle of the computer-readable medium provided above for solving problems is similar to that of the communication method, the steps implemented after the processor executes the computer program in the computer-readable medium can refer to the above other embodiments, and the repeated parts will not be elaborated.

[0209] Those skilled in the art will understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.

[0210] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, as well as the combination of flows and / or blocks in the flowchart and / or block diagram, can be realized by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate means for realizing the functions specified in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0211] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means realizes the functions specified in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0212] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide steps for realizing the functions specified in one Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0213] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these changes and modifications.

Claims

1. An application access method in a dual-WIFI network, characterized in that, The method includes: Receiving an instruction to start a target application; According to each preset group, identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located, where the difference in network traffic consumed by the applications in each group is within a preset difference threshold range; Connecting the target application to the WIFI network corresponding to the smaller value of the number of the first applications and the number of the second applications; Among them, the process of grouping includes: According to the traffic consumption situation of each installed application within a set time length, pre-grouping the installed applications; For each group, saving the identification information of the applications assigned to the group; Among them, after receiving the instruction to start the target application and before identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group, the method further includes: Judging whether the target group where the target application is located is a traffic-saving group; If not, perform the subsequent steps of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group; Among them, the applications in the traffic-saving group consume less network traffic.

2. The method according to claim 1, wherein Before receiving the instruction to start the target application, the method further includes: According to the total network traffic consumed by each application in the terminal collected within a set time length, identifying each group of first applications whose difference in total network traffic is within a preset difference threshold range; Saving the identification information of each first application to the corresponding group.

3. The method according to claim 2, wherein Before identifying each group of applications whose difference in total network traffic is within a preset difference threshold range according to the total network traffic consumed by each application in the terminal collected within a set time length, the method further includes: Identifying second applications with total network traffic less than a set threshold; Saving the identification information of each second application in a preset traffic-saving group.

4. The method according to claim 1, wherein If the target group where the target application is located is the traffic-saving group, the method further includes: Generating a target random number, where the target random number is an integer; According to the parity of the target random number and the corresponding relationship between the preset WIFI network and the parity of the target random number, determining the target WIFI network to which the target application is connected.

5. The method according to claim 1, characterized in that, After receiving the instruction to start the target application and before identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group, the method further includes: Judging whether the current network state of the terminal is a dual-WIFI network; If so, perform the subsequent steps of identifying the number of first applications that have accessed the first WIFI network and the number of second applications that have accessed the second WIFI network in the target group where the target application is located according to each preset group.

6. The method according to claim 5, characterized in that The method further includes: If the current network status of the terminal is not a dual-WiFi network, connect the target application to the current first Wi-Fi network of the terminal.

7. The method according to claim 6, characterized in that The method further includes: If a command to start the second Wi-Fi network is received, determine the third applications that have been connected to the first Wi-Fi network in each group; Obtain some of the fourth applications in the third applications, and connect the fourth applications to the second Wi-Fi network that has been started, where the fourth applications are not foreground applications.

8. An application access device in a dual-WIFI network, characterized in that, The device includes: A receiving module, configured to receive a command to start a target application; A processing module, configured to identify, according to each preset group, the number of first applications that have been connected to the first Wi-Fi network in the target group where the target application is located, and the number of second applications that have been connected to the second Wi-Fi network, where the difference in the network traffic consumed by the applications in each group is within a preset difference threshold; An access module, configured to connect the target application to the Wi-Fi network corresponding to the smaller value of the number of the first applications and the number of the second applications; Wherein, the process of grouping includes: According to the traffic consumption of each installed application within a set time period, pre-group the installed applications; For each group, save the identification information of the applications divided into this group; Wherein, the device further includes: A judgment module, configured to judge whether the target group where the target application is located is a traffic-saving group; The processing module is further configured to, if the target group where the target application is located is not a traffic-saving group, perform the subsequent steps of identifying, according to each preset group, the number of first applications that have been connected to the first Wi-Fi network in the target group where the target application is located, and the number of second applications that have been connected to the second Wi-Fi network; Wherein, the applications in the traffic-saving group consume less network traffic.

9. The device according to claim 8, characterized in that, The processing module is further configured to identify each group of first applications whose total network traffic difference is within a preset difference threshold according to the total network traffic consumed by each application in the terminal collected within a set time period; Save the identification information of each first application to the corresponding group.

10. The device according to claim 9, characterized in that, The processing module is further configured to identify second applications whose total network traffic is less than a set threshold; save the identification information of each second application in a preset traffic-saving group.

11. The device according to claim 8, characterized in that The processing module is further configured to, if the target group where the target application is located is a traffic-saving group, generate a target random number, where the target random number is an integer; according to the parity of the target random number and the corresponding relationship between the Wi-Fi network and the parity of the target random number set in advance, determine the target Wi-Fi network to which the target application is connected.

12. The device according to claim 8, characterized in that, The judgment module is further configured to judge whether the current network status of the terminal is a dual-WiFi network; if so, perform the subsequent steps of identifying, according to each preset group, the number of first applications that have been connected to the first Wi-Fi network in the target group where the target application is located, and the number of second applications that have been connected to the second Wi-Fi network.

13. The device according to claim 12, characterized in that, The determination module is further configured to connect the target application to the current first WIFI network of the terminal if the current network state of the terminal is not a dual-WIFI network.

14. The device according to claim 13, characterized in that, The processing module is further configured to, if receiving an instruction to start the second WIFI network, determine third applications that have been connected to the first WIFI network in each group; obtain some fourth applications among the third applications, and connect the fourth applications to the second WIFI network that has been started, where the fourth applications are not foreground applications.

15. An electronic device, characterized in that, The electronic device includes at least a processor and a memory. The processor is configured to implement the steps of the application access method in the dual-WIFI network according to any one of claims 1-7 when executing a computer program stored in the memory.

16. A computer-readable storage medium, characterized in that, It stores a computer program, and when the computer program is executed by the processor, it implements the steps of the application access method in the dual-WIFI network according to any one of claims 1-7.

Citation Information

Patent Citations

  • Traffic balancing method and system

    CN104936231A

  • Application flow management method and terminal

    CN110266613A

  • Network control method and device, storage medium and electronic equipment

    CN111010716A