CN107454639B - Network automatic switching method, mobile terminal and storage medium - Google Patents

Network automatic switching method, mobile terminal and storage medium Download PDF

Info

Publication number
CN107454639B
CN107454639B CN201710859874.6A CN201710859874A CN107454639B CN 107454639 B CN107454639 B CN 107454639B CN 201710859874 A CN201710859874 A CN 201710859874A CN 107454639 B CN107454639 B CN 107454639B
Authority
CN
China
Prior art keywords
network
mobile terminal
wifi
switching
wifi connection
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
CN201710859874.6A
Other languages
Chinese (zh)
Other versions
CN107454639A (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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201710859874.6A priority Critical patent/CN107454639B/en
Publication of CN107454639A publication Critical patent/CN107454639A/en
Application granted granted Critical
Publication of CN107454639B publication Critical patent/CN107454639B/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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface

Abstract

The invention discloses a network automatic switching method, a mobile terminal and a storage medium, wherein the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens a WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes a 4G network; collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period, and recording time intervals and position points for carrying out network switching beyond a preset WIFI connection position; and when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to carry out network switching. The method controls the mobile terminal to automatically switch between the WIFI network and the 4G network, adds a matching mode except the preset WIFI connection position and a self-learning mode of a switching network, takes the place where the user frequently switches the network in a certain period as a newly added position point, and automatically switches, thereby saving the flow of the user and prolonging the standby time of the mobile terminal.

Description

Network automatic switching method, mobile terminal and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a network automatic switching method, a mobile terminal and a storage medium.
Background
With the popularization of mobile terminals (e.g., smart phones), people's lives are increasingly unable to leave the internet, and in daily life, there are two ways for general users to use smart phones to surf the internet: the WIFI internet surfing and the 4G mobile phone card internet surfing are realized, the WIFI internet surfing can be used in office areas or places with WIFI hotspots such as homes, the limitation of the 4G mobile phone card internet surfing areas is small, and the mobile phone can be used in a connected mode as long as a network signal exists; however, at present, each operator network is still in a pay-per-flow stage, once the package flow of the mobile phone is used up, the internet cost of the 4G mobile phone card is greatly increased, so that the situation of bad payment when the package flow is used up often occurs when the 4G mobile phone card is used up.
And many users are used to open the 4G mobile card and WIFI access network simultaneously, and when WIFI is connected, the WIFI access network is preferentially used, but the 4G flow is also in the open state, so that the power consumption of the mobile phone can be increased invisibly, and the endurance time of the mobile phone is shortened.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention aims to provide a network automatic switching method, a mobile terminal and a storage medium, aiming at controlling the mobile terminal to automatically switch between a WIFI network and a 4G network by detecting whether the mobile terminal is in a place where the mobile terminal uses WIFI connection for a long time, avoiding the situation that the mobile terminal still opens the 4G network when being connected with the WIFI or still opens the WIFI connection when no WIFI hotspot exists, leading the mobile terminal to reasonably switch the network connection according to the actual situation, increasing the matching and self-learning modes of the switching network beyond the preset WIFI connection position, taking the place where the user frequently switches the network in a certain period as a newly added position point, automatically switching when entering the position point again, saving the flow of the user and prolonging the standby time of the mobile terminal.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a network automatic switching method comprises the following steps:
the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network;
collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period, and recording time intervals and position points for carrying out network switching beyond a preset WIFI connection position;
and when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to increase the matching switching frequency and trying to perform network switching between the 4G network and the WIFI.
The network automatic switching method, wherein the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens the WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network, further comprises:
when the current position of the mobile terminal is not detected to be at a preset WIFI connection position, judging whether a 4G network available for connection exists or not;
and when the 4G network available for connection exists or does not exist, controlling the mobile terminal to automatically open the 4G network and simultaneously closing the WIFI connection.
The network automatic switching method comprises the following steps before the mobile terminal detects whether the current position is at the preset WIFI connection position:
presetting a place where the mobile terminal is connected by using WIFI for a long time as a WIFI connection position;
when the mobile terminal is located at a WIFI connection position, automatically opening WIFI connection, and simultaneously closing the 4G network;
and when the mobile terminal is not at the WIFI connection position, the 4G network is automatically opened, and meanwhile, the WIFI connection is closed.
The network automatic switching method is characterized in that the mobile terminal detects whether the current position is at a preset WIFI connection position, if so, the WIFI connection is automatically opened for surfing the internet, and the 4G network is closed, and the method comprises the following steps:
when the current position of the mobile terminal is detected to be at a preset WIFI connection position, judging whether a WIFI hotspot available for connection exists;
when the WIFI hotspot available for connection is judged, controlling the mobile terminal to automatically open the WIFI connection for surfing the Internet, and simultaneously closing the 4G network;
and when judging that no WIFI hotspot available for connection exists, controlling the mobile terminal to close the WIFI connection again, and simultaneously starting the 4G network.
The network automatic switching method comprises the following steps of collecting data of network switching performed by the mobile terminal for multiple times in a preset period, and recording time intervals and position points of network switching outside a preset WIFI connection position, wherein the time intervals and the position points comprise the following steps:
presetting a preset period for collecting time points and position points of network switching of the mobile terminal;
calculating the time interval from the entering of the mobile terminal to the completion of network switching;
and adding a position point for network switching except the preset WIFI connection position, and automatically switching the network when the mobile terminal enters the position point again.
According to the network automatic switching method, when the mobile terminal switches the network according to whether the mobile terminal is in the WIFI connection position or the newly added position point, when the situation that a user sets the network connection mode by inputting an operation instruction is detected, the user operation instruction is received to carry out network priority setting, and the network is controlled to automatically switch until the position detection changes again.
A mobile terminal comprising a processor, and a memory coupled to the processor, the memory storing a network auto-switching program, the network auto-switching program when executed by the processor being operative to perform the steps of:
the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network;
collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period, and recording time intervals and position points for carrying out network switching beyond a preset WIFI connection position;
and when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to increase the matching switching frequency and trying to perform network switching between the 4G network and the WIFI.
The mobile terminal, wherein the network automatic switching program, when executed by the processor, is further configured to implement the following steps:
presetting a place where the mobile terminal is connected by using WIFI for a long time as a WIFI connection position;
when the mobile terminal is located at a WIFI connection position, automatically opening WIFI connection, and simultaneously closing the 4G network;
when the mobile terminal is not at the WIFI connection position, automatically starting the 4G network, and simultaneously closing the WIFI connection;
when the current position of the mobile terminal is not detected to be at a preset WIFI connection position, judging whether a 4G network available for connection exists or not;
when a 4G network available for connection exists or does not exist, controlling the mobile terminal to automatically open the 4G network and simultaneously close the WIFI connection;
when the current position of the mobile terminal is detected to be at a preset WIFI connection position, judging whether a WIFI hotspot available for connection exists;
when the WIFI hotspot available for connection is judged, controlling the mobile terminal to automatically open the WIFI connection for surfing the Internet, and simultaneously closing the 4G network;
and when judging that no WIFI hotspot available for connection exists, controlling the mobile terminal to close the WIFI connection again, and simultaneously starting the 4G network.
The mobile terminal, wherein the network automatic switching program, when executed by the processor, is further configured to implement the following steps:
presetting a preset period for collecting time points and position points of network switching of the mobile terminal;
calculating the time interval from the entering of the mobile terminal to the completion of network switching;
adding a position point for network switching beyond the preset WIFI connection position, wherein the position point is used for automatically switching the network when the mobile terminal enters the position point again;
when the mobile terminal switches the network according to whether the mobile terminal is in the WIFI connection position or the newly added position point, when the situation that a user sets the network connection mode by inputting an operation instruction is detected, the user operation instruction is received to set the network priority, and the network is controlled to automatically switch until the position detection changes again.
A storage medium, wherein the storage medium stores a network automatic switching program, which is executed by a processor to implement the network automatic switching method.
The invention provides a network automatic switching method, a mobile terminal and a storage medium, wherein the method comprises the following steps: the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network; collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period, and recording time intervals and position points for carrying out network switching beyond a preset WIFI connection position; and when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to increase the matching switching frequency and trying to perform network switching between the 4G network and the WIFI. The method and the device control the mobile terminal to automatically switch between the WIFI network and the 4G network by detecting whether the mobile terminal is in a place where the WIFI connection is used for a long time, avoid the situation that the mobile terminal still opens the 4G network when being connected with the WIFI or still opens the WIFI connection when no WIFI hotspot exists, enable the mobile terminal to reasonably switch the network connection according to actual conditions, increase the matching and network switching self-learning modes outside the preset WIFI connection position, take the place where the user frequently switches the network in a certain period as a newly added position point, and automatically switch when entering the position point again, thereby saving the flow of the user and prolonging the standby time of the mobile terminal.
Drawings
Fig. 1 is a flowchart of a network automatic switching method according to a first preferred embodiment of the present invention.
Fig. 2 is a functional block diagram of a preferred embodiment of the mobile terminal of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Example one
Referring to fig. 1, fig. 1 is a flowchart illustrating a network automatic switching method according to a first preferred embodiment of the present invention. As shown in fig. 1, a method for automatically switching networks includes the following steps:
and S100, the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens the WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network.
In the embodiment of the invention, the mobile terminal takes a mobile phone as an example (certainly including other intelligent devices), a place where the mobile phone is connected by using the WIFI for a long time is preset as a WIFI connection position, the WIFI connection position is generally a home and an office, the two places are places where the user is most likely to use the WIFI connection for a long time, and the user can automatically connect to the WIFI hotspot after opening the wireless connection generally only when the user is at the two places, so that before the mobile phone selects which network connection is used, the current position of the mobile phone needs to be judged, and then the mobile phone needs to start a positioning function to detect whether the current position of the mobile phone is at the preset WIFI connection position, and then carries out the next judgment.
Specifically, step S100 further includes the following steps:
s1, presetting a place for using WIFI connection for a long time as a WIFI connection position;
s2, automatically opening WIFI connection when the mobile terminal is at the WIFI connection position, and simultaneously closing the 4G network;
and S3, automatically opening the 4G network when the mobile terminal is not at the WIFI connection position, and closing the WIFI connection.
In the embodiment of the invention, when the mobile terminal is at the preset WIFI connection position, the WIFI connection is automatically opened to surf the internet, and the 4G network is closed; when the mobile phone is detected to be in a home or an office or other common wireless places, at this time, a WIFI hotspot for connection is generally available, the mobile phone is automatically connected to the WIFI hotspot for a user to surf the internet, at this time, if a 4G network (including other mobile networks such as 2G or 3G) at a background is not closed, the 4G network is controlled to be closed at the same time, the situation that the 4G network is opened while the mobile phone is connected to the WIFI hotspot to surf the internet is avoided, and therefore the electric quantity of the mobile phone is wasted; and when the WIFI hotspot is judged to be unable to be connected, prompting the user of the information that the WIFI hotspot cannot be connected, controlling the mobile terminal to close the WIFI connection again, and simultaneously starting the 4G network.
Specifically, step S100 specifically includes the following steps:
s101, when the current position of the mobile terminal is detected to be at a preset WIFI connection position, judging whether a WIFI hotspot available for connection exists;
s102, when the WIFI hotspot available for connection is judged, controlling the mobile terminal to automatically open the WIFI connection for surfing the Internet, and simultaneously closing the 4G network;
s103, when it is judged that no WIFI hotspot available for connection exists, the mobile terminal is controlled to close the WIFI connection again, and meanwhile, the 4G network is started.
Further, the step S100 further includes: when the mobile terminal is not at the WIFI connection position, automatically starting 4G network connection for surfing the Internet, and closing the WIFI connection; specifically, when detecting that the current position of the mobile terminal is not at a preset WIFI connection position, judging whether a 4G network available for connection exists; and when the 4G network available for connection exists or does not exist, controlling the mobile terminal to automatically open the 4G network and simultaneously closing the WIFI connection.
In the embodiment of the invention, when the mobile phone is not at home or in an office, only the 4G network (mobile phone card) is started to surf the internet, and certainly, the position of the user can not be connected with the 4G network, such as a basement or a mountainous area and other places with weak signals, but the mobile phone is still controlled to automatically open the 4G network and close the WIFI connection, so that the mobile phone of the user can surf the internet when receiving the 4G signal.
Step S200, collecting data of the mobile terminal for network switching for multiple times in a preset period, and recording time intervals and position points for network switching beyond a preset WIFI connection position.
In the embodiment of the invention, matching and switching attempt can be carried out only according to the initially set WIFI connection position of the user under the condition that user network switching is not known initially; the invention adds a self-learning mode, which is concretely realized as follows: after the user habit data collection of a week (the user sets a period according to own habits) period is completed, the time interval from entering which area to completing the switching can be collected, and other positions (for example, a place for lunch eating is a new place, and some free WIFI hotspots can be used, so that the user can frequently perform network switching at the point for eating) except the WIFI connection position where switching is frequently generated (for example, twice connection in a week) regularly, so that the positions are used as new position points and time points.
When the corresponding time point and the position point arrive, the mobile terminal tries to match the switching, namely time point collection and position point collection are added, time interval collection required from entering a switching area to finishing the switching is added, and the matching trial and switching frequency is adjusted and optimized.
Specifically, step S200 specifically includes the following steps:
s201, presetting a preset period for collecting time points and position points of network switching of the mobile terminal;
s202, calculating the time interval from the position point entering area to the network switching completion of the mobile terminal;
and S203, adding a position point for network switching except the preset WIFI connection position, and automatically switching the network when the mobile terminal enters the position point again.
And step S300, when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to increase the matching switching frequency and trying to switch the network between the 4G network and the WIFI.
In the embodiment of the invention, conventionally, the position information is obtained through information sent from a GPS satellite system, for example, 1S is updated once, if 1S is matched once, the power consumption is large, and most of the position information belongs to useless work; if the interval time is too long, people may arrive at home or office, and cannot switch in time, so that the experience is poor; for example, the matching attempt time interval is initially set to 2 minutes, and the number of matching attempts is increased once every 30S after entering the suspected handover area (for example, a point of eating). In order to reduce power consumption, matching attempt is only performed on bottom-layer awakening in the initial matching process, interaction with the upper-layer app is reduced, and the more interaction is performed, the greater the power consumption is, and interaction with the upper-layer app is performed after the suspected area is entered; after the self-learning period is completed, the trial switching frequency is adjusted according to empirical data, and the intellectualization and the effectiveness of automatic switching are improved.
In addition, when the mobile terminal performs network switching according to whether the mobile terminal is at a WIFI connection position or a newly added position point, when the situation that a user sets a network connection mode by inputting an operation instruction is detected, the mobile terminal receives the user operation instruction to perform network priority setting, and the network is controlled to automatically switch until the position detection changes again; that is, if it is detected that a manual operation participates in setting the network connection mode of the mobile terminal, the manual setting is used as the standard.
Of course, it can be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a network auto-switching program, and the program can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the method embodiments described above. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
Example two
An embodiment of the present invention further provides a mobile terminal, as shown in fig. 2, the mobile terminal of the embodiment of the present invention may be a mobile phone (or a tablet computer), where the mobile terminal of the embodiment includes a processor 10 and a memory 20 connected to the processor 10;
the memory 20 stores a network automatic switching program, which when executed by the processor 10, is configured to implement the steps of:
the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network;
collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period, and recording time intervals and position points for carrying out network switching beyond a preset WIFI connection position;
when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to increase the matching switching frequency and trying to perform network switching between the 4G network and the WIFI; as described above.
Further, when executed by the processor 10, the network automatic switching program is further configured to implement the following steps:
when the current position of the mobile terminal is not detected to be at a preset WIFI connection position, judging whether a 4G network available for connection exists or not;
when a 4G network available for connection exists or does not exist, controlling the mobile terminal to automatically open the 4G network and simultaneously close the WIFI connection; as described above.
Further, when executed by the processor 10, the network automatic switching program is further configured to implement the following steps:
presetting a place where the mobile terminal is connected by using WIFI for a long time as a WIFI connection position;
when the mobile terminal is located at a WIFI connection position, automatically opening WIFI connection, and simultaneously closing the 4G network;
when the mobile terminal is not at the WIFI connection position, automatically starting the 4G network, and simultaneously closing the WIFI connection; as described above.
Further, when executed by the processor 10, the network automatic switching program is further configured to implement the following steps:
when the current position of the mobile terminal is detected to be at a preset WIFI connection position, judging whether a WIFI hotspot available for connection exists;
when the WIFI hotspot available for connection is judged, controlling the mobile terminal to automatically open the WIFI connection for surfing the Internet, and simultaneously closing the 4G network;
when no WIFI hotspot available for connection is judged, controlling the mobile terminal to close the WIFI connection again, and simultaneously starting the 4G network; as described above.
Further, when executed by the processor 10, the network automatic switching program is further configured to implement the following steps:
presetting a preset period for collecting time points and position points of network switching of the mobile terminal;
calculating the time interval from the entering of the mobile terminal to the completion of network switching;
adding a position point for network switching beyond the preset WIFI connection position, wherein the position point is used for automatically switching the network when the mobile terminal enters the position point again; as described above.
Further, when executed by the processor 10, the network automatic switching program is further configured to implement the following steps:
when the mobile terminal performs network switching according to whether the mobile terminal is at a WIFI connection position or a newly added position point, when the situation that a user sets a network connection mode by inputting an operation instruction is detected, the mobile terminal receives the user operation instruction to perform network priority setting, and the network is controlled to automatically switch until the position detection changes again; in particular as described above
EXAMPLE III
A storage medium, wherein the storage medium stores a network automatic switching program which realizes the network automatic switching method when executed by a processor 10; as described above.
In summary, the present invention discloses a network automatic switching method, a mobile terminal and a storage medium, wherein the method includes: the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network; collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period, and recording time intervals and position points for carrying out network switching beyond a preset WIFI connection position; and when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to increase the matching switching frequency and trying to perform network switching between the 4G network and the WIFI. The method and the device control the mobile terminal to automatically switch between the WIFI network and the 4G network by detecting whether the mobile terminal is in a place where the WIFI connection is used for a long time, avoid the situation that the mobile terminal still opens the 4G network when being connected with the WIFI or still opens the WIFI connection when no WIFI hotspot exists, enable the mobile terminal to reasonably switch the network connection according to actual conditions, increase the matching and network switching self-learning modes outside the preset WIFI connection position, take the place where the user frequently switches the network in a certain period as a newly added position point, and automatically switch when entering the position point again, thereby saving the flow of the user and prolonging the standby time of the mobile terminal.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (3)

1. A network automatic switching method is characterized in that the network automatic switching method comprises the following steps:
presetting a place where the mobile terminal is connected by using WIFI for a long time as a WIFI connection position;
when the mobile terminal is located at a WIFI connection position, automatically opening WIFI connection, and simultaneously closing the 4G network;
when the mobile terminal is not at the WIFI connection position, automatically starting the 4G network, and simultaneously closing the WIFI connection;
the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network;
the method comprises the following steps that the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens the WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network:
when the current position of the mobile terminal is detected to be at a preset WIFI connection position, judging whether a WIFI hotspot available for connection exists;
when the WIFI hotspot available for connection is judged, controlling the mobile terminal to automatically open the WIFI connection for surfing the Internet, and simultaneously closing the 4G network;
when no WIFI hotspot available for connection is judged, controlling the mobile terminal to close the WIFI connection again, and simultaneously starting the 4G network;
when the current position of the mobile terminal is not detected to be at a preset WIFI connection position, judging whether a 4G network available for connection exists or not;
when a 4G network available for connection exists or does not exist, controlling the mobile terminal to automatically open the 4G network and simultaneously close the WIFI connection;
collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period, and recording time intervals and position points for carrying out network switching beyond a preset WIFI connection position;
the method for collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period and recording the time interval and the position point for carrying out network switching beyond the preset WIFI connection position comprises the following steps:
presetting a preset period for collecting time points and position points of network switching of the mobile terminal;
calculating the time interval from the entering of the mobile terminal to the completion of network switching;
adding a position point for network switching beyond the preset WIFI connection position, wherein the position point is used for automatically switching the network when the mobile terminal enters the position point again;
when the mobile terminal performs network switching according to whether the mobile terminal is at a WIFI connection position or a newly added position point, when the situation that a user sets a network connection mode by inputting an operation instruction is detected, the mobile terminal receives the user operation instruction to perform network priority setting, and the network is controlled to automatically switch until the position detection changes again;
when the position point arrives at the corresponding time point, the mobile terminal tries to match and switch, time point collection and position point collection are added, time interval collection required from entering a switching area to completing switching is added, and trial matching and switching frequency are adjusted and optimized;
when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to increase the matching switching frequency and trying to perform network switching between the 4G network and the WIFI;
the method comprises the steps of controlling the mobile terminal to automatically switch between the WIFI network and the 4G network by detecting whether the mobile terminal is located at a place where the mobile terminal is connected with the WIFI for a long time, avoiding the situation that the mobile terminal still opens the 4G network when being connected with the WIFI or still opens the WIFI connection when no WIFI hotspot exists, enabling the mobile terminal to reasonably switch the network connection according to actual conditions, adding a matching mode outside a preset WIFI connection position and a self-learning mode of switching the network, taking a place where a user frequently switches the network in a certain period as a newly added position point, automatically switching when entering the position point again, saving the flow of the user and prolonging the standby time of the mobile terminal.
2. A mobile terminal comprising a processor, and a memory coupled to the processor, the memory storing a network auto-switching program, the network auto-switching program when executed by the processor being configured to perform the steps of:
the mobile terminal detects whether the current position is at a preset WIFI connection position, automatically opens WIFI connection to surf the internet if the current position is at the preset WIFI connection position, and closes the 4G network;
collecting data of the mobile terminal for carrying out network switching for multiple times in a preset period, and recording time intervals and position points for carrying out network switching beyond a preset WIFI connection position;
when the position point arrives at the corresponding time point, the mobile terminal tries to match and switch, time point collection and position point collection are added, time interval collection required from entering a switching area to completing switching is added, and trial matching and switching frequency are adjusted and optimized;
when the mobile terminal enters the newly added position point again in the time interval, controlling the mobile terminal to increase the matching switching frequency and trying to perform network switching between the 4G network and the WIFI;
the network automatic switching program, when executed by the processor, is further configured to implement the steps of:
presetting a place where the mobile terminal is connected by using WIFI for a long time as a WIFI connection position;
when the mobile terminal is located at a WIFI connection position, automatically opening WIFI connection, and simultaneously closing the 4G network;
when the mobile terminal is not at the WIFI connection position, automatically starting the 4G network, and simultaneously closing the WIFI connection;
when the current position of the mobile terminal is not detected to be at a preset WIFI connection position, judging whether a 4G network available for connection exists or not;
when a 4G network available for connection exists or does not exist, controlling the mobile terminal to automatically open the 4G network and simultaneously close the WIFI connection;
when the current position of the mobile terminal is detected to be at a preset WIFI connection position, judging whether a WIFI hotspot available for connection exists;
when the WIFI hotspot available for connection is judged, controlling the mobile terminal to automatically open the WIFI connection for surfing the Internet, and simultaneously closing the 4G network;
when no WIFI hotspot available for connection is judged, controlling the mobile terminal to close the WIFI connection again, and simultaneously starting the 4G network;
the network automatic switching program, when executed by the processor, is further configured to implement the steps of:
presetting a preset period for collecting time points and position points of network switching of the mobile terminal;
calculating the time interval from the entering of the mobile terminal to the completion of network switching;
adding a position point for network switching beyond the preset WIFI connection position, wherein the position point is used for automatically switching the network when the mobile terminal enters the position point again;
when the mobile terminal performs network switching according to whether the mobile terminal is at a WIFI connection position or a newly added position point, when the situation that a user sets a network connection mode by inputting an operation instruction is detected, the mobile terminal receives the user operation instruction to perform network priority setting, and the network is controlled to automatically switch until the position detection changes again;
the method comprises the steps of controlling the mobile terminal to automatically switch between the WIFI network and the 4G network by detecting whether the mobile terminal is located at a place where the mobile terminal is connected with the WIFI for a long time, avoiding the situation that the mobile terminal still opens the 4G network when being connected with the WIFI or still opens the WIFI connection when no WIFI hotspot exists, enabling the mobile terminal to reasonably switch the network connection according to actual conditions, adding a matching mode outside a preset WIFI connection position and a self-learning mode of switching the network, taking a place where a user frequently switches the network in a certain period as a newly added position point, automatically switching when entering the position point again, saving the flow of the user and prolonging the standby time of the mobile terminal.
3. A storage medium storing a network automatic switching program, wherein the network automatic switching program, when executed by a processor, implements the network automatic switching method according to claim 1.
CN201710859874.6A 2017-09-21 2017-09-21 Network automatic switching method, mobile terminal and storage medium Active CN107454639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710859874.6A CN107454639B (en) 2017-09-21 2017-09-21 Network automatic switching method, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710859874.6A CN107454639B (en) 2017-09-21 2017-09-21 Network automatic switching method, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107454639A CN107454639A (en) 2017-12-08
CN107454639B true CN107454639B (en) 2020-07-14

Family

ID=60497190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710859874.6A Active CN107454639B (en) 2017-09-21 2017-09-21 Network automatic switching method, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107454639B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109956043A (en) * 2017-12-26 2019-07-02 广州亿航智能技术有限公司 Flight instruments
CN108718456A (en) * 2018-05-30 2018-10-30 郑州易通众联电子科技有限公司 Method for switching network, network switching device and mobile terminal
CN110708739B (en) * 2019-10-21 2022-05-13 中国联合网络通信集团有限公司 Network connection method, device and system
CN111093235B (en) * 2019-11-05 2021-06-18 珠海格力电器股份有限公司 Network switching method, equipment and storage medium
CN110891292A (en) * 2019-11-20 2020-03-17 三星电子(中国)研发中心 Method and device for automatically switching network for terminal
CN111447656B (en) * 2020-03-30 2022-09-16 深圳信可通讯技术有限公司 Method and device for intelligently switching dial-up networking
CN111770229B (en) * 2020-06-02 2022-03-01 维沃移动通信有限公司 Network connection mode setting method and device
CN112888038A (en) * 2021-01-27 2021-06-01 昆山睿翔讯通通信技术有限公司 Mobile communication control method and system
CN113347675B (en) * 2021-05-14 2022-02-18 华中科技大学 Network switching method and network switching device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802224A (en) * 2012-08-27 2012-11-28 东莞宇龙通信科技有限公司 Terminal and terminal network switching method
CN103024929A (en) * 2012-12-20 2013-04-03 惠州Tcl移动通信有限公司 Mobile terminal and method for connecting wireless network based on mobile terminal
CN103686900A (en) * 2012-09-26 2014-03-26 中国电信股份有限公司 A method for a mobile station to be switched to a WiFi network
CN104066150A (en) * 2013-03-20 2014-09-24 华为终端有限公司 Method and device for accessing WiFi network
CN104394510A (en) * 2013-12-21 2015-03-04 滁州惠智科技服务有限公司 Traffic saving method for mobile terminal
CN104427523A (en) * 2013-09-09 2015-03-18 中兴通讯股份有限公司 Network connection method and device
CN104581885A (en) * 2014-12-23 2015-04-29 广东欧珀移动通信有限公司 Automatic network connection switching method, device and system
CN104994547A (en) * 2015-05-21 2015-10-21 广东欧珀移动通信有限公司 Network access method and user terminal
CN105208184A (en) * 2014-06-30 2015-12-30 展讯通信(上海)有限公司 Method for mobile terminal to change situation and prompting item
CN105592515A (en) * 2016-01-28 2016-05-18 努比亚技术有限公司 Network switching device and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102802224A (en) * 2012-08-27 2012-11-28 东莞宇龙通信科技有限公司 Terminal and terminal network switching method
CN103686900A (en) * 2012-09-26 2014-03-26 中国电信股份有限公司 A method for a mobile station to be switched to a WiFi network
CN103024929A (en) * 2012-12-20 2013-04-03 惠州Tcl移动通信有限公司 Mobile terminal and method for connecting wireless network based on mobile terminal
CN104066150A (en) * 2013-03-20 2014-09-24 华为终端有限公司 Method and device for accessing WiFi network
CN104427523A (en) * 2013-09-09 2015-03-18 中兴通讯股份有限公司 Network connection method and device
CN104394510A (en) * 2013-12-21 2015-03-04 滁州惠智科技服务有限公司 Traffic saving method for mobile terminal
CN105208184A (en) * 2014-06-30 2015-12-30 展讯通信(上海)有限公司 Method for mobile terminal to change situation and prompting item
CN104581885A (en) * 2014-12-23 2015-04-29 广东欧珀移动通信有限公司 Automatic network connection switching method, device and system
CN104994547A (en) * 2015-05-21 2015-10-21 广东欧珀移动通信有限公司 Network access method and user terminal
CN105592515A (en) * 2016-01-28 2016-05-18 努比亚技术有限公司 Network switching device and method

Also Published As

Publication number Publication date
CN107454639A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN107454639B (en) Network automatic switching method, mobile terminal and storage medium
CN103024929B (en) A kind of method and mobile terminal connecting wireless network based on mobile terminal
CN105578569B (en) Network adjusting method and device
CN102647527B (en) A kind of intelligent communications terminal and service operation method, device
CN104794797A (en) Residential access control system and method based on Cloud proxy service
CN105472676B (en) Method for connecting network and device
CN106792491B (en) Network sharing method based on double cards and mobile terminal
CN103576839A (en) Facial recognition based terminal operation control device and method
CN104023129A (en) Power saving method and device thereof
CN106527166B (en) Control method and device of electric appliance
CN105278370A (en) Power-saving mode starting method and device
CN105282832A (en) Terminal power saving method and apparatus
CN105068632A (en) Terminal charging method and device and terminal
EP3131348B1 (en) Power consumption control method for wearable device, and wearable device
CN103260205A (en) Initiatively switching network connecting method and initiatively switching network connecting device
CN105101125B (en) The setting method and device of call forwarding
CN103781122A (en) Flow management device and method
CN104144251A (en) Bluetooth control method and device of mobile terminal
CN110312044B (en) Control method of WIFI module of mobile terminal, mobile terminal and storage medium
CN109062625A (en) The method, apparatus and readable storage medium storing program for executing of application program load
CN103404414A (en) Device and method for remote intelligent irrigation control through wireless communication terminal
CN106412342B (en) Positioning control method, positioning control device and terminal
CN112866983B (en) Control method, control device and electronic equipment
CN212518496U (en) Charging circuit and terminal
CN103118187A (en) Method for automatic switching of contextual modes and mobile phone

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