CN111465016B - Control method and device - Google Patents

Control method and device Download PDF

Info

Publication number
CN111465016B
CN111465016B CN202010246741.3A CN202010246741A CN111465016B CN 111465016 B CN111465016 B CN 111465016B CN 202010246741 A CN202010246741 A CN 202010246741A CN 111465016 B CN111465016 B CN 111465016B
Authority
CN
China
Prior art keywords
application
processed
mobile network
identity
switching
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.)
Active
Application number
CN202010246741.3A
Other languages
Chinese (zh)
Other versions
CN111465016A (en
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010246741.3A priority Critical patent/CN111465016B/en
Publication of CN111465016A publication Critical patent/CN111465016A/en
Application granted granted Critical
Publication of CN111465016B publication Critical patent/CN111465016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a control method and a control device, when an electronic device accesses a corresponding first mobile network by a first identity, based on a processing strategy aiming at a second identity of the electronic device, one-time cycle switching of the electronic device is controlled, so that the influence of the one-time cycle switching on data interaction of an application to be processed of the electronic device through the first mobile network is forbidden, the one-time cycle switching is switched from the first mobile network to a second mobile network corresponding to the second identity, and then the one-time cycle switching is switched from the second mobile network to the first mobile network, so that the blockage of the application to be processed, which is caused by the one-time cycle switching process and is subjected to data interaction through the first mobile network, can be avoided, the fluency of the application to be processed is improved, and the experience of a user using the application to be processed is improved.

Description

Control method and device
Technical Field
The present application belongs to the field of data processing technologies, and in particular, to a control method and apparatus.
Background
With the development of mobile networks, an electronic device may have two identifiers, and the two identifiers can be accessed into the mobile networks respectively corresponding to the two identifiers, so that the electronic device can perform data interaction through the two mobile networks.
Although the electronic device can be accessed into two mobile networks, the electronic device selects one mobile network from the two mobile networks for use, the other mobile network is in a disabled or standby state, and during data interaction through one mobile network, the electronic device still periodically sends a subscription request for synchronizing the state of the identity corresponding to the other mobile network so as to realize state synchronization.
Disclosure of Invention
In view of the above, an object of the present application is to provide a control method and apparatus. The technical scheme is as follows:
the present application provides a control method, the method comprising:
acquiring an application to be processed in electronic equipment, wherein the electronic equipment is accessed into a first mobile network corresponding to a first identity through the first identity currently;
if the application to be processed performs data interaction through the first mobile network, acquiring a processing strategy for a second identity, wherein the second identity corresponds to a second mobile network, the first mobile network and the second mobile network are different, and the primary cycle is switched from the first mobile network to the second mobile network and then switched from the second mobile network to the first mobile network;
controlling one-time cycle switching of the electronic equipment based on the processing strategy aiming at the second identity so as to prohibit the one-time cycle switching from influencing data interaction of the application to be processed through the first mobile network.
Optionally, the controlling of one-cycle switching of the electronic device based on the processing policy for the second identity includes:
and if the execution of the application to be processed is monitored, controlling the electronic equipment to perform one-time cycle switching when the application to be processed is started.
Optionally, the controlling the electronic device to perform one-time cycle switching when the to-be-processed application is started includes:
before starting the preset operation in the application to be processed, controlling the electronic equipment to perform one-time circular switching, wherein the priority of using a first mobile network in the preset operation is higher than the priority of using the first mobile network in other operations in the application to be processed, and the running time of the preset operation is less than or equal to the interval time of performing one-time circular switching again by the electronic equipment.
Optionally, the controlling of one-cycle switching of the electronic device based on the processing policy for the second identity includes:
acquiring the working state of the application to be processed;
and if the working state of the application to be processed indicates that the application to be processed is in an idle state, controlling the electronic equipment to perform one-time circular switching, wherein the requirement on the first mobile network when the application to be processed is in the idle state is lower than the requirement on the first mobile network when the application to be processed is in a non-idle state.
Optionally, the controlling of one-cycle switching of the electronic device based on the processing policy for the second identity includes:
and prohibiting the electronic equipment from performing cycle switching once every preset time interval when the to-be-processed application process is started or before a preset operation of the to-be-processed application is started based on the processing strategy for the second identity, wherein the priority of using the first mobile network by the preset operation is higher than the priority of using the first mobile network by other operations in the to-be-processed application.
Optionally, the prohibiting, based on the processing policy for the second identity, that the electronic device performs the cycle switching every preset time interval when the to-be-processed application process is started or before a preset operation of the to-be-processed application is started includes:
based on the processing strategy aiming at the second identity, when the application to be processed is started or before the preset operation of the application to be processed is started, closing a state synchronization function of the electronic equipment to prohibit the electronic equipment from performing cyclic switching once at preset time intervals;
the method further comprises the following steps: and when the situation that the application to be processed exits or the preset operation is finished is monitored, starting a state synchronization function of the electronic equipment to control the electronic equipment to perform cycle switching once at every preset time interval.
The present application also provides a control device, the device comprising:
the device comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring an application to be processed in electronic equipment, and the electronic equipment is currently accessed to a first mobile network corresponding to a first identity through the first identity;
a second obtaining unit, configured to obtain a processing policy for a second identity if the to-be-processed application performs data interaction through the first mobile network, where the second identity corresponds to a second mobile network, and the first mobile network and the second mobile network are different, and the primary loop is switched to be switched from the first mobile network to the second mobile network and then switched from the second mobile network to the first mobile network;
and the control unit is used for controlling one-time cycle switching of the electronic equipment based on the processing strategy aiming at the second identity so as to prohibit the one-time cycle switching from influencing data interaction of the application to be processed through the first mobile network.
Optionally, the control unit is specifically configured to:
and if the execution of the application to be processed is monitored, controlling the electronic equipment to perform one-time cycle switching when the application to be processed is started.
Optionally, the control unit is specifically configured to:
and acquiring the working state of the application to be processed, and controlling the electronic equipment to perform one-time circular switching if the working state of the application to be processed indicates that the application to be processed is in an idle state, wherein the requirement on the first mobile network when the application to be processed is in the idle state is lower than the requirement on the first mobile network when the application to be processed is in a non-idle state.
Optionally, the control unit is specifically configured to:
and prohibiting the electronic equipment from performing cycle switching once every preset time interval when the to-be-processed application process is started or before a preset operation of the to-be-processed application is started based on the processing strategy for the second identity, wherein the priority of using the first mobile network by the preset operation is higher than the priority of using the first mobile network by other operations in the to-be-processed application.
By means of the technical scheme, when the electronic equipment is accessed to the corresponding first mobile network through the first identity, one-time cycle switching of the electronic equipment is controlled based on a processing strategy aiming at the second identity of the electronic equipment, so that the influence of the one-time cycle switching on data interaction of the application to be processed of the electronic equipment through the first mobile network is forbidden, the one-time cycle switching is switched to the second mobile network corresponding to the second identity from the first mobile network and then is switched to the first mobile network from the second mobile network, and therefore the blockage of the application to be processed, which is caused by the one-time cycle switching process, in the data interaction through the first mobile network can be avoided, the fluency of the application to be processed is improved, and the experience of a user using the application to be processed is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a control method provided in an embodiment of the present application;
FIG. 2 is a diagram illustrating a conventional method for performing a circular switch during data interaction;
FIG. 3 is a schematic diagram of a loading interface and a login interface when the electronic device launches a pending application;
fig. 4 is a timing diagram illustrating a control method for controlling an electronic device to perform a cycle switch according to an embodiment of the present application;
fig. 5 is a timing chart illustrating a control method for controlling an electronic device to perform a cycle switch according to still another embodiment of the present application;
FIG. 6 is a flowchart of a method for controlling an electronic device to perform a round-robin handover based on a processing policy according to yet another embodiment of the present application;
FIG. 7 is a flowchart of a method for prohibiting an electronic device from performing a cycle switch based on a processing policy according to yet another embodiment of the present application;
FIG. 8 is a diagram illustrating a state synchronization function for turning off an electronic device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a control device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 shows a flow of a control method disclosed in an embodiment of the present application, for controlling a cyclic shift of an electronic device, so as to prohibit the cyclic shift from affecting data interaction of an application in the electronic device via a mobile network, where the method may include the following steps:
101. acquiring an application to be processed in the electronic equipment.
The electronic equipment is currently accessed to a first mobile network corresponding to the first identity through the first identity. The electronic device may be any electronic device that has multiple identities and can access to the mobile network corresponding to the identity through each identity. If the electronic device has a first identity and a second identity, the first identity corresponds to a first mobile network, the second identity corresponds to a second mobile network, and the first mobile network and the second mobile network are different, for example, the first mobile network and the second mobile network are both wired networks or wireless networks, but the respective network parameters are different, or one of the first mobile network and the second mobile network is a wireless network and the other is a wired network.
For example, the electronic device may be a mobile phone with a dual-card dual-standby function, where the mobile phone may be installed with two SIM (Subscriber Identity Module) cards, each SIM card records an Identity, and the mobile phone may access a first mobile network corresponding to a first Identity recorded in the SIM card 1 through one of the SIM cards (denoted as SIM card 1), or may switch to another SIM card (denoted as SIM card 2), so as to access a second mobile network corresponding to a second Identity recorded in the SIM card 2. The electronic equipment can also be a tablet computer which has a function of accessing cellular data and can be provided with two SIM cards, and the specific type of the electronic equipment is not limited in the application.
The electronic device may have installed many applications including, but not limited to, various stand-alone games, document editing tools, various network games and online video players, etc. A user using the electronic device may control the electronic device to launch a specified application by clicking an application icon of a specific application, or speaking an application name of the specific application, or the like.
The acquiring of the application to be processed may be acquiring a start instruction generated by a user by clicking a screen, inputting voice or text, and determining an application to be started specified by the start instruction as the application to be processed.
102. And judging whether the application to be processed needs to carry out data interaction through the first mobile network.
If the application to be processed does not need to perform data interaction through the first mobile network, the application to be processed is directly started, the method is ended, and the electronic equipment performs the judgment on the application to be processed until the electronic equipment acquires another application to be processed; if it is determined that the to-be-processed application needs to perform data interaction through the first mobile network, step 103 is executed.
A feasible method for determining whether an application to be processed requires data interaction via a first mobile network comprises the following steps:
firstly, whether the application to be processed belongs to the application which needs to carry out data interaction in the running process is judged. Among various applications which can be installed on the electronic equipment, an application which needs to perform data interaction during running is available, for example, a network game needs to interact game data with a game server in real time during running, so that interaction among a plurality of players participating in the game is realized, and an online video player needs to cache a video stream from the video server and play the video stream in real time during running; there are also applications that do not need to perform data interaction during running, for example, a user only needs to browse or edit a text locally during running of a text editing tool, a stand-alone game only needs to respond to the game operation of the user according to a set game logic during running of the stand-alone game, and both applications do not need to perform data interaction during running.
Based on the method and the device, all applications installed on the electronic equipment can be classified in advance according to whether data interaction is needed or not, and classification results are recorded. When step 102 is executed, it may be determined whether data interaction is required in the running process of the application to be processed by searching a classification result corresponding to the application to be processed, and it is described that the application to be processed performs data interaction through the first mobile network, such as at least one of the above-mentioned network game and online video playing. If the to-be-processed application is judged not to need data interaction when running, the to-be-processed application can be naturally determined not to need data interaction through the first mobile network, and the to-be-processed application is directly started.
If the fact that data interaction is needed when the application to be processed operates is judged, whether the electronic equipment is currently accessed to a wireless local area network (such as Wi-Fi) capable of supporting the data interaction of the application to be processed is continuously judged, and if the electronic equipment is currently accessed to the wireless local area network capable of supporting the data interaction of the application to be processed, the data interaction is conducted on the application to be processed through the wireless local area network when the application to be processed operates, so that the fact that the application to be processed does not need to conduct data interaction through the first mobile network can be determined; if the electronic equipment is not currently connected with a wireless local area network capable of supporting data interaction of the application to be processed, and the application to be processed is an application needing data interaction in the running process, it is judged that the application to be processed needs data interaction through the first mobile network.
103. And acquiring a processing strategy aiming at the second identity.
The second identity here refers to another identity in the electronic device with two identities, except the first identity currently used for accessing the corresponding first mobile network. Taking a mobile phone as an example, assuming that a SIM card 1 with a number of 123XXX and a SIM card 2 with a number of 456YYY are installed on the mobile phone, when the mobile phone accesses a mobile network corresponding to the SIM card 1 through the SIM card 1, an identity recorded by the SIM card 1 is a first identity of the electronic device in this embodiment, a mobile network corresponding to the SIM card 1 is a first mobile network, an identity recorded by the SIM card 2 is a second identity, and a mobile network corresponding to the SIM card 2 is a second mobile network.
In contrast, if the current mobile phone accesses the mobile network corresponding to the SIM card 2 through the SIM card 2, the identity identifier recorded by the SIM card 2 and the corresponding mobile network are the first identity identifier and the first mobile network, respectively, and the identity identifier recorded by the SIM card 1 and the corresponding mobile network are the second identity identifier and the second mobile network, respectively.
The processing policy for the second identity is a preset control policy for controlling one-time cycle switching of the electronic device when the application to be processed needs to perform data interaction through the first mobile network. The processing strategy aiming at the second identity can be stored in a designated position in a storage medium of the electronic equipment coupling communication, and when the processing strategy is required to be used, the processing strategy aiming at the second identity can be directly read from the storage medium of the electronic equipment coupling communication.
The one-cycle handover of the electronic device may be a process in which the electronic device is handed over from a first mobile network currently accessed to a second mobile network, and then handed over from the second mobile network to the first mobile network.
The reason why the electronic device performs the one-cycle handover is that although the electronic device can access the two mobile networks, the electronic device can only access one of the two mobile networks at a specific moment due to the communication capability limitation, and when the electronic device accesses one of the mobile networks, the other mobile network is in a disabled or dormant state. When the electronic device continuously accesses a mobile network corresponding to one identity, the electronic device still needs to periodically send a subscription request for synchronizing the state of another mobile network corresponding to the other identity, so as to implement state synchronization of another identity in the corresponding mobile network. Obviously, in order to achieve state synchronization, the electronic device needs to switch from the currently accessed first mobile network to the second mobile network (i.e. exit from the first mobile network and access to the second mobile network), and then switch from the second mobile network to the first mobile network (i.e. exit from the second mobile network and access to the first mobile network) after the second mobile network sends a subscription request (which is equivalent to performing re-subscription), so as to continue data interaction through the first mobile network.
Moreover, since the subscription request needs to be sent periodically, a cyclic switching of the electronic device also needs to be performed periodically. For example, if the validity period of the sent one-time subscription request is 1 hour, the electronic device must send the subscription request again within 1 hour after the sending of the current subscription request is completed, and once the subscription request is not sent to the second mobile network for more than 1 hour, the second identifier loses state synchronization in the second mobile network, which means that the electronic device needs to perform the cycle switching once again within 1 hour after the completion of the current cycle switching, that is, perform the cycle switching once every certain time, for example, 1 hour.
104. And controlling one-time cycle switching of the electronic equipment based on the processing strategy aiming at the second identity so as to prohibit the one-time cycle switching from influencing data interaction of the application to be processed through the first mobile network.
The electronic device exits from the first mobile network for a period of time each time the electronic device performs the circular handover, the electronic device needs to access to the second mobile network during the period of time, sends a subscription request in the second mobile network, confirms that the subscription request is successfully sent, and then exits from the second mobile network. According to the performance of the electronic device and the network environment of the second mobile network, the time may need several seconds, so that the to-be-processed application cannot perform data interaction through the first mobile network within the time when the electronic device exits the first mobile network, and the fluency of the to-be-processed application is reduced.
As shown in fig. 2, if the electronic device performs a loop switch, the to-be-processed application performs data interaction through the first mobile network, and particularly performs data interaction with high timeliness, for example, a live event is being watched on an online video player, and a high frequency interaction with other players in a network game (for example, a one-play battle game is being played) may cause a video or a game to be jammed, which may result in poor user experience for the user.
Specifically, the present application provides three processing strategies for achieving the above object, where the processing strategy for the second identity may be any one of the three processing strategies, or may be a combination of any two or three of the three processing strategies.
The first processing strategy is to start the application to be processed when detecting that the application to be processed is executed, for example, when detecting that a user inputs an instruction for starting the application to be processed by clicking a screen, inputting a text, inputting a sound, or the like, and control the electronic device to perform one cycle switching when the application to be processed is started. When the application to be processed is started, a corresponding starting interface is generally displayed for a user, and the user does not have obvious perception even if short-time delay occurs, so that the timeliness requirement of data interaction of the application to be processed through the first mobile network is low, the electronic equipment can be controlled to perform one-time cycle switching at the moment, the influence of the application to be processed is reduced in a mode of advancing the one-time cycle switching, and if the time for performing data interaction of subsequent applications to be processed through the first mobile network is less than or equal to the interval time of the one-time cycle switching, the application to be processed is ensured not to be influenced by the one-time cycle switching when performing data interaction through the first mobile network. After the electronic device completes one cycle switching, the electronic device may continue to start the application to be processed to complete the start of the application to be processed.
The second processing strategy is to obtain the working state of the application to be processed after the application to be processed is started, and if the application to be processed is in an idle state, control the electronic device to perform one-time circular switching, wherein the timeliness requirement of data interaction performed through the first mobile network when the application to be processed is in the idle state is lower than the timeliness requirement of data interaction performed through the first mobile network when the application to be processed is in a non-idle state. By adopting the processing strategy, if the time interval between two adjacent idle states of the application to be processed is less than or equal to the time interval of one cycle switching, the data interaction of the application to be processed can be ensured not to be influenced by the one cycle switching of the electronic equipment, and certainly, the existing cycle switching performed at a certain interval can be modified into the cycle switching performed at every idle state based on the processing strategy, so that the influence of the one cycle switching on the data interaction of the application to be processed can be reduced in the time interval between two adjacent idle states.
The third processing strategy is to prohibit the electronic device from performing cycle switching once every preset time when the to-be-processed application is started or before the preset operation of the to-be-processed application is started. The priority of the first mobile network used by the preset operation of the application to be processed is higher than the priority of the first mobile network used by other operations of the application to be processed, for example, the priority can be embodied by the timeliness requirement of the operation in the application to be processed on data interaction, and the higher the timeliness requirement of the operation on the data interaction is, the higher the priority is, so the timeliness requirement of the data interaction performed when the preset operation is performed by the application to be processed is higher than the timeliness requirement of the data interaction performed when the other operations are performed by the application to be processed. The processing strategy has the advantages that even if the running time of the application to be processed is far longer than the interval time of one cycle switching, or the time for the application to be processed to continuously execute the preset operation is far longer than the interval time of one cycle switching, the data interaction performed when the application to be processed runs, or the data interaction performed when the application to be processed executes the preset operation is absolutely not influenced by one cycle switching, and the user experience is greatly improved.
The three processing strategies provided by the embodiments of the present application are described below with reference to specific figures and examples:
the first processing strategy based way of controlling the one-cycle switching of the electronic device is:
and if the execution of the application to be processed is monitored, controlling the electronic equipment to perform one-time circular switching when the application to be processed is started. When the execution of the application to be processed is monitored, it can be understood that it is monitored that the user clicks an icon of the application to be processed displayed on the electronic device, or it is monitored that the user inputs a voice instruction for starting the application to be processed.
When the electronic equipment responds to a starting instruction (a click instruction or a voice instruction) of the application to be processed of the user to start the application to be processed, the electronic equipment is directly controlled to carry out one-time cycle switching, and the electronic equipment completes the state synchronization of the second identity in the second mobile network in the process of one-time cycle switching.
The electronic device is controlled to perform one-time circular switching when the application to be processed is started, and the following two specific implementation methods can be adopted:
first, when the electronic device starts the application to be processed, the electronic device will first enter a loading stage, and at this time, the electronic device will display a loading interface of the application to be processed, and execute preparation works such as preloading environment parameters of the application to be processed and clearing up idle resources in a memory while displaying the loading interface, as shown in fig. 3, it is a schematic diagram of an optional loading interface of the application to be processed. Of course, different pending applications may have different loading interfaces, and are not limited to the loading interface shown in fig. 3. Depending on the complexity of the functionality of the application to be processed, and the capabilities of the electronic device, the loading phase may remain from a few seconds to a dozen seconds. The first implementation method is thus: after the electronic device starts to display the loading interface of the application to be processed, the electronic device can be controlled to execute a cycle switching, so that the electronic device is switched to the second mobile network to execute necessary operations.
For example, after the electronic device is switched to the second mobile network, a subscription request is sent to a server in the second mobile network through the second identity, so as to complete a RE-subscription (RE-SUBSCRIBE) process defined by a Session Initiation Protocol (SIP), thereby implementing state synchronization of the second identity in the second mobile network, and then the electronic device completes one cycle switching after being switched to the first mobile network.
Second, most applications that require data interaction via the first mobile network require the user to provide corresponding identity information to log in to the corresponding server after being successfully loaded. In other words, if the to-be-processed application can be normally used only after the user logs in, the to-be-processed application enters the login stage after the loading stage is finished, and at this time, the electronic device displays a login interface (an optional login interface is shown in fig. 3) of the to-be-processed application on one hand, and sends the identity information of the user to the server for providing the data interaction service for the to-be-processed application through the first mobile network and waits for a login result fed back by the server on the other hand.
The cycle switching executed when the application to be processed is started can also be executed in the login phase of the application to be processed. The second implementation method may be that after it is detected that the electronic device displays the login interface of the application to be processed, the electronic device is controlled to perform a circular switching, and after the circular switching is completed, the operation of the login stage of the application to be processed and the operation after the login stage are continuously executed.
It is understood that, the specific implementation method of the first processing strategy may include, but is not limited to, the above two methods, and other methods for controlling the electronic device to perform one cycle switching when the application to be processed is started may also be used as the specific implementation method of the first processing strategy in this application.
Referring to fig. 4, a timing diagram illustrating a cycle switch of the electronic device controlled based on the first processing strategy when the application to be processed is the network game is shown.
As shown in fig. 4, after detecting that the user inputs the network game start command, the electronic device starts the network game at time T1, and executes loading and logging-in of the network game in the time period from T1 to T2, where the first processing strategy is to control the electronic device to execute a circular switch in the time period from T1 to T2. Therefore, after the electronic equipment finishes the loading and login of the network game and enters the main interface of the network game, the fluency of the network game can be ensured within the interval time of one cycle switching after the network game is started, and if the continuous running time of the network game is less than or equal to the interval time of one cycle switching, the electronic equipment cannot execute one cycle switching within the running time of the network game, so that the smooth game experience is ensured after the user enters the main interface of the network game.
The pending application may include a plurality of executable operations, and when the pending application performs data interaction through the first mobile network, a priority level of data interaction performed by a part of operations with higher timeliness requirements using the first mobile network may be higher than a priority level of data interaction performed by other operations with lower timeliness requirements using the first mobile network. In addition, after the part of the applications are started successfully and enter the main interface, the operations with higher priority levels are not executed immediately, the operations with higher priority levels or the operations with lower priority levels are determined to be executed according to the instructions of the user, and short-time delay or blockage does not affect the user experience obviously when the operations with lower priority levels are executed. In this regard, the first processing strategy may also be implemented as follows:
after the application to be processed is started and before the application to be processed executes the preset operation, the electronic equipment is controlled to perform cycle switching once. The preset operation is one or more operations specified in advance among operations executable by the application to be processed, and the priority of using the first mobile network by the preset operation is higher than the priority of using the first mobile network by other operations except the preset operation.
Taking the example that the application to be processed is an online video player, after the online video player is started and enters the main interface, the main interface is a browsing interface, in which video tags of a plurality of online videos (the video tags may be image covers of the videos or video titles) are displayed, and a user may perform a dragging operation on the browsing interface, so that the browsing interface scrolls to display more video tags of the online videos, or may click a certain video tag currently displayed on the browsing interface, so that the online video player starts to play the online video corresponding to the clicked video tag.
When the video tags are browsed, the time delay of refreshing a new video tag for several seconds does not obviously influence user experience, and the lack of video data for several seconds in the process of playing the online video can cause a user watching the video to feel obvious stutter, so that the timeliness requirement of the operation of updating the video tag of the browsing interface is lower, the corresponding priority of using the first mobile network is lower, the timeliness requirement of the operation of playing the online video is higher, and the corresponding priority of using the first mobile network is higher. Therefore, the operation of playing the online video belongs to the preset operation of the online video player, and the operation of updating the video tag of the browsing interface does not belong to the preset operation.
For an online video player, fig. 5 may be referenced for a timing diagram for controlling one cycle switching of an electronic device based on a first processing strategy. After the online video player is started and enters a browsing interface, detecting the behavior of a user in real time, if the behavior of the user is detected to be dragging the browsing interface, determining that the operation to be executed currently is the operation of updating the video label of the browsing interface, and if the situation does not reach the moment that one cycle switching must be executed currently, the cycle switching does not need to be actively executed. If it is detected that the user clicks a certain video tag at time T1 as shown in fig. 5, it is determined that a preset operation, that is, an operation of playing an online video is to be performed, and then the electronic device is immediately controlled to perform a circular switching operation, and after the circular switching operation is completed, the operation of playing the online video is started again, and the online video specified by the user is played.
With reference to fig. 5, it can be found that, by using the control method, if the duration of each preset operation (for the operation of playing the online video, the time may be the duration of the currently played video) is less than or equal to the interval time of one cycle switching, the data interaction through the first mobile network when the application to be processed executes the preset operation each time is not affected by one cycle switching of the electronic device, and the effect of improving the user experience can also be achieved.
Of course, the application scope of the above control method includes, but is not limited to, an online video player. For example, current network games include operations of controlling a game character to perform corresponding game behaviors (such as attack, skill for use, and movement) after a player enters the game, and social operations of the player in a game hall (which may be understood as an interface of the network game for different players to socialize or select different games), including but not limited to operations of friend adding, voice or text chatting, and the like. It is understood that the requirement for timeliness of the operation of controlling the game role to execute the corresponding game behavior is increased, the operation belongs to the preset operation of the network game, and the social operation of the player is allowed to have a certain delay and does not belong to the preset operation of the network game. Therefore, after the network game is started, if the current interface is a game hall, the electronic equipment is controlled to perform circular switching according to the preset interval time, if the situation that the user wants to quit the game hall to start playing the game is detected, the electronic equipment is controlled to actively perform circular switching, and if the time for the user to continuously play the game is not more than the interval time of the circular switching, the control method can ensure that the user is not influenced when playing the game.
The second processing strategy is to obtain the working state of the application to be processed after the application to be processed is started, and control the electronic device to perform one-time circular switching if the application to be processed is in an idle state.
The idle state of the application to be processed is defined with respect to a non-idle state of the application to be processed, e.g., the timeliness requirement of data interaction through the first mobile network when the application to be processed is in the idle state is lower than the timeliness requirement of data interaction through the first mobile network when the application to be processed is in the non-idle state.
The electronic device is controlled based on the second processing strategy, and the working state of the application to be processed needs to be detected in real time. Referring to fig. 6, the control method implemented based on the second processing strategy may include the following steps:
601. and detecting the working state of the application to be processed.
The working state of the application to be processed can be detected in real time in the application, so that the application to be processed can be monitored in real time.
If the working state of the application to be processed indicates that the application to be processed is currently in the idle state, step 602 is executed, and if the working state of the application to be processed indicates that the application to be processed is currently in the non-idle state, step 601 is executed again until it is detected that the application to be processed is currently in the idle state or the application to be processed exits.
The current working state of the application to be processed may be obtained by detecting a traffic of data interaction of the application to be processed currently through the first mobile network, or may be obtained by detecting a resource of the electronic device occupied by the application to be processed.
602. The control electronics perform a cycle switch.
The process of the electronic device performing the cycle switch and the operations performed in the process may refer to the related steps, which are not described in detail herein.
Generally, if the traffic (the traffic can be considered as the data volume interacted by the application to be processed through the first mobile network in unit time) when the application to be processed performs data interaction is larger, the timeliness of the data interaction performed at this time is generally higher, for example, the traffic when an online video player plays an online video is larger than the traffic when the online video is not played (including not playing the video playing interface, but pausing the playing on the video playing interface, etc.), and the timeliness requirement of the former is also higher than that of the latter; the flow rate of the network game when a plurality of players interact in a game scene (for example, a plurality of players are mixed in the same game scene) is larger than that of a single player when the single player hangs up in a certain game scene (waits in place without performing other operations), and the timeliness requirement of the former is higher than that of the latter.
In summary, the traffic condition of the application to be processed in a past period of time may be counted, so as to determine a traffic threshold for the application to be processed, after the traffic threshold is determined, a specific execution process of step 601 is to detect a current traffic of the application to be processed, determine whether the current traffic is greater than the traffic threshold, if the current traffic is greater than the traffic threshold, consider that the application to be processed is in a non-idle state, and otherwise, if the current traffic is less than or equal to the traffic threshold, consider that the application to be processed is in a non-idle state.
Of course, the idle state and the non-idle state of the application to be processed can also be distinguished by detecting that the application to be processed occupies the resources of the electronic device. When the application to be processed is an online video player, the resources of the electronic equipment occupied by the online video player when the online video player plays the online video are more than the resources of the electronic equipment when the online video is not played, and when the application to be processed is an online game, the resources of the electronic equipment occupied by the online game when a plurality of players interact in a game scene are more than the resources of the electronic equipment occupied by the online game when a single player hangs up in a certain game scene. Therefore, whether the application to be processed is in an idle state or a non-idle state can be judged by comparing the resources of the electronic equipment occupied by the application to be processed currently with a preset resource threshold value.
Taking the example that the application to be processed is an online video player, it is possible to count traffic conditions in the past period of time when the online video player updates a video tag in a browsing interface, when the played online video is a video that has been cached by the online video player, when the playing of the online video is suspended, and when the online video with different resolutions is being played, and determine a traffic threshold according to the statistical result.
On this basis, if it is detected that the current flow of the online video player is greater than the flow threshold, it is considered that the online video player is playing an online video with a certain resolution, that is, the online video player is in a non-idle state. If the current flow of the online video player is detected to be smaller than or equal to the flow threshold, the online video player is considered not to play the online video currently, that is, the online video player is determined to be in an idle state.
The method can also be used for detecting the idle state for the online game. In particular, on one hand, the traffic situation of the user when playing the game by using the network game (for example, the user starts a match in a match-up network game) and when the user starts the network game but uses other functions provided by the network game (for example, a social function, a game forum browsing function) can be counted, on the other hand, the flow conditions of the game characters in different states when the user plays the game can be counted, for example, when a user's game character hangs up (i.e. waits in place), and the game character is defeated and waits to return to the game, traffic conditions when the user's game character and other game characters interact (other game characters may be game characters of other users or virtual user characters of the system, and the interaction includes but is not limited to mutual attack and mutual skill release) are counted respectively, so as to determine a reasonable traffic threshold.
When the application to be processed is in the idle state for a long time, if the time that the application to be processed is continuously in the idle state is longer than the interval time of the electronic device for performing the cyclic switching, the electronic device may be controlled to perform the cyclic switching according to the interval time.
It is understood that the data interaction is required to be performed with the highest timeliness and the highest traffic when the user is playing a game and the user's game character interacts with another game character, and in this case, a delay of several seconds directly changes the behavior result of the user's game character, so that the state is a non-idle state, while the data interaction is required to be performed with a lower timeliness and a smaller traffic when the user is playing a game and the game character is on-hook or not playing a game, and the states can be regarded as idle states.
Therefore, the current flow of the online game obtained through real-time detection can be compared with the flow threshold, if the current flow is larger than the flow threshold, the online game is considered to be in a non-idle state, and if the current flow is smaller than or equal to the flow threshold, the online game is considered to be in an idle state.
Optionally, in the control method corresponding to fig. 6, after detecting that the application to be processed is currently in the idle state, the electronic device may be controlled to perform the following determination before performing a cycle switch:
and judging whether the difference value between the execution time of the latest cycle switching and the current time is greater than a preset time threshold value.
If the difference between the execution time of the latest cycle switching and the current time is greater than the time threshold, the electronic device is controlled to execute the cycle switching, otherwise, if the difference between the execution time of the latest cycle switching and the current time is less than or equal to the time threshold, the electronic device is not controlled to execute the cycle switching, and the step 601 is executed again.
The reason for performing the above determination is that, depending on the actual situation, the pending application may frequently switch between the idle state and the non-idle state. For example, for a racing type network game, one game play time is generally short, for example, one game play in 5 minutes, and it may happen that a player frequently switches between playing one game play (the network game is in a non-idle state) and waiting for the next game play to start (the network game is in an idle state) after the game play is finished for a certain period of time (for example, 1 hour).
For another example, for an online video player, it is possible that a user watches short videos with a duration of about 5 minutes, and the user frequently switches between playing one video (the online video player is in a non-idle state) and browsing a plurality of video tags to select a next video to be played (the online video player is in an idle state).
In this case, the time interval between two adjacent idle states of the pending application (in the above example, about 5 minutes) may be much smaller than the time interval for performing a circular handover required for maintaining the state synchronization of the second identity in the second mobile network, and in particular, it may be only necessary to send a subscription request every one hour for maintaining the state synchronization. At this time, if the electronic device enters the idle state every time, the electronic device performs one cycle switching, which causes excessive unnecessary data interaction, further increases the cost paid by the user for the data interaction, and is not beneficial to improving the user experience.
Therefore, a time threshold determined by the interval of one cycle switching may be determined, for example, half of the interval of one cycle switching may be used as the time threshold. Assuming that the interval time of one cycle switch allowed for maintaining state synchronization is 1 hour, half an hour, i.e., 30 minutes, may be used as the time threshold. When the application to be processed is determined to be in the idle state at present, whether the time between the current time and the last time of executing the cycle switching of the electronic equipment exceeds 30 minutes is judged, if yes, the electronic equipment is controlled to execute the cycle switching, otherwise, the electronic equipment is not controlled to execute the cycle switching.
The electronic equipment is controlled to perform one-cycle switching based on the second processing strategy, so that the time period with the minimum influence on the user experience when delay or pause occurs is selected to perform one-cycle switching under the condition that the to-be-processed application performs data interaction through the first mobile network for a long time (particularly, the duration of the data interaction is far longer than the interval time of one-cycle switching required by state synchronization). In the time when the to-be-processed application performs data interaction through the first mobile network, the state synchronization of the second identity in the second mobile network can be maintained, and the user experience of a user using the to-be-processed application can be prevented from being remarkably reduced.
The third processing strategy provided by the application is to prohibit the electronic device from performing cycle switching at preset intervals when the to-be-processed application is started or before the preset operation of the to-be-processed application is started.
As described above, the electronic device needs to perform the circular switching at preset intervals in order to periodically access the second mobile network, and send the subscription request through the second identifier, so as to keep the state synchronization of the second identifier in the second mobile network, and therefore, the present application may prohibit the electronic device from periodically accessing the second mobile network and sending the subscription request by turning off the state synchronization function of the electronic device, and in particular, turning off the state synchronization function of the electronic device for the second identifier, so as to prohibit the electronic device from performing the circular switching at preset intervals.
After the state synchronization function of the electronic equipment for the second identity is closed, the electronic equipment does not automatically perform the circular switching at intervals of preset time because the state synchronization is not required to be maintained any more, and therefore, no matter how long the application to be processed continuously runs, data interaction performed by the application to be processed through the first mobile network does not pause due to the circular switching performed by the electronic equipment. By prohibiting the electronic device from performing the cyclic switching once every preset time interval, the influence of the cyclic switching on each data interaction of the application to be processed through the first mobile network can be completely prohibited, and it is ensured that a user can obtain the highest data interaction efficiency in the whole using process of the application to be processed after prohibiting the cyclic switching once every preset time interval of the electronic device, and the fluency of the application to be processed is improved, so that the user experience is remarkably improved.
The control method executed based on the third processing strategy may specifically include the following two methods: the first control method comprises the steps that when the application to be processed is detected to be started, the state synchronization function of the electronic equipment aiming at the second identity mark is closed, so that the electronic equipment is forbidden to execute cycle switching at preset time intervals after the application to be processed is started successfully and starts to run; and the second control method is used for closing the state synchronization function of the electronic equipment aiming at the second identity mark after detecting that the application to be processed is successfully started and before the application to be processed executes the preset operation, so that the electronic equipment is prohibited from executing the circular switching at intervals of preset time when the application to be processed executes the preset operation.
Referring to fig. 7, the second control method for controlling an electronic device based on a third processing strategy specifically includes the following steps:
701. and detecting whether the application to be processed executes preset operation in real time.
If the application to be processed is detected to be about to execute the preset operation, step 702 is executed, and if the application to be processed is not detected to be about to execute the preset operation, step 701 is executed again until the application to be processed is detected to be about to execute the preset operation, or the application to be processed is detected to exit.
For the definition and detection of the preset operation, reference may be made to the description of the aforementioned control method based on the first processing strategy, which is not described herein again.
If it is detected that the application to be processed has exited, the method ends.
702. And closing the state synchronization function of the electronic equipment aiming at the second identity.
After the state synchronization function for the second identity is closed, the electronic device does not perform the circular switching at preset time intervals.
Referring to fig. 8, if the electronic device is a mobile phone with dual-card dual-standby function, the execution process of step 702 may be:
the control program for executing the control method provided in this embodiment may be run in an operating system layer of the mobile phone (the Android in fig. 8 represents an Android operating system, and of course, the operating system applicable to the method includes, but is not limited to, an Android system), and when it is detected that the application to be processed is to execute a preset operation, the control program controls a Modem (i.e., a Modem in fig. 8) set in a baseband chip of the mobile phone through a control interface provided by the operating system, so as to close a Voice over Long-Term Evolution (Voice over Long-Term Evolution) bearer function (VoLTE) of the secondary card, and after the function of the secondary card is closed, the secondary card enters a Circuit Switched Fallback (CSFB) standby mode. In the CSFB mode, as long as no special operation (such as a subscription request) is performed, the secondary card does not perform any data interaction with the corresponding mobile network, and therefore, the mobile phone does not need to perform a cyclic switching to switch from the mobile network corresponding to the currently accessed primary card to the mobile network corresponding to the secondary card, and the application to be processed of the mobile phone can be completely unaffected by the cyclic switching, and data interaction is performed uninterruptedly through the first mobile network and the corresponding server.
The main card of the mobile phone refers to the SIM card recorded with the first identity of the mobile phone, and the auxiliary card refers to the SIM card recorded with the second identity of the mobile phone.
The method provided by this embodiment may further perform the following step, so that after the preset operation of the application to be processed is completed, the state synchronization function for the second identity is turned on again, so that the electronic device continues to perform the cycle switching once every preset time.
703. And detecting whether the preset operation of the application to be processed is finished.
In combination with the above definition of the preset operation, if the application to be processed is an online video player, the detection of step 703 may be to determine whether the video currently played by the online video player is played, and if the application to be processed is an online game, the detection of step 703 may be to determine whether the current game is finished.
If the preset operation of the application to be processed is completed, step 704 is executed, and if the preset operation of the application to be processed is not completed, step 703 is executed again until the preset operation of the application to be processed is completed.
704. And starting the state synchronization function of the electronic equipment aiming at the second identity.
After the state synchronization function for the second identity is started, if no other processing policy is adopted for control, the electronic device starts to perform a cycle switching at preset time intervals until step 702 is executed again, or the control program performs control based on other processing policies.
On the basis of the control method shown in fig. 7, the step 701 is replaced by detecting whether the electronic device receives a start instruction of the application to be processed, and the step 703 is replaced by detecting whether the application to be processed exits, so that the aforementioned first control method executed based on the third processing policy can be obtained, which is not described in detail herein.
The advantage of controlling the electronic device to perform the one-cycle switching based on the third processing policy is that if the electronic device is prohibited from performing the one-cycle switching every preset time interval when the to-be-processed application is started, no matter how long the to-be-processed application is continuously running, each data interaction performed through the first mobile network during the running of the to-be-processed application is not affected by the one-cycle switching, and the experience of a user when the to-be-processed application is used is greatly improved.
If the electronic equipment is forbidden to execute the cycle switching at intervals of the preset time before the application to be processed executes the preset operation, no matter how long the time for the application to be processed to continuously execute the preset operation is, data interaction through the first mobile network during the execution of the preset operation cannot be influenced by the cycle switching of the electronic equipment, so that smooth use experience can be obtained when a user executes the preset operation in the application to be processed every time, and the phenomenon of blocking due to the fact that the time for a certain preset operation is continuously too long can be avoided.
The three processing strategies are respectively used for controlling the electronic equipment to execute one-time cycle switching or forbidding the electronic equipment to execute one-time cycle switching at different stages of the running of the application to be processed, so that the electronic equipment is forbidden to repeatedly execute one-time cycle switching according to a certain interval time to influence the data interaction of the application to be processed through the first mobile network. As will be understood by those skilled in the art, the three processing strategies may be arbitrarily combined two by two, or the three processing strategies may be used simultaneously to effectively prohibit the influence of one cycle switching on the data interaction of the application to be processed under different conditions.
For example, when the control is performed based on the second processing policy, if it is found that the duration of the non-idle state of the current application to be processed is too long and is already close to the maximum interval time of the allowed one-time cycle switching, for example, the allowed maximum interval time is 30 minutes, and the non-idle state of the current application to be processed is already continued for 25 minutes, the control is performed based on the third processing policy, and the electronic device is directly prohibited to perform one-time cycle switching at every preset interval until the current non-idle state is ended or the application to be processed exits.
The following describes, with reference to a specific application scenario, a method for controlling one-cycle switching of an electronic device with reference to the three processing strategies:
first, the control method provided in any embodiment of the present application may be executed by a control program running on an electronic device. If the electronic device is a mobile phone with dual-card and dual-standby functions, the control program may be a management center running in the mobile phone for managing a plurality of games (including a stand-alone game and a network game) installed in the mobile phone.
After the mobile phone is started, the management center can detect whether a user of the mobile phone clicks an icon of a managed game in real time, and if the user clicks the icon of the network game A, the management center determines that the user triggers a starting instruction of the network game A, so that the network game A is acquired as the application to be processed.
After the application to be processed is obtained, the management center detects that the current mobile phone accesses the corresponding first mobile network through the first identity (the corresponding SIM card is marked as the main card) and does not access the wireless local area network, so that the management center determines that the network game A is the application to be processed, which performs data interaction through the first mobile network.
After the information is determined, the management center firstly controls the electronic equipment based on a first processing strategy, when the network game A is started and enters a loading interface of the network game A, the loading interface displayed on a screen is kept, meanwhile, the management center performs one-time circular switching in the background, namely, the management center exits from a first mobile network corresponding to the main card, accesses to a second mobile network corresponding to a second identity (the corresponding SIM card is marked as an auxiliary card), executes a re-subscription operation in the second mobile network, exits from the second mobile network corresponding to the auxiliary card after the re-subscription operation is completed, accesses to the first mobile network again, and then continues to operate the network game A.
Assuming that the maximum time interval allowed between two re-subscription operations is 30 minutes, after the electronic device performs a cycle switch each time, the electronic device needs to perform a cycle switch again after 30 minutes at the latest.
After the network game A is successfully started, the management center starts to control the electronic equipment based on the second processing strategy. At this time, the management center judges whether the network game A is in an idle state at present by monitoring the flow of the network game A during data interaction in real time.
Assuming that a user starts a game immediately after the network game a is started (or enters a game copy or starts a game task), the traffic generated when the network game a performs data interaction in this state is large, and the management center determines that the network game a is in a non-idle state.
After the non-idle state lasts for 20 minutes, the game role of the user is defeated in the game, and the game can be continued after waiting for a period of time (or the game role of the user is continuously in an on-hook state), at this time, the generated flow of the network game A is smaller than the preset flow threshold of the network game A, so that the management center determines that the network game A is in the idle state, and controls the electronic device to perform circular switching once.
After the user's game character is restored, the user continues to play the previous game (or continues to explore a previous game copy, or continues to perform a previous game task), and the network game a enters a non-idle state again. Assuming that the non-idle state lasts for 28 minutes, the management center detects that the time for performing the circular switching again on the electronic equipment is about to arrive, and then the management center controls the electronic equipment based on a third processing strategy, namely, directly turning off the state synchronization function of the mobile phone to the secondary card, so as to prohibit the mobile phone from performing the circular switching at preset intervals.
After the management center closes the state synchronization function of the secondary card by the mobile phone, the current non-idle state of the network game a lasts for 32 minutes again, then the game of the current game is ended (or other cases, refer to the related description of the foregoing embodiment), the user does not directly start the next game but chats with a friend in the network game a, the management center detects that the network game a is currently in the idle state (or the preset operation of the network game a is ended, where the preset operation refers to starting a game in the network game a), and then the management center opens the state synchronization function of the mobile phone for the secondary card, and controls the mobile phone to perform one-time circular switching.
After completing the first circular switching, the management center continues to detect the network game A, if the user closes the network game A, the management center does not control the process of the mobile phone for performing the first circular switching based on the processing strategy, at the moment, the mobile phone can perform the first circular switching at intervals of preset time, and if the user does not close the network game A, the management center continues to control the electronic equipment based on the second processing strategy.
It can be found that by combining the three processing strategies, the control method provided by the application can maintain the normal operation of the state synchronization function of the electronic device for the second identity as far as possible on the premise of not significantly influencing the data interaction of the application to be processed through the first mobile network, thereby not only bringing smooth use experience to a user using the application to be processed, but also ensuring that the second identity of the electronic device maintains the minimum normal function.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts or acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
An embodiment of the present application further provides a control device, please refer to fig. 9, where the device specifically includes the following units: a first acquisition unit 901, a second acquisition unit 902 and a control unit 903.
A first obtaining unit 901, configured to obtain an application to be processed in an electronic device, where the electronic device is currently accessed to a first mobile network corresponding to a first identity through the first identity.
A second obtaining unit 902, configured to, if the to-be-processed application performs data interaction through the first mobile network, obtain a processing policy for a second identity, where the second identity corresponds to the second mobile network, and the first mobile network and the second mobile network are different, switch from the first mobile network to the second mobile network in a cycle, and then switch from the second mobile network to the first mobile network after switching from the first mobile network to the second mobile network.
A control unit 903, configured to control, based on the processing policy for the second identity, one cycle switching of the electronic device, so as to prohibit the one cycle switching from affecting data interaction of the application to be processed through the first mobile network.
The control unit 903 may control one-cycle switching of a single sub-device using the following processing strategy:
and if the execution of the application to be processed is monitored, controlling the electronic equipment to perform one-time circular switching when the application to be processed is started.
The control unit 903 may also control one-cycle switching of a single sub-device using the following processing strategy:
and acquiring the working state of the application to be processed, and controlling the electronic equipment to perform one-time circular switching if the working state of the application to be processed indicates that the application to be processed is in an idle state, wherein the requirement on the first mobile network when the application to be processed is in the idle state is lower than the requirement on the first mobile network when the application to be processed is in a non-idle state.
The control unit 903 may also control one-cycle switching of a single sub-device using the following processing strategy:
and based on the processing strategy aiming at the second identity, when the to-be-processed application process is started or before the preset operation of the to-be-processed application is started, the electronic equipment is prohibited from performing cycle switching once at preset time intervals, and the priority of using the first mobile network by the preset operation is higher than the priority of using the first mobile network by other operations in the to-be-processed application.
The control unit 903 may prohibit the electronic device from performing the cycle switching every preset time interval when the to-be-processed application process is started or before the preset operation of starting the to-be-processed application by the following method:
based on the processing strategy aiming at the second identity, when the application to be processed is started or before the preset operation of the application to be processed is started, the state synchronization function of the electronic equipment is closed to prohibit the electronic equipment from performing cycle switching at preset time intervals;
and when the situation that the application to be processed exits or the preset operation is finished is monitored, starting a state synchronization function of the electronic equipment to control the electronic equipment to perform cycle switching once at preset time intervals.
For the specific working principle of the control device provided in the embodiment of the present application, reference may be made to the control method provided in any embodiment of the present application, and details are not described here.
The control device provided by the embodiment has the following beneficial effects:
after the second obtaining unit 902 obtains the processing policy for the second identity, the control unit 903 may control the electronic device to actively perform one cycle switching based on the processing policy when the to-be-processed application is started.
If the duration of the data interaction of the to-be-processed application through the first mobile network is too long and exceeds the interval time of the one-time cyclic switching, the control unit 903 may further control the electronic device to perform the one-time cyclic switching in the idle state of the to-be-processed application by identifying the idle state of the to-be-processed application, so as to avoid that the one-time cyclic switching affects the data interaction of the to-be-processed device in the non-idle state, which is high in timeliness requirement (or high in requirement on the first mobile network), and reduce the influence of the one-time cyclic switching on the use experience of the user as much as possible.
In addition, the control unit 903 may also directly prohibit the electronic device from performing the cycle switching every preset time interval by turning off the state synchronization function of the electronic device when the to-be-processed application is started or before the to-be-processed application starts a preset operation. By the method, no matter how long the application to be processed continuously runs, how long the preset operation of the application to be processed continuously executes, and the data interaction of the application to be processed through the first mobile network is not influenced by one cycle switching, so that smooth experience is provided for a user using the application to be processed.
Embodiments of the present application further provide a computer storage medium for storing a program, where the program is specifically configured to implement the control method described in any method embodiment of the present application when executed.
Referring to fig. 10, a schematic structural diagram of an electronic device according to an embodiment of the present disclosure is provided, where the electronic device includes a memory 1001 and a processor 1002.
The processor 1002 is configured to acquire an application to be processed in an electronic device, where the electronic device is currently accessed to a first mobile network corresponding to a first identity through the first identity;
if the application to be processed performs data interaction through the first mobile network, acquiring a processing strategy for a second identity, and controlling one-time cycle switching of the electronic equipment based on the processing strategy for the second identity to prohibit the one-time cycle switching from influencing the data interaction of the application to be processed through the first mobile network, wherein the second identity corresponds to the second mobile network, the first mobile network is different from the second mobile network, and the one-time cycle switching is switched from the first mobile network to the second mobile network and then from the second mobile network to the first mobile network; the memory 1001 is used for storing the processing policy for the second identity, and for the execution process of the processor, please refer to the above embodiment.
It should be noted that, in the present specification, the embodiments are described in a progressive and/or combined manner, each embodiment focuses on differences from other embodiments, and the same and similar parts between the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, 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. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method of controlling, the method comprising:
acquiring an application to be processed in electronic equipment, wherein the electronic equipment is accessed into a first mobile network corresponding to a first identity through the first identity currently;
if the application to be processed performs data interaction through the first mobile network, acquiring a processing strategy for a second identity, wherein the second identity corresponds to a second mobile network, and the first mobile network and the second mobile network are different;
controlling one-time cycle switching of the electronic equipment based on a processing strategy aiming at the second identity so as to prohibit the one-time cycle switching from influencing data interaction of the application to be processed through the first mobile network, switching from the first mobile network to the second mobile network and then switching from the second mobile network to the first mobile network, and prohibiting one-time cycle switching to indicate that switching between the first mobile network and the second mobile network is prohibited so as to enable the application to be processed to continuously carry out data interaction through the first mobile network;
wherein the prohibiting of the one-cycle switching is prohibiting of the electronic device from performing the one-cycle switching after controlling the electronic device to perform the one-cycle switching at least once, or the prohibiting of the one-cycle switching is prohibiting of the electronic device from performing the one-cycle switching.
2. The method of claim 1, the controlling one-cycle switching of the electronic device based on the processing policy for the second identity comprising:
and if the execution of the application to be processed is monitored, controlling the electronic equipment to perform one-time cycle switching when the application to be processed is started.
3. The method of claim 2, the controlling the electronic device to cycle through when the application to be processed is launched comprising:
and before starting the preset operation in the application to be processed, controlling the electronic equipment to perform cyclic switching once, wherein the priority of using the first mobile network in the preset operation is higher than the priority of using the first mobile network in other operations in the application to be processed.
4. The method of claim 1, the controlling one-cycle switching of the electronic device based on the processing policy for the second identity comprising:
acquiring the working state of the application to be processed;
and if the working state of the application to be processed indicates that the application to be processed is in an idle state, controlling the electronic equipment to perform one-time circular switching, wherein the requirement on the first mobile network when the application to be processed is in the idle state is lower than the requirement on the first mobile network when the application to be processed is in a non-idle state.
5. The method of claim 1, the controlling one-cycle switching of the electronic device based on the processing policy for the second identity comprising:
and prohibiting the electronic equipment from performing cycle switching once every preset time interval when the to-be-processed application process is started or before a preset operation of the to-be-processed application is started based on the processing strategy for the second identity, wherein the priority of using the first mobile network by the preset operation is higher than the priority of using the first mobile network by other operations in the to-be-processed application.
6. The method of claim 5, wherein the prohibiting, based on the processing policy for the second identity, the electronic device from performing the cycle switching every preset time interval when the to-be-processed application process is started or before a preset operation of the to-be-processed application is started comprises:
based on the processing strategy aiming at the second identity, when the application to be processed is monitored to be started or before the preset operation of the application to be processed is started, closing the state synchronization function of the electronic equipment to prohibit the electronic equipment from performing cycle switching at preset time intervals;
the method further comprises the following steps: and when the situation that the application to be processed exits or the preset operation is finished is monitored, starting a state synchronization function of the electronic equipment to control the electronic equipment to perform cycle switching once at every preset time interval.
7. A control device, the device comprising:
the device comprises a first acquisition unit, a second acquisition unit and a processing unit, wherein the first acquisition unit is used for acquiring an application to be processed in electronic equipment, and the electronic equipment is currently accessed to a first mobile network corresponding to a first identity through the first identity;
a second obtaining unit, configured to obtain a processing policy for a second identity if the to-be-processed application performs data interaction through the first mobile network, where the second identity corresponds to a second mobile network, and the first mobile network is different from the second mobile network;
a control unit, configured to control, based on a processing policy for the second identity, a cyclic switching of the electronic device to prohibit the cyclic switching from affecting data interaction of the application to be processed through the first mobile network, where the cyclic switching is switched from the first mobile network to the second mobile network and then from the second mobile network to the first mobile network, and the prohibition of the cyclic switching indicates that switching between the first mobile network and the second mobile network is prohibited so that the application to be processed can continue to perform data interaction through the first mobile network;
wherein the prohibiting of the one-cycle switching is prohibiting of the electronic device from performing the one-cycle switching after controlling the electronic device to perform the one-cycle switching at least once, or the prohibiting of the one-cycle switching is prohibiting of the electronic device from performing the one-cycle switching.
8. The apparatus according to claim 7, the control unit being specifically configured to:
and if the execution of the application to be processed is monitored, controlling the electronic equipment to perform one-time cycle switching when the application to be processed is started.
9. The apparatus according to claim 7, the control unit being specifically configured to:
and acquiring the working state of the application to be processed, and controlling the electronic equipment to perform one-time circular switching if the working state of the application to be processed indicates that the application to be processed is in an idle state, wherein the requirement on the first mobile network when the application to be processed is in the idle state is lower than the requirement on the first mobile network when the application to be processed is in a non-idle state.
10. The apparatus according to claim 7, the control unit being specifically configured to:
and prohibiting the electronic equipment from performing cycle switching once every preset time interval when the to-be-processed application process is started or before a preset operation of the to-be-processed application is started based on the processing strategy for the second identity, wherein the priority of using the first mobile network by the preset operation is higher than the priority of using the first mobile network by other operations in the to-be-processed application.
CN202010246741.3A 2020-03-31 2020-03-31 Control method and device Active CN111465016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246741.3A CN111465016B (en) 2020-03-31 2020-03-31 Control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246741.3A CN111465016B (en) 2020-03-31 2020-03-31 Control method and device

Publications (2)

Publication Number Publication Date
CN111465016A CN111465016A (en) 2020-07-28
CN111465016B true CN111465016B (en) 2022-03-25

Family

ID=71680183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246741.3A Active CN111465016B (en) 2020-03-31 2020-03-31 Control method and device

Country Status (1)

Country Link
CN (1) CN111465016B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112003984A (en) * 2020-08-27 2020-11-27 努比亚技术有限公司 Game data control method, mobile terminal and computer-readable storage medium
CN112118566B (en) * 2020-09-23 2023-07-21 山西朗奥信息技术有限公司 Network mode regulation and control method, equipment and computer readable storage medium
CN114928765B (en) * 2022-05-05 2024-08-13 维沃移动通信有限公司 Control method, control device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241758A (en) * 2017-08-04 2017-10-10 广东欧珀移动通信有限公司 Network control method, network control unit and intelligent terminal
CN107734577A (en) * 2017-09-25 2018-02-23 北京小米移动软件有限公司 Network function control method and network function control device
CN108616979A (en) * 2018-03-28 2018-10-02 深圳市万普拉斯科技有限公司 Double card network formats control method, device, computer equipment and storage medium
CN110300404A (en) * 2019-06-27 2019-10-01 维沃移动通信有限公司 A kind of network control method and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8812833B2 (en) * 2009-06-24 2014-08-19 Marvell World Trade Ltd. Wireless multiband security
CN105554830B (en) * 2015-09-25 2019-06-11 宇龙计算机通信科技(深圳)有限公司 A kind of network mode switch protecting method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107241758A (en) * 2017-08-04 2017-10-10 广东欧珀移动通信有限公司 Network control method, network control unit and intelligent terminal
CN107734577A (en) * 2017-09-25 2018-02-23 北京小米移动软件有限公司 Network function control method and network function control device
CN108616979A (en) * 2018-03-28 2018-10-02 深圳市万普拉斯科技有限公司 Double card network formats control method, device, computer equipment and storage medium
CN110300404A (en) * 2019-06-27 2019-10-01 维沃移动通信有限公司 A kind of network control method and mobile terminal

Also Published As

Publication number Publication date
CN111465016A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111465016B (en) Control method and device
US10873770B2 (en) Live data broadcast method and apparatus
CN108540816B (en) Live video acquisition method and device and storage medium
CN104333770B (en) The method and device of a kind of net cast
CN104699218B (en) A kind of task management method and equipment
CN106851427B (en) A kind of transfer control method and device of game live video
US10135923B2 (en) Data transfer method and system
CN104363247A (en) Flow saving method and device adopting saving-free application
CN113366819B (en) Camera starting method, related device, electronic equipment and storage medium
CN106503155B (en) User change control method and system
WO2022111407A1 (en) Cell handover method and apparatus
CN105828408B (en) Method and device for controlling internet surfing time
CN107171926A (en) The switching method and device of multi-platform message push service
WO2023040601A9 (en) Data matching method and apparatus, and device and computer-readable storage medium
CN108847976A (en) With network control method, mobile terminal, equipment and computer readable storage medium
CN111669799A (en) Network connection method and device and electronic equipment
CN106792639A (en) The method and system that user data recovers are realized in a kind of wireless aps
CN115220912A (en) Method and device for configuring system resources, electronic equipment and storage medium
CN113542256B (en) Method, device, equipment and storage medium for updating login credentials in client
CN106792251A (en) Method for information display, device and terminal
CN112738865A (en) Service processing method and device and electronic equipment
CN112295234A (en) Method and device for acquiring game props
CN115061609B (en) Group chat operation processing method, processing device, electronic equipment and storage medium
CN105933901A (en) Method and system for authenticating wireless router
CN113613029B (en) Live broadcast picture display method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant