CN114679758A - Network switching method and device, electronic equipment and readable storage medium - Google Patents
Network switching method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN114679758A CN114679758A CN202210234554.2A CN202210234554A CN114679758A CN 114679758 A CN114679758 A CN 114679758A CN 202210234554 A CN202210234554 A CN 202210234554A CN 114679758 A CN114679758 A CN 114679758A
- Authority
- CN
- China
- Prior art keywords
- application
- target
- network
- target application
- current network
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000006870 function Effects 0.000 claims description 58
- 238000012545 processing Methods 0.000 claims description 17
- 230000005540 biological transmission Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 8
- 238000004458 analytical method Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000007405 data analysis Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/34—Reselection control
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The application discloses a network switching method and device, electronic equipment and a readable storage medium, and belongs to the technical field of intelligence. The method comprises the following steps: before switching from a current network to a target WiFi network, acquiring an application list running in a foreground; under the condition that the application list does not comprise the target application, switching the current network to the target WiFi network; wherein the target application is an application sensitive to network handover.
Description
Technical Field
The application belongs to the technical field of intelligent terminals, and particularly relates to a network switching method and device, electronic equipment and a readable storage medium.
Background
When the mobile phone card is turned on to surf the internet at a traffic rate, a User Equipment (UE) may connect to a data network and transmit data using the data network. At this time, if a User Equipment (UE) searches for a WiFi network that can be automatically connected, the UE automatically connects to the WiFi network and transmits data using the WiFi network, so as to help the User save traffic.
In practical situations, there is a short time (usually 1-3 seconds) of interruption (i.e., traffic transmission interruption) during the process of switching the data network to the WiFi network. In this process, the running process of some Applications (APPs) is very susceptible to the above-mentioned flow change, and the running speed becomes slow or even the running is interrupted. If these applications are run in the foreground, the normal use of the applications by the user is greatly affected. For example, if a user is currently playing a game using a game application and a network is switched, a game failure of the user may be caused; if the user is using the ticketing application to rob tickets, the user may miss the ticket robbing opportunity if the network is switched.
Disclosure of Invention
An embodiment of the present application provides a network switching method and apparatus, an electronic device, and a readable storage medium, which can solve the problem in the prior art that an application that is running in a foreground and is susceptible to a traffic change is running slowly or running is interrupted due to network switching.
In a first aspect, an embodiment of the present application provides a network handover method, where the method includes: before switching from a current network to a target WiFi network, acquiring an application list running in a foreground; under the condition that the application list does not comprise the target application, switching the current network to the target WiFi network; wherein the target application is an application sensitive to network handover.
In a second aspect, an embodiment of the present application provides a network switching apparatus, where the apparatus includes: the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring an application list running in a foreground before a current network is switched to a target WiFi network; the switching module is used for switching the current network to the target WiFi network under the condition that the application list does not comprise the target application; wherein the target application is an application sensitive to network handover.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor and a memory, where the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, stored in a storage medium, which is executed by at least one processor to implement a method as in the first aspect.
In the embodiment of the application, before the current network is switched to the target WiFi network, an application list running in a foreground is obtained; under the condition that the application list does not comprise the target application, switching the current network to the target WiFi network; wherein the target application is an application sensitive to network handover. Therefore, in the embodiment of the application, the current network can be switched to the target WiFi network under the condition that the application running in the foreground does not include the application sensitive to network switching, and in this condition, for the application sensitive to network switching, the event that the application runs in the foreground and the event that the application uses the network is switched cannot occur simultaneously, so that the problem that the running of the application which is running in the foreground and is easily affected by traffic change is slowed down or interrupted due to network switching in the prior art is solved. In the embodiment of the application, the normal operation of the application sensitive to the network switching in the foreground running application can be preferentially ensured relative to the network switching, so that the application sensitive to the network switching in the foreground running application can be ensured to be normally used.
Drawings
Fig. 1 is a method flow diagram of a network handover method according to some embodiments of the present application;
fig. 2 is a flow chart of a method of another network handover method according to some embodiments of the present application;
FIG. 3 is a flow chart of a method of yet another network handover method according to some embodiments of the present application;
fig. 4 is a method flow diagram of yet another network handover method according to some embodiments of the present application;
fig. 5 is a method flow diagram of yet another network handover method according to some embodiments of the present application;
FIG. 6 is a functional block diagram of a network switching device according to some embodiments of the present application;
FIG. 7 is a functional block diagram of an electronic device according to some embodiments of the present application;
fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The network switching method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart of a method for network handover according to an embodiment of the present disclosure. As shown in fig. 1, the method includes the following steps S110 to S120.
Step S110: and acquiring an application list running in a foreground before switching from the current network to the target WiFi network.
The current network may be a data network or a WiFi network.
The number of applications running in the foreground may be one or more. All applications running in the foreground are recorded in the application list running in the foreground.
For example, the application running in the foreground is only the first application, and only the first application is recorded in the application list; the applications running in the foreground include a first application, a second application … …, an nth application (N is a positive integer), and the first application and the second application … …, the nth application are recorded in the application list.
Step S120: under the condition that the application list does not comprise the target application, switching the current network to the target WiFi network; wherein the target application is an application sensitive to network handover.
The target application is, for example, a Game application having a high requirement on real-time performance, such as a real-time Multiplayer Online Battle Arena (MOBE), a First Person design Game (FPS), or a ticketing application and a video chat application that need to ensure smooth network.
The target application is one or more applications determined among all applications locally.
In some examples, the target application is obtained by analyzing preset information of the application. The preset information is information related to an interpretation application, such as an application interpretation file. The application explain file may be obtained from a download platform (e.g., an application store) that downloads the application. The application interpretation file of the application contains relevant information for interpreting the application, such as services, applicable groups, and special contents which can be provided by the application.
After the application interpretation file of an application is obtained, whether the application is the target application is determined according to the content of the application interpretation file. For example, in the case that one or more preset keywords exist in the application interpretation file, the application is taken as a target application, and the target application is added to a preset target application list.
Illustratively, preset keywords such as "game", "hand game", "real-time", "audio call", "video call", "ticket purchase", and the like are related to the application function or words related to the network transmission requirement of the application. The preset keywords may be set by those skilled in the art according to actual situations, and are not limited in the embodiment of the present application. If the content of the application interpretation file of an application is as the following 'XX hand-playing giant homework', the world … … with the experience of you and the animation is matched with the friend in a cross-region mode in real time, and the application is determined to be the target application by the 'hand-playing' and the 'real-time' in the preset keywords in the application interpretation file. If the content of an application interpretation file of an application is ' recording ten million levels of genuine high-quality music ', enabling people to enjoy auditory feast … … to bring people to find more good music, providing a new song head issue, a song list plaza and a ranking list … … ', the application is determined not to be a target application because the preset keywords do not exist in the application interpretation file.
In order to further improve the accuracy of the target application determination result, a target application list containing the target application may be obtained at predetermined time intervals, and the target application list is uploaded to the cloud server, so that the cloud server analyzes data of each target application in the target application list, and feeds back an analysis result to the terminal. The analysis result may include one or more target applications determined by the cloud server through big data analysis, and the local target application list may be updated according to the analysis result.
The user may also manually modify the target application list according to the actual situation, for example, add an application to the target application list, or delete an application in the target application list, and the deleted application is no longer used as the target application. After the fact that the user manually modifies the target application list is detected, the target application list after the user manually modifies can be uploaded to the cloud server, so that the cloud server can analyze data of each target application in the target application list, and an analysis result is fed back to the terminal. The analysis result may include one or more target applications determined by the cloud server through big data analysis, and according to the analysis result, the local target application list is updated, so that the accuracy of the target application determination result is improved.
When determining the target application, a transmission delay time may also be set for each type of application, for example, the transmission delay time of a conversation type application is 100ms, and the transmission delay time of a game type application is 50ms, while the terminal obtains a time when a flow break occurs in the process of switching from the current network to the target WiFi network (for example, a time from sending a request for establishing a connection to the target WiFi network to receiving a connection success message, which is usually several hundred milliseconds), and in a case where the transmission delay time of an application is less than the flow break, the application is determined to be the target application.
And under the condition that the application list does not comprise the target application, the application running in the foreground is not sensitive to network switching, the normal running of the application running in the foreground is not influenced by the switching network, and the current network is switched to the target WiFi network.
Therefore, in the embodiment of the application, before the current network is switched to the target WiFi network, the application list running in the foreground is obtained; under the condition that the application list does not comprise the target application, switching the current network to the target WiFi network; wherein the target application is an application sensitive to network handover. Therefore, in the embodiment of the application, the current network can be switched to the target WiFi network under the condition that the application running in the foreground does not include the application sensitive to network switching, and in this condition, for the application sensitive to network switching, the event that the application runs in the foreground and the event that the application uses the network is switched cannot happen at the same time, so that the problem that the application running in the foreground and easily influenced by flow change is slowed down or interrupted due to network switching in the prior art is solved. In the embodiment of the application, the normal operation of the application sensitive to the network switching in the foreground running application can be preferentially ensured relative to the network switching, so that the application sensitive to the network switching in the foreground running application can be normally used.
After step S110 is executed, in a case that the application list includes at least one target application, in order to ensure that the target application can normally operate, as shown in fig. 2, the following step S130 may also be executed in the embodiment of the present application.
Step S130: in case that the application list includes at least one target application, data of the target application is transmitted using the current network.
In some embodiments, in the case of transmitting data of the target application using the current network, data of other applications that are running other than at least one target application in the application list may be transmitted using the current network. In this case, it may be considered that the data of all the running applications is transmitted by using the current network without performing network handover, that is, without switching the current network to the target WiFi network.
In other embodiments, in the case of transmitting data of the target application using the current network, data of other applications that are running other than the at least one target application may be transmitted using the target WiFi network. Wherein, the at least one target application is at least one target application in the application list, and the other running applications except the at least one target application include: the system comprises at least one first application in the application list except for at least one target application and at least one second application running in a background. In this case, it may be considered to separate the transmitted data, separate the data of the at least one target application from the data of the other applications except the at least one target application, and then transmit the data of the target application using the current network, and transmit the data of the at least one first application and the at least one second application using the target WiFi network. The situation is suitable for the situation that the current network is a data network, so that the data network is used for transmitting the target application to ensure the normal operation of the target application, the data network is switched to the target WiFi network from the transmission network of the data of the at least one first application and the at least one second application, and the purpose of saving the flow for the user is achieved.
In some embodiments, after step S130 is executed, that is, after the data of the target application is transmitted by using the current network, in some cases, it may be better to transmit the data by using the target WiFi network than to transmit the data by using the current network due to sudden performance degradation of the current network, the target application is turned off or turned to a background for use, and in this case, in order to adjust the network for transmitting the data to an optimal network in time, as shown in fig. 3, the following steps S310 to S320 may also be executed in this embodiment of the present application.
Step S310: detecting whether a preset event occurs; wherein the preset event comprises any one of the following: the level of network performance of the current network is below a preset level, the at least one target application is closed, and the at least one target application is turned to a background run.
The level of network performance of the current network being below the preset level may include: the bandwidth of the current network is smaller than a preset bandwidth threshold, or the time delay of the current network is larger than a preset time delay threshold.
The preset bandwidth threshold and the preset delay threshold may be set by those skilled in the art according to actual situations, and are not limited in the embodiment of the present application. Taking the preset delay threshold as an example, it may be set to 150 ms.
At least one target application is closed, namely all target applications in the application list running in the foreground are closed.
And all target applications in the application list of which at least one target application is transferred to the background running, namely the foreground running, are transferred to the background running.
In case that the at least one target application includes a plurality of target applications, the preset event may further include: a portion of the plurality of target applications is closed and a portion of the plurality of target applications is transitioned to a background run.
Step S320: and under the condition that a preset event is detected to occur, switching the current network to the target WiFi network.
And under the condition that the preset event is detected to occur, the target WiFi network is used better than the current network, and the current network is switched to the target WiFi network.
Of course, it is understood that step S310 may be executed at preset time intervals (set by those skilled in the art according to actual situations); alternatively, in the case that the occurrence of the preset event is not detected, step S310 may be executed again to continue to detect whether the preset event occurs until the current network is switched to the target WiFi network and it is no longer necessary to detect whether the preset event occurs.
In some embodiments, after performing step S110, as shown in fig. 4, the embodiments of the present application may further perform the following steps S410 to S430.
Step S410: and acquiring the application function which is running by the target application under the condition that the application list comprises at least one target application.
The application may have multiple functions. For example, chat applications have text chat, video call, and voice call functionality; the social application has the functions of playing videos, pictures, audio, displaying texts and the like.
Step S420: and in the case that the application function which the target application is running is the target application function, transmitting the data of the target application by using the current network.
Some of the functions of the target application are functions that are sensitive to network handover and some are functions that are not sensitive to network handover. And taking the function sensitive to the network switching as a target application function.
For example, for the video call and voice call functions in the chat application, which are the target application functions of the chat application, video data and voice data are transmitted respectively, the data volume is large, and the real-time requirement is high. The function of the character chat in the chat application is usually text data to be transmitted, the data volume is small and is slightly influenced by the flow-out, and the function of the character chat is not a target application function of the chat application.
The number of target applications may be one or more.
In the case where the number of the target applications is one, in the case where the application function that the target application is running is the target application function, data of the target application is transmitted using the current network.
Under the condition that the number of the target applications is multiple, for each target application, under the condition that the application function which is operated by the target application is the target application function, transmitting the data of the target application by using the current network; and in the case that the application function which is running by the target application is not the target application function, transmitting the data of the target application by using the target WiFi network.
Step S430: and under the condition that the application functions of all the target applications are not the corresponding target application functions, switching the current network to the target WiFi network.
Under the condition that the application functions of all the target applications are not the corresponding target application functions, the application functions of all the target applications running are insensitive to network switching, the switching network does not influence the application functions of the foreground applications running, and the current network is switched to the target WiFi network.
In some embodiments, the service provided by the application is sensitive to data traffic changes in certain scenarios (i.e., sensitive to network switches) and insensitive to data traffic changes in non-specific scenarios. For example, ticketing applications are sensitive to data traffic variations before and after holidays, and are insensitive to data traffic variations during non-holidays and before and after holidays. The game application running in the foreground is in a use state and sensitive to data traffic change, and the game application running in the foreground is in a pause state and insensitive to data traffic change. In this case, as shown in fig. 5, the embodiment of the present application may further perform the following steps S510 to S530.
Step S510: acquiring the use information of the target application under the condition that the application list comprises at least one target application; wherein the usage information includes any one of: the time of use and the state of use.
The time is used, for example, the system time of the UE.
Step S520: and under the condition that the use information in the target application meets the preset use condition, transmitting the data of the target application by using the current network.
And the use information is sensitive to data flow change under the condition of meeting preset use conditions.
Illustratively, the target application is a ticketing application, the usage information is a usage time, and the preset usage condition may be a holiday and a time within three days before and after the holiday.
Illustratively, the target application is a game application, the usage information is a usage state, and the preset usage condition may be that the usage state is a suspended state.
The number of target applications may be one or more.
And under the condition that the number of the target applications is one, transmitting the data of the target applications by using the current network under the condition that the use information in the target applications meets the preset use conditions.
Under the condition that the number of the target applications is multiple, for each target application, under the condition that the use information in the target application meets the preset use condition, transmitting the data of the target application by using the current network; and under the condition that the use information in the target application does not accord with the preset use condition, transmitting the data of the target application by using the target WiFi network.
Step S530: and under the condition that the use information of all the target applications does not accord with the preset use condition, switching the current network to the target WiFi network.
Under the condition that the use information of all the target applications does not accord with the preset use condition, the use information of all the target applications is insensitive to network switching, the switching network does not influence the normal operation of foreground applications, and the current network is switched to the target WiFi network.
In some embodiments, after the current network is switched to the target WiFi network, when the target WiFi network is detected to have poor signal quality, such as low rate and high delay, the current network may be automatically switched to the current data for data transmission, so as to ensure the stability of the user in using the target application.
In the network switching method provided by the embodiment of the present application, the execution main body may be a network switching device. In the embodiment of the present application, a network switching device executing a network switching method is taken as an example to describe the network switching device provided in the embodiment of the present application.
Fig. 6 is a functional block diagram of a network switching apparatus according to some embodiments of the present application, and as shown in fig. 6, the network switching apparatus 600 includes an obtaining module 601 and a switching module 602.
An obtaining module 601, configured to obtain a list of applications running in a foreground before switching from a current network to a target WiFi network.
A switching module 602, configured to switch a current network to a target WiFi network when the application list does not include the target application; wherein the target application is an application sensitive to network handover.
Optionally, the apparatus further comprises: and the first processing module is used for transmitting the data of the target application by using the current network under the condition that the application list comprises at least one target application.
Optionally, the apparatus further comprises: and a second processing module, configured to transmit data of other running applications except the at least one target application using the target WiFi network, in a case that the application list includes the at least one target application.
Optionally, the apparatus further comprises: the device comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether a preset event occurs or not after the data of the target application is transmitted by using the current network under the condition that the application list comprises at least one target application; wherein the preset event comprises any one of the following: the level of the network performance of the current network is lower than a preset level, at least one target application is closed, and the at least one target application is transferred to a background to run;
And the preset event switching module is used for switching the current network to the target WiFi network under the condition that the preset event is detected.
Optionally, the apparatus further comprises: the function acquisition module is used for acquiring the application function of the running target application under the condition that the application list comprises at least one target application; the third processing module is used for transmitting the data of the target application by using the current network under the condition that the application function of the target application in operation is the target application function; and the fourth processing module is used for switching the current network to the target WiFi network under the condition that the application functions of all the target applications are not the corresponding target application functions.
Optionally, the apparatus further comprises: the application list acquisition module is used for acquiring the application information of the target application under the condition that the application list comprises at least one target application; wherein the usage information includes any one of: the time of use and the state of use; the fifth processing module is used for transmitting the data of the target application by using the current network under the condition that the use field information in the target application meets the preset use condition; and the sixth processing module is used for switching the current network to the target WiFi network under the condition that the use information of all the target applications does not accord with the preset use condition.
Therefore, in the embodiment of the application, before the current network is switched to the target WiFi network, an application list running in the foreground is obtained; under the condition that the application list does not comprise the target application, switching the current network to the target WiFi network; wherein the target application is an application sensitive to network handover. Therefore, in the embodiment of the application, the current network can be switched to the target WiFi network under the condition that the application running in the foreground does not include the application sensitive to network switching, and in this condition, for the application sensitive to network switching, the event that the application runs in the foreground and the event that the application uses the network is switched cannot occur simultaneously, so that the problem that the running of the application which is running in the foreground and is easily affected by traffic change is slowed down or interrupted due to network switching in the prior art is solved. In the embodiment of the application, the normal operation of the application sensitive to the network switching in the foreground running application can be preferentially ensured relative to the network switching, so that the application sensitive to the network switching in the foreground running application can be ensured to be normally used.
The network switching device in the embodiment of the present application may be an electronic device, or may be a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The network switching device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiment of the present application.
The network switching device provided in the embodiment of the present application can implement each process implemented in the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701 and a memory 702, where the memory 702 stores a program or an instruction that can be executed on the processor 701, and when the program or the instruction is executed by the processor 701, the steps of the foregoing network switching method embodiment are implemented, and the same technical effects can be achieved, and are not described again here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing the embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
A processor 1010, configured to obtain a list of applications running in a foreground before switching from a current network to a target WiFi network; under the condition that the application list does not comprise the target application, switching the current network to the target WiFi network; wherein the target application is an application sensitive to network handover.
Optionally, the processor 1010 is further configured to transmit data of the target application using the current network if the application list includes at least one target application.
Optionally, the processor 1010 is further configured to: and in the case that the application list comprises at least one target application, transmitting data of other running applications except the at least one target application by using the target WiFi network.
Optionally, the processor 1010 is further configured to: under the condition that the application list comprises at least one target application, detecting whether a preset event occurs after data of the target application is transmitted by using a current network; wherein the preset event comprises any one of the following: the level of the network performance of the current network is lower than a preset level, at least one target application is closed, and the at least one target application is transferred to a background to run; and under the condition that a preset event is detected to occur, switching the current network to the target WiFi network.
Optionally, the processor 1010 is further configured to, if the application list includes at least one target application, obtain an application function that the target application is running; under the condition that the application function of the target application in operation is the target application function, transmitting data of the target application by using the current network; and under the condition that the application functions of all the target applications are not the corresponding target application functions, switching the current network to the target WiFi network.
Optionally, the processor 1010 is further configured to, if the application list includes at least one target application, obtain usage information of the target application; wherein the usage information includes any one of: the time of use and the state of use; under the condition that the use field information in the target application meets the preset use condition, transmitting the data of the target application by using the current network; and under the condition that the use information of all the target applications does not accord with the preset use condition, switching the current network to the target WiFi network.
Therefore, in the embodiment of the application, before the current network is switched to the target WiFi network, an application list running in the foreground is obtained; under the condition that the application list does not comprise the target application, switching the current network to the target WiFi network; wherein the target application is an application sensitive to network handover. Therefore, in the embodiment of the application, the current network can be switched to the target WiFi network under the condition that the application running in the foreground does not include the application sensitive to network switching, and in this condition, for the application sensitive to network switching, the event that the application runs in the foreground and the event that the application uses the network is switched cannot occur simultaneously, so that the problem that the running of the application which is running in the foreground and is easily affected by traffic change is slowed down or interrupted due to network switching in the prior art is solved. In the embodiment of the application, the normal operation of the application sensitive to the network switching in the foreground running application can be preferentially ensured relative to the network switching, so that the application sensitive to the network switching in the foreground running application can be ensured to be normally used.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area for storing a program or an instruction and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or non-volatile memory, or the memory 1009 may include both volatile and non-volatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct bus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing network handover method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer read only memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing network switching method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application provide a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing network handover method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not described here again.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes several instructions for enabling a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method of the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.
Claims (10)
1. A method for network handover, comprising:
before switching from a current network to a target WiFi network, acquiring an application list running in a foreground;
switching a current network to the target WiFi network if the application list does not include a target application; wherein the target application is an application sensitive to network handover.
2. The method of claim 1, further comprising:
transmitting data of the target application using a current network in a case where the application list includes at least one of the target applications.
3. The method of claim 2, wherein in the case that the application list includes at least one of the target applications, the method further comprises:
transmitting data of other running applications except the at least one target application using the target WiFi network.
4. The method according to claim 2 or 3, wherein in the case that the application list includes at least one target application, after transmitting data of the target application using a current network, the method further comprises:
detecting whether a preset event occurs; wherein the preset event comprises any one of: the level of the network performance of the current network is lower than a preset level, the at least one target application is closed, and the at least one target application is turned to a background for running;
And under the condition that the preset event is detected to occur, switching the current network to the target WiFi network.
5. The method of claim 1, further comprising:
under the condition that the application list comprises at least one target application, acquiring an application function which is running by the target application;
under the condition that the application function running by the target application is a target application function, transmitting the data of the target application by using a current network;
and under the condition that the application functions of all the target applications are not the corresponding target application functions, switching the current network to the target WiFi network.
6. The method of claim 1, further comprising:
acquiring the use information of the target application under the condition that the application list comprises at least one target application; wherein the usage information comprises any one of: the time of use and the state of use;
under the condition that the use field information in the target application meets a preset use condition, transmitting the data of the target application by using a current network;
And under the condition that the use information of all the target applications does not accord with preset use conditions, switching the current network to the target WiFi network.
7. A network switching apparatus, comprising:
the device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring an application list running in a foreground before a current network is switched to a target WiFi network;
a switching module, configured to switch a current network to the target WiFi network when the application list does not include a target application; wherein the target application is an application sensitive to network handover.
8. The apparatus of claim 7, further comprising:
a first processing module, configured to transmit data of the target application using a current network if the application list includes at least one target application.
9. The apparatus of claim 8, further comprising:
a second processing module, configured to transmit data of other running applications except for the at least one target application using the target WiFi network if the application list includes the at least one target application.
10. The apparatus of claim 7, further comprising:
the function acquisition module is used for acquiring the application function of the running target application under the condition that the application list comprises at least one target application;
the third processing module is used for transmitting the data of the target application by using the current network under the condition that the application function which is operated by the target application is the target application function;
and the fourth processing module is configured to switch the current network to the target WiFi network when the application functions of all the target applications are not the corresponding target application functions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210234554.2A CN114679758A (en) | 2022-03-08 | 2022-03-08 | Network switching method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210234554.2A CN114679758A (en) | 2022-03-08 | 2022-03-08 | Network switching method and device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114679758A true CN114679758A (en) | 2022-06-28 |
Family
ID=82072249
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210234554.2A Pending CN114679758A (en) | 2022-03-08 | 2022-03-08 | Network switching method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114679758A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112752319A (en) * | 2019-10-31 | 2021-05-04 | 中兴通讯股份有限公司 | Network switching method, device, terminal and storage medium |
CN112752316A (en) * | 2020-12-28 | 2021-05-04 | 维沃移动通信有限公司 | Electronic equipment networking control method and device, electronic equipment and storage medium |
WO2021083084A1 (en) * | 2019-10-31 | 2021-05-06 | 维沃移动通信有限公司 | Data transmission method and electronic device |
CN114071627A (en) * | 2021-11-10 | 2022-02-18 | 重庆传音通讯技术有限公司 | Network switching method, intelligent terminal and storage medium |
-
2022
- 2022-03-08 CN CN202210234554.2A patent/CN114679758A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112752319A (en) * | 2019-10-31 | 2021-05-04 | 中兴通讯股份有限公司 | Network switching method, device, terminal and storage medium |
WO2021083084A1 (en) * | 2019-10-31 | 2021-05-06 | 维沃移动通信有限公司 | Data transmission method and electronic device |
CN112752316A (en) * | 2020-12-28 | 2021-05-04 | 维沃移动通信有限公司 | Electronic equipment networking control method and device, electronic equipment and storage medium |
CN114071627A (en) * | 2021-11-10 | 2022-02-18 | 重庆传音通讯技术有限公司 | Network switching method, intelligent terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110418151B (en) | Bullet screen information sending and processing method, device, equipment and medium in live game | |
CN108763579B (en) | Search content recommendation method and device, terminal device and storage medium | |
CN102468989B (en) | The method and system of network data | |
CN105046525A (en) | Advertisement delivery system, device and method | |
US20230211235A1 (en) | Device control method and apparatus, computer device, and storage medium | |
CN108762831A (en) | Application program preloads method, apparatus, storage medium and terminal | |
CN111182595B (en) | Network switching method and device, storage medium and electronic equipment | |
KR20180006433A (en) | Information processing method, terminal and computer storage medium | |
CN111796747B (en) | Multi-open application processing method and device and electronic equipment | |
CN114500432A (en) | Session message transceiving method and device, electronic equipment and readable storage medium | |
US20240089223A1 (en) | Information display method and apparatus, and electronic device | |
WO2024114571A1 (en) | Information display method and apparatus, electronic device, and storage medium | |
CN113220365A (en) | Control method and control device | |
CN115412634B (en) | Message display method and device | |
CN111225242A (en) | Video playing disaster tolerance method and device and computer storage medium | |
CN114679758A (en) | Network switching method and device, electronic equipment and readable storage medium | |
CN112637409B (en) | Content output method and device and electronic equipment | |
CN115828845A (en) | Multimedia data viewing method, device, medium and equipment | |
CN114501566A (en) | Network switching method and device | |
CN115567901A (en) | Method, device, equipment and storage medium for operating user identity identification card | |
CN115379113A (en) | Shooting processing method, device, equipment and storage medium | |
CN115390707A (en) | Sharing processing method and device, electronic equipment and storage medium | |
CN114327714A (en) | Application program control method, device, equipment and medium | |
CN113312662A (en) | Message processing method and device and electronic equipment | |
CN113873082A (en) | Media file playing 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 |