CN107466077B - Network switching method and mobile terminal - Google Patents

Network switching method and mobile terminal Download PDF

Info

Publication number
CN107466077B
CN107466077B CN201710608184.3A CN201710608184A CN107466077B CN 107466077 B CN107466077 B CN 107466077B CN 201710608184 A CN201710608184 A CN 201710608184A CN 107466077 B CN107466077 B CN 107466077B
Authority
CN
China
Prior art keywords
network
mobile terminal
preset
switching
state information
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
CN201710608184.3A
Other languages
Chinese (zh)
Other versions
CN107466077A (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.)
Vivo Software Technology Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710608184.3A priority Critical patent/CN107466077B/en
Publication of CN107466077A publication Critical patent/CN107466077A/en
Application granted granted Critical
Publication of CN107466077B publication Critical patent/CN107466077B/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/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Abstract

The embodiment of the invention provides a network switching method and a mobile terminal. The method comprises the following steps: when detecting that a mobile terminal is connected with a first network, acquiring network state information of the mobile terminal; judging whether the network state information meets a preset condition, wherein the preset condition is a preset condition according to a network switching record of the mobile terminal; when the network state information meets the preset condition, switching the network connected with the mobile terminal from the first network to a second network, wherein when the first network is a wireless local area network, the second network is a mobile data network; and when the first network is a mobile data network, the second network is a wireless local area network. The embodiment of the invention can accurately realize the automatic switching between the first network and the second network, avoid the error switching between the networks, enhance the intelligence of the mobile terminal and improve the user experience.

Description

Network switching method and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network switching method and a mobile terminal.
Background
At present, mobile terminal devices are generally equipped with wireless network and mobile network functions, and users can surf the internet in any way. The wireless network hotspot has the advantages of high speed and free most of the information, but the network coverage is smaller; the advantage of mobile networks is that the network coverage is large. However, the current mobile terminal only has a default network, and the mobile terminal is connected to the wireless network, and then the default traffic of the wireless network is the same as the default traffic of the mobile terminal, and the mobile terminal is not connected to the mobile network unless the wireless network is disconnected.
However, because the coverage area of the wireless network hotspot is small, generally, when the mobile terminal of the user moves to the hotspot edge of the wireless network, the internet speed will decrease rapidly, the internet experience is poor, and at this time, the user needs to manually disconnect the wireless network to use the mobile network to surf the internet, but the manual switching mode increases operation steps, which causes poor user experience.
For this reason, it is proposed in the related art to perform network handover by detecting the signal strength of the wireless network, for example, if it is detected that the signal strength of the connected wireless network is below a certain threshold, the network to which the mobile terminal is connected is automatically handed over from the wireless network to the mobile network.
However, the current scheme for switching to the mobile network according to the signal strength of the wireless network has the following defects: the signal strength cannot completely reflect the internet speed, for example, in an interference environment, strong signals may also have poor internet speed, and in a clean environment, weak signals may also have good internet speed, so that the problem of network mis-switching exists in a scheme of evaluating whether to automatically switch the network according to the signal strength.
Therefore, the network handover scheme in the conventional technology obviously has the problem of false handover between the wireless network and the mobile network, which affects the user experience.
Disclosure of Invention
The embodiment of the invention provides a network switching method and a mobile terminal, which aim to solve the problem that the user experience is influenced by the mis-switching between a wireless network and a mobile network in the network switching scheme in the prior art.
In a first aspect, an embodiment of the present invention provides a network handover method, which is applied to a mobile terminal, and the method includes:
when detecting that a mobile terminal is connected with a first network, acquiring network state information of the mobile terminal;
judging whether the network state information meets a preset condition, wherein the preset condition is a preset condition according to a network switching record of the mobile terminal;
when the network state information meets the preset condition, switching the network connected with the mobile terminal from the first network to a second network, wherein when the first network is a wireless local area network, the second network is a mobile data network; and when the first network is a mobile data network, the second network is a wireless local area network.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring network state information of the mobile terminal when detecting that the mobile terminal is connected with a first network;
the judging module is used for judging whether the network state information meets a preset condition, wherein the preset condition is a preset condition according to a network switching record of the mobile terminal;
a switching module, configured to switch a network connected to the mobile terminal from the first network to a second network when the network state information satisfies the preset condition, where the second network is a mobile data network when the first network is a wireless local area network; and when the first network is a mobile data network, the second network is a wireless local area network.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: the network switching system comprises a memory, a processor and a network switching program which is stored on the memory and can run on the processor, wherein the network switching program realizes the steps of the network switching method when being executed by the processor.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a network handover program is stored on the computer-readable storage medium, and when the network handover program is executed by a processor, the network handover program implements the steps of the network handover method.
Therefore, the embodiment of the invention determines whether the current network state information meets the requirement of the user on network switching by judging whether the network state information meets the preset condition generated according to the network switching record, and can automatically switch the first network connected with the mobile terminal to the second network under the condition of meeting the preset condition, so that the automatic switching between the first network and the second network can be accurately realized, the error switching between the networks is avoided, the intelligence of the mobile terminal is enhanced, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a flowchart of a network handover method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a network handover method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a network switching method according to a third embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal of a fifth embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal of a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a mobile terminal according to a seventh embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
First embodiment
Referring to fig. 1, a flowchart of a network handover method according to an embodiment of the present invention is shown, and is applied to a mobile terminal, where the method specifically includes the following steps:
step 101, when detecting that a mobile terminal is connected with a first network, acquiring network state information of the mobile terminal;
the network state information is information capable of indicating a state of a network to which the mobile terminal (e.g., a mobile phone) is currently connected.
Step 102, judging whether the network state information meets a preset condition;
the preset condition is a condition preset according to a network switching record of the mobile terminal.
That is, each time the user manually switches the network to which the mobile phone is connected to another network, the embodiment of the present invention may record the network status information in the manual network switching scenario, so as to form the preset condition according to the recorded network status information (i.e., the network switching record).
I.e. the network switch record here is a manual switch record of the network.
When the network status information satisfies the preset condition, step 103 is executed.
And 103, switching the network connected with the mobile terminal from the first network to a second network.
When the detected network state information meets the preset condition in the manual network switching scene, it indicates that the user needs to perform network switching at this time, so that the mobile phone is switched from the connected first network to the second network.
When the first network is a wireless local area network, the second network is a mobile data network; and when the first network is a mobile data network, the second network is a wireless local area network.
Therefore, the embodiment of the invention determines whether the current network state information meets the requirement of the user on network switching by judging whether the network state information meets the preset condition generated according to the network switching record, and can automatically switch the first network connected with the mobile terminal to the second network under the condition of meeting the preset condition, so that the automatic switching between the first network and the second network can be accurately realized, the error switching between the networks is avoided, the intelligence of the mobile terminal is enhanced, and the user experience is improved.
Second embodiment
Referring to fig. 2, a flowchart of a network handover method according to an embodiment of the present invention is shown, and is applied to a mobile terminal, where the method specifically includes the following steps:
in this embodiment, the network status information includes a network quality parameter;
step 201, when detecting that a mobile terminal is connected with a first network, acquiring a network quality parameter of the mobile terminal;
the network quality parameters may include retransmission rate, signal strength, and the like.
When the preset threshold of the network quality parameter is predetermined, the following steps 202 and 203 can be implemented:
step 202, recording a value of a network quality parameter of a first network when the user manually switches the first network connected with the mobile terminal to a second network;
for example, each time a user manually switches a wireless local area network (e.g., Wi-Fi) to a mobile data network, the embodiment of the present invention records the value of the network quality parameter of the wireless local area network at the time (e.g., a retransmission rate value, a signal strength value, etc.).
And 203, determining a preset threshold according to the values of the network quality parameters recorded for many times.
For example, a user has recently manually switched the network of a mobile phone from the wlan to the mobile data network 10 times, and then the corresponding value is taken for the network quality parameter at each switching.
Taking the retransmission rate as an example, the retransmission rate value of 10 times may be averaged or one of the retransmission rate values of 10 times with the highest frequency may be taken as the retransmission rate threshold.
Similarly, a similar method may be used to determine the signal strength threshold.
Of course, the method for determining the signal strength threshold or the retransmission rate threshold is not limited to the above method for averaging and taking the high frequency, and may be other value calculation methods in the prior art.
Further, for the plurality of records, all records in history, that is, all recorded data when the mobile terminal is handed over from the first network to the second network; or, the statistics may be performed according to a certain period, for example, the value of the network instruction parameter when the network is switched is counted according to a period of one month or one week.
Taking a week as an example, when step 203 is executed, the value of the signal strength recorded in the last week may be taken, and the signal strength threshold may be determined according to the value of the signal strength recorded in the week.
In addition, the network quality parameters of the embodiment of the present invention are not limited to the retransmission rate and the signal strength, and therefore, the preset threshold is not limited to the retransmission rate threshold and the signal strength threshold, and may further include more thresholds of the network quality parameters. These thresholds together constitute the preset threshold.
Step 204, judging whether the value of the network quality parameter is less than or equal to the preset threshold value;
if the network quality parameter includes the signal strength, it may be determined whether the value of the signal strength obtained in step 201 is less than or equal to the signal strength threshold determined in step 203;
if the network quality parameter includes the retransmission rate, in step 204, it is determined whether the value of the retransmission rate obtained in step 201 is greater than or equal to the retransmission rate threshold determined in step 203.
That is, according to different specific parameters of the network quality parameters, when step 204 is executed, the determination can be flexibly performed, because a higher value of the retransmission rate indicates that the quality of the current network is worse, the network needs to be switched, and a lower value of the signal strength indicates that the quality of the current network is worse, and the network needs to be switched.
When the network quality parameter includes two or more parameters, the step 205 may be executed only if the two or more parameters need to satisfy the judgment condition of the corresponding preset threshold when the judgment of the step 204 is executed.
For example, the network quality parameters include a retransmission rate and a signal strength, and step 205 is executed only when it is determined that the retransmission rate is greater than or equal to the retransmission rate threshold and the signal strength is less than or equal to the signal strength threshold.
If the determination result in step 204 is yes, step 205 is executed.
Step 205, switching the network connected with the mobile terminal from the first network to a second network.
When the first network is a wireless local area network, the second network is a mobile data network; and when the first network is a mobile data network, the second network is a wireless local area network.
By means of the technical scheme of the embodiment of the invention, the embodiment of the invention can determine the preset threshold of the network quality parameter according to the values of the network quality parameters recorded for multiple times, so that when the network quality parameter of the current connected network is judged, the preset threshold is used as a judgment basis instead of the value of the network quality parameter recorded for a single time, and the automatic switching of the network is performed under the condition that the value of the network quality parameter of the current network meets the judgment condition of the preset threshold, thereby avoiding the problem of network mis-switching caused by using the network quality parameter recorded for a single time as the network switching basis, and further improving the accuracy of the automatic switching of the network.
Third embodiment
Referring to fig. 3, a flowchart of a network handover method according to an embodiment of the present invention is shown, and is applied to a mobile terminal, where the method specifically includes the following steps:
in this embodiment, the network state information includes a network usage scenario;
step 301, when detecting that a mobile terminal is connected to a first network, acquiring a network use scene of the mobile terminal;
wherein the network usage scenario may include: application information of the used network, geographical location information of the used network, remaining traffic information of the mobile data network, SIM card information currently used by the mobile terminal, a network address of the first network, etc.
Step 302, performing machine learning on a use habit of the user when manually switching a first network connected with the mobile terminal to a second network to obtain a preset scene;
for example, the first network is a Wi-Fi network, and the second network is a 4G network;
the machine learning process of usage habits is described below as a specific example: when the mobile terminal is connected with a Wi-Fi network with an address A, a user manually switches to the 4G network, and records (for example, watching videos) that large-flow Applications (APPs) are used after switching, and a preset scene 1 can be obtained through multiple machine learning using habits.
The preset scenario 1 is that a connected network is a Wi-Fi network of the address a, and an application program (e.g., APP1, APP2) consuming a large flow is run, and the preset scenario 1 indicates that the signal quality of the currently connected Wi-Fi network is too poor.
The machine learning process using habit is described in another specific example below: when the mobile terminal is connected with the mobile data network, and when the remaining data traffic of the mobile data network is 20M, 25M, or 30M, the user manually switches to the Wi-Fi network, and the preset scene 2 can be obtained through multiple times of machine learning using habits.
The preset scenario 2 is to set a traffic threshold (for example, 30M) of the remaining data traffic of the mobile data network.
The machine learning process using habits is described in yet another embodiment: first, some applications (e.g., APP3, APP4) are customized with free mobile data traffic packages. When the mobile terminal is connected with Wi-Fi and the APP3 and APP4 are operated, the user manually switches the connected network from the Wi-Fi network to the 4G network, and the preset scene 3 can be obtained through multiple times of machine learning with the use habit.
The preset scenario 3 is a list of applications customized to a free mobile data network, thereby constituting preset applications (e.g., APP3 and APP4 herein).
Certainly, the preset scenes are not limited to the three examples described above, and may also include more preset scenes formed by scene information when the user manually switches the network, which is not described herein again.
Step 303, determining whether the network usage scenario matches a preset scenario, if so, executing step 304.
Example 1:
for example, the first network is a Wi-Fi network, and the second network is a 4G network;
in step 301, an address of the Wi-Fi network and information (for example, a program name) of an application program using the Wi-Fi network may be obtained, and then, it may be determined whether the network usage scenario matches the 3 preset scenarios, taking matching with preset scenario 1 as an example:
and judging whether the address of the Wi-Fi network is an address A or not and whether the name of the application program is APP1 or APP2 or not, and if so, indicating that the network use scene is matched with a preset scene 1.
Example 2:
for example, the first network is a Wi-Fi network, and the second network is a 4G network;
in step 301, information (for example, a program name) of an application program using the Wi-Fi network may be acquired, and then, it may be determined whether the network usage scenario matches with the 3 preset scenarios, taking matching with preset scenario 3 as an example:
and judging whether the name of the application program is APP3 or APP4, if so, indicating that the network use scene is matched with a preset scene 3. That is, the current network usage scenario is when using APP that is customized with a free mobile data network.
Example 3:
for example, the first network is a 4G network, and the second network is a Wi-Fi network;
in step 301, the remaining traffic information of the mobile data network may be obtained, and then, it may be determined whether the network usage scenario matches with the 3 preset scenarios, taking matching with preset scenario 2 as an example:
and judging whether the residual traffic information of the mobile data network is smaller than a traffic threshold (for example, 30M), if so, indicating that the network usage scene is matched with a preset scene 2. That is, the current mobile data network has too little remaining traffic and needs to be switched to a wireless local area network, such as a Wi-Fi network.
In addition, it should be noted that the information covered by the network usage scenario acquired in step 301 is not limited to the three pieces of information in this example, but also includes more listed and non-listed scenario information, and all the information needs to be acquired in step 301, but when the matching step of step 303 is executed, different scenario information or different combination of scenario information is used to match with the information in the corresponding preset scenario.
Step 304, switching the network connected with the mobile terminal from the first network to a second network.
When the first network is a wireless local area network, the second network is a mobile data network; and when the first network is a mobile data network, the second network is a wireless local area network.
By means of the technical scheme of the embodiment of the invention, the embodiment of the invention can learn the network use scene of the network manually switched by the user so as to obtain the preset scene, and in actual use, only the network use scene of the current network is matched with the preset scene, so that whether the network currently connected with the mobile terminal needs to be switched to another network can be flexibly judged, the automatic switching between the networks conforms to the manual switching habit of the user in advance, and the network mis-switching is avoided.
Fourth embodiment
Referring to fig. 4, a block diagram of a mobile terminal of one embodiment of the present invention is shown. The mobile terminal shown in fig. 4 includes:
an obtaining module 41, configured to obtain network state information of a mobile terminal when it is detected that the mobile terminal is connected to a first network;
a determining module 42, configured to determine whether the network status information meets a preset condition, where the preset condition is a condition preset according to a network handover record of the mobile terminal;
a switching module 43, configured to switch, when the network state information satisfies the preset condition, a network connected to the mobile terminal from the first network to a second network, where the second network is a mobile data network when the first network is a wireless local area network; and when the first network is a mobile data network, the second network is a wireless local area network.
Therefore, the embodiment of the invention determines the preset threshold of the network quality parameter according to the values of the network quality parameters recorded for multiple times, so that when the network quality parameter of the current connected network is judged, the automatic switching of the network is performed by taking the preset threshold as a judgment basis instead of the value of the network quality parameter recorded for a single time, and under the condition that the value of the network quality parameter of the current network meets the judgment condition of the preset threshold, the problem of network mis-switching caused by taking the network quality parameter recorded for a single time as the network switching basis is avoided, and the accuracy of the automatic switching of the network is further improved.
Fifth embodiment
Referring to fig. 5, a block diagram of a mobile terminal of one embodiment of the present invention is shown. The mobile terminal shown in fig. 5 includes:
an obtaining module 41, configured to obtain network state information of a mobile terminal when it is detected that the mobile terminal is connected to a first network;
a determining module 42, configured to determine whether the network status information meets a preset condition, where the preset condition is a condition preset according to a network handover record of the mobile terminal;
a switching module 43, configured to switch, when the network state information satisfies the preset condition, a network connected to the mobile terminal from the first network to a second network, where the second network is a mobile data network when the first network is a wireless local area network; and when the first network is a mobile data network, the second network is a wireless local area network.
Optionally, the network status information includes a network quality parameter;
the judging module 42 includes:
the first determining submodule 421 is configured to determine whether a value of the network quality parameter is smaller than or equal to a preset threshold.
Optionally, the mobile terminal further includes:
a recording module 44, configured to record a value of a network quality parameter of a first network connected to the mobile terminal when the user manually switches the first network to a second network;
and the determining module 45 is configured to determine a preset threshold according to the value of the network quality parameter recorded for multiple times.
Optionally, the network status information includes a network usage scenario;
the judging module 42 includes:
and a second determining sub-module 422, configured to determine whether the network usage scenario matches a preset scenario.
Optionally, the mobile terminal further includes:
the learning module 46 is configured to perform machine learning on a usage habit of the user when manually switching the first network connected to the mobile terminal to the second network, so as to obtain a preset scene.
Optionally, the second determining sub-module 422 includes:
a first determining unit 4221, configured to determine whether a remaining data traffic of the mobile data network is smaller than a preset traffic threshold; or the like, or, alternatively,
a second determination unit 4222 is configured to determine whether the application using the network is a preset application.
The mobile terminal can achieve the effect of the mobile terminal in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
Sixth embodiment
Fig. 6 is a block diagram of a mobile terminal according to yet another embodiment of the present invention. The mobile terminal 600 shown in fig. 6 includes: at least one processor 601, memory 602, at least one network interface 604, and a user interface 603. The various components in the mobile terminal 600 are coupled together by a bus system 605. It is understood that the bus system 605 is used to enable communications among the components. The bus system 605 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 605 in fig. 6.
The user interface 603 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 602 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration, and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous SDRAM (ESDRAM), Sync Link DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 602 of the subject systems and methods is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 602 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 6021 and application programs 6022.
The operating system 6021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application program 6022 includes various application programs such as a Media Player (Media Player), a Browser (Browser), and the like, and is used to implement various application services. A program implementing the method of an embodiment of the invention can be included in the application program 6022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 602, specifically, a program or an instruction stored in the application program 6022, the processor 601 is configured to obtain the network state information of the mobile terminal when it is detected that the mobile terminal is connected to the first network; judging whether the network state information meets a preset condition, wherein the preset condition is a preset condition according to a network switching record of the mobile terminal; when the network state information meets the preset condition, switching the network connected with the mobile terminal from the first network to a second network, wherein when the first network is a wireless local area network, the second network is a mobile data network; and when the first network is a mobile data network, the second network is a wireless local area network.
The method disclosed by the above-mentioned embodiment of the present invention can be applied to the processor 601, or implemented by the processor 601. The processor 601 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 601. The Processor 601 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 602, and the processor 601 reads the information in the memory 602 and completes the steps of the method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within 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), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the network status information includes a network quality parameter, and the processor 601 is further configured to: and judging whether the value of the network quality parameter is less than or equal to a preset threshold value.
Optionally, the processor 601 is further configured to: recording the value of the network quality parameter of a first network when the user manually switches the first network connected with the mobile terminal to a second network; and determining a preset threshold according to the values of the network quality parameters recorded for many times.
Optionally, the network status information includes a network usage scenario, and the processor 601 is further configured to: and judging whether the network use scene is matched with a preset scene.
Optionally, the processor 601 is further configured to: and performing machine learning on the use habit of the user when the user manually switches the first network connected with the mobile terminal to the second network to obtain a preset scene.
Optionally, the processor 601 is further configured to: judging whether the residual data flow of the mobile data network is smaller than a preset flow threshold value or not; or, judging whether the application program using the network is a preset application program.
The mobile terminal 600 can determine whether the current network state information meets the requirement of the user for network switching by judging whether the network state information meets the preset condition generated according to the network switching record, and can automatically switch the first network connected with the mobile terminal to the second network under the condition that the preset condition is met, so that automatic switching between the first network and the second network can be accurately realized, false switching between the networks is avoided, the intelligence of the mobile terminal is enhanced, and the user experience is improved.
Seventh embodiment
Fig. 7 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 700 in fig. 7 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 700 in fig. 7 includes a Radio Frequency (RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a processor 760, an audio circuit 770, a Wi-Fi module 780, and a power supply 790.
The input unit 730 may be used, among other things, to receive numeric or character information input by a user of the mobile terminal and to generate signal inputs related to mobile terminal user settings and function control of the mobile terminal 700. Specifically, in the embodiment of the present invention, the input unit 730 may include a touch panel 731. The touch panel 731, also called a touch screen, can collect touch operations of the mobile terminal user (for example, operations of the mobile terminal user on the touch panel 731 by using any suitable object or accessory such as a finger, a stylus pen, etc.) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 731 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a mobile terminal user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 760, and can receive and execute commands sent from the processor 760. In addition, the touch panel 731 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 731, the input unit 730 may include other input devices 732, and the other input devices 732 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.
Among other things, the display unit 740 may be used to display information input by or provided to the mobile terminal user and various menu interfaces of the mobile terminal 700. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 731 can cover the display panel 741 to form a touch display screen, and when the touch display screen detects a touch operation on or near the touch display screen, the touch display screen is transmitted to the processor 760 to determine the type of the touch event, and then the processor 760 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 760 is a control center of the mobile terminal 700, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the mobile terminal 700 and processes data by operating or executing software programs and/or modules stored in the first memory 721 and calling data stored in the second memory 722, thereby integrally monitoring the mobile terminal 700. Alternatively, processor 760 may include one or more processing units.
In the embodiment of the present invention, the processor 760 is configured to, by invoking software programs and/or modules stored in the first memory 721 and/or data stored in the second memory 722, obtain network status information of the mobile terminal when it is detected that the mobile terminal is connected to the first network; judging whether the network state information meets a preset condition, wherein the preset condition is a preset condition according to a network switching record of the mobile terminal; when the network state information meets the preset condition, switching the network connected with the mobile terminal from the first network to a second network, wherein when the first network is a wireless local area network, the second network is a mobile data network; and when the first network is a mobile data network, the second network is a wireless local area network.
Optionally, the network status information includes a network quality parameter, and the processor 760 is further configured to: and judging whether the value of the network quality parameter is less than or equal to a preset threshold value.
Optionally, the processor 760 is further configured to: recording the value of the network quality parameter of a first network when the user manually switches the first network connected with the mobile terminal to a second network; and determining a preset threshold according to the values of the network quality parameters recorded for many times.
Optionally, the network status information includes a network usage scenario, and the processor 760 is further configured to: and judging whether the network use scene is matched with a preset scene.
Optionally, the processor 760 is further configured to: and performing machine learning on the use habit of the user when the user manually switches the first network connected with the mobile terminal to the second network to obtain a preset scene.
Optionally, the processor 760 is further configured to: judging whether the residual data flow of the mobile data network is smaller than a preset flow threshold value or not; or, judging whether the application program using the network is a preset application program.
Therefore, the embodiment of the invention can determine whether the current network state information meets the requirement of the user on network switching by judging whether the network state information meets the preset condition generated according to the network switching record, and can automatically switch the first network connected with the mobile terminal to the second network under the condition of meeting the preset condition, so that the automatic switching between the first network and the second network can be accurately realized, the error switching between the networks is avoided, the intelligence of the mobile terminal is enhanced, and the user experience is improved.
An embodiment of the present invention further provides a mobile terminal, including: the network switching system comprises a memory, a processor and a network switching program which is stored on the memory and can run on the processor, wherein the network switching program realizes the steps of the network switching method when being executed by the processor.
The embodiment of the invention also provides a computer-readable storage medium, wherein a network switching program is stored on the computer-readable storage medium, and the network switching program realizes the steps of the network switching method when being executed by a processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (12)

1. A network switching method is applied to a mobile terminal, and is characterized in that the method comprises the following steps:
when detecting that a mobile terminal is connected with a first network, acquiring network state information of the mobile terminal, wherein the network state information comprises network quality parameters of the first network;
judging whether the network state information meets a preset condition, wherein the preset condition is a preset condition according to a network switching record of the mobile terminal, and the network switching record is a manual network switching record;
when the network state information meets the preset condition, switching the network connected with the mobile terminal from the first network to a second network, wherein when the first network is a wireless local area network, the second network is a mobile data network;
the judging whether the network state information meets a preset condition includes:
and judging whether the value of the network quality parameter is less than or equal to a preset threshold, wherein when the value of the network quality parameter is less than or equal to the preset threshold, the network state information is determined to meet the preset condition.
2. The method of claim 1, wherein before determining whether the value of the network quality parameter is less than or equal to a preset threshold, the method further comprises:
recording the value of the network quality parameter of a first network when a user manually switches the first network connected with the mobile terminal to a second network;
and determining a preset threshold according to the values of the network quality parameters recorded for many times.
3. The method of claim 1, wherein the network state information comprises network usage scenarios;
the judging whether the network state information meets a preset condition includes:
and judging whether the network use scene is matched with a preset scene.
4. The method of claim 3, wherein before determining whether the network usage scenario matches a preset scenario, the method further comprises:
and performing machine learning on the use habit of the user when the user manually switches the first network connected with the mobile terminal to the second network to obtain a preset scene.
5. The method of claim 3, wherein the determining whether the network usage scenario matches a preset scenario comprises:
judging whether the residual data flow of the mobile data network is smaller than a preset flow threshold value or not; or the like, or, alternatively,
and judging whether the application program using the network is a preset application program.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring network state information of the mobile terminal when detecting that the mobile terminal is connected with a first network, and the network state information comprises network quality parameters of the first network;
the judging module is used for judging whether the network state information meets a preset condition, wherein the preset condition is a preset condition according to a network switching record of the mobile terminal, and the network switching record is a manual network switching record;
a switching module, configured to switch a network connected to the mobile terminal from the first network to a second network when the network state information satisfies the preset condition, where the second network is a mobile data network when the first network is a wireless local area network;
wherein, the judging module comprises:
the first judgment submodule is used for judging whether the value of the network quality parameter is less than or equal to a preset threshold value or not;
and when the value of the network quality parameter is less than or equal to the preset threshold, determining that the network state information meets the preset condition.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
the recording module is used for recording the value of the network quality parameter of the first network when a user manually switches the first network connected with the mobile terminal to the second network;
and the determining module is used for determining a preset threshold according to the values of the network quality parameters recorded for many times.
8. The mobile terminal of claim 6, wherein the network status information comprises a network usage scenario;
the judging module comprises:
and the second judgment submodule is used for judging whether the network use scene is matched with a preset scene or not.
9. The mobile terminal of claim 8, wherein the mobile terminal further comprises:
and the learning module is used for performing machine learning by using habits when a user manually switches a first network connected with the mobile terminal to a second network to obtain a preset scene.
10. The mobile terminal of claim 9, wherein the second determination submodule comprises:
the first judging unit is used for judging whether the residual data flow of the mobile data network is smaller than a preset flow threshold value or not; or the like, or, alternatively,
and the second judging unit is used for judging whether the application program using the network is a preset application program.
11. A mobile terminal, comprising: memory, processor and a network switching program stored on the memory and executable on the processor, the network switching program when executed by the processor implementing the steps of the network switching method according to any of claims 1 to 5.
12. A computer-readable storage medium, having a network handover program stored thereon, which, when executed by a processor, implements the steps of the network handover method according to any one of claims 1 to 5.
CN201710608184.3A 2017-07-24 2017-07-24 Network switching method and mobile terminal Active CN107466077B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710608184.3A CN107466077B (en) 2017-07-24 2017-07-24 Network switching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710608184.3A CN107466077B (en) 2017-07-24 2017-07-24 Network switching method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107466077A CN107466077A (en) 2017-12-12
CN107466077B true CN107466077B (en) 2020-09-18

Family

ID=60546900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710608184.3A Active CN107466077B (en) 2017-07-24 2017-07-24 Network switching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107466077B (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108495348B (en) * 2018-01-31 2021-08-31 上海尚往网络科技有限公司 Network switching method, equipment and medium for user equipment
CN108449784A (en) * 2018-03-14 2018-08-24 深圳市海派通讯科技有限公司 The electricity saving method of intelligent switch action net
CN108391298B (en) * 2018-05-25 2020-12-25 金华市智甄通信设备有限公司 System and electronic equipment for automatically switching networks
US11496946B2 (en) * 2018-06-07 2022-11-08 Huawei Technologies Co., Ltd. Transmission path switching method and apparatus
CN109495939A (en) * 2019-01-25 2019-03-19 努比亚技术有限公司 Method for switching network, device, mobile terminal and computer readable storage medium
CN111698736A (en) * 2019-03-14 2020-09-22 青岛海尔智能技术研发有限公司 Intelligent household electrical appliance network switching method and device, computer equipment and server
CN110072228A (en) * 2019-04-29 2019-07-30 努比亚技术有限公司 A kind of method for switching network, terminal and computer readable storage medium
CN110351711A (en) * 2019-07-19 2019-10-18 深圳传音控股股份有限公司 Method for switching network, mobile terminal and computer readable storage medium
CN112533192B (en) * 2019-09-19 2022-04-22 华为技术有限公司 Method and device for switching SIM (subscriber identity Module) card and electronic equipment
CN110891292A (en) * 2019-11-20 2020-03-17 三星电子(中国)研发中心 Method and device for automatically switching network for terminal
CN112272393A (en) * 2020-08-28 2021-01-26 广西东信易联科技有限公司 Method for intelligently switching networks of mobile Internet of things platform
CN111988824A (en) * 2020-08-31 2020-11-24 北京字节跳动网络技术有限公司 Network switching method and device, electronic equipment and storage medium
CN112422642A (en) * 2020-10-30 2021-02-26 深圳Tcl新技术有限公司 Network connection control method, system, device and storage medium
CN112399242A (en) * 2020-11-03 2021-02-23 深圳创维-Rgb电子有限公司 Mobile network connection method, device, equipment and medium based on television
CN112492654A (en) * 2020-11-16 2021-03-12 北京小米移动软件有限公司 Network control method, device and storage medium
CN112333028A (en) * 2020-11-20 2021-02-05 南京创维信息技术研究院有限公司 Dynamic processing method, device, terminal and medium for multi-network coexistence
CN112822740B (en) * 2020-12-28 2022-09-27 广州绿怡信息科技有限公司 Hotspot emission control method and device
CN113891408B (en) * 2021-04-20 2022-08-16 荣耀终端有限公司 Method for switching Wi-Fi network and cellular network and electronic equipment
CN113543250A (en) * 2021-06-11 2021-10-22 浙江大华技术股份有限公司 Network switching method, system, device and storage medium
CN113676934B (en) * 2021-08-24 2024-02-09 芯河半导体科技(无锡)有限公司 Method for automatically switching internet surfing mode
CN113938965A (en) * 2021-10-09 2022-01-14 维沃移动通信有限公司 Network setting method and device
CN114205450B (en) * 2021-12-11 2023-05-02 天翼电信终端有限公司 Collective terminal working mode setting method and device, collective terminal and storage medium
CN114363973A (en) * 2022-01-05 2022-04-15 Oppo广东移动通信有限公司 Network switching method and device, electronic equipment and computer readable storage medium
CN114726794A (en) * 2022-04-14 2022-07-08 深圳市优克联新技术有限公司 Method, device and equipment for providing network channel and readable storage medium
CN114867075A (en) * 2022-06-09 2022-08-05 西安紫光展锐科技有限公司 Wireless network switching method, device, equipment, storage medium and product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602311A (en) * 2014-12-29 2015-05-06 北京奇虎科技有限公司 Terminal connected with a plurality of wireless networks simultaneously and switching method for terminal
CN104703235A (en) * 2015-03-19 2015-06-10 北京邮电大学 Terminal handover method under high-speed moving
CN105517070A (en) * 2015-12-25 2016-04-20 上海交通大学 User usage habit-based heterogeneous network switching method
CN106792955A (en) * 2016-12-26 2017-05-31 北京奇虎科技有限公司 Switching analog network method, device and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI561039B (en) * 2015-05-29 2016-12-01 Fih Hong Kong Ltd Network connection controlling system and smart terminal employing same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104602311A (en) * 2014-12-29 2015-05-06 北京奇虎科技有限公司 Terminal connected with a plurality of wireless networks simultaneously and switching method for terminal
CN104703235A (en) * 2015-03-19 2015-06-10 北京邮电大学 Terminal handover method under high-speed moving
CN105517070A (en) * 2015-12-25 2016-04-20 上海交通大学 User usage habit-based heterogeneous network switching method
CN106792955A (en) * 2016-12-26 2017-05-31 北京奇虎科技有限公司 Switching analog network method, device and terminal device

Also Published As

Publication number Publication date
CN107466077A (en) 2017-12-12

Similar Documents

Publication Publication Date Title
CN107466077B (en) Network switching method and mobile terminal
CN107171874B (en) Voice engine switching method, mobile terminal and server
CN115357178B (en) Control method applied to screen-throwing scene and related equipment
US9071970B2 (en) Terminal device
CN107678644B (en) Image processing method and mobile terminal
CN107526492B (en) Interface display method of application program and mobile terminal
EP2677415A2 (en) Terminal and Method of Operating the Terminal
CN108710456B (en) Application icon processing method and device and mobile terminal
US9207861B2 (en) Method and mobile terminal for processing touch input in two different states
CN107172287B (en) Multi-card communication method and mobile terminal
EP3651007B1 (en) Method, apparatus, and device for enabling task management interface
CN108366169B (en) Notification message processing method and mobile terminal
CN106453925B (en) Information transmission method and mobile terminal
CN107426765B (en) Measurement report generation method and mobile terminal
CN101872284A (en) Display mode switching method of functional keys and terminal
CN106055242B (en) Operation processing method and mobile terminal
CN106874046B (en) Application program operation method and mobile terminal
CN107318091B (en) Network connection control method and mobile terminal
KR20130097331A (en) Apparatus and method for selecting object in device with touch screen
CN106775378B (en) Method for determining candidate words of input method and mobile terminal
CN107992342B (en) Application configuration changing method and mobile terminal
CN105302458A (en) Message display method and apparatus
US20150199058A1 (en) Information processing method and electronic device
CN107105090A (en) A kind of control method, device and the mobile terminal of suspension button
CN103135934A (en) Touch-screen mobile device and method and device for switching application program quickly

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: 20220816

Address after: 100016 Room 101, 1st floor, unit 101, building 303, courtyard a, Jiuxianqiao North Road, Chaoyang District, Beijing

Patentee after: WEIWO SOFTWARE TECHNOLOGY Co.,Ltd.

Address before: 523860 No. 283 BBK Avenue, Changan Town, Changan, Guangdong.

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.