CN111194059A - Data connection method and device, electronic equipment and readable storage medium - Google Patents

Data connection method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111194059A
CN111194059A CN201911293135.0A CN201911293135A CN111194059A CN 111194059 A CN111194059 A CN 111194059A CN 201911293135 A CN201911293135 A CN 201911293135A CN 111194059 A CN111194059 A CN 111194059A
Authority
CN
China
Prior art keywords
network
determining
paths
access
category
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911293135.0A
Other languages
Chinese (zh)
Inventor
梁玮琪
马颖江
张轶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911293135.0A priority Critical patent/CN111194059A/en
Publication of CN111194059A publication Critical patent/CN111194059A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

According to the data connection method, the data connection device, the electronic equipment and the readable storage medium, the target application program for data connection in the equipment and the category of the target application program are determined, and then the network state corresponding to the category of the target application program is determined according to the preset corresponding relation between the category and the network state, so that the target network access corresponding to the network state in the equipment is determined, and then the data connection is provided for the target application program by using the target network access. According to the scheme, the target network access matched with the target application program is automatically determined, the target network access is used for providing data connection for the target application program, manual network switching is not needed, and the problems that a game/video card is unsmooth, files are downloaded too slowly and the like due to untimely network switching are avoided.

Description

Data connection method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the invention relates to the technical field of networks, in particular to a data connection method, a data connection device, electronic equipment and a readable storage medium.
Background
At present, some functions in many application programs can be used only after data connection is performed, and the requirements of different types of application programs on a network are different when data connection is performed.
Some application programs for downloading audio and video files generally need to download the audio and video files through data connections, and such application programs may be referred to as network downloading type application programs, and the requirements on a network are generally high network speed, large bandwidth and the like. Some applications that need to be supported by a network to run, such as game software, online video players, and the like, may be referred to as network support applications, and such applications generally require network stability, low network latency, and the like.
At present, in order to meet different requirements of different application programs on a network, the network is usually switched manually, the operation is complex, and if the switching is not timely, the problems of game/video jam, slow file downloading and the like can occur.
The above description of the discovery process of the problems is only for the purpose of assisting understanding of the technical solutions of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present invention provide a data connection method, an apparatus, an electronic device, and a readable storage medium.
In view of the above, in a first aspect, an embodiment of the present invention provides a data connection method applied to a device including at least two network paths in an open state, where the method includes:
determining a target application program for data connection in equipment;
determining a category to which the target application program belongs;
detecting a network status of the at least two network paths;
determining a network access corresponding to the network state and the category as a target network access in the at least two network accesses according to a preset corresponding relation between the category and the network state;
and providing data connection for the target application program by utilizing the target network path.
In a possible implementation manner, the network status includes whether the network status is a level corresponding to a priority delay network and/or a network access;
detecting a network status of the at least two network paths, comprising:
acquiring network time delay corresponding to each network access in the at least two network accesses, and determining a priority time delay network in the at least two network accesses according to the network time delay corresponding to each network access in the at least two network accesses;
and/or
And acquiring the signal strength and the network type corresponding to each of the at least two network paths, and determining the grade of each network path according to the signal strength and the network type corresponding to each of the at least two network paths.
In a possible implementation manner, determining a priority delay network in the at least two network paths according to a network delay corresponding to each of the at least two network paths includes:
determining a preset network access which is an initial priority delay network in the at least two network accesses;
selecting a network access with the lowest network delay in other network accesses except the initial priority delay network from the at least two network accesses as a network access to be detected;
calculating the difference value between the network delay of the initial priority delay network and the network delay of the network access to be detected;
and if the difference is larger than a first threshold value, determining that the network access to be detected is a priority delay network, otherwise, using the initial priority delay network as the priority delay network.
In one possible implementation manner, the device comprises two network paths, wherein the network paths are divided into a primary network and a secondary network, and the primary network is higher than the secondary network in grade;
determining the grade of each network access according to the signal strength and the network type corresponding to each network access in the at least two network accesses, including: determining a preset network access which is an initial main network in the two network accesses;
judging whether the network types corresponding to the initial main network in the two network paths and the other network path in the two network paths are the same or not;
if the network types are different, judging whether the level of the network type corresponding to the other network access is higher than the level of the network type corresponding to the initial main network or not according to a preset network type level, if so, determining that the other network access is the main network, the initial main network is the auxiliary network, and if not, determining that the initial main network is the main network and the other network access is the auxiliary network;
if the network types are the same, calculating a difference value between the signal intensity corresponding to the other network access and the signal intensity corresponding to the initial main network, judging whether the difference value is larger than a second threshold value, if the difference value is larger than the second threshold value, determining the other network access as the main network and the initial main network as the auxiliary network, and if the difference value is not larger than the second threshold value, determining the initial main network as the main network and the other network access as the auxiliary network.
In one possible implementation, the category is a network support category or a network download category;
determining a network access corresponding to the network state and the category in the at least two network accesses as a target network access according to a preset corresponding relationship between the category and the network state, including:
if the type is a network support type, determining a priority delay network in the at least two network access as a target network access;
and if the category is the network downloading category, determining that all network paths in the at least two network paths are target network paths.
In one possible implementation, the providing data connection for the target application using the target network path includes:
and if the category is a network downloading category, all the network paths in the at least two network paths are in data connection, and a data downloading task is issued to each network path in the at least two network paths according to a preset proportion.
In one possible implementation, determining a target application for data connection in a device includes:
determining an application program for data connection in equipment as a candidate application program;
if the number of the candidate application programs is 1, determining that the candidate application programs are target application programs;
and if the number of the candidate application programs is multiple, determining that the program running in the foreground in the candidate application programs is the target application program.
In a second aspect, an embodiment of the present invention further provides a data connection apparatus, applied to a device including at least two network paths in an open state, where the apparatus includes:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a target application program for data connection in the device;
the category determining module is used for determining the category to which the target application program belongs;
the state detection module is used for detecting the network states of the at least two network paths;
the second determining module is used for determining a network access corresponding to the network state and the category as a target network access in the at least two network accesses according to the preset corresponding relation between the category and the network state;
and the data connection module is used for providing data connection for the target application program by utilizing the target network path.
In a possible implementation manner, the network status includes whether the network status is a level corresponding to a priority delay network and/or a network access;
the state detection module is specifically configured to:
acquiring network time delay corresponding to each network access in the at least two network accesses, and determining a priority time delay network in the at least two network accesses according to the network time delay corresponding to each network access in the at least two network accesses;
and/or
And acquiring the signal strength and the network type corresponding to each of the at least two network paths, and determining the grade of each network path according to the signal strength and the network type corresponding to each of the at least two network paths.
In a possible implementation manner, the state detection module is specifically configured to:
determining a preset network access which is an initial priority delay network in the at least two network accesses;
selecting a network access with the lowest network delay in other network accesses except the initial priority delay network from the at least two network accesses as a network access to be detected;
calculating the difference value between the network delay of the initial priority delay network and the network delay of the network access to be detected;
and if the difference is larger than a first threshold value, determining that the network access to be detected is a priority delay network, otherwise, using the initial priority delay network as the priority delay network.
In one possible implementation manner, the device comprises two network paths, wherein the network paths are divided into a primary network and a secondary network, and the primary network is higher than the secondary network in grade;
the state detection module is specifically configured to:
determining a preset network access which is an initial main network in the two network accesses;
judging whether the network types corresponding to the initial main network in the two network paths and the other network path in the two network paths are the same or not;
if the network types are different, judging whether the level of the network type corresponding to the other network access is higher than the level of the network type corresponding to the initial main network or not according to a preset network type level, if so, determining that the other network access is the main network, the initial main network is the auxiliary network, and if not, determining that the initial main network is the main network and the other network access is the auxiliary network;
if the network types are the same, calculating a difference value between the signal intensity corresponding to the other network access and the signal intensity corresponding to the initial main network, judging whether the difference value is larger than a second threshold value, if the difference value is larger than the second threshold value, determining the other network access as the main network and the initial main network as the auxiliary network, and if the difference value is not larger than the second threshold value, determining the initial main network as the main network and the other network access as the auxiliary network.
In one possible implementation, the category is a network support category or a network download category;
the second determining module is specifically configured to:
if the type is a network support type, determining a priority delay network in the at least two network access as a target network access;
and if the category is the network downloading category, determining that all network paths in the at least two network paths are target network paths.
In a possible implementation manner, the data connection module is specifically configured to:
and if the category is a network downloading category, all the network paths in the at least two network paths are in data connection, and a data downloading task is issued to each network path in the at least two network paths according to a preset proportion.
In a possible implementation manner, the first determining module is specifically configured to:
determining an application program for data connection in equipment as a candidate application program;
if the number of the candidate application programs is 1, determining that the candidate application programs are target application programs;
and if the number of the candidate application programs is multiple, determining that the program running in the foreground in the candidate application programs is the target application program.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
a processor, a memory, a communication interface, and a bus;
the processor, the memory and the communication interface complete mutual communication through the bus;
the communication interface is used for information transmission between external devices;
the processor is configured to invoke program instructions in the memory to perform the steps of the data connection method of the first aspect.
In a fourth aspect, the embodiments of the present invention also provide a readable storage medium, where the readable storage medium stores computer instructions, and the computer instructions cause a computer to execute the steps of the data connection method in the first aspect.
Compared with the prior art, the data connection method provided by the embodiment of the invention determines the target application program for data connection in the device and the category of the target application program, and then determines the network state corresponding to the category of the target application program according to the preset corresponding relation between the category and the network state, so as to determine the target network path corresponding to the network state in the device, and further provide data connection for the target application program by using the target network path. According to the scheme, the target network access matched with the target application program is automatically determined, the target network access is used for providing data connection for the target application program, manual network switching is not needed, and the problems that a game/video card is unsmooth, files are downloaded too slowly and the like due to untimely network switching are avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a data connection method according to an embodiment of the present invention;
fig. 2 is a flowchart of a target application determining method according to an embodiment of the present invention;
FIG. 3 is a block diagram of a data connection device according to an embodiment of the present invention;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Fig. 1 is a flowchart of a data connection method provided in an embodiment of the present invention, where the method is applied to a device including at least two network paths in an open state, as shown in fig. 1, and the method may include:
and S11, determining a target application program for data connection in the equipment.
In one possible implementation, as shown in fig. 2, the target application may be determined by:
and S111, determining the application program for data connection in the equipment as a candidate application program.
The application program sends a data connection request when performing data connection, so that candidate application programs in the device can be determined according to the data connection request.
S112, if the number of the candidate application programs is 1, determining that the candidate application programs are target application programs.
When only one application program for data connection is in the running application programs, the application program is used as a target application program no matter whether the application program is in the foreground or in the background, and subsequent data connection setting is carried out according to the target application program.
And S113, if the number of the candidate application programs is multiple, determining that a program running in a foreground in the candidate application programs is a target application program.
When a plurality of application programs in the application programs running in the equipment all make data connection requests, the application program running in the foreground is used as a target application program, and subsequent data connection setting is carried out according to the target application program.
And S12, determining the category of the target application program.
According to the application program, the application program can be generally divided into a network downloading class (such as an audio downloader, a video downloader, a file downloader and the like) and a network supporting class (such as game software, payment software, online video/audio playing software and the like), the requirements of different application programs on a network are different when data connection is performed, and in the embodiment, the corresponding network path is set for the target application program according to the type of the target application program for data connection, so that the type of the target application program needs to be determined when data connection setting is performed.
In a possible implementation manner, each application carries a tag indicating a category to which the application belongs, and the category to which the target application belongs may be determined according to the tag carried by the target application.
In a possible implementation manner, a correspondence table between information (for example, information having uniqueness such as a name) of an application and a category may also be set in advance, and then the category to which the target application belongs may be determined by table lookup according to the information of the target application.
And S13, detecting the network states of the at least two network paths.
At least two network paths may be provided in a device, for example a dual card handset may be provided with two network paths corresponding to SIM card 1 and SIM card 2 respectively.
The corresponding network states of different network paths in the same device may be different, where the network states may reflect information such as the magnitude of network delay and the strength of network signals.
In a possible implementation manner, the network state may include whether the network state is a priority delay network and/or a level corresponding to a network path, and the like, where the priority delay network is a network path in which network delay in the device meets a preset condition, and is represented by a size of the network delay corresponding to the network path, and the level corresponding to the network path is generally a level determined for the network path according to a signal strength corresponding to the network channel and a network type, and may reflect a strength of a network signal of each network path, where the network type may be a 4G network, a 3G network, or a 2G network, and the like.
In a possible implementation manner, detecting the network states of the at least two network paths may include:
and determining a priority delay network in the at least two network paths, and/or determining a grade corresponding to each network path in the at least two network paths.
In a possible implementation manner, when data connection is performed by different types of applications, the criteria for selecting network paths for performing data connection are also different, so that the network states of the at least two network paths may also be detected according to the type of the target application, for example, for a target application of a network support class, when a network path providing data connection for such a target application is selected, the size of network delay is mainly considered, so when the type of the target application is determined to be the network support class, only a priority delay network of the at least two network paths may be determined without determining a level corresponding to each network path of the at least two network paths, and for a target application of a network download class, when a network path providing data connection for such a target application is selected, the strength of a network signal is mainly considered, therefore, when the type of the target application program is determined to be the network download type, only the grade of each network path in the at least two network paths can be determined, and the priority delay network in the at least two network paths does not need to be determined.
In one possible implementation, the network states of the at least two network paths may be detected by:
obtaining the network time delay corresponding to each of the at least two network paths, determining a priority time delay network in the at least two network paths according to the network time delay corresponding to each of the at least two network paths, and/or obtaining the signal strength and the network type corresponding to each of the at least two network paths, and determining the grade of each network path according to the signal strength and the network type corresponding to each of the at least two network paths.
In a possible implementation manner, determining a priority delay network in the at least two network paths according to a network delay corresponding to each of the at least two network paths includes:
determining a preset network access which is an initial priority delay network in the at least two network accesses; selecting a network access with the lowest network delay in other network accesses except the initial priority delay network from the at least two network accesses as a network access to be detected; calculating the difference value between the network delay of the initial priority delay network and the network delay of the network access to be detected; and if the difference is larger than a first threshold value, determining that the network access to be detected is a priority delay network, otherwise, using the initial priority delay network as the priority delay network.
The first threshold is a value set according to a requirement, and the specific value is not specifically limited in this embodiment.
The initial priority delay network is a default priority delay network, when the priority delay network needs to be used, the initial priority delay network is used as the priority delay network by default, and then the step of determining the priority delay network is executed.
When the difference is not greater than the first threshold, the initial priority delay network is determined to be the priority delay network, so that frequent switching of the network is avoided, as a short network break occurs in the network switching process, if the network is frequently switched, the network will be unstable, and the user experience is affected.
In a possible implementation manner, the device includes two network paths, and then the network paths are classified into a primary network and a secondary network, where the primary network is higher in rank than the secondary network, and the rank of each network path is determined according to a signal strength and a network type corresponding to each network path in the at least two network paths, including:
determining a preset network path which is an initial master network in two network paths, determining whether the network types corresponding to the initial master network and the other network path in the two network paths are the same, wherein the network types can be divided into a 4G network, a 3G network, a 2G network and the like, if the network types are different, determining whether the level of the network type corresponding to the other network path is higher than that of the network type corresponding to the initial master network according to preset network type levels (for example, the preset network type level is that the level of the 4G network is higher than that of the 3G network, and the level of the 3G network is higher than that of the 2G network), if so, determining that the other network path is the master network, the initial master network is a slave network, and if not, determining that the initial master network is the master network, and if the network types are the same (for example, the network levels corresponding to the two network paths are both 4G network, 3G network or 2G network), calculating a difference between the signal strength corresponding to the other network path and the signal strength corresponding to the initial master network, and determining whether the difference is greater than a second threshold, if the difference is greater than the second threshold, determining the other network path as the master network, and the initial master network as the slave network, and if the difference is not greater than the second threshold, determining the initial master network as the master network, and the other network path as the slave network.
The initial main network is a default main network, one network access is set as the initial main network and the other network access is set as the initial auxiliary network in a default mode under the condition that only two network accesses exist, the purpose of setting the initial main network and the initial auxiliary network is to provide data connection for application programs of network downloading classes in time when data connection requests are made, and then the step of determining the network access levels is executed.
In the case of only two network channels, when there are multiple network channels, the multiple network channels may be classified according to the signal strength and the network type of the multiple network channels, and the multiple network channels may be classified according to the comprehensive effect of the signal strength and the network type corresponding to each network channel, where the better the comprehensive effect, the higher the grade of the network channel is, the specific method for determining the comprehensive effect may be set by itself according to the requirement, and this embodiment is not limited specifically.
S14, according to the preset corresponding relation between the category and the network state, determining the network path corresponding to the network state and the category in the at least two network paths as a target network path.
In a possible implementation manner, the correspondence between the category and the network state may be: the network support class corresponds to a priority delay network, and the network download class corresponds to all network paths in the device in an open state.
In a possible implementation manner, if the category is a network support category, determining a priority delay network of the at least two network paths as a target network path; and if the category is the network downloading category, determining that all network paths in the at least two network paths are target network paths.
And S15, providing data connection for the target application program by using the target network access.
In one possible implementation, if the class is a network support class, a priority latency network in the device is used to provide data connectivity for the target application.
In a possible implementation manner, if the category is a network download category, all network paths in the at least two network paths perform data connection, and issue a data download task for each network path in the at least two network paths according to a preset ratio.
According to the data connection method provided by the embodiment of the invention, the target application program for data connection in the equipment and the category of the target application program are determined, and then the network state corresponding to the category of the target application program is determined according to the preset corresponding relation between the category and the network state, so that the target network access corresponding to the network state in the equipment is determined, and further the target network access is utilized to provide data connection for the target application program. According to the scheme, the target network access matched with the target application program is automatically determined, the target network access is used for providing data connection for the target application program, manual network switching is not needed, and the problems that a game/video card is unsmooth, files are downloaded too slowly and the like due to untimely network switching are avoided.
An embodiment of the present invention further provides a data connection apparatus for implementing the data connection setting method, which is applied to a device including at least two network paths in an open state, as shown in fig. 3, and the apparatus may include:
a first determining module 301, configured to determine a target application for data connection in a device;
a category determination module 302, configured to determine a category to which the target application belongs;
a state detection module 303, configured to detect network states of the at least two network paths;
a second determining module 304, configured to determine, according to a preset correspondence between a category and a network state, a network access, of the at least two network accesses, where the network state corresponds to the category, as a target network access;
a data connection module 305 for providing data connection for the target application using the target network path.
In a possible implementation manner, the network status includes whether the network status is a level corresponding to a priority delay network and/or a network access;
the state detection module 303 is specifically configured to:
acquiring network time delay corresponding to each network access in the at least two network accesses, and determining a priority time delay network in the at least two network accesses according to the network time delay corresponding to each network access in the at least two network accesses;
and/or
And acquiring the signal strength and the network type corresponding to each of the at least two network paths, and determining the grade of each network path according to the signal strength and the network type corresponding to each of the at least two network paths.
In a possible implementation manner, the state detection module 303 is specifically configured to:
determining a preset network access which is an initial priority delay network in the at least two network accesses;
selecting a network access with the lowest network delay in other network accesses except the initial priority delay network from the at least two network accesses as a network access to be detected;
calculating the difference value between the network delay of the initial priority delay network and the network delay of the network access to be detected;
and if the difference is larger than a first threshold value, determining that the network access to be detected is a priority delay network, otherwise, using the initial priority delay network as the priority delay network.
In one possible implementation, the device includes two network paths;
the state detection module 303 is specifically configured to:
determining a preset network access which is an initial main network in the two network accesses;
judging whether the network types corresponding to the initial main network in the two network paths and the other network path in the two network paths are the same or not;
if the network types are different, judging whether the level of the network type corresponding to the other network access is higher than the level of the network type corresponding to the initial main network or not according to a preset network type level, if so, determining that the other network access is the main network, the initial main network is the auxiliary network, and if not, determining that the initial main network is the main network and the other network access is the auxiliary network;
if the network types are the same, calculating a difference value between the signal intensity corresponding to the other network access and the signal intensity corresponding to the initial main network, judging whether the difference value is larger than a second threshold value, if the difference value is larger than the second threshold value, determining the other network access as the main network and the initial main network as the auxiliary network, and if the difference value is not larger than the second threshold value, determining the initial main network as the main network and the other network access as the auxiliary network.
In one possible implementation, the category is a network support category or a network download category;
the second determining module 304 is specifically configured to:
if the type is a network support type, determining a priority delay network in the at least two network access as a target network access;
and if the category is the network downloading category, determining that all network paths in the at least two network paths are target network paths.
In a possible implementation manner, the data connection module 305 is specifically configured to:
and if the category is a network downloading category, all the network paths in the at least two network paths are in data connection, and a data downloading task is issued to each network path in the at least two network paths according to a preset proportion.
In a possible implementation manner, the first determining module 301 is specifically configured to:
determining an application program for data connection in equipment as a candidate application program;
if the number of the candidate application programs is 1, determining that the candidate application programs are target application programs;
and if the number of the candidate application programs is multiple, determining that the program running in the foreground in the candidate application programs is the target application program.
As shown in fig. 4, the present embodiment discloses an electronic device, including: a processor 401, a memory 402, a communication interface 403, and a bus 404;
the processor 401, the memory 402 and the communication interface 403 complete mutual communication through the bus 404;
the communication interface 403 is used for information transmission between external devices; the external device is, for example, a user equipment UE;
the processor 401 is configured to invoke program instructions in the memory 402 to perform methods as provided by various method embodiments, including, for example:
determining a target application program for data connection in equipment;
determining a category to which the target application program belongs;
detecting a network status of the at least two network paths;
determining a network access corresponding to the network state and the category as a target network access in the at least two network accesses according to a preset corresponding relation between the category and the network state;
and providing data connection for the target application program by utilizing the target network path.
Embodiments of the present invention further provide a readable storage medium, where the readable storage medium stores computer instructions, where the computer instructions cause a computer to execute the method provided in each method embodiment, for example, including:
determining a target application program for data connection in equipment;
determining a category to which the target application program belongs;
detecting a network status of the at least two network paths;
determining a network access corresponding to the network state and the category as a target network access in the at least two network accesses according to a preset corresponding relation between the category and the network state;
and providing data connection for the target application program by utilizing the target network path.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
Through the above description of the embodiments, those skilled in the art will clearly understand that the methods described in the embodiments of the present invention can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention or the method according to some parts of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (16)

1. A data connection method applied to a device including at least two network paths in an open state, the method comprising:
determining a target application program for data connection in equipment;
determining a category to which the target application program belongs;
detecting a network status of the at least two network paths;
determining a network access corresponding to the network state and the category as a target network access in the at least two network accesses according to a preset corresponding relation between the category and the network state;
and providing data connection for the target application program by utilizing the target network path.
2. The method of claim 1, wherein the network status comprises whether the network status is a level corresponding to a priority latency network and/or a network path;
detecting a network status of the at least two network paths, comprising:
acquiring network time delay corresponding to each network access in the at least two network accesses, and determining a priority time delay network in the at least two network accesses according to the network time delay corresponding to each network access in the at least two network accesses;
and/or
And acquiring the signal strength and the network type corresponding to each of the at least two network paths, and determining the grade of each network path according to the signal strength and the network type corresponding to each of the at least two network paths.
3. The method of claim 2, wherein determining the priority latency network of the at least two network paths according to the network latency corresponding to each of the at least two network paths comprises:
determining a preset network access which is an initial priority delay network in the at least two network accesses;
selecting a network access with the lowest network delay in other network accesses except the initial priority delay network from the at least two network accesses as a network access to be detected;
calculating the difference value between the network delay of the initial priority delay network and the network delay of the network access to be detected;
and if the difference is larger than a first threshold value, determining that the network access to be detected is a priority delay network, otherwise, using the initial priority delay network as the priority delay network.
4. The method of claim 2, wherein the device comprises two network paths, and the network paths are classified into a primary network and a secondary network, and the primary network is higher than the secondary network;
determining the grade of each network access according to the signal strength and the network type corresponding to each network access in the at least two network accesses, including:
determining a preset network access which is an initial main network in the two network accesses;
judging whether the network types corresponding to the initial main network in the two network paths and the other network path in the two network paths are the same or not;
if the network types are different, judging whether the level of the network type corresponding to the other network access is higher than the level of the network type corresponding to the initial main network or not according to a preset network type level, if so, determining that the other network access is the main network, the initial main network is the auxiliary network, and if not, determining that the initial main network is the main network and the other network access is the auxiliary network;
if the network types are the same, calculating a difference value between the signal intensity corresponding to the other network access and the signal intensity corresponding to the initial main network, judging whether the difference value is larger than a second threshold value, if the difference value is larger than the second threshold value, determining the other network access as the main network and the initial main network as the auxiliary network, and if the difference value is not larger than the second threshold value, determining the initial main network as the main network and the other network access as the auxiliary network.
5. The method of claim 2, wherein the category is a network support class or a network download class;
determining a network access corresponding to the network state and the category in the at least two network accesses as a target network access according to a preset corresponding relationship between the category and the network state, including:
if the type is a network support type, determining a priority delay network in the at least two network access as a target network access;
and if the category is the network downloading category, determining that all network paths in the at least two network paths are target network paths.
6. The method of claim 5, wherein providing a data connection for the target application using the target network path comprises:
and if the category is a network downloading category, all the network paths in the at least two network paths are in data connection, and a data downloading task is issued to each network path in the at least two network paths according to a preset proportion.
7. The method of claim 1, wherein determining the target application for the data connection in the device comprises:
determining an application program for data connection in equipment as a candidate application program;
if the number of the candidate application programs is 1, determining that the candidate application programs are target application programs;
and if the number of the candidate application programs is multiple, determining that the program running in the foreground in the candidate application programs is the target application program.
8. A data connection arrangement for use with a device including at least two network paths in an open state, the arrangement comprising:
the device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining a target application program for data connection in the device;
the category determining module is used for determining the category to which the target application program belongs;
the state detection module is used for detecting the network states of the at least two network paths;
the second determining module is used for determining a network access corresponding to the network state and the category as a target network access in the at least two network accesses according to the preset corresponding relation between the category and the network state;
and the data connection module is used for providing data connection for the target application program by utilizing the target network path.
9. The apparatus of claim 8, wherein the network status comprises whether the network status is a level corresponding to a priority latency network and/or a network path;
the state detection module is specifically configured to:
acquiring network time delay corresponding to each network access in the at least two network accesses, and determining a priority time delay network in the at least two network accesses according to the network time delay corresponding to each network access in the at least two network accesses;
and/or
And acquiring the signal strength and the network type corresponding to each of the at least two network paths, and determining the grade of each network path according to the signal strength and the network type corresponding to each of the at least two network paths.
10. The apparatus of claim 9, wherein the status detection module is specifically configured to:
determining a preset network access which is an initial priority delay network in the at least two network accesses;
selecting a network access with the lowest network delay in other network accesses except the initial priority delay network from the at least two network accesses as a network access to be detected;
calculating the difference value between the network delay of the initial priority delay network and the network delay of the network access to be detected;
and if the difference is larger than a first threshold value, determining that the network access to be detected is a priority delay network, otherwise, using the initial priority delay network as the priority delay network.
11. The apparatus of claim 9, wherein the device comprises two network paths, and wherein the network paths are classified into a primary network and a secondary network, and wherein the primary network is higher than the secondary network;
the state detection module is specifically configured to:
determining a preset network access which is an initial main network in the two network accesses;
judging whether the network types corresponding to the initial main network in the two network paths and the other network path in the two network paths are the same or not;
if the network types are different, judging whether the level of the network type corresponding to the other network access is higher than the level of the network type corresponding to the initial main network or not according to a preset network type level, if so, determining that the other network access is the main network, the initial main network is the auxiliary network, and if not, determining that the initial main network is the main network and the other network access is the auxiliary network;
if the network types are the same, calculating a difference value between the signal intensity corresponding to the other network access and the signal intensity corresponding to the initial main network, judging whether the difference value is larger than a second threshold value, if the difference value is larger than the second threshold value, determining the other network access as the main network and the initial main network as the auxiliary network, and if the difference value is not larger than the second threshold value, determining the initial main network as the main network and the other network access as the auxiliary network.
12. The apparatus of claim 9, wherein the category is a network support class or a network download class;
the second determining module is specifically configured to:
if the type is a network support type, determining a priority delay network in the at least two network access as a target network access;
and if the category is the network downloading category, determining that all network paths in the at least two network paths are target network paths.
13. The apparatus of claim 12, wherein the data connection module is specifically configured to:
and if the category is a network downloading category, all the network paths in the at least two network paths are in data connection, and a data downloading task is issued to each network path in the at least two network paths according to a preset proportion.
14. The apparatus of claim 7, wherein the first determining module is specifically configured to:
determining an application program for data connection in equipment as a candidate application program;
if the number of the candidate application programs is 1, determining that the candidate application programs are target application programs;
and if the number of the candidate application programs is multiple, determining that the program running in the foreground in the candidate application programs is the target application program.
15. An electronic device, comprising:
a processor, a memory, a communication interface, and a bus;
the processor, the memory and the communication interface complete mutual communication through the bus;
the communication interface is used for information transmission between external devices;
the processor is configured to call program instructions in the memory to perform the steps of the data connection method of any of claims 1-7.
16. A readable storage medium storing computer instructions for causing a computer to perform the steps of the data connection method of any one of claims 1 to 7.
CN201911293135.0A 2019-12-16 2019-12-16 Data connection method and device, electronic equipment and readable storage medium Pending CN111194059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911293135.0A CN111194059A (en) 2019-12-16 2019-12-16 Data connection method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911293135.0A CN111194059A (en) 2019-12-16 2019-12-16 Data connection method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN111194059A true CN111194059A (en) 2020-05-22

Family

ID=70709224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911293135.0A Pending CN111194059A (en) 2019-12-16 2019-12-16 Data connection method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111194059A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095421A (en) * 2020-07-30 2022-02-25 深信服科技股份有限公司 Network routing method, device, equipment and computer readable storage medium
CN115052323A (en) * 2022-08-15 2022-09-13 晨越建设项目管理集团股份有限公司 Smart city mobile service system based on big data

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340891A (en) * 2011-10-12 2012-02-01 中兴通讯股份有限公司 Service switching method and device for multimode terminal
CN103874229A (en) * 2012-12-12 2014-06-18 中国移动通信集团山东有限公司 Data connection establishing method and device
CN107635259A (en) * 2016-07-18 2018-01-26 中兴通讯股份有限公司 A kind of data service from adaptation method, device and terminal
CN107682882A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 Data transmission method, mobile terminal and computer-readable recording medium
WO2019211662A1 (en) * 2018-04-30 2019-11-07 Lenovo (Singapore) Pte. Ltd. Establishing an ip multimedia subsystem session

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102340891A (en) * 2011-10-12 2012-02-01 中兴通讯股份有限公司 Service switching method and device for multimode terminal
CN103874229A (en) * 2012-12-12 2014-06-18 中国移动通信集团山东有限公司 Data connection establishing method and device
CN107635259A (en) * 2016-07-18 2018-01-26 中兴通讯股份有限公司 A kind of data service from adaptation method, device and terminal
CN107682882A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 Data transmission method, mobile terminal and computer-readable recording medium
WO2019211662A1 (en) * 2018-04-30 2019-11-07 Lenovo (Singapore) Pte. Ltd. Establishing an ip multimedia subsystem session

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095421A (en) * 2020-07-30 2022-02-25 深信服科技股份有限公司 Network routing method, device, equipment and computer readable storage medium
CN114095421B (en) * 2020-07-30 2023-12-29 深信服科技股份有限公司 Network routing method, device, equipment and computer readable storage medium
CN115052323A (en) * 2022-08-15 2022-09-13 晨越建设项目管理集团股份有限公司 Smart city mobile service system based on big data
CN115052323B (en) * 2022-08-15 2022-11-08 晨越建设项目管理集团股份有限公司 Smart city mobile service system based on big data

Similar Documents

Publication Publication Date Title
CN104065637B (en) Web-game running method and device
CN107315825B (en) Index updating system, method and device
CN113535721B (en) Data writing method and device
CN109618174B (en) Live broadcast data transmission method, device, system and storage medium
CN106851779A (en) A kind of method and mobile terminal for recognizing access point and focus
CN111194059A (en) Data connection method and device, electronic equipment and readable storage medium
CN106227483B (en) Display control method and mobile terminal
CN112905933A (en) Page jump method and device, electronic equipment and storage medium
CN111159269B (en) Data processing method, device and system
CN107148035B (en) Frequency band selection method and device and wireless equipment
CN108632085B (en) Gray level user management method, device, platform and storage medium
CN109951549B (en) Network page access method and device and computer readable storage medium
CN112286559A (en) Upgrading method and device for vehicle-mounted intelligent terminal
US7778660B2 (en) Mobile communications terminal, information transmitting system and information receiving method
CN113747423B (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN111262794B (en) Gateway flow control method and device
JP7481369B2 (en) Method, device and readable storage medium for setting an access point name
US20170171330A1 (en) Method for pushing information and electronic device
US20170277528A1 (en) Application installation system and method for handheld devices
CN108958929B (en) Method and device for applying algorithm library, storage medium and electronic equipment
CN110309000B (en) Application update prompting method and terminal equipment
US9465876B2 (en) Managing content available for content prediction
AU2013206622B2 (en) Download management method and device based on Android browser
CN105142130A (en) Information processing method and electronic equipment
CN113778464B (en) Applet gray level issuing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200522