CN112672389B - Network switching method - Google Patents
Network switching method Download PDFInfo
- Publication number
- CN112672389B CN112672389B CN202011552524.3A CN202011552524A CN112672389B CN 112672389 B CN112672389 B CN 112672389B CN 202011552524 A CN202011552524 A CN 202011552524A CN 112672389 B CN112672389 B CN 112672389B
- Authority
- CN
- China
- Prior art keywords
- network
- terminal
- screen
- network type
- state
- 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
Links
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The disclosure relates to a network switching method and a device, wherein the network switching method comprises the following steps: determining the network type of the terminal currently accessed; the network type is a low power consumption network or a high power consumption network; determining a network type matched with the use state based on the use state of the network related function in the terminal; and switching to the network type matched with the use state in response to the fact that the currently accessed network type is inconsistent with the network type matched with the use state. According to the method and the terminal, the more reasonable network type can be determined by the terminal according to the use state of the network-related function, the network can be flexibly switched, and the requirements on the network performance and the power consumption are met.
Description
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a network switching method and apparatus.
Background
The high-speed network such as 5G has the advantages of high data transmission speed, high stability and the like, more and more users select to use the 5G terminal, and better use experience is obtained.
However, these high-speed networks have good characteristics of high bandwidth and high speed, and bring some problems, for example, the power consumption of the terminal in the 5G network is much larger than that in other networks such as the 4G network.
In view of this, how to consider the requirements for network performance and save power consumption by a terminal is an urgent problem to be solved.
Disclosure of Invention
In view of the above, the present disclosure provides a network switching method, a network switching apparatus, an electronic device and a computer-readable storage medium to solve the technical problems in the related art.
In order to achieve the above purpose, the present disclosure provides the following technical solutions:
according to a first aspect of the present disclosure, a network handover method is provided, which is applied to a terminal, and the method includes:
determining the network type of the terminal currently accessed; the network type is a low power consumption network or a high power consumption network;
determining a network type matched with the use state based on the use state of the network related function in the terminal;
and switching to the network type matched with the use state in response to the fact that the currently accessed network type is inconsistent with the network type matched with the use state.
According to a second aspect of the present disclosure, a network switching apparatus is provided, which is applied to a terminal, and includes:
the type determining module is configured to determine the type of a network currently accessed by the terminal; the network type is a low power consumption network or a high power consumption network;
a state determination module configured to determine a network type matching a usage state of a network-related function in the terminal based on the usage state;
and the network switching module is configured to respond to the fact that the currently accessed network type is inconsistent with the network type matched with the using state, and switch to the network type matched with the using state.
According to a third aspect of the present disclosure, an electronic device is provided, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of the first aspect as described above.
According to a fourth aspect of the present disclosure, a computer-readable storage medium is proposed, on which computer instructions are stored, characterized in that the instructions, when executed by a processor, implement the steps of the method according to the first aspect as described above.
In the technical scheme, a more reasonable network type can be determined according to the use state of the network-related function in the terminal, the network can be flexibly switched, and the requirements on the network performance and the power consumption are both considered. For example, when the terminal needs to use network data, a high-power-consumption network can be preferentially used to obtain better network performance; when the terminal does not need to use the network data, the low-power-consumption network can be preferentially used so as to save the power consumption of the terminal.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic flow chart of a network handover method according to an exemplary embodiment of the disclosure.
Fig. 2 is a schematic flow chart diagram illustrating another network handover method according to an exemplary embodiment of the disclosure.
Fig. 3 is a schematic flow chart diagram illustrating another network handover method in an exemplary embodiment of the disclosure.
Fig. 4 is a schematic flow chart diagram illustrating another network handover method in an exemplary embodiment of the present disclosure.
Fig. 5 is a schematic flow chart diagram illustrating another network handover method in an exemplary embodiment of the disclosure.
Fig. 6 is a schematic block diagram of a network switching apparatus according to an exemplary embodiment of the disclosure.
Fig. 7 is a schematic block diagram illustrating an apparatus for network handover in accordance with an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
Fig. 1 is a schematic flow chart of a network handover method according to an exemplary embodiment of the disclosure. The network switching method shown in this embodiment may be applied to a terminal, where the terminal includes, but is not limited to, an electronic device such as a mobile phone, a tablet computer, a wearable device, a sensor, and an internet of things device. The terminal may communicate with a base station and a core network as a user equipment, where the base station includes, but is not limited to, a 2G base station, a 3G base station, a 4G base station, a 5G base station, and a 6G base station, and the core network includes, but is not limited to, a 2G core network, a 3G core network, a 4G core network, a 5G core network, and a 6G core network.
As shown in fig. 1, the network handover method may include the following steps:
in step S101, determining a network type currently accessed by the terminal; the network type is a low power consumption network or a high power consumption network.
In one embodiment, the terminal may determine the type of network it is accessing. The network type may include two types, namely, a low power consumption network and a high power consumption network.
In one embodiment, the network type may be predefined, for example, a 5G SA network may be determined as a high power consumption network, and other networks than the 5G SA network may be determined as low power consumption networks. Therefore, if the terminal determines that the currently residing network is the 5G SA network, the network type can be determined to be the high-power-consumption network, and if the currently residing network is determined to be other networks, such as the LTE network and the 5G NSA network, the network type can be determined to be the low-power-consumption network.
Alternatively, the terminal may define the network type in other manners, for example, the 6G network is determined to be a high power consumption network, which is only an exemplary illustration and is not limited herein.
In step S102, a network type matching the usage status is determined based on the usage status of the network-related function in the terminal.
In one embodiment, the terminal may determine the usage status of the network-related functions on the device. Optionally, the use state may be a stable state, for example, the terminal detects that the screen is in a bright screen state; alternatively, the use state may be a transient state, such as the terminal listening that the screen is lit.
In one embodiment, the terminal may determine the network type matching the usage status according to the usage status of the network-related function. The terminal may determine the matched network type according to one usage state, or may determine the matched network type according to a comprehensive condition of a plurality of usage states.
In step S103, in response to the currently accessed network type not being consistent with the network type matching the use state, switching to the network type matching the use state.
In one embodiment, the terminal may determine whether the network type of the current access, the network type matching the usage status, and both are consistent. For example, the terminal may compare the network type determined in step S101 with the network type determined in step S102 to determine whether the two types are consistent.
In one embodiment, if it is determined that the currently accessed network type is not consistent with the network type matched with the use state, the terminal performs network switching to the network type matched with the use state.
For example, if the terminal determines that the currently accessed network type is a high-power-consumption network and determines that the network type matched with the use state is a low-power-consumption network, the two networks are not consistent, and the terminal can be switched to the low-power-consumption network matched with the use state; or, if the terminal determines that the currently accessed network type is a low-power-consumption network and determines that the network type matched with the use state is a high-power-consumption network, the two networks are not consistent, and the terminal can be switched to the high-power-consumption network matched with the use state.
In one embodiment, if it is determined that the currently accessed network type is not consistent with the network type matched with the use state, the terminal keeps not performing handover in the current network.
In one embodiment, the switching to the network type matching the usage state in this embodiment is also implemented by turning on or off a switch of the high power consumption network. For example, if the terminal determines that it needs to switch to the high power consumption network, the terminal may turn on a switch of the high power consumption network, for example, turn on the 5G SA network, and actually, the terminal may not be able to switch to the 5G SA network, for example, a 5G base station that does not meet the conditions in the environment; for example, if the terminal determines that it needs to switch to the low power consumption network, the terminal may close a switch of the high power consumption network, for example, close the 5G SA network, so that the terminal may access the eligible low power consumption network, for example, the LTE network, according to the current environment.
It should be noted that the terminal consumes more power and consumes more power in the high power consumption network, however, the performance of the general high power consumption network is also better, for example, the bandwidth and the rate are both higher, and the user may have better network experience in the high power consumption network. In the embodiment shown in fig. 1, a more reasonable network type may be determined according to the usage status of the network-related function in the terminal, for example, when the terminal needs to use network data, a high-power network is preferentially used to obtain a better user experience; and when the terminal does not need to use network data, the low-power-consumption network is preferentially used so as to save the power consumption of the terminal.
In one embodiment, the terminal may determine the matched network type according to the usage status of one network-related function, or may also determine the matched network type according to the comprehensive situation of a plurality of usage statuses. For example, the matching network type may be determined based on the state of a data network switch, the state of a terminal screen, and/or the foreground activity of an application. 4 specific embodiments are described below in conjunction with FIGS. 2-5
Example 1:
fig. 2 is a schematic flow chart diagram illustrating another network handover method in an exemplary embodiment of the disclosure. As shown in fig. 2, the usage status of the network-related function includes the status of a data network switch.
In step S201, a data network switch state of the terminal is determined.
In one embodiment, the terminal may monitor the real-time update status of the data network switch, for example, monitor that the data network switch is turned on or turned off; or the terminal may detect the state of the data network switch periodically, for example, detect that the data network switch is in an on state or an off state.
In one embodiment, the network type matching the use state is determined to be a low power consumption network in response to the data network switch of the terminal being closed.
In one embodiment, the data network switch is turned off to indicate that the user does not need to use the data network currently, and thus to save the power consumption of the terminal, the step S202 may be executed if the matched network type is determined to be the low power consumption network.
In step S202, the terminal accesses the low power consumption network.
In one embodiment, the terminal may query the network type of the terminal currently accessed, and if the network type of the terminal currently accessed is a low-power-consumption network, that is, the network type is consistent with the network type matched with the use state, network switching is not required; and if the currently accessed network type is a high-power-consumption network, namely the currently accessed network type is inconsistent with the network type matched with the use state, switching the terminal from the high-power-consumption network to the low-power-consumption network.
In one embodiment, the network type matching the use state is determined to be a high power consumption network in response to a data network switch of the terminal being turned on.
In an embodiment, the data network switch is turned on to indicate that the user may need to use the data network, and in order to improve the internet surfing experience of the user and determine that the matched network type is the high power consumption network, step S203 may be performed.
In step S203, the terminal accesses the high power consumption network.
In one embodiment, the terminal may query the network type of the terminal currently accessed, and if the network type of the terminal currently accessed is a high power consumption network, that is, the network type is consistent with the network type matched with the use state, network switching is not required; and if the currently accessed network type is a low-power-consumption network, namely the currently accessed network type is inconsistent with the network type matched with the use state, switching the terminal from the low-power-consumption network to the high-power-consumption network.
In one embodiment, the terminal performing handover to a network type matching the usage state includes: and responding to the terminal entering a non-connection state from a connection state, and switching the terminal to a network type matched with the use state.
It should be noted that the terminal in the connected state may be interacting with a network device, such as a base station, and network switching may cause an abnormal situation such as network interruption, thereby affecting user experience.
In an embodiment, when the terminal performs the switching to the network type matching the usage state as in step S202 and step S203, the terminal may also perform the switching directly after determining the determination result, thereby improving the switching processing efficiency.
Thus, embodiment 1 shown in fig. 2 is completed. According to the embodiment 1, the terminal can directly determine the matched network type according to the data network switch, and when the data network switch is turned on, a better network performance is obtained by preferentially passing through a high-power-consumption network, so that the user experience is improved; and when the data network switch is closed, the high-power-consumption network is closed preferentially to save the power consumption of the terminal.
Example 2:
fig. 3 is a schematic flow chart diagram illustrating another network handover method in an exemplary embodiment of the disclosure. As shown in fig. 3, the use status of the network-related function includes the status of the data network switch and the status of the terminal screen.
In step S301, the data network switch status of the terminal is determined.
In one embodiment, in response to the data network switch of the terminal being turned off, it is determined that the network type matching the use state is a low power consumption network, and then step S202 may be performed.
In step S302, the terminal accesses the low power consumption network.
Here, the method for determining the on-off state of the data network of the terminal and accessing the terminal to the low power consumption network may refer to embodiment 1, and details are not described here.
In one embodiment, in response to the data network switch of the terminal being open, the method further comprises:
in step S303, the state of the terminal screen is determined.
In one embodiment, the terminal determines the state of the screen, which may be detecting a change in the state of the screen, such as detecting whether there is a lit-up screen or a extinguished screen.
In one embodiment, in response to the terminal turning off the screen, the terminal may perform step S304.
In one embodiment, in response to the terminal lighting up the screen, it is determined that the network type matching the use state is the high power consumption network, and the terminal may perform step S306.
It should be noted that, in consideration of the habit of the user, when the terminal lights up the screen, it may be considered that the user needs to use the data network, and it may be determined that the matched network type is the high power consumption network, so as to improve the user experience of surfing the internet. After the terminal extinguishes the screen, the application program is generally closed or enters the background, and the requirement on the data network is low, however, part of the application program still needs the data network with higher performance, such as the application program related to the audio or the application program downloaded in the background, and the like, and the embodiment can perform detection through subsequent steps.
In step S304, it is determined whether an application using the data network exists while the screen is extinguished.
In one embodiment, step S305 is performed in response to the application using the data network existing when the terminal turns off the screen.
In one embodiment, in response to that there is no application using a data network when the terminal turns off the screen, it is determined that the network type matching the use state is a low power consumption network, and step S307 is performed.
In step S305, it is determined whether the application continues to use the data network for a preset period of time from the screen being turned off.
In one embodiment, if it is determined that the terminal continues to use the data network within the preset time period from the screen being turned off, it is determined that the matched network type is the high power consumption network, and step S306 is performed. In one embodiment, if it is determined that the application stops using the data network within a preset time period from turning off the screen, it is determined that the matched network type is a low power consumption network, and step S307 is performed.
It should be noted that, detecting whether an application uses the data network requires energy consumption, so a preset time period, for example, 5 seconds, 10 seconds, etc., may be set, and on the premise of avoiding energy consumption waste due to detection for too long time, an application that delays response after turning off the screen may also be found in time that the application has stopped using the data network, thereby determining the matched network type.
In step S306, the terminal accesses the high power consumption network.
Here, the method for determining that the terminal accesses the high power consumption network may refer to embodiment 1, and details are not described here.
It should be noted that, when the terminal determines that the matched network type is a high-power-consumption network, if the currently accessed network type is low-power-consumption network, the terminal may not perform the switching temporarily, so as to avoid abnormal interruption of the network caused by network switching, thereby affecting user experience. For example, the terminal may determine whether an application is using network data before switching, or determine whether an application using network data can be suspended, and perform switching if the application can be suspended, or keep the current network type from performing switching if the application cannot be suspended.
In step S307, the terminal accesses the low power consumption network.
Here, the method for determining that the terminal accesses the low power consumption network may refer to embodiment 1, and details are not described here.
It should be noted that, in order to avoid network abnormal interruption caused by network handover, the method in step S306 may also be referred to determine to perform handover or to keep the current network type from performing handover.
To this end, embodiment 2 shown in fig. 2 is completed. According to embodiment 2, the terminal can determine the matched network type by combining the data network switch and the terminal screen state, and further judge whether the screen state and the application program use the data network for matching when the data network switch is turned on, so that the power consumption of the terminal is further saved.
Example 3:
fig. 4 is a schematic flow chart diagram illustrating another network handover method in an exemplary embodiment of the present disclosure. As shown in fig. 4, the usage states of the network-related functions include a state of a data network switch and a foreground active state of an application.
In step S401, the data network switch status of the terminal is determined.
In one embodiment, in response to the data network switch of the terminal being turned off, and it is determined that the network type matching the use state is a low power consumption network, step S202 may be performed.
In step S402, the terminal accesses the low power consumption network.
Here, the method for determining the on-off state of the data network of the terminal and accessing the terminal to the low power consumption network may refer to embodiment 1, and details are not described here.
In one embodiment, in response to the data network switch of the terminal being open, the method further comprises:
in step S403, it is determined whether there is an application that is foreground active.
In one embodiment, in response to that there is an application program currently active in the foreground in the terminal, it is determined that the network type matching the usage state is a high power consumption network, and step S404 is performed.
In one embodiment, in response to that there is no foreground active application in the terminal currently, it is determined that the network type matching the usage state is a low power consumption network, and step S405 is performed.
In step S404, the terminal accesses the high power consumption network.
Here, a method of determining that the terminal accesses the high power consumption network may refer to embodiment 1.
In an embodiment, when the terminal determines that the matched network type is a high-power-consumption network, if the currently accessed network type is low-power-consumption network, the terminal may not perform handover temporarily, so as to avoid network abnormal interruption caused by network handover, thereby affecting user experience. For example, the terminal may determine whether an application is using network data before switching, or determine whether an application using network data can be suspended, and perform switching if the application can be suspended, or keep the current network type from performing switching if the application cannot be suspended.
In step S405, the terminal accesses the low power consumption network.
Here, the method for determining that the terminal accesses the low power consumption network may refer to embodiment 1, and details are not described here.
It should be noted that, because there is no application program in the foreground active state at present, the problem of application program abnormality caused by switching does not need to be considered, and the terminal can be directly switched to the low-power-consumption network, so that the processing efficiency is improved.
In one embodiment, after step S405, i.e. in response to there being no foreground active application currently in the terminal, the method further comprises:
in step S406, it is determined whether a request for the application to use the network is received.
In response to receiving a request for the application to use the network, it is determined that the network type matching the use state is the high power consumption network, and step S407 is performed.
In step S407, the terminal accesses the high power consumption network.
According to the method in the embodiment, the terminal does not always access the low-power-consumption network, but can be switched to the high-power-consumption network according to the request of the application program using the network. Generally, an application may receive a temporary interruption of the network when requesting the network, and then obtain a better internet experience when using the application. Of course, if there are other applications, the terminal may switch the network temporarily, but after the terminal enters the unconnected state, or when the application in the terminal is allowed to suspend. The selection may be specifically performed according to actual situations, and this embodiment is not limited.
Thus, embodiment 3 shown in fig. 4 is completed. According to embodiment 3, the terminal may determine the matched network type by combining the foreground active states of the data network switch and the application program, and further determine whether there is an active foreground application program for matching when the data network switch is turned on, thereby further saving the power consumption of the terminal.
Example 4:
fig. 5 is a schematic flow chart diagram illustrating another network handover method in an exemplary embodiment of the disclosure. As shown in fig. 5, the usage states of the network-related functions include a state of a data network switch, a state of a terminal screen, and a foreground active state of an application.
In step S501, the data network switch status of the terminal is determined.
In one embodiment, in response to the data network switch of the terminal being turned off, and it is determined that the network type matching the use state is a low power consumption network, step S202 may be performed.
In step S502, the terminal accesses the low power consumption network.
Here, the method for determining the on-off state of the data network of the terminal and accessing the terminal to the low power consumption network may refer to embodiment 1, and details are not described here.
In step S503, the state of the terminal screen is determined.
In one embodiment, in response to the terminal turning off the screen, the terminal may perform steps S504 to S507.
Here, the method in steps S503 to S507 may refer to steps S303 to S307 in embodiment 2, and details are not repeated here.
In one embodiment, in response to the terminal illuminating a screen, the method further comprises:
in step S508, it is determined whether there is an application that is foreground active.
And in response to that the foreground active application program exists in the terminal at present, determining that the network type matched with the use state is a high-power-consumption network, and executing step S509.
And in response to that no foreground active application program exists in the terminal at present, determining that the network type matched with the use state is a low-power consumption network, and executing step S510.
In step S509, the terminal accesses the high power consumption network.
In step S510, the terminal accesses the low power consumption network.
In one embodiment, after step S510, i.e. in response to there being no currently foreground-active application in the terminal, the method further comprises:
in step S511, it is determined whether a request for the application to use the network is received.
In response to receiving a request for the application to use the network, it is determined that the network type matching the use state is a high power consumption network, and step S412 is performed.
In step S512, the terminal accesses the high power consumption network.
Here, the method of steps S509 to S512 may refer to steps S404 to S407 in embodiment 3, and details thereof are not repeated here.
To this end, embodiment 4 shown in fig. 5 is completed. According to embodiment 4, the terminal can determine the matched network type by combining the data network switch, the terminal screen state and the foreground active state of the application program, and further judge whether the foreground active application program exists for matching when the data network switch is turned on and the terminal screen is lighted, so that the power consumption of the terminal is further saved.
It should be noted that the above embodiments are only exemplary. In practical applications, the usage states of the above-mentioned several functions related to the network may be combined in other forms, or other usage states may be introduced to match the network type, which is not limited in this embodiment.
Corresponding to the foregoing embodiments of the network switching method, the present disclosure also provides embodiments of a network switching apparatus.
Fig. 6 is a schematic block diagram of a network switching apparatus according to an exemplary embodiment of the disclosure. The network switching device shown in this embodiment may be applied to a terminal, where the terminal includes, but is not limited to, an electronic device such as a mobile phone, a tablet computer, a wearable device, a sensor, and an internet of things device. The terminal may communicate with a base station and a core network as a user equipment, where the base station includes, but is not limited to, a 2G base station, a 3G base station, a 4G base station, a 5G base station, and a 6G base station, and the core network includes, but is not limited to, a 2G core network, a 3G core network, a 4G core network, a 5G core network, and a 6G core network.
As shown in fig. 6, the network switching device may include:
a type determining module 601 configured to determine a network type currently accessed by the terminal; the network type is a low power consumption network or a high power consumption network;
a state determination module 602 configured to determine a network type matching a usage state of a network-related function in the terminal based on the usage state;
a network switching module 603 configured to switch to a network type matching the usage state in response to the currently accessed network type not being consistent with the network type matching the usage state.
Optionally, the usage status of the network-related function includes a status of a data network switch;
the state determination module 602 is specifically configured to: and responding to the closing of a data network switch of the terminal, and determining that the network type matched with the use state is a low-power-consumption network.
Optionally, the state determining module 602 is further configured to: and responding to the opening of a data network switch of the terminal, and determining that the network type matched with the use state is a high-power-consumption network.
Optionally, the usage status of the network-related function further includes a status of a terminal screen; the state of the terminal screen comprises a lightening screen or a blanking screen;
in response to the data network switch of the terminal being on, the status determination module 602 is further configured to:
responding to the fact that an application program using a data network exists when the terminal extinguishes the screen, and the application program continues to use the data network within a preset time from the screen extinguishment, and determining that the network type matched with the use state is a high-power-consumption network; and determining that the network type matched with the use state is a low-power consumption network in response to the fact that no application program using the data network exists when the terminal extinguishes the screen, or in response to the fact that the application program using the data network exists when the terminal extinguishes the screen and the application program stops using the data network within a preset time from screen extinguishment.
Optionally, in response to the data network switch of the terminal being turned on, the state determination module 602 is further configured to: and responding to the terminal lighting screen, and determining that the network type matched with the use state is a high-power-consumption network.
Optionally, the usage state of the network-related function further includes a foreground active state of the application program;
in response to the data network switch of the terminal being on, or in response to the data network switch being on and the terminal illuminating a screen, the status determination module 602 is further configured to:
responding to the current foreground active application program in the terminal, and determining that the network type matched with the use state is a high-power-consumption network; and determining that the network type matched with the use state is a low-power-consumption network in response to the fact that no foreground active application program exists in the terminal at present.
In response to there being no foreground active application currently in the terminal, the state determination module 602 is further configured to: in response to receiving a request for an application to use a network, determining that the network type matching the use status is a high power consumption network.
Optionally, when the network switching module 603 is configured to switch to the network type matching the use state, it is specifically configured to: and responding to the terminal entering a non-connection state from a connection state, and switching the terminal to a network type matched with the use state.
Optionally, the high-power consumption network is a 5G SA network, and the low-power consumption network is a network other than the 5G SA network.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the disclosure. One of ordinary skill in the art can understand and implement it without inventive effort.
Correspondingly, the present disclosure also provides an electronic device, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the network switching method as in any of the above embodiments.
Accordingly, the present disclosure also provides a computer readable storage medium, the electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors comprise instructions for implementing the network switching method as described in any of the above embodiments.
Fig. 7 is a block diagram illustrating an apparatus 1000 for implementing a network handover method according to an example embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the network handover methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operations at the apparatus 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operating mode, such as a call mode, a record mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of device 700, sensor assembly 714 may also detect a change in position of device 700 or a component of device 700, the presence or absence of user contact with device 700, orientation or acceleration/deceleration of device 700, and a change in temperature of device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi,2G or 3g,4g LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the network switching method described above.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the apparatus 700 to perform the network handover method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.
Claims (12)
1. A network switching method is applied to a terminal, and the method comprises the following steps:
determining the network type of the terminal currently accessed; the network type is a low power consumption network or a high power consumption network;
determining a network type matched with the use state based on the use state of the network related function in the terminal;
wherein, in case that the usage status of the network related function includes a status of a data network switch and a status of the terminal screen, the status of the terminal screen includes a lighted-up screen or a lighted-down screen:
responding to the opening of a data network switch of the terminal, wherein an application program using a data network exists when the terminal extinguishes a screen, the application program continues to use the data network within a preset time from the screen extinguishment, and the network type matched with the use state is determined to be a high-power-consumption network;
responding to the opening of a data network switch of the terminal, when the terminal extinguishes the screen, an application program using the data network exists, the application program stops using the data network within a preset time from the time of screen extinguishment, and the network type matched with the use state is determined to be a low-power-consumption network;
and switching to the network type matched with the use state in response to the fact that the currently accessed network type is inconsistent with the network type matched with the use state.
2. The method of claim 1, wherein in the case that the usage status of the network-related function includes a status of the data network switch, the determining a network type matching the usage status comprises:
and responding to the closing of a data network switch of the terminal, and determining that the network type matched with the use state is a low-power consumption network.
3. The method of claim 2, further comprising:
and responding to the opening of a data network switch of the terminal, and determining that the network type matched with the use state is a high-power-consumption network.
4. The method of claim 1, wherein in response to a data network switch of the terminal being turned on, the method further comprises:
and determining that the network type matched with the use state is a low-power-consumption network in response to the fact that no application program using the data network exists when the terminal extinguishes the screen.
5. The method of claim 1, wherein in response to a data network switch of the terminal being turned on, the method further comprises:
and responding to the terminal lighting screen, and determining that the network type matched with the use state is a high-power-consumption network.
6. The method according to claim 1 or 2, wherein the usage state of the network-related function further comprises a foreground active state of an application;
in response to the data network switch of the terminal being on, or in response to the data network switch being on and the terminal illuminating a screen, the method further comprises:
responding to the current foreground active application program in the terminal, and determining that the network type matched with the use state is a high-power-consumption network;
and determining that the network type matched with the use state is a low-power-consumption network in response to the fact that no foreground active application program exists in the terminal at present.
7. The method of claim 6, wherein in response to there being no foreground active application currently in the terminal, the method further comprises:
in response to receiving a request for an application to use a network, determining that the network type matching the use status is a high power consumption network.
8. The method of claim 1, wherein switching to a network type matching the usage state comprises:
and responding to the terminal entering a non-connection state from a connection state, and switching the terminal to a network type matched with the use state.
9. The method of claim 1, wherein the high power consumption network is a 5G SA network and the low power consumption network is a network other than the 5G SA network.
10. A network switching apparatus, applied to a terminal, the apparatus comprising:
the type determining module is configured to determine the type of a network currently accessed by the terminal; the network type is a low power consumption network or a high power consumption network;
a state determination module configured to determine a network type matching a usage state of a network-related function in the terminal based on the usage state;
wherein, in case that the usage status of the network related function includes a status of a data network switch and a status of a terminal screen, the status of the terminal screen includes a lighted-up screen or a lighted-down screen:
responding to the opening of a data network switch of the terminal, wherein an application program using a data network exists when the terminal extinguishes a screen, the application program continues to use the data network within a preset time from the screen extinguishment, and the network type matched with the use state is determined to be a high-power-consumption network;
responding to the opening of a data network switch of the terminal, when the terminal extinguishes the screen, an application program using the data network exists, the application program stops using the data network within a preset time from the time of screen extinguishment, and the network type matched with the use state is determined to be a low-power-consumption network;
and the network switching module is configured to respond to the fact that the currently accessed network type is inconsistent with the network type matched with the using state, and switch to the network type matched with the using state.
11. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1-9.
12. A computer-readable storage medium having stored thereon computer instructions, which, when executed by a processor, carry out the steps of the method according to any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011552524.3A CN112672389B (en) | 2020-12-24 | 2020-12-24 | Network switching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011552524.3A CN112672389B (en) | 2020-12-24 | 2020-12-24 | Network switching method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112672389A CN112672389A (en) | 2021-04-16 |
CN112672389B true CN112672389B (en) | 2023-03-10 |
Family
ID=75410054
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011552524.3A Active CN112672389B (en) | 2020-12-24 | 2020-12-24 | Network switching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112672389B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116709453A (en) * | 2022-02-25 | 2023-09-05 | 荣耀终端有限公司 | Communication method and electronic equipment |
CN116056064B (en) * | 2022-05-30 | 2023-10-20 | 荣耀终端有限公司 | Dual-card communication method and terminal equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104703255A (en) * | 2015-03-05 | 2015-06-10 | 小米科技有限责任公司 | Resident network adjustment method and device and electronic device |
WO2015154391A1 (en) * | 2014-08-12 | 2015-10-15 | 中兴通讯股份有限公司 | Method and device for processing power consumption of radio access network |
WO2015196341A1 (en) * | 2014-06-23 | 2015-12-30 | 华为技术有限公司 | Network switching method and terminal |
CN105282796A (en) * | 2014-07-01 | 2016-01-27 | 中兴通讯股份有限公司 | Network mode switching method, device and terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2830366A1 (en) * | 2013-07-23 | 2015-01-28 | Thomson Licensing | Method of management of a wireless interface of a device and corresponding wireless device |
CN111314986B (en) * | 2020-01-21 | 2022-04-08 | Oppo广东移动通信有限公司 | Network type switching method and device, mobile terminal and storage medium |
CN111741502B (en) * | 2020-06-19 | 2022-09-30 | 青岛海信移动通信技术股份有限公司 | Mobile terminal and mobile communication network switching method thereof |
-
2020
- 2020-12-24 CN CN202011552524.3A patent/CN112672389B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015196341A1 (en) * | 2014-06-23 | 2015-12-30 | 华为技术有限公司 | Network switching method and terminal |
CN105282796A (en) * | 2014-07-01 | 2016-01-27 | 中兴通讯股份有限公司 | Network mode switching method, device and terminal |
WO2015154391A1 (en) * | 2014-08-12 | 2015-10-15 | 中兴通讯股份有限公司 | Method and device for processing power consumption of radio access network |
CN104703255A (en) * | 2015-03-05 | 2015-06-10 | 小米科技有限责任公司 | Resident network adjustment method and device and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN112672389A (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10282561B2 (en) | Method and apparatus for managing application | |
CN107608561B (en) | Touch screen control method and device | |
WO2019113883A1 (en) | User equipment power-saving method and device, user equipment and base station | |
CN112449745B (en) | TRS/CSI-RS configuration method and device | |
US20170300211A1 (en) | Method and apparatus for displaying status information of application | |
CN112672389B (en) | Network switching method | |
US11596018B2 (en) | Region configuration method and device | |
EP3322227B1 (en) | Methods and apparatuses for controlling wireless connection, computer program and recording medium | |
CN112804720B (en) | Network switching method and device | |
CN111966412A (en) | Method, device and storage medium for waking up terminal | |
CN105511852A (en) | Screen display processing method, and device and equipment | |
CN106557150A (en) | Terminal control method and device | |
CN105517078A (en) | Network connection switching method and device | |
CN113329389B (en) | Service providing method, device, equipment and storage medium based on Bluetooth connection | |
CN105227426B (en) | Application interface switching method and device and terminal equipment | |
CN112752328B (en) | Network control method, device and storage medium | |
CN112882622A (en) | Data processing method and device, terminal and storage medium | |
CN104410900A (en) | A method and apparatus for controlling an indicator light installed on an intelligent apparatus | |
CN109644353B (en) | Configuration adjustment method, device, electronic equipment and computer readable storage medium | |
CN112748817A (en) | Information control method and device, terminal and storage medium | |
CN107039054B (en) | The way of recording and device | |
CN112243256B (en) | Wireless network sharing method and device, mobile terminal and storage medium | |
CN112449052B (en) | Method and device for adjusting electric quantity prompt, terminal and storage medium | |
CN108429849A (en) | Processing method, device and the equipment of data service | |
CN108539823B (en) | Charging method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |