CN107360601A - A kind of method for switching network, mobile terminal and computer-readable recording medium - Google Patents
A kind of method for switching network, mobile terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107360601A CN107360601A CN201710701755.8A CN201710701755A CN107360601A CN 107360601 A CN107360601 A CN 107360601A CN 201710701755 A CN201710701755 A CN 201710701755A CN 107360601 A CN107360601 A CN 107360601A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- network
- router
- signal intensity
- switching
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/30—Reselection being triggered by specific parameters by measured or perceived connection quality data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/32—Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a kind of method for switching network, mobile terminal and computer-readable recording medium, wherein, method for switching network includes:In the state of the first network of mobile terminal connection the first router, the distance between mobile terminal and the first router are detected;If detecting, mobile terminal away from the first router, obtains the Program Type for the application program that mobile terminal is currently run, and detect the change in signal strength of the first router;If detect the signal intensity of the first router continuously less than default first threshold, and the duration more than the first preset duration, then the second network is switched to by the first network based on described program type, control mobile terminal.This programme can be good at solving the problems, such as being switched to the scheme poor real of mobile data network by WiFi in the prior art.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of method for switching network, mobile terminal and computer-readable
Storage medium.
Background technology
With the development of network service, mobile data network (LTE etc.) is developed rapidly, wireless (WiFi) network boom
Point is also more and more, supports WiFi wireless and data network (LTE etc.) online has become user and wanted for the indispensability of terminal
Ask, terminal online experience directly affects satisfaction of the user to product.
Usually, at home user typically using WiFi network (WiFi network of family) online listen song, see news, video,
Game etc. is played, but when user is away from home, is gone to work, more and more remote with the WiFi routers of family, user needs to use hand
Machine surfs the Net (seeing news etc.);Because user is away from home, WiFi signal constantly weakens, and is further continued for that using WiFi network network can be caused
For brush not out, it is necessary to which WiFi is disconnected manually, being connected to mobile data network can just see that user wants what is seen to information for a long time
News.
In order to change case above, a solution is provided in the prior art:User when using terminal is surfed the Net, from
Wirelessly being switched to mobile data network can be judged by the threshold value of WiFi signal intensity, specific as follows:
Start (mobile phone is surfed the Net using wireless network WiFi);WiFi current signal strengths are A, it is assumed that WiFi signal is less than threshold
During value C, WiFi network is disconnected;Compared with threshold value C, A is continuing with wireless network WiFi more than or equal to C mobile phones and surfed the Net A;A is small
WiFi network is disconnected in C mobile phones, is surfed the Net using mobile data network.
But the judgement of the above can bring a problem, when mobile phone is placed on the very low environment of antenna efficiency or user
During the router poor signal of family, it may appear that current WiFi signal intensity drops to below threshold value C, and mobile phone automatically switches to
Mobile data network is surfed the Net, and causing user, flow consumes unconsciously when using mobile phone, such as:User sleeps front lower at night
Some things are carried, it is possible that flow of waking up from a sleep consumes a lot of situations.Therefore, this scheme never has wide by terminal
It is general to adopt.
So still can just disconnect WiFi untill not connecting router at present, mobile data network is switched to, is caused
When WiFi signal is very weak, mobile phone can also connect router, and online the situation that can not brush information for a long time occurs, influences user
Experience.
The content of the invention
The embodiment of the present invention provides a kind of method for switching network, mobile terminal and computer-readable recording medium, to solve
The problem of scheme poor real of mobile data network is switched to by WiFi in the prior art.
In a first aspect, the embodiment of the present invention provides a kind of method for switching network, applied to mobile terminal, including:
In the state of the first network of mobile terminal connection the first router, detection mobile terminal and the first via by
The distance between device;
If detecting, mobile terminal away from the first router, obtains the application program that mobile terminal is currently run
Program Type, and detect the change in signal strength of the first router;
If detecting, the signal intensity of the first router exceedes continuously less than default first threshold, and duration
First preset duration, then the second network is switched to by the first network based on described program type, control mobile terminal.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:
First detection module, in the state of the first network of mobile terminal connection the first router, detection to be moved
The distance between terminal and the first router;
First processing module, if detecting mobile terminal away from the first router for the first detection module,
The Program Type for the application program that mobile terminal is currently run then is obtained, and the signal intensity for detecting the first router becomes
Change;
First control module, if the signal intensity for detecting the first router for the first processing module continues
Less than default first threshold, and the duration more than the first preset duration, then based on described program type, control mobile terminal
Second network is switched to by the first network.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including processor, memory and are stored in institute
The computer program that can be run on memory and on the processor is stated, when the computer program is by the computing device
The step of realizing above-mentioned method for switching network.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, described computer-readable to deposit
Computer program is stored with storage media, the computer program realizes above-mentioned method for switching network when being executed by processor
Step.
So, in the embodiment of the present invention, by the state of the first network of mobile terminal connection the first router, examining
Survey the distance between mobile terminal and the first router;If detecting, mobile terminal away from the first router, obtains
The Program Type for the application program that mobile terminal currently runs is taken, and detects the change in signal strength of the first router;If
The signal intensity of the first router is detected continuously less than default first threshold, and when the duration is default more than first
It is long, then the second network is switched to by the first network based on described program type, control mobile terminal;It can be directed on
The user of net leaves the situation of currently used Wi-Fi hotspot, and certain distance is exceeded between user and router and remains certain
After duration, just automatically switch to mobile data network online, there is preferable real-time, solve well in the prior art by
WiFi switches to the problem of scheme poor real of mobile data network.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the method for switching network schematic flow sheet one of the embodiment of the present invention;
Fig. 2 is the method for switching network schematic flow sheet two of the embodiment of the present invention;
Fig. 3 is the method for switching network schematic flow sheet three of the embodiment of the present invention;
Fig. 4 is the method for switching network schematic flow sheet four of the embodiment of the present invention;
Fig. 5 is the method for switching network schematic flow sheet five of the embodiment of the present invention;
Fig. 6 is the method for switching network schematic flow sheet six of the embodiment of the present invention;
Fig. 7 is the method for switching network schematic flow sheet seven of the embodiment of the present invention;
Fig. 8 is the mobile terminal locations schematic diagram of the embodiment of the present invention;
Fig. 9 is the method for switching network schematic flow sheet eight of the embodiment of the present invention;
Figure 10 is the method for switching network schematic flow sheet nine of the embodiment of the present invention;
Figure 11 is the method for switching network schematic flow sheet ten of the embodiment of the present invention;
The mobile terminal structure schematic diagram one of Figure 12 embodiment of the present invention;
The mobile terminal structure schematic diagram two of Figure 13 embodiment of the present invention;
The mobile terminal structure schematic diagram three of Figure 14 embodiment of the present invention;
The mobile terminal structure schematic diagram four of Figure 15 embodiment of the present invention;
The mobile terminal structure schematic diagram five of Figure 16 embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
The present invention is directed to the problem of scheme poor real of mobile data network is switched to by WiFi in existing technology, carries
For a kind of method for switching network, applied to mobile terminal, as shown in Figure 1, Figure 2 with shown in Figure 10, including:
Step 101:Mobile terminal connection the first router first network in the state of, detection mobile terminal with it is described
The distance between the first router.
I.e. in the state of mobile terminal connects wireless network, detect between mobile terminal and corresponding router away from
From.
For example, user mobile phone is not subjected to displacement, be used family fixation router (example of the first router,
Equally be example in illustrating below, be not intended as limiting) first network online, detect what mobile terminal and family were fixed in real time
The distance between router.
Step 102:If detecting mobile terminal away from the first router, what acquisition mobile terminal was currently run answers
With the Program Type of program, and detect the change in signal strength of the first router.
If the distance between the second moment mobile terminal and the first router are more than the first moment mobile terminal and the first via
By the distance between device, then it is assumed that mobile terminal is away from the first router, at the time of the second moment was after the first moment.
Such as:10 AM detects that the distance between router that mobile terminal and family are fixed is 1m, 10 AM
Extremely detect that the distance between router that mobile terminal is fixed with family is 3m, then it is assumed that mobile terminal is consolidated away from family
Fixed router.
Step 103:If detecting the signal intensity of the first router continuously less than default first threshold, and continue
Time more than the first preset duration, then switches to second based on described program type, control mobile terminal by the first network
Network.
I.e. when meeting switching condition, the network that mobile terminal connects is switched into the second network by first network.Second
Network can be mobile data network.
The occurrence of first threshold can determine that general big flow business is corresponding according to the current business of networking of mobile terminal
Signal intensity be more than signal intensity corresponding to small-flow service.
Such as:The signal intensity for the router that mobile terminal detection family is fixed is at 10 points between 30 ten minutes to 10:
It is less than 1db always, that is, signal intensity is continued above 20 minutes and is less than 1db always, then controls mobile terminal by described the
One network switching to the second network.
The method for switching network provided in an embodiment of the present invention in mobile terminal by connecting the first of the first router
In the state of network, the distance between mobile terminal and the first router are detected;If detect mobile terminal away from described
The first router, then obtain the Program Type for the application program that mobile terminal is currently run, and detects the first router
Change in signal strength;If detect the signal intensity of the first router continuously less than default first threshold, and continue
Between more than the first preset duration, then the second net is switched to by the first network based on described program type, control mobile terminal
Network;The situation that the user to surf the Net leaves currently used Wi-Fi hotspot can be directed to, is exceeded between user and router
After certain distance and maintenance certain time length, mobile data network online is just automatically switched to, there is preferable real-time, well
Solves the problems, such as the scheme poor real for switching to mobile data network by WiFi in the prior art.Meanwhile, it is capable to prevent from using
Family carries the situation generation that mobile terminal switches to mobile data network away from the WiFi being used temporarily.
As shown in Fig. 2 before the step of detection the distance between mobile terminal and the first router, the net
Network switching method also includes:
Step 104:By the gravity sensor or gyroscope of mobile terminal, whether the position for detecting mobile terminal becomes
Change.
When the gravity sensor of mobile terminal or the parameter value of gyroscope change, the position hair of mobile terminal is determined
Change is given birth to.
Step 105:If detecting, the position of mobile terminal changes, and obtains the network connection state of mobile terminal.
That is when the position of mobile terminal changes, the information for the network that terminal currently connects is obtained.
Such as:What whether acquisition mobile terminal connected is the router that family is fixed.
Step 106:If the network connection state of the mobile terminal is the state of the first network of connection the first router,
The step of then performing detection the distance between the mobile terminal and the first router.
I.e. according to the information of the network of the current connection of acquisition, the position of the first router is determined, and then is obtained mobile whole
The distance between end and the first router.
Such as:Mobile terminal connection be the router that family is fixed when, then obtain what mobile terminal and family were fixed
The distance between router.
As shown in figure 3, the step of detection the distance between mobile terminal and the first router, including:
Step 1011:At the first moment, the first position of mobile terminal is obtained.
Specifically, as shown in figure 4, described at the first moment, the step of obtaining the first position of mobile terminal, including:
Step 10111:At the first moment, the first signal intensity of the first router is obtained.
That is the first moment obtains the first signal intensity of the first router that mobile terminal detects.
Such as:10 AM extremely obtains the signal intensity for the router that the family that mobile terminal detects is fixed.
Step 10112:Obtain the signal intensity of at least one outside router.
Obtain the signal intensity for other routers that the mobile terminal in addition to the first router is able to detect that.
Such as:10 AM extremely obtains other routers outside the router that the family that mobile terminal detects is fixed
Signal intensity.
Step 10113:Signal intensity based on first signal intensity and at least one outside router, it is determined that
The first position of mobile terminal.
Specifically using indoor positioning principle, according to the first signal intensity and the signal intensity of outside router, it is determined that moving
The first position of dynamic terminal.
More specifically, it is as shown in figure 5, described based on first signal intensity and at least one outside router
Signal intensity, the step of determining the first position of mobile terminal, including:
Step 101131:Signal intensity based on first signal intensity and at least one outside router, really
Fixed at least one signal covering circle.
That is the signal of router is to be radiated using the position of router as the center of circle, and signal covering is a region,
A signal cover can be determined respectively to the first router and outside router.
Such as:Covering circle A is determined based on the first signal intensity, the signal intensity based at least one outside router determines
Covering circle B and C.
Step 101132:The cross-point locations of at least one signal covering circle are defined as first of mobile terminal
Put.
The position of the first signal intensity forms a circle, mobile terminal detection i.e. in the signal cover of the first router
The position of the signal intensity of the outside router arrived forms a circle, while meets position (two circle friendships of two signal intensities
The position of fork), be exactly mobile terminal position.
Such as:Covering circle A, B and C crosspoint are exactly the first position of mobile terminal.
Step 1012:At the second moment, the second place of mobile terminal is obtained.
Specifically, as shown in fig. 6, described at the second moment, the step of obtaining the second place of mobile terminal, including:
Step 10121:At the second moment, the secondary signal intensity of the first router is obtained;
That is the second moment obtains the secondary signal intensity for the first router that mobile terminal detects.
Such as:30 points of 10 AM obtains the signal intensity for the router that the family that mobile terminal detects is fixed.
Step 10122:Obtain the signal intensity of at least one outside router;
Obtain the signal intensity for other routers that the mobile terminal in addition to the first router is able to detect that.
Such as:30 points of 10 AM obtains other routers outside the router that the family that mobile terminal detects is fixed
Signal intensity.
Step 10123:Signal intensity based on the secondary signal intensity and at least one outside router, it is determined that
The second place of mobile terminal.
Specifically using indoor positioning principle, according to secondary signal intensity and the signal intensity of outside router, it is determined that moving
The second place of dynamic terminal.
More specifically, it is as shown in fig. 7, described based on the secondary signal intensity and at least one outside router
Signal intensity, the step of determining the second place of mobile terminal, including:
Step 101231:Signal intensity based on the secondary signal intensity and at least one outside router, really
Fixed at least one signal covering circle;
That is the signal of router is to be radiated using the position of router as the center of circle, and signal covering is a region,
A signal cover can be determined respectively to the first router and outside router.
Such as:Covering circle D is determined based on the first signal intensity, the signal intensity based at least one outside router determines
Covering circle E and F.
Step 101232:The cross-point locations of at least one signal covering circle are defined as to the second of mobile terminal
Put.
The position of secondary signal intensity forms a circle, mobile terminal detection i.e. in the signal cover of the first router
The position of the signal intensity of the outside router arrived forms a circle, while meets position (two circle friendships of two signal intensities
The position of fork), be exactly mobile terminal position.
Such as:Covering circle D, E and F crosspoint are exactly the second place of mobile terminal.
Step 1013:Obtain the 3rd position of the first router.
Specifically using indoor positioning principle, the 3rd position of the first router is obtained.
Such as:3rd position of the router fixed based on Mac address acquisitions family.
Step 1014:If the distance between the second place and described 3rd position be more than the first position with it is described
The distance between 3rd position, it is determined that mobile terminal is away from the first router;Wherein, second moment is described the
At the time of after one time at intervals preset duration.
Such as:The distance between the second place and the 3rd position are 3m, and the distance between first position and the 3rd position are
1m, the distance between the second place and the 3rd position are more than the distance between first position and the 3rd position, it is determined that mobile whole
The router that end is fixed away from family.
Specifically according to indoor positioning technologies mobile terminal can be confirmed whether away from currently used router.
On indoor positioning technologies:
Because each Wi-Fi hotspot has a unique Mac address, mobile terminal will be certainly after opening WiFi
It is dynamic to scan focus nearby and upload its positional information, establish a hotspot location database.This database can be used for movement
Terminal is positioned.If some Wi-Fi hotspot has been gone up in mobile terminal connection, then can calls all heat near in database
The geographical location information of point, and server can calculate the general geographic location of equipment with reference to the signal strength of each focus.
The principle of WiFi positioning:
Each wireless aps (router) has a globally unique MAC Address, and in general family or does
Public room will not be moved using wireless aps;Equipment is in the case where opening WiFi, you can no matter scans and collects the AP signals of surrounding
Whether encrypt, if connected, or even signal intensity is not enough to be shown in wireless signal list, can get AP broadcast
MAC Address out;These data that can indicate AP are sent to location server by mobile terminal, and server retrieves each
Individual AP geographical position, and the degree of strength of each signal is combined, calculate the geographical position of mobile terminal and return to movement
Terminal;Location-based service business will constantly update, supplement the database of oneself, to ensure the accuracy of data.
Schematic diagram is positioned as shown in figure 8, the signal intensity that mobile terminal receives each AP is respectively A1, A2, A3, signal is strong
The crosspoint of degree is mobile terminal current location, specific as follows:
Each fixed AP (wireless device such as WiFi, BT) uploads onto the server the positional information of oneself, server note
The each fixed AP of record positional information (real-time update);
Mobile terminal detects that the signal intensity currently surfed the Net is A2, and the wireless device letter of other two or the above
Number intensity is respectively that A2, A3, A4 mobile terminal upload onto the server these information, and server is according to these
Information, calculate the positional information S1 of mobile terminal;The signal intensity of wireless aps, scanning are arrived i.e. around mobile terminal real time scan
Information upload onto the server, server determines mobile terminal current location information S1 according to mobile terminal reporting information, feeds back
It is given to mobile terminal;Positional information includes:With each AP distance, and relative to what direction of each AP etc..
Interval of time (assuming that 0.5s), mobile terminal is also surfed the Net using router, and mobile terminal WiFi is detected
The signal intensity that mobile terminal is currently surfed the Net is B1, and the wireless device signal intensity of other two or the above is respectively
B2, B3, B4 mobile terminal upload onto the server these information, and server calculates according to these information
The positional information S2 of mobile terminal;
According to location information of mobile terminal, the movement locus of mobile terminal is determined.I.e. mobile terminal is believed according to two positions
Cease the movement locus that S1 and S2 cans confirm mobile terminal.Constantly circulation, so as to realize indoor positioning.
As shown in figure 9, described be based on described program type, control mobile terminal switches to the second net by the first network
The step of network, including:
Step 1031:If described program type is the default first kind, the mobile terminal is controlled by described first
Network switching is to the second network.
The first kind corresponds to small-flow service (for example seeing news, novel etc.), it is not necessary to user's manual confirmation, and not
Mobile terminal flow can be caused largely to be lost in, improve Consumer's Experience.
Such as:Program Type is text services type, will not also cause to flow even if by network switching to mobile data network
Amount is a large amount of to be lost in, so the signal intensity for the router fixed to home in mobile terminal detection is continued above 20 minutes always
Less than 1db, then directly mobile terminal is controlled to switch to the second network (mobile data network) by the first network, without
User additionally confirms.
As shown in Figure 10, described to be based on described program type, control mobile terminal switches to second by the first network
The step of network, including:
Step 1032:If described program type is default Second Type, display reminding information, the prompt message is used
In prompting the user whether to switch to second network.
Second Type corresponds to big flow business (for example see video, play game etc.).
Such as:Program Type is video traffic type, flow can be caused largely to flow network switching to mobile data network
Lose, so the signal intensity for the router fixed to home in mobile terminal detection is continued above 20 minutes and is less than 1db always
When, it is necessary to prompt user to carry out network switching, prompt message such as " whether by network switching to mobile data network ".
Step 1033:If receiving the network switching instruction of user's input, control the mobile terminal even by described the
One network switching to the second network.
Such a scheme needs user's manual confirmation, is to prevent the involuntary loss of customer mobile terminal flow.
Such as:User have selected the option of "Yes" for prompt message " whether by network switching to mobile data network ",
It has input network switching instruction, then it is assumed that have passed through the confirmation of user, and then control mobile terminal to be cut by the first network
Shift to the second network (mobile data network).
As shown in figure 11, described to be based on described program type, control mobile terminal switches to second by the first network
After network, the method for switching network also includes:
Step 107:If detect the distance between mobile terminal and the first router continuously less than default second
Threshold value, and the duration more than the second preset duration, then control the mobile terminal by second network switching to described
One network.
This operation can prevent user from carrying mobile terminal and causing mobile data by once used WiFi temporarily
Network switching to the situation that WiFi disconnects again occurs.
Such as:Detect the distance between router that mobile terminal and family are fixed 10 points 40 minutes to 10: 50
/ it is less than 2m always, that is, distance is continued above 20 minutes and is less than 2m always, then controls mobile terminal by described the
Two networks (mobile data network) switch to first network (wireless network corresponding to the router that family is fixed).
From the foregoing, it will be observed that method for switching network provided in an embodiment of the present invention is by detecting the signal of the first router
Intensity continuous is less than default first threshold, and the duration more than the first preset duration, then based on described program type, control
Mobile terminal switches to the second network by the first network;Can preventing user from carrying, mobile terminal is temporarily remote to be used
WiFi and switch to mobile data network situation occur;By detecting between mobile terminal and the first router
Distance continuously less than default Second Threshold, and the duration more than the second preset duration, then control the mobile terminal by institute
The second network switching is stated to the first network;It can prevent user from carrying mobile terminal temporarily by once used WiFi
And cause mobile data network to switch to the situation of WiFi disconnections and occur.
The embodiment of the present invention additionally provides a kind of mobile terminal, as shown in Figure 12 to Figure 14, including:
First detection module 121, in the state of the first network of mobile terminal connection the first router, detection to move
Dynamic the distance between terminal and the first router;
First processing module 122, if for the first detection module detect mobile terminal away from the first via by
Device, then obtain the Program Type for the application program that mobile terminal is currently run, and detects the signal intensity of the first router
Change;
First control module 123, if detecting the signal intensity of the first router for the first processing module
Continuously less than default first threshold, and the duration more than the first preset duration, then based on described program type, control movement
Terminal switches to the second network by the first network.
The mobile terminal provided in an embodiment of the present invention passes through the first network in mobile terminal connection the first router
In the state of, detect the distance between mobile terminal and the first router;If detect mobile terminal away from described first
Router, then obtain the Program Type for the application program that mobile terminal is currently run, and detects the signal of the first router
Strength Changes;If detecting, the signal intensity of the first router surpasses continuously less than default first threshold, and duration
The first preset duration is crossed, then the second network is switched to by the first network based on described program type, control mobile terminal;Energy
Enough situations for being directed to the user to surf the Net and leaving currently used Wi-Fi hotspot, more than a spacing between user and router
From and maintain certain time length after, just automatically switch to mobile data network online, there is preferable real-time, solve well
The problem of scheme poor real of mobile data network is switched to by WiFi in the prior art.Meanwhile, it is capable to prevent user from carrying
The situation that mobile terminal switches to mobile data network away from the WiFi being used temporarily occurs.
As shown in figure 13, the mobile terminal also includes:
Second detection module 124, for the first detection module 121 detection mobile terminal and the first router it
Between distance before, by the gravity sensor or gyroscope of mobile terminal, whether the position for detecting mobile terminal changes;
First acquisition module 125, if detecting that the position of mobile terminal changes for second detection module,
Obtain the network connection state of mobile terminal;
First execution module 126, if the network connection state for the mobile terminal is the of connection the first router
The state of one network, then perform the operation of the distance between the detection mobile terminal and the first router.
Wherein, the first detection module includes:First acquisition submodule, in the first moment, acquisition mobile terminal
First position;Second acquisition submodule, at the second moment, obtaining the second place of mobile terminal;3rd obtains submodule
Block, for obtaining the 3rd position of the first router;First determination sub-module, if being obtained for second acquisition submodule
The distance between the 3rd position that the second place taken obtains with the 3rd acquisition submodule is more than described first and obtains submodule
The distance between the 3rd position that the first position that block obtains obtains with the 3rd acquisition submodule, it is determined that mobile terminal is remote
From the first router;Wherein, at the time of second moment is after the first time at intervals preset duration.
Specifically, first acquisition submodule includes:First acquisition unit, at the first moment, obtaining described the
First signal intensity of one router;Second acquisition unit, for obtaining the signal intensity of at least one outside router;First
Determining unit, obtained extremely for the first signal intensity obtained based on the first acquisition unit and the second acquisition unit
The signal intensity of a few outside router, determine the first position of mobile terminal.
More specifically, first determining unit includes:First determination subelement, for based on first signal intensity
With the signal intensity of at least one outside router, at least one signal covering circle is determined;Second determination subelement, is used for
The cross-point locations at least one signal covering circle that first determination subelement is determined are defined as the first of mobile terminal
Position.
Specifically, second acquisition submodule includes:3rd acquiring unit, at the second moment, obtaining described the
The secondary signal intensity of one router;4th acquiring unit, for obtaining the signal intensity of at least one outside router;Second
Determining unit, obtained extremely for the secondary signal intensity obtained based on the 4th acquiring unit and the 4th acquiring unit
The signal intensity of a few outside router, determine the second place of mobile terminal.
More specifically, second determining unit includes:3rd determination subelement, for based on the secondary signal intensity
With the signal intensity of at least one outside router, at least one signal covering circle is determined;4th determination subelement, is used for
The cross-point locations at least one signal covering circle that 3rd determination subelement is determined are defined as the second of mobile terminal
Position.
In the present embodiment, first control module includes:First control submodule, if being pre- for described program type
If the first kind, then control the mobile terminal to switch to the second network by the first network.
Further, first control module includes:First prompting submodule, if being default for described program type
Second Type, then display reminding information, the prompt message are used to prompt the user whether to switch to second network;Second control
System module, if the network switching instruction for receiving user's input, controls the mobile terminal even by first net
Network switches to the second network.
As shown in figure 14, the mobile terminal also includes:
Second control module 127, described program type is based on for first control module 123, controls mobile terminal
After switching to the second network by the first network, if detecting, the distance between mobile terminal and described the first router are held
It is continuous to be less than default Second Threshold, and the duration more than the second preset duration, then control the mobile terminal by described second
Network switching is to the first network.
Mobile terminal provided in an embodiment of the present invention can prevent user from carrying mobile terminal temporarily by once using
WiFi and cause that mobile data network switches to the situation of WiFi disconnections or user carries mobile terminal temporarily away from
The WiFi that uses and the situation that switches to mobile data network occurs.
Wherein, the described of above-mentioned method for switching network realizes embodiment suitable for the embodiment of the mobile terminal,
Identical technique effect can be reached.
The embodiment of the present invention also provides a kind of mobile terminal, including processor, memory, is stored on the memory simultaneously
The computer program that can be run on the processor, above-mentioned network is realized when the computer program is by the computing device
Each process of switching method embodiment, and identical technique effect can be reached, to avoid repeating, repeat no more here.
The embodiment of the present invention also provides a kind of computer-readable recording medium, is stored on the computer-readable recording medium
There is computer program, the computer program realizes each mistake of above-mentioned method for switching network embodiment when being executed by processor
Journey, and identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable storage medium
Matter, such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access
Memory, abbreviation RAM), magnetic disc or CD etc..
The embodiment of the present invention additionally provides a kind of mobile terminal, and as shown in figure 15, mobile terminal 1500 includes:
At least one processor 1501, memory 1502, at least one network interface 1504 and user interface 1503.It is mobile
Each component in terminal 1500 is coupled by bus system 1505.It is understood that bus system 1505 is used to realize this
Connection communication between a little components.Bus system 1505 in addition to including data/address bus, in addition to power bus, controlling bus and
Status signal bus in addition.But for the sake of clear explanation, various buses are all designated as bus system 1505 in fig.15.
Wherein, user interface 1503 can include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 1502 in the embodiment of the present invention can be volatile memory or non-volatile memories
Device, or may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage
(Read-Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), erasable programmable are only
Read memory (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM,
) or flash memory EEPROM.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used
Make External Cache.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static random-access
Memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), synchronous dynamic random-access
Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data
Rate SDRAM, DDRSDRAM), it is enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronous
Connect dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory
(Direct Rambus RAM, DRRAM).The memory 1502 of system and method described herein be intended to including but not limited to this
A little and any other suitable type memory.
In some embodiments, memory 1502 stores following element, can perform module or data structure, or
Their subset of person, or their superset:Operating system 15021 and application program 15022.
Wherein, operating system 15021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for
Realize various basic businesses and the hardware based task of processing.Application program 15022, include various application programs, such as matchmaker
Body player (Media Player), browser (Browser) etc., for realizing various applied business.Realize that the present invention is implemented
The program of example method may be embodied in application program 15022.
In embodiments of the present invention, mobile terminal 1500 also includes:It is stored on memory 1502 and can be in processor
The computer program run on 1501, computer program realize following steps when being performed by processor 1501:Connect in mobile terminal
In the state of connecing the first network of the first router, the distance between mobile terminal and the first router are detected;If detection
To mobile terminal away from the first router, then the Program Type for the application program that mobile terminal is currently run is obtained, and examine
Survey the change in signal strength of the first router;If detect the signal intensity of the first router continuously less than default
First threshold, and the duration more than the first preset duration, then based on described program type, control mobile terminal is by described first
Network switching is to the second network.
The method that the embodiments of the present invention disclose can apply in processor 1501, or real by processor 1501
It is existing.Processor 1501 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method
Each step can be completed by the instruction of the integrated logic circuit of the hardware in processor 1501 or software form.Above-mentioned
Processor 1501 can be general processor, digital signal processor (Digital Signal Processor, DSP), special
Integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,
Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor
And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only
In the ripe computer-readable recording medium in this area such as memory or electrically erasable programmable memory, register.The meter
Calculation machine readable storage medium storing program for executing is located at memory 1502, and processor 1501 reads the information in memory 1502, complete with reference to its hardware
The step of into the above method.Specifically, computer program is stored with the computer-readable recording medium, computer program is located
Manage each step realized when device 1501 performs such as above-mentioned high dynamic range images image pickup method embodiment.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its
Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized herein by performing the module (such as process, function etc.) of function described herein for software
Described technology.Software code is storable in memory and passes through computing device.Memory can within a processor or
Realized outside processor.
Alternatively, following steps can be also realized when computer program is performed by processor 1501:The detection mobile terminal
Before the step of the distance between described the first router, by the gravity sensor or gyroscope of mobile terminal, detection moves
Whether the position of dynamic terminal changes;If detecting, the position of mobile terminal changes, and obtains the network of mobile terminal
Connection status;If the network connection state of the mobile terminal is the state of the first network of connection the first router, perform
The step of detection the distance between mobile terminal and the first router.
Alternatively, following steps can be realized when computer program is performed by processor 1501:At the first moment, movement is obtained
The first position of terminal;At the second moment, the second place of mobile terminal is obtained;Obtain the 3rd of the first router
Put;If the distance between the second place and the 3rd position are more than between the first position and the 3rd position
Distance, it is determined that mobile terminal is away from the first router;Wherein, second moment is that first time at intervals is preset
At the time of after duration.
Alternatively, following steps specifically can be achieved when computer program is performed by processor 1501:At the first moment, obtain
First signal intensity of the first router;Obtain the signal intensity of at least one outside router;Based on the described first letter
The signal intensity of number intensity and at least one outside router, determine the first position of mobile terminal.
Alternatively, following steps more specifically can be also realized when computer program is performed by processor 1501:Based on described
The signal intensity of one signal intensity and at least one outside router, determine at least one signal covering circle;By described in extremely
The cross-point locations of few signal covering circle are defined as the first position of mobile terminal.
Alternatively, following steps specifically can be also realized when computer program is performed by processor 1501:At the second moment, obtain
Take the secondary signal intensity of the first router;Obtain the signal intensity of at least one outside router;Based on described second
The signal intensity of signal intensity and at least one outside router, determine the second place of mobile terminal.
Alternatively, following steps more specifically can be also realized when computer program is performed by processor 1501:Based on described
The signal intensity of binary signal intensity and at least one outside router, determine at least one signal covering circle;By described in extremely
The cross-point locations of few signal covering circle are defined as the second place of mobile terminal.
Alternatively, following steps specifically can be achieved when computer program is performed by processor 1501:If described program type
For the default first kind, then the mobile terminal is controlled to switch to the second network by the first network.
Alternatively, following steps specifically can be also realized when computer program is performed by processor 1501:If described program class
Type is default Second Type, then display reminding information, and the prompt message is used to prompt the user whether to switch to described second
Network;If receiving the network switching instruction of user's input, the mobile terminal is controlled even to be switched to by the first network
Second network.
Alternatively, following steps can be also realized when computer program is performed by processor 1501:It is described to be based on described program
Type, after control mobile terminal switches to the second network by the first network, if detecting mobile terminal and described first
The distance between router continuously less than default Second Threshold, and the duration more than the second preset duration, then described in control
Mobile terminal is by second network switching to the first network.
Mobile terminal 1500 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, this
In repeat no more.
To sum up, the mobile terminal provided in an embodiment of the present invention can prevent user from carrying mobile terminal temporarily by once
Cause through used WiFi mobile data network switch to WiFi disconnection situation or user carry mobile terminal it is interim
The situation that mobile data network is switched to away from the WiFi being used occurs.
The embodiment of the present invention additionally provides a kind of mobile terminal, specifically, as shown in figure 16, the shifting in the embodiment of the present invention
Dynamic terminal 1600 can be mobile phone, tablet personal computer, personal digital assistant (Personal Digital Assistant, PDA) or
Vehicle-mounted computer etc..
Mobile terminal 1600 in Figure 16 include radio frequency (Radio Frequency, RF) circuit 1610, memory 1620,
Input block 1630, display unit 1640, processor 1660, voicefrequency circuit 1670, WiFi (Wireless Fidelity) module
1680 and power supply 1690.
Wherein, input block 1630 is available for the numeral or character information for receiving user's input, and generation and movement are eventually
The signal input that the user at end 1600 is set and function control is relevant.Specifically, in the embodiment of the present invention, the input block
1630 can include contact panel 1631.Contact panel 1631, also referred to as touch-screen, collect user's touching on or near it
Operation (for example user uses the operations of any suitable object or annex on contact panel 1631 such as finger, stylus) is touched, and
Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 1631 may include touch detecting apparatus and
Two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect the letter that touch operation is brought
Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into
Contact coordinate, then give the processor 1660, and the order sent of reception processing device 1660 and can be performed.Furthermore, it is possible to
Contact panel 1631 is realized using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1631, input block 1630 can also include other input equipments 1632, and other input equipments 1632 can include but is not limited to
One kind or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
Kind.
Wherein, display unit 1640 can be used for display by the information of user's input or be supplied to information and the movement of user
The various menu interfaces of terminal 1600.Display unit 1640 may include display panel 1641, optionally, can use LCD or have
The forms such as machine light emitting diode (Organic Light-Emitting Diode, OLED) configure display panel 1641.
It should be noted that contact panel 1631 can cover display panel 1641, touch display screen is formed, when the touch display screen
After detecting the touch operation on or near it, processor 1660 is sent to determine the type of touch event, is followed by subsequent processing
Device 1660 provides corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and conventional control viewing area.The Application Program Interface viewing area
And arrangement mode of the conventional control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface element such as the icon comprising at least one application program and/or widget desktop controls.The Application Program Interface viewing area
It can also be the empty interface not comprising any content.The conventional control viewing area is used to show the higher control of utilization rate, for example,
Application icons such as settings button, interface numbering, scroll bar, phone directory icon etc..
Wherein processor 1660 is the control centre of mobile terminal 1600, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or performing the software program and/or module that are stored in first memory 1621, and call and deposit
The data in second memory 1622 are stored up, perform the various functions and processing data of mobile terminal 1600, so as to mobile whole
End 1600 carries out integral monitoring.Optionally, processor 1660 may include one or more processing units.
In embodiments of the present invention, mobile terminal 1600 also includes:It is stored in the storage of first memory 1621 and/or second
In device 1622, and the computer program that can be run on processor 1660, computer program are realized when being performed by processor 1660
Following steps:In the state of the first network of mobile terminal connection the first router, detection mobile terminal and the first via
By the distance between device;If detecting mobile terminal away from the first router, what acquisition mobile terminal was currently run answers
With the Program Type of program, and detect the change in signal strength of the first router;If detect the first router
Signal intensity continuously less than default first threshold, and the duration more than the first preset duration, then based on described program type,
Control mobile terminal switches to the second network by the first network.
Alternatively, following steps can be also realized when computer program is performed by processor 1660:The detection mobile terminal
Before the step of the distance between described the first router, by the gravity sensor or gyroscope of mobile terminal, detection moves
Whether the position of dynamic terminal changes;If detecting, the position of mobile terminal changes, and obtains the network of mobile terminal
Connection status;If the network connection state of the mobile terminal is the state of the first network of connection the first router, perform
The step of detection the distance between mobile terminal and the first router.
Alternatively, following steps can be realized when computer program is performed by processor 1660:At the first moment, movement is obtained
The first position of terminal;At the second moment, the second place of mobile terminal is obtained;Obtain the 3rd of the first router
Put;If the distance between the second place and the 3rd position are more than between the first position and the 3rd position
Distance, it is determined that mobile terminal is away from the first router;Wherein, second moment is that first time at intervals is preset
At the time of after duration.
Alternatively, following steps specifically can be achieved when computer program is performed by processor 1660:At the first moment, obtain
First signal intensity of the first router;Obtain the signal intensity of at least one outside router;Based on the described first letter
The signal intensity of number intensity and at least one outside router, determine the first position of mobile terminal.
Alternatively, following steps more specifically can be also realized when computer program is performed by processor 1660:Based on described
The signal intensity of one signal intensity and at least one outside router, determine at least one signal covering circle;By described in extremely
The cross-point locations of few signal covering circle are defined as the first position of mobile terminal.
Alternatively, following steps specifically can be also realized when computer program is performed by processor 1660:At the second moment, obtain
Take the secondary signal intensity of the first router;Obtain the signal intensity of at least one outside router;Based on described second
The signal intensity of signal intensity and at least one outside router, determine the second place of mobile terminal.
Alternatively, following steps more specifically can be also realized when computer program is performed by processor 1660:Based on described
The signal intensity of binary signal intensity and at least one outside router, determine at least one signal covering circle;By described in extremely
The cross-point locations of few signal covering circle are defined as the second place of mobile terminal.
Alternatively, following steps specifically can be achieved when computer program is performed by processor 1660:If described program type
For the default first kind, then the mobile terminal is controlled to switch to the second network by the first network.
Alternatively, following steps specifically can be also realized when computer program is performed by processor 1660:If described program class
Type is default Second Type, then display reminding information, and the prompt message is used to prompt the user whether to switch to described second
Network;If receiving the network switching instruction of user's input, the mobile terminal is controlled even to be switched to by the first network
Second network.
Alternatively, following steps can be also realized when computer program is performed by processor 1660:It is described to be based on described program
Type, after control mobile terminal switches to the second network by the first network, if detecting mobile terminal and described first
The distance between router continuously less than default Second Threshold, and the duration more than the second preset duration, then described in control
Mobile terminal is by second network switching to the first network.
It can be seen that the mobile terminal provided in an embodiment of the present invention can prevent user from carrying mobile terminal temporarily by once
Cause through used WiFi mobile data network switch to WiFi disconnection situation or user carry mobile terminal it is interim
The situation that mobile data network is switched to away from the WiFi being used occurs.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through
Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only
A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
It should also be noted that, herein, such as first and second or the like relational terms are used merely to one
Entity or operation make a distinction with another entity or operation, and not necessarily require or imply between these entities or operation
Any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant are intended to contain
Lid nonexcludability includes, so that process, method, article or terminal device including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of terminal device.In the absence of more restrictions, the key element limited by sentence "including a ...", and
It is not precluded within the process including the key element, method, article or terminal device and other identical element is also present.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.
Claims (22)
- A kind of 1. method for switching network, applied to mobile terminal, it is characterised in that including:In the state of the first network of mobile terminal connection the first router, detection mobile terminal and the first router it Between distance;If detect the program for the application program that mobile terminal is currently run away from the first router, acquisition mobile terminal Type, and detect the change in signal strength of the first router;If the signal intensity of the first router is detected continuously less than default first threshold, and the duration is more than first Preset duration, then the second network is switched to by the first network based on described program type, control mobile terminal.
- 2. method for switching network according to claim 1, it is characterised in that the detection mobile terminal and the first via Before the step of the distance between device, the method for switching network also includes:By the gravity sensor or gyroscope of mobile terminal, whether the position for detecting mobile terminal changes;If detecting, the position of mobile terminal changes, and obtains the network connection state of mobile terminal;If the network connection state of the mobile terminal is the state of the first network of connection the first router, the inspection is performed The step of surveying the distance between mobile terminal and the first router.
- 3. method for switching network according to claim 1, it is characterised in that the detection mobile terminal and the first via The step of by the distance between device, including:At the first moment, the first position of mobile terminal is obtained;At the second moment, the second place of mobile terminal is obtained;Obtain the 3rd position of the first router;If the distance between the second place and the 3rd position are more than between the first position and the 3rd position Distance, it is determined that mobile terminal is away from the first router;Wherein, at the time of second moment is after the first time at intervals preset duration.
- 4. method for switching network according to claim 3, it is characterised in that described in the first moment, acquisition mobile terminal First position the step of, including:At the first moment, the first signal intensity of the first router is obtained;Obtain the signal intensity of at least one outside router;Signal intensity based on first signal intensity and at least one outside router, determines the first of mobile terminal Position.
- 5. method for switching network according to claim 4, it is characterised in that described to be based on first signal intensity and institute The signal intensity of at least one outside router is stated, the step of determining the first position of mobile terminal, including:Signal intensity based on first signal intensity and at least one outside router, determine that at least one signal covers Decorative cover;The cross-point locations of at least one signal covering circle are defined as to the first position of mobile terminal.
- 6. method for switching network according to claim 3, it is characterised in that described in the second moment, acquisition mobile terminal The second place the step of, including:At the second moment, the secondary signal intensity of the first router is obtained;Obtain the signal intensity of at least one outside router;Signal intensity based on the secondary signal intensity and at least one outside router, determines the second of mobile terminal Position.
- 7. method for switching network according to claim 6, it is characterised in that described to be based on the secondary signal intensity and institute The signal intensity of at least one outside router is stated, the step of determining the second place of mobile terminal, including:Signal intensity based on the secondary signal intensity and at least one outside router, determine that at least one signal covers Decorative cover;The cross-point locations of at least one signal covering circle are defined as to the second place of mobile terminal.
- 8. method for switching network according to claim 1, it is characterised in that described to be based on described program type, control moves The step of dynamic terminal switches to the second network by the first network, including:If described program type is the default first kind, the mobile terminal is controlled to switch to second by the first network Network.
- 9. method for switching network according to claim 1, it is characterised in that described to be based on described program type, control moves The step of dynamic terminal switches to the second network by the first network, including:If described program type is default Second Type, display reminding information, the prompt message is for prompting user It is no to switch to second network;If receiving the network switching instruction of user's input, the mobile terminal is controlled even to switch to the by the first network Two networks.
- 10. method for switching network according to claim 8 or claim 9, it is characterised in that described to be based on described program type, control After mobile terminal processed switches to the second network by the first network, the method for switching network also includes:If detect the distance between mobile terminal and the first router continuously less than default Second Threshold, and continue Between more than the second preset duration, then control the mobile terminal by second network switching to the first network.
- A kind of 11. mobile terminal, it is characterised in that including:First detection module, in the state of the first network of mobile terminal connection the first router, detecting mobile terminal The distance between described the first router;First processing module, if detecting that mobile terminal away from the first router, obtains for the first detection module The Program Type for the application program that mobile terminal currently runs is taken, and detects the change in signal strength of the first router;First control module, if for the first processing module detect the signal intensity of the first router continuously less than Default first threshold, and the duration more than the first preset duration, then based on described program type, control mobile terminal is by institute State first network and switch to the second network.
- 12. mobile terminal according to claim 11, it is characterised in that the mobile terminal also includes:Second detection module, for the first detection module detection the distance between mobile terminal and the first router it Before, by the gravity sensor or gyroscope of mobile terminal, whether the position for detecting mobile terminal changes;First acquisition module, if detecting that the position of mobile terminal changes for second detection module, obtain and move The network connection state of dynamic terminal;First execution module, if the network connection state for the mobile terminal is the first network of connection the first router State, then perform the operation of the distance between the detection mobile terminal and the first router.
- 13. mobile terminal according to claim 11, it is characterised in that the first detection module includes:First acquisition submodule, at the first moment, obtaining the first position of mobile terminal;Second acquisition submodule, at the second moment, obtaining the second place of mobile terminal;3rd acquisition submodule, for obtaining the 3rd position of the first router;First determination sub-module, if for the second place that second acquisition submodule obtains and the 3rd acquisition submodule The distance between the 3rd position obtained is more than the first position that first acquisition submodule obtains and obtains son with the described 3rd The distance between the 3rd position that module obtains, it is determined that mobile terminal is away from the first router;Wherein, at the time of second moment is after the first time at intervals preset duration.
- 14. mobile terminal according to claim 13, it is characterised in that first acquisition submodule includes:First acquisition unit, at the first moment, obtaining the first signal intensity of the first router;Second acquisition unit, for obtaining the signal intensity of at least one outside router;First determining unit, for the first signal intensity obtained based on the first acquisition unit and the second acquisition unit The signal intensity of at least one outside router obtained, determine the first position of mobile terminal.
- 15. mobile terminal according to claim 14, it is characterised in that first determining unit includes:First determination subelement is strong for the signal based on first signal intensity and at least one outside router Degree, determine at least one signal covering circle;Second determination subelement, for the crosspoint position at least one signal covering circle for determining first determination subelement Put the first position for being defined as mobile terminal.
- 16. mobile terminal according to claim 13, it is characterised in that second acquisition submodule includes:3rd acquiring unit, at the second moment, obtaining the secondary signal intensity of the first router;4th acquiring unit, for obtaining the signal intensity of at least one outside router;Second determining unit, for the secondary signal intensity obtained based on the 4th acquiring unit and the 4th acquiring unit The signal intensity of at least one outside router obtained, determine the second place of mobile terminal.
- 17. mobile terminal according to claim 16, it is characterised in that second determining unit includes:3rd determination subelement is strong for the signal based on the secondary signal intensity and at least one outside router Degree, determine at least one signal covering circle;4th determination subelement, for the crosspoint position at least one signal covering circle for determining the 3rd determination subelement Put the second place for being defined as mobile terminal.
- 18. mobile terminal according to claim 11, it is characterised in that first control module includes:First control submodule, if being the default first kind for described program type, the mobile terminal is controlled by institute State first network and switch to the second network.
- 19. mobile terminal according to claim 11, it is characterised in that first control module includes:First prompting submodule, if being default Second Type for described program type, display reminding information, the prompting Information is used to prompt the user whether to switch to second network;Second control submodule, if the network switching instruction for receiving user's input, control the mobile terminal even by The first network switches to the second network.
- 20. the mobile terminal according to claim 18 or 19, it is characterised in that the mobile terminal also includes:Second control module, described program type is based on for first control module, control mobile terminal is by described first After network switching to the second network, if detecting the distance between mobile terminal and the first router continuously less than default Second Threshold, and the duration more than the second preset duration, then control the mobile terminal by second network switching extremely The first network.
- 21. a kind of mobile terminal, it is characterised in that including processor, memory and be stored on the memory and can be in institute State the computer program run on processor, the computer program realized during the computing device as claim 1 to The step of method for switching network any one of 10.
- 22. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, the network switching side as any one of claim 1 to 10 is realized when the computer program is executed by processor The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710701755.8A CN107360601A (en) | 2017-08-16 | 2017-08-16 | A kind of method for switching network, mobile terminal and computer-readable recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710701755.8A CN107360601A (en) | 2017-08-16 | 2017-08-16 | A kind of method for switching network, mobile terminal and computer-readable recording medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107360601A true CN107360601A (en) | 2017-11-17 |
Family
ID=60286930
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710701755.8A Pending CN107360601A (en) | 2017-08-16 | 2017-08-16 | A kind of method for switching network, mobile terminal and computer-readable recording medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107360601A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108318042A (en) * | 2018-01-29 | 2018-07-24 | 广东欧珀移动通信有限公司 | Navigation mode-switching method, device, terminal and storage medium |
CN108601052A (en) * | 2018-04-04 | 2018-09-28 | 天地融科技股份有限公司 | A kind of wireless network switching method |
CN108632935A (en) * | 2018-04-04 | 2018-10-09 | 天地融科技股份有限公司 | A kind of WIFI network switching method |
CN108966225A (en) * | 2018-06-11 | 2018-12-07 | 四川斐讯信息技术有限公司 | A kind of method and system of the anti-loiter network of router |
CN109495939A (en) * | 2019-01-25 | 2019-03-19 | 努比亚技术有限公司 | Method for switching network, device, mobile terminal and computer readable storage medium |
CN109618320A (en) * | 2019-01-15 | 2019-04-12 | Oppo广东移动通信有限公司 | The method and device of radio roaming |
CN111630883A (en) * | 2020-03-20 | 2020-09-04 | 北京小米移动软件有限公司 | Method, device, communication equipment and storage medium for transmitting data |
CN112422642A (en) * | 2020-10-30 | 2021-02-26 | 深圳Tcl新技术有限公司 | Network connection control method, system, device and storage medium |
CN112740759A (en) * | 2018-09-28 | 2021-04-30 | 谷歌有限责任公司 | Method and apparatus for proactive handover between available networks |
CN113079525A (en) * | 2020-01-06 | 2021-07-06 | 瑞昱新加坡有限公司 | Method and apparatus for client steering control in a multi-access point network |
US11558479B2 (en) * | 2018-03-30 | 2023-01-17 | Beijing Boe Technology Development Co., Ltd. | Access method, internet of things platform, application device, service device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794681A (en) * | 2005-12-29 | 2006-06-28 | 上海贝豪通讯电子有限公司 | Switchover method between 3G network and WIFI network based on location information |
CN102958048A (en) * | 2011-08-26 | 2013-03-06 | 中国移动通信集团山东有限公司 | Method for optimal selection between WiFi (wireless fidelity) network and TD-SCDMA (time division-synchronous code division multiple access) network |
CN103546960A (en) * | 2012-07-10 | 2014-01-29 | 中国电信股份有限公司 | Positioning method and system |
CN105246135A (en) * | 2015-09-23 | 2016-01-13 | 小米科技有限责任公司 | Wireless network accessing method and device, and mobile terminal |
CN105611594A (en) * | 2016-01-28 | 2016-05-25 | 努比亚技术有限公司 | Network switching device and method |
CN106961706A (en) * | 2017-05-15 | 2017-07-18 | 深圳星联天通科技有限公司 | Method, mobile terminal and the computer-readable recording medium of communication pattern switching |
-
2017
- 2017-08-16 CN CN201710701755.8A patent/CN107360601A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1794681A (en) * | 2005-12-29 | 2006-06-28 | 上海贝豪通讯电子有限公司 | Switchover method between 3G network and WIFI network based on location information |
CN102958048A (en) * | 2011-08-26 | 2013-03-06 | 中国移动通信集团山东有限公司 | Method for optimal selection between WiFi (wireless fidelity) network and TD-SCDMA (time division-synchronous code division multiple access) network |
CN103546960A (en) * | 2012-07-10 | 2014-01-29 | 中国电信股份有限公司 | Positioning method and system |
CN105246135A (en) * | 2015-09-23 | 2016-01-13 | 小米科技有限责任公司 | Wireless network accessing method and device, and mobile terminal |
CN105611594A (en) * | 2016-01-28 | 2016-05-25 | 努比亚技术有限公司 | Network switching device and method |
CN106961706A (en) * | 2017-05-15 | 2017-07-18 | 深圳星联天通科技有限公司 | Method, mobile terminal and the computer-readable recording medium of communication pattern switching |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108318042A (en) * | 2018-01-29 | 2018-07-24 | 广东欧珀移动通信有限公司 | Navigation mode-switching method, device, terminal and storage medium |
US11558479B2 (en) * | 2018-03-30 | 2023-01-17 | Beijing Boe Technology Development Co., Ltd. | Access method, internet of things platform, application device, service device |
CN108632935B (en) * | 2018-04-04 | 2020-02-21 | 天地融科技股份有限公司 | WIFI network switching method |
CN108601052A (en) * | 2018-04-04 | 2018-09-28 | 天地融科技股份有限公司 | A kind of wireless network switching method |
CN108632935A (en) * | 2018-04-04 | 2018-10-09 | 天地融科技股份有限公司 | A kind of WIFI network switching method |
CN108966225A (en) * | 2018-06-11 | 2018-12-07 | 四川斐讯信息技术有限公司 | A kind of method and system of the anti-loiter network of router |
CN112740759A (en) * | 2018-09-28 | 2021-04-30 | 谷歌有限责任公司 | Method and apparatus for proactive handover between available networks |
CN109618320A (en) * | 2019-01-15 | 2019-04-12 | Oppo广东移动通信有限公司 | The method and device of radio roaming |
WO2020147606A1 (en) * | 2019-01-15 | 2020-07-23 | Oppo广东移动通信有限公司 | Wireless roaming method and device |
CN109495939A (en) * | 2019-01-25 | 2019-03-19 | 努比亚技术有限公司 | Method for switching network, device, mobile terminal and computer readable storage medium |
CN113079525A (en) * | 2020-01-06 | 2021-07-06 | 瑞昱新加坡有限公司 | Method and apparatus for client steering control in a multi-access point network |
CN111630883A (en) * | 2020-03-20 | 2020-09-04 | 北京小米移动软件有限公司 | Method, device, communication equipment and storage medium for transmitting data |
CN111630883B (en) * | 2020-03-20 | 2023-09-19 | 北京小米移动软件有限公司 | Method, device, communication equipment and storage medium for transmitting data |
CN112422642A (en) * | 2020-10-30 | 2021-02-26 | 深圳Tcl新技术有限公司 | Network connection control method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107360601A (en) | A kind of method for switching network, mobile terminal and computer-readable recording medium | |
CN102714884B (en) | The method that contact person is processed and mobile terminal | |
CN104104524B (en) | Method, terminal, server and the system of direct broadcast service are provided | |
CN105005457B (en) | Geographical location methods of exhibiting and device | |
CN107466077A (en) | A kind of method for switching network and mobile terminal | |
CN106210289A (en) | Information processing method, device and mobile terminal | |
CN106791892A (en) | It is a kind of to take turns the live methods, devices and systems of wheat | |
CN106354407A (en) | Information sharing method and mobile terminal | |
CN106453953A (en) | Wireless access point connection method and mobile terminal | |
CN104199596B (en) | scene interface switching method and device | |
CN106973167A (en) | A kind of income prompting method and mobile terminal | |
CN106802766A (en) | The control method and mobile terminal of a kind of mobile terminal | |
CN106851001A (en) | A kind of information processing method and mobile terminal | |
CN106210106A (en) | A kind of intelligent meeting implementation method and mobile terminal | |
CN107193451A (en) | Information displaying method, device, computer equipment and computer-readable recording medium | |
CN108900695A (en) | A kind of display processing method and terminal device | |
CN106095266A (en) | A kind of control exposure method and apparatus | |
CN105141735B (en) | The method and mobile terminal handled contact person | |
CN106982293A (en) | Communication means, terminal and system between a kind of terminal | |
CN106254694A (en) | A kind of method of incoming call blocking, mobile terminal and core net | |
CN107193435A (en) | It is a kind of for the processing method of task window, device and mobile terminal | |
CN107657424A (en) | A kind of stroke reminding method, device and mobile terminal | |
CN107708093B (en) | A kind of method and mobile terminal for establishing relaying data network using wireless headset | |
CN110221741A (en) | Icon management method and terminal device | |
CN106101381B (en) | Call request processing method and mobile terminal |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171117 |
|
RJ01 | Rejection of invention patent application after publication |