CN111343682B - Network switching method, device, storage medium and terminal - Google Patents

Network switching method, device, storage medium and terminal Download PDF

Info

Publication number
CN111343682B
CN111343682B CN202010167198.8A CN202010167198A CN111343682B CN 111343682 B CN111343682 B CN 111343682B CN 202010167198 A CN202010167198 A CN 202010167198A CN 111343682 B CN111343682 B CN 111343682B
Authority
CN
China
Prior art keywords
network
application
connection
level
terminal
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
CN202010167198.8A
Other languages
Chinese (zh)
Other versions
CN111343682A (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.)
Changchun Huayi Xiangyuan Information Technology Co ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010167198.8A priority Critical patent/CN111343682B/en
Publication of CN111343682A publication Critical patent/CN111343682A/en
Application granted granted Critical
Publication of CN111343682B publication Critical patent/CN111343682B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a network switching method, a network switching device, a storage medium and a terminal. The network switching method comprises the following steps: when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate; determining a target connection network according to the application information; judging whether the target connection network is the advanced network or not; if not, the advanced network is switched to the target connection network. According to the embodiment of the application, the network level of the current connection network is detected, if the network level is a high-level network, the high-level network is switched to a low-level network according to the terminal operation condition, the terminal use state can be switched to a low-power consumption state, the cruising ability is improved, and the terminal power consumption is effectively reduced.

Description

Network switching method, device, storage medium and terminal
Technical Field
The present application relates to the field of mobile terminal applications, and in particular, to a network switching method, apparatus, storage medium, and terminal.
Background
2G (the 2Generation mobile communication technology, second Generation mobile communication technology specification), takes digital voice transmission technology as the core. Generally defined as the inability to directly transfer information such as e-mail, software, etc.; only has the technical specification of communication of the mobile phone of conversation and some transmission such as time, date and the like. However, short messaging can be implemented in some of its specifications.
4G (the 4Generation Mobile communication technology, fourth Generation Mobile communication standard), which includes two systems, TD-LTE (Time Division Long Term Evolution) and FDD-LTE (Frequency Division duplex Long Term Evolution), LTE is strictly speaking only 3.9G, and although advertised as a 4G wireless standard, it is not actually recognized by 3GPP as the next Generation wireless communication standard IMT-Advanced (International Mobile Telecommunications-Advanced) described by the International Telecommunications union, and thus it has not yet reached the 4G standard in a strict sense. Only the LTE Advanced (Long Term Evolution-Advanced, which is a subsequent Evolution of LTE technology) of the upgraded version meets the requirements of the international telecommunication union for 4G.
At present, mobile terminals support more and more 4G, but the mobile terminals still support 2G because the mobile network 4G is not covered fully, so that mobile terminal users can still make calls and send short messages in some remote places to meet the most basic communication.
In the prior art, although the user greatly improves the network speed because of the 4G network and the mobile terminal has richer functions, the time that the user actually uses the mobile terminal is always less than the time that the mobile terminal is not used, so that the power consumption of the mobile terminal is higher when the mobile terminal works in the 4G network for a long time.
Disclosure of Invention
The embodiment of the application provides a network switching method, a network switching device, a storage medium and a terminal, which can effectively reduce the power consumption of the terminal.
The embodiment of the application provides a network switching method, which comprises the following steps:
when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate;
determining a target connection network according to the application information;
judging whether the target connection network is the advanced network or not;
if not, the advanced network is switched to the target connection network.
Correspondingly, an embodiment of the present application further provides a network switching apparatus, including:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring application information of a currently running application when a connected network is detected to be a high-level network, and the high-level network carries out data transmission at a high rate;
a first determining unit, configured to determine a target connection network according to the application information;
a first judgment unit configured to judge whether the target connection network is the advanced network;
and the first execution unit is used for switching the advanced network to the target connection network if the advanced network is not the target connection network.
Correspondingly, an embodiment of the present application further provides a storage medium, where the storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the network handover method as described above.
Correspondingly, an embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the network handover method described above.
According to the embodiment of the application, the network level of the current connection network is detected, if the network level is a high-level network, the high-level network is switched to a low-level network according to the operation condition of the terminal, the service state of the terminal can be switched to a low-power consumption state, the cruising ability is improved, and therefore the power consumption of the terminal is effectively reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only 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 illustrating a first network handover method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a second network handover method according to an embodiment of the present application.
Fig. 3 is a block diagram of a first network switching device according to an embodiment of the present disclosure.
Fig. 4 is a block diagram of a second network switching device according to an embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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.
Based on the foregoing problems, embodiments of the present application provide a first network switching method, apparatus, storage medium, and terminal, which can effectively reduce power consumption of the terminal. The following are detailed descriptions. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a first network handover method according to an embodiment of the present disclosure. The network switching method may be applied to mobile terminals such as terminals, tablet computers, notebook computers, palmtop computers, portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the network switching method may be as follows:
101. and when the connected network is detected to be the advanced network, acquiring the application information of the application in the current operation, and transmitting data by the advanced network at a high speed.
Specifically, whether the connected network is a high-level network or not can be detected by detecting the current data transmission rate. Different data transmission rates may correspond to different network levels, and a higher data transmission rate may indicate a higher network level. For example, the network may be divided into a high-level network and a low-level network according to a network level, wherein the high-level network corresponds to a high transmission rate and the low-level network corresponds to a low transmission rate. For example, when the network transmission rate is 100Mbps or more (megabits per second), it can be expressed as a high transmission rate; when the network transmission rate is 10Kbps (kilobits per second) or less, it can be expressed as a low transmission rate or the like.
For example, when it is detected that the current data transmission rate may be 110Mbps, the current network transmission rate may be determined to be a high transmission rate, and thus it may be determined that the network class of the current connection may be a high-level network.
Specifically, after detecting that the currently connected network is a high-level network, an application list of the currently running application may be acquired. The application list may include all applications currently opened by the terminal, for example, foreground applications and background applications.
The application currently operated by the user (i.e., the application corresponding to the interface displayed on the current display screen) may be referred to as a foreground application, and the application that is not operated by the user but is running may be referred to as a background application.
Specifically, the application information of the application currently running is obtained, and the application information may be all information of the application obtained when the application is installed. The application information may include various information, for example, the application information may include various information such as an application type, a network connection method, and the like.
The application type may include various types, such as a chat type, a photo type, a navigation type, a game type, and the like, and the network connection manner may include a mobile data network connection, a wireless data network connection, and the like.
For example, the application obtained in the current operation may be application a, and the application information of the obtained application a may be: the application type may be a game type application, and the network connection may be a mobile data network connection or a wireless data network connection.
In some embodiments, in order to save power consumption of the terminal, the terminal may detect an operating state, and select a network of an appropriate level according to the operating state for connection. The network switching method may further include the steps of:
after detecting that the connected network is a high-level network, judging whether data transmission is carried out currently;
if not, stopping the connection with the advanced network.
Specifically, after it is determined that the currently connected network is a higher-level network, the network use state may be detected. Specifically, detecting the network use state can determine whether the terminal performs data transmission through the network, and if it is detected that the current terminal performs data transmission through the network, the step can be executed to acquire application information of the application in the current operation; if the current terminal is detected not to carry out data transmission through the network, the connection with the high-rise network can be disconnected, the battery power consumed in the connection process of the high-level network is saved, and the power consumption of the terminal is reduced.
102. And determining a target connection network according to the application information.
Specifically, the target connection network is determined according to the application information, where the application information may include information such as an application type and a network connection mode, and the target connection network may be determined according to the application type and the network connection mode.
In some embodiments, the step of "determining a target connection network according to the network application information" may include the following procedures:
determining the application type of the running application according to the application information;
acquiring a network level corresponding to the application type;
determining a target connection network based on the network level.
Specifically, the application information of the running application includes the application type of the running application, and the application type of the running application may be determined according to the application information of the running application.
After determining the application type, a network connection mode of the running application may be obtained, where the network connection mode indicates what mode the application may perform network connection, and the network connection mode may perform connection through a mobile data network or a wireless data network, for example.
The network connection mode may have multiple setting modes, for example, a default network setting when the application is installed or a user-defined setting when the application is used. By setting the network connection mode of the application, consumption of terminal data traffic can be saved, for example, a user sets the network connection mode of the application to be a wireless network data mode, so that the user can be prevented from using a mobile network for connection and consuming the data traffic when the user opens the application.
When the network connection mode of the running application is mobile data network connection, the network level corresponding to the application type can be obtained. The network level can be divided into a high-level network, a low-level network and the like, wherein the high-level network is used for high-rate data transmission, and the low-level network is used for low-rate data transmission; advanced networks may reduce the time for data transmission by high rate data transmission, which in turn may consume more power to the terminal than low rate data transmission.
Specifically, the network level corresponding to the application type, which may include a chat type, a photo type, a navigation type, a game type, and the like, may be determined according to the network connection importance of the application type, for example, the network connection importance of the application of the chat type and the navigation type is higher when the application is used, the network level corresponding to the application of the chat type and the navigation type may be set to be a high-level network, and the network connection importance of the application of the game type and the photo type when the application is used is general, the network level of the application of the game type and the photo type may be set to be a low-level network.
For example, the currently running application may be application a, the network connection mode for acquiring application a may be mobile data network connection, the application type may be game type application, and it may be determined that the network level corresponding to application a may be a low-level network, and the target connection network is a low-level network.
103. And judging whether the target connection network is a high-level network or not.
Specifically, after the target connection network is determined, it may be determined whether the target connection network is a higher-level network, and corresponding operation may be performed according to a determination result.
For example, if the target connection network is not a high-level network, step 104 may be performed; if the target connection network is a premium network, step 105 may be performed.
104. And switching the advanced network to the target connection network.
Specifically, when the target connection network is not the advanced network, the advanced network may be switched to the target connection network, and the connection with the advanced network may be disconnected and then opened.
For example, the target connection network may be a low-level network, and at this time, the connection with the high-level network may be disconnected, the connection with the low-level network may be opened, and the terminal use state may be switched to a low power consumption state, so as to maintain electric energy, improve cruising ability, and increase the service life of the battery.
105. The connection to the advanced network is continuously maintained.
Specifically, when the target connection network is a high-level network, the connection with the high-level network can be continuously maintained, and the high data transmission rate of the current network connection is ensured.
In some embodiments, before the step of "continuing to maintain connection with the advanced network", the following steps may be further included:
acquiring the current data volume to be transmitted;
comparing the data volume to be transmitted with a preset data volume,
and if the data volume to be transmitted is larger than the preset data volume, executing the step of continuously keeping the connection with the advanced network.
Specifically, the current data volume to be transmitted is obtained, and the data volume to be transmitted may be the data volume to be transmitted for performing network connection by the application in the current operation. After the current data volume to be transmitted is obtained, the data volume to be transmitted may be compared with a preset data volume, where the preset data volume may be a minimum network transmission data volume for starting a high-level network connection.
When the data volume to be transmitted is larger than the preset data volume, the connection with the advanced network can be continuously maintained. For example, the current amount of data to be transmitted may be 150M (megabyte), the preset amount of data may be 100M, and if it is determined that the current amount of data to be transmitted is greater than the preset amount of data, the connection with the advanced network may be continuously maintained, so as to improve the network data transmission efficiency.
For another example, if the current amount of data to be transmitted may be 50M and the preset amount of data may be 100M, it may be determined that the amount of data to be transmitted is less than the preset amount of data, and the high-level network may be switched to the low-level network for connection, so that power consumption of the terminal may be saved.
In some embodiments, before the step of "continuing to maintain connection with the advanced network", the following steps may be further included:
acquiring a current residual electric quantity value;
acquiring historical power consumption information of an application in operation;
determining the corresponding relation between the transmission data volume and the power consumption according to the historical power consumption information;
determining target power consumption based on the corresponding relation and the data volume to be transmitted;
judging whether the residual electric quantity value is larger than the target electric consumption quantity or not;
if so, executing step to continue to maintain connection with the advanced network.
Specifically, a current remaining power value is obtained, and the remaining power value may be expressed as a percentage of the total power, for example, the remaining power value may be 10%,20%,50%, or the like.
Furthermore, historical power consumption information of the running application is obtained, the historical power consumption information can comprise historical power consumption and historical transmission data amount of the running application, and the corresponding relation between the transmission data amount and the power consumption amount of the running application can be determined according to the historical power consumption and the historical transmission data amount. For example, if the historical power consumption amount may be 30% and the historical transmission data may be 150M, it may be determined that the power consumption amount and the remaining power amount correspond to each other: the power consumption amount when the transmission data amount is 1M may be 0.2%.
After determining the relationship between the transmission data amount and the power consumption amount, a target power consumption amount corresponding to the data amount to be transmitted may be determined, for example, the data amount to be transmitted may be 150M, and the corresponding relationship between the power consumption amount and the remaining power amount may be: the power consumption amount when the transmission data amount is 1M may be 0.2%, and the target power consumption amount may be determined to be 30%.
Specifically, the residual electric quantity value is compared with the target electric consumption, and whether the transmission of the data quantity to be transmitted can be completed by the residual electric quantity value or not can be judged.
For example, the remaining power amount may be 50% and the target power consumption amount may be 30%, it may be determined that the remaining power amount is greater than the target power consumption amount, and then the connection with the advanced network may be continuously maintained, and for example, the remaining power amount may be 10% and the target power consumption amount may be 30%, it may be determined that the remaining power amount is less than the target power consumption amount, and then the connection with the advanced network may be disconnected, and the battery usage time may be increased.
The embodiment of the application discloses a network switching method, which comprises the following steps: when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate; determining a target connection network according to the application information; judging whether the target connection network is the advanced network or not; if not, the advanced network is switched to the target connection network. According to the embodiment of the application, the network level of the current connection network is detected, if the network level is a high-level network, the high-level network is switched to a low-level network according to the operation condition of the terminal, the service state of the terminal can be switched to a low-power consumption state, the cruising ability is improved, and therefore the power consumption of the terminal is effectively reduced.
Referring to fig. 2, fig. 2 is a schematic flowchart of a second network handover method according to an embodiment of the present application. The specific application of the network switching method in the scene can be as follows:
201. and the terminal receives the network opening instruction and opens the network connection according to the network opening instruction.
Specifically, the terminal receives a network start instruction, and may receive a network start instruction triggered by a user through a user-related operation. For example, if the user currently opens the application and needs to perform network connection, the terminal may receive a network opening instruction and open the network connection according to the network opening instruction, or receive the network opening instruction when detecting that the user opens the network connection button.
When the terminal opens the network connection according to the network opening instruction, the default network type set by the terminal may be opened, for example, the default opened network type may be 2g,3g,4g, and so on.
202. The terminal obtains the data volume to be transmitted of the current running application and compares the data volume to be transmitted with the preset data volume.
Specifically, the terminal obtains the data volume to be transmitted of the currently running application, and the data volume to be transmitted can be the data volume which needs to be sent or received by the terminal for network connection. For example, the running application may be a video playing application, and if it is detected that a video file needs to be downloaded through a network currently, and the data volume of the video file may be 200M, it may be determined that the data volume to be transmitted is 200M.
After the data volume to be transmitted is obtained, the data volume to be transmitted may be compared with a preset data volume, and by comparing the data volume to be transmitted with the preset data volume, the network type currently performing network connection may be determined.
203. The terminal obtains the current residual electric quantity and compares the residual electric quantity with the preset electric quantity.
Specifically, the terminal acquires the current remaining capacity, and the remaining capacity may refer to a battery remaining capacity value available for use by the current terminal battery, and after acquiring the remaining capacity, the remaining capacity may be compared with a preset capacity. The preset electric quantity can be an electric quantity threshold value when the terminal enters a low power consumption state, and the network type of the current network connection can be further judged by comparing the residual electric quantity with the preset electric quantity.
204. And the terminal judges whether the data volume to be transmitted is larger than the preset data volume or not.
Specifically, after the data amount to be transmitted is compared with the preset data amount, it may be determined whether the data amount to be transmitted is greater than the preset data amount, if the data amount to be transmitted is greater than the preset data amount, step 205 may be executed, and if the data amount to be transmitted is less than the preset data amount, step 207 may be executed.
For example, if the amount of data to be transmitted may be 200M and the preset amount of data may be 100M, it may be determined that the amount of data to be transmitted is greater than the preset amount of data, and then step 206 may be performed.
For another example, if the amount of data to be transmitted may be 50M and the preset amount of data may be 100M, it may be determined that the amount of data to be transmitted is less than the preset amount of data, and step 207 may be executed.
205. And the terminal judges whether the residual electric quantity is greater than the preset electric quantity.
Specifically, when the data amount to be transmitted is greater than the preset data amount, the terminal continues to determine whether the remaining power is greater than the preset power, if the remaining power is greater than the preset power, step 206 may be executed, and if the remaining power is less than the preset power, step 207 may be executed.
For example, the remaining power may be 80% and the preset power may be 20%, it may be determined that the remaining power is greater than the preset power, and step 206 may be executed; for another example, if the remaining power may be 10% and the preset power may be 20%, it may be determined that the remaining power is less than the preset power, and step 207 may be executed.
206. The terminal performs network connection based on the 4G network.
Specifically, after it is determined that the data volume to be transmitted is greater than the preset data volume and the remaining power is greater than the preset power, the network connected to the terminal may be switched to the 4G network.
For example, when network connection is started, the default connection network may be a 2G network, and after it is detected that the amount of data to be transmitted is greater than the preset amount of data and the remaining amount of power is greater than the preset amount of power, the 2G network may be switched to a 4G network, so that the data transmission rate of network connection may be effectively increased.
207. The terminal performs network connection based on the 2G network.
Specifically, when the data volume to be transmitted is less than the preset data volume or the remaining power to be transmitted is less than the preset power volume, the network connected to the terminal may be switched to the 2G network.
For example, when the network connection is opened, the default connection network may be that the 4G network is switched to the 2G network after detecting that the amount of data to be transmitted is less than the preset amount of data or the remaining amount of power to be transmitted is less than the preset amount of power. The power consumption of the terminal can be saved, and the endurance time of the terminal is prolonged.
The embodiment of the application discloses a network switching method, which comprises the following steps: when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate; determining a target connection network according to the application information; judging whether the target connection network is the advanced network or not; if not, the advanced network is switched to the target connection network. According to the embodiment of the application, the network level of the current connection network is detected, if the network level is a high-level network, the high-level network is switched to a low-level network according to the operation condition of the terminal, the service state of the terminal can be switched to a low-power consumption state, the cruising ability is improved, and therefore the power consumption of the terminal is effectively reduced.
In order to better implement the network switching method provided in the embodiment of the present application, an apparatus based on the network switching method is also provided in the embodiment of the present application. The terms are the same as those in the above network handover method, and specific implementation details may refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a first network switching device according to an embodiment of the present disclosure, which can be applied to a mobile terminal such as a terminal, a tablet computer, a notebook computer, a palm top computer, a Portable Media Player (PMP), and a fixed terminal such as a desktop computer, and the device includes:
a first obtaining unit 301, configured to obtain application information of a currently running application when it is detected that a connected network is a high-level network, where the high-level network performs data transmission at a high rate;
a first determining unit 302, configured to determine a target connection network according to the application information;
a first judging unit 303, configured to judge whether the target connection network is the advanced network;
a first executing unit 304, configured to switch the advanced network to the target connection network if the network is not the target connection network.
In some embodiments, referring to fig. 4, fig. 4 is a block diagram of a second network switching device according to the embodiment of the present application, where the first determining unit 302 may include:
a first determining subunit 3021, configured to determine an application type of an application in operation according to the application information;
an obtaining subunit 3022, configured to obtain a network level corresponding to the application type;
a second determining subunit 3023, configured to determine a target connection network based on the network level.
In some embodiments, the network switching apparatus may further include:
and an operation unit, configured to continue to maintain connection with the advanced network if the target connection network is the advanced network.
In some embodiments, the network switching apparatus may further include:
the second acquisition unit is used for acquiring the current data volume to be transmitted;
a comparison unit for comparing the data volume to be transmitted with a preset data volume,
and the second execution unit is used for executing the step to continuously maintain the connection with the advanced network if the data volume to be transmitted is greater than the preset data volume.
In some embodiments, the network switching apparatus may further include:
the third obtaining unit is used for obtaining the current residual electric quantity value;
a fourth obtaining unit, configured to obtain historical power consumption information of an application in operation;
the second determining unit is used for determining the corresponding relation between the transmission data amount and the power consumption amount according to the historical power consumption information;
a third determination unit, configured to determine a target power consumption amount based on the correspondence relationship and the data amount to be transmitted;
a second determination unit configured to determine whether the remaining power amount value is greater than the target power consumption amount;
and a third execution unit, configured to, if yes, execute the step to continue to maintain the connection with the advanced network.
In some embodiments, the network switching apparatus may further include:
a third judging unit, configured to judge whether data transmission is currently performed after detecting that the connected network is a high-level network;
and the fourth execution unit is used for stopping the connection with the advanced network if the connection is not the advanced network.
The embodiment of the application discloses a network switching device, which comprises: when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate; determining a target connection network according to the application information; judging whether the target connection network is the advanced network or not; if not, the advanced network is switched to the target connection network. According to the embodiment of the application, the network level of the current connection network is detected, if the network level is a high-level network, the high-level network is switched to a low-level network according to the operation condition of the terminal, the service state of the terminal can be switched to a low-power consumption state, the cruising ability is improved, and therefore the power consumption of the terminal is effectively reduced.
The embodiment of the application also provides a terminal. As shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (such as operations by the user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then output to the processor 608, where it is processed and then sent to, for example, a terminal via the RF circuit 601, or the audio data is output to the memory 602 for further processing. The audio circuitry 606 may also include an ear-bud jack to provide communication of peripheral headphones with the server.
WiFi belongs to a short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607 and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the terminal. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate;
determining a target connection network according to the application information;
judging whether the target connection network is the advanced network or not;
if not, the advanced network is switched to the target connection network.
The embodiment of the application discloses a network switching method, a network switching device, a storage medium and a terminal. The network switching method comprises the following steps: when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate; determining a target connection network according to the application information; judging whether the target connection network is the advanced network or not; if not, the advanced network is switched to the target connection network. According to the embodiment of the application, the network level of the current connection network is detected, if the network level is a high-level network, the high-level network is switched to a low-level network according to the terminal operation condition, the terminal use state can be switched to a low-power consumption state, the cruising ability is improved, and the terminal power consumption is effectively reduced.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the network handover methods provided in the embodiments of the present application. For example, the instructions may perform the steps of:
when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate; determining a target connection network according to the application information; judging whether the target connection network is the advanced network or not; if not, the advanced network is switched to the target connection network.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any network handover method provided in the embodiments of the present application, beneficial effects that can be achieved by any network handover method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The network switching method, the network switching device, the storage medium and the terminal provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (6)

1. A network switching method is applied to a terminal and is characterized by comprising the following steps:
when detecting that a connected network is a high-level network, acquiring application information of a currently running application, wherein the high-level network carries out data transmission at a high rate;
determining the application type of the running application according to the application information;
determining a network level corresponding to the application type according to the network connection importance of the application type;
determining a target connection network based on the network level;
judging whether the target connection network is the advanced network or not;
if not, switching the advanced network to the target connection network;
if the target connection network is the advanced network, acquiring a current residual electric quantity value of the terminal and historical electric consumption information of the running application, wherein the historical electric consumption information comprises historical electric consumption and historical transmission data of the running application;
determining the power consumption percentage of the running application corresponding to the specified unit transmission data volume according to the historical power consumption and the historical transmission data volume;
calculating target power consumption required by the data volume to be transmitted based on the data volume to be transmitted of the running application, the specified unit transmission data volume and the power consumption percentage;
and if the residual electric quantity is larger than the target electric consumption quantity, continuing to maintain the connection with the advanced network.
2. The method of claim 1, further comprising, before continuing to maintain the connection with the advanced network:
acquiring the current data volume to be transmitted;
comparing the data volume to be transmitted with a preset data volume,
and if the data volume to be transmitted is larger than the preset data volume, executing the step of continuously keeping the connection with the advanced network.
3. The method of claim 1, further comprising:
after detecting that the connected network is a high-level network, judging whether data transmission is carried out currently;
if not, stopping the connection with the advanced network.
4. A network switching apparatus, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring application information of a currently running application when a connected network is detected to be a high-level network, and the high-level network carries out data transmission at a high rate;
a first determining unit, configured to determine an application type of the running application according to the application information; determining a network level corresponding to the application type according to the network connection importance of the application type; determining a target connection network based on the network level;
a first judgment unit configured to judge whether the target connection network is the advanced network;
a first execution unit, configured to switch the advanced network to the target connection network if the connection request is not received; if the target connection network is the advanced network, acquiring a current residual electric quantity value of a terminal and historical electric consumption information of the running application, wherein the historical electric consumption information comprises historical electric consumption and historical transmission data quantity of the running application; determining the power consumption percentage of the running application corresponding to the specified unit transmission data volume according to the historical power consumption and the historical transmission data volume; calculating target power consumption required by the data quantity to be transmitted based on the data quantity to be transmitted of the running application, the specified unit transmission data quantity and the power consumption percentage; and if the residual electric quantity is larger than the target electric consumption quantity, continuing to maintain the connection with the advanced network.
5. A storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps of the network handover method according to any one of claims 1 to 3.
6. A terminal comprising a processor and a memory, said memory storing a plurality of instructions, said processor loading said instructions to perform the steps of the network handover method of any of claims 1 to 3.
CN202010167198.8A 2020-03-11 2020-03-11 Network switching method, device, storage medium and terminal Active CN111343682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010167198.8A CN111343682B (en) 2020-03-11 2020-03-11 Network switching method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010167198.8A CN111343682B (en) 2020-03-11 2020-03-11 Network switching method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN111343682A CN111343682A (en) 2020-06-26
CN111343682B true CN111343682B (en) 2022-10-25

Family

ID=71186258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010167198.8A Active CN111343682B (en) 2020-03-11 2020-03-11 Network switching method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN111343682B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800840B (en) * 2020-06-29 2022-10-28 RealMe重庆移动通信有限公司 Cell connection control method, device, mobile terminal and storage medium
CN112437472B (en) * 2020-11-17 2022-12-06 刘超峰 Network switching method, equipment and computer readable storage medium
CN112788687B (en) * 2021-01-07 2022-11-08 RealMe重庆移动通信有限公司 Network registration control method, device, terminal and storage medium
CN112888039A (en) * 2021-01-26 2021-06-01 努比亚技术有限公司 Network switching method and device based on mobile terminal and terminal equipment
CN112822742A (en) * 2021-02-01 2021-05-18 联想(北京)有限公司 Processing method and device
CN114222340B (en) * 2021-12-10 2024-04-09 惠州Tcl移动通信有限公司 Network switching method and device and mobile terminal
CN114466400B (en) * 2022-01-18 2024-03-19 Tcl通讯科技(成都)有限公司 Device control method, device and computer readable storage medium
CN114786227A (en) * 2022-04-21 2022-07-22 中国第一汽车股份有限公司 Network switching method, device, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105406893A (en) * 2015-11-28 2016-03-16 广东欧珀移动通信有限公司 Method and device for processing communication service and communication terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5665427B2 (en) * 2010-08-31 2015-02-04 キヤノン株式会社 Information processing apparatus and method
CN104284397B (en) * 2014-09-30 2018-07-27 宇龙计算机通信科技(深圳)有限公司 Network selecting method, device based on communication terminal and terminal
US10044769B2 (en) * 2014-11-18 2018-08-07 T-Mobile Usa, Inc. Telecommunications network call control
CN105307228B (en) * 2015-10-23 2018-09-04 广东欧珀移动通信有限公司 A kind of method for switching network of mobile terminal, device and mobile terminal
CN105406890B (en) * 2015-11-28 2018-11-13 广东欧珀移动通信有限公司 Data transmission method, device and communication terminal in a kind of communication terminal
CN109474978B (en) * 2017-09-07 2022-05-13 中国移动通信有限公司研究院 Method and equipment for processing terminal access
CN107734584A (en) * 2017-09-30 2018-02-23 广东欧珀移动通信有限公司 The method and apparatus of network connection switching, computer equipment, readable storage medium storing program for executing
CN109743765A (en) * 2018-12-29 2019-05-10 出门问问信息科技有限公司 Data processing method, device, wearable device and computer readable storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105406893A (en) * 2015-11-28 2016-03-16 广东欧珀移动通信有限公司 Method and device for processing communication service and communication terminal

Also Published As

Publication number Publication date
CN111343682A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
CN111343682B (en) Network switching method, device, storage medium and terminal
CN108632930B (en) Network searching control method and device and mobile terminal
CN110996376B (en) Service data transmission method, device, storage medium and terminal
WO2016150331A1 (en) Method and device for operating game client
CN111158455A (en) Power consumption control method and device, storage medium and terminal
WO2017008569A1 (en) Message updating method, apparatus, and terminal
CN106775809B (en) Method and device for cleaning memory of mobile terminal and mobile terminal
CN107172671B (en) Channel switching method, device, storage medium and terminal
CN111093259A (en) Bluetooth power adjustment method, device, storage medium and terminal
CN111010715A (en) Data transmission method, device, storage medium and terminal
CN111510901A (en) Power adjusting method, device, storage medium and terminal
WO2018120032A1 (en) Cell switching method and terminal device
CN110688051A (en) Screen recording operation method and device, computer readable storage medium and terminal
CN113079536A (en) Updating method and device of timing advance and mobile terminal
CN111372003A (en) Camera switching method and device and terminal
CN110636526A (en) NFC communication detection method and device, computer readable storage medium and terminal
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN111836300B (en) Network switching method and communication terminal
CN110471622B (en) SD card data writing method and device, storage medium and terminal
CN112492554A (en) Data transmission method, device, storage medium and terminal
CN109600821B (en) Network control method, device, storage medium and mobile terminal
CN112860352A (en) Application loading method and device, storage medium and terminal
CN112261634A (en) Bluetooth transmission control method, device, terminal equipment and storage medium
CN111885591A (en) Network connection method, device, storage medium and terminal
CN107025118B (en) Method and device for ending application program

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230630

Address after: Room 101, Unit 1, Building 11, Gongwen Community, Weixing Road, Intersection of Weixing Road and Dongling Street, Nanguan District, Changchun City, 130000 Jilin Province

Patentee after: Changchun Huayi Xiangyuan Information Technology Co.,Ltd.

Address before: 10 / F, No.5 Lane 999, Yangfan Road, high tech Zone, Ningbo City, Zhejiang Province

Patentee before: TCL mobile communication technology (Ningbo) Co.,Ltd.