Invention content
The embodiment of the present invention provides a kind of Wireless Fidelity WIFI network cut-in method and terminal device, and it is unnecessary to reduce
Connection switching, provide relatively stable network, and reduce power consumption caused by due to frequent switching.
In a first aspect, the embodiment of the present invention provides a kind of Wireless Fidelity WIFI network cut-in method, including:
Terminal device determines whether the movement speed of terminal device is less than or equal to first and presets when detecting WIFI signal
Threshold value, and determine whether the Strength Changes value of the WIFI signal in preset time is less than or equal to the second predetermined threshold value,
Wherein, the Strength Changes value is the difference of WIFI signal maxima and minima in the preset time;
If the movement speed is less than or equal to the first predetermined threshold value and the Strength Changes value is less than or equal to second and presets
Threshold value, then the terminal device access the access point belonging to the WIFI signal.
In the first possible implementation, according in a first aspect, further including:
If the movement speed be more than the first predetermined threshold value and/or, the Strength Changes value be more than the second pre-determined threshold
It is worth, then the terminal device keeps current network connection state.
In second of possible realization method, with reference to first aspect with the first possible realization method, if the institute
It states movement speed and is less than or equal to the second predetermined threshold value less than or equal to the first predetermined threshold value and the Strength Changes value, then it is described
Terminal device is accessed before the access point belonging to the WIFI signal, is further included:
The terminal device obtains the intensity value of the WIFI signal after variation;
Access point belonging to the access WIFI signal, including:
If the intensity value of the WIFI signal after the variation is more than or equal to third predetermined threshold value, the terminal device connects
Enter the access point belonging to the WIFI signal.
In the third possible realization method, according to second of possible realization method, further include:
If the intensity value of the WIFI signal after the variation is less than third predetermined threshold value, the terminal device keeps working as
Preceding network connection state.
Second aspect, a kind of terminal device provided in an embodiment of the present invention, the terminal device are used for Wireless Fidelity WIFI
Network insertion, including:
Comparing unit, for when detection unit detects Wireless Fidelity WIFI signal, determining the mobile speed of terminal device
Whether degree is less than or equal to the first predetermined threshold value, and determine whether the Strength Changes value of the WIFI signal in preset time is small
In equal to the second predetermined threshold value, wherein, the Strength Changes value is WIFI signal maximum value in the preset time
And the difference of minimum value;
Processing unit, if being less than for the movement speed less than or equal to the first predetermined threshold value and the Strength Changes value
Equal to the second predetermined threshold value, then the access point belonging to the WIFI signal is accessed.
In the first possible implementation, according to second aspect, the processing unit, if being additionally operable to the mobile speed
Degree more than the first predetermined threshold value and/or, the Strength Changes value is more than the second predetermined threshold value, then keeps current network
Connection status.
In second of possible realization method, with reference to second aspect and the first possible realization method, further include:
Acquiring unit, for obtaining the intensity value of the WIFI signal after changing;
The processing unit, if the intensity value for the WIFI signal being additionally operable to after the variation is more than or equal to third pre-determined threshold
Value, then access the access point belonging to the WIFI signal.
In the third possible realization method, according to second of possible realization method, the processing unit is additionally operable to
If the intensity value of the WIFI signal after the variation is less than third predetermined threshold value, current network connection state is kept.
Wireless Fidelity WIFI network cut-in method and terminal device provided in an embodiment of the present invention.Terminal device is detecting
During WIFI signal, determine whether the movement speed of terminal device is less than or equal to the first predetermined threshold value, and determine in preset time
Whether the Strength Changes value of interior WIFI signal is less than or equal to the second predetermined threshold value, wherein, Strength Changes value exists for WIFI signal
The difference of maxima and minima in preset time;If movement speed is less than or equal to the first predetermined threshold value and Strength Changes value is less than
Equal to the second predetermined threshold value, then the access point belonging to terminal device access WIFI signal.So, terminal device can lead to
The signal strength crossed in the movement speed and residing WIFI coverage areas of itself judges whether to need to be switched to connecing for the WIFI
Access point when needing access, just performs the operation from other network switchings access WIFI, is cut so as to reduce unnecessary connection
It changes, and then relatively stable network is provided, and reduce power consumption caused by due to frequent switching..
Specific embodiment
Purpose, technical scheme and advantage to make the embodiment of the present invention are clearer, below in conjunction with the embodiment of the present invention
In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
All other embodiments obtained without creative efforts shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only merely for the purpose of description specific embodiment, and is not intended to be limiting
The present invention.In the embodiment of the present invention and " one kind " of singulative used in the attached claims, " described " and "the"
It is also intended to including most forms, unless context clearly shows that other meanings.It is also understood that term used herein
"and/or" refers to and any or all may be combined comprising one or more associated list items purposes.
It will be appreciated that though it may be described in embodiments of the present invention using term first, second, third, etc. various pre-
Gating limit value, but these predetermined threshold values should not necessarily be limited by these terms.These terms are only used for predetermined threshold value being distinguished from each other
It opens.For example, in the case where not departing from range of embodiment of the invention, the first predetermined threshold value can also be referred to as the second pre- gating
Limit value, similarly, the second predetermined threshold value can also be referred to as the first predetermined threshold value.
Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining " or " in response to detection ".Similarly, depending on linguistic context, phrase " if it is determined that " or " if the mobile speed of detection
Degree is less than or equal to the second pre-determined threshold less than or equal to the first pre-determined threshold and Strength Changes value " it can be construed to " when determining
When " or " in response to determine " or " when detection movement speed is less than or equal to the first pre-determined threshold and Strength Changes value is less than or equal to the
During two pre-determined thresholds " or " be less than or equal to the first pre-determined threshold and Strength Changes value in response to detection movement speed and be less than or equal to the
Two pre-determined thresholds ".
Present invention could apply to support the terminal device of WIFI network and 3G network or support WIFI network and LTE nets
The terminal device of network supports WIFI network and 3G network and the terminal device of LTE network, and specifically, above-mentioned terminal is set
Standby can be smart mobile phone, tablet computer, mobile WIFI routers etc..
Fig. 1 is the flow chart of Wireless Fidelity WIFI network cut-in method embodiment provided by the invention, as shown in Figure 1, should
Method includes:
S101, terminal device determine whether the movement speed of terminal device is less than or equal to the when detecting WIFI signal
One predetermined threshold value, and determine whether the Strength Changes value of the WIFI signal in preset time is less than or equal to the second pre-determined threshold
Value.
For example, terminal device can utilize acceleration sensor to obtain acceleration, and the shifting of terminal is determined according to acceleration
Dynamic speed, e.g., when acceleration is 0, terminal device is in opposing stationary state, can determine movement speed according to initial velocity;
Alternatively, velocity sensor can also be utilized to obtain the movement speed of terminal, such as terminal device is directly obtained using velocity sensor
Movement speed;Again alternatively, determining the movement speed of terminal device according to information exchange, if terminal device is in 3G network,
When information exchange being carried out with the base station of 3G network deployment, since base station can detect the specific location of terminal device, and
This each position information is carried in the information sent to terminal device, terminal device can determine position according to the information received
It moves, and the movement speed of terminal device is calculated according to the time point for being connected to information.
Further, can also be that acceleration transducer or velocity sensor coordinate other work(during concrete implementation
The sensor of energy is realized together, is not exemplified as limiting with above-mentioned.
For example, Strength Changes value be in preset time the maximum value of the WIFI signal intensity of WIFI access points with most
The difference of small value, be such as preset time WIFI signal in 3 seconds, this 3 seconds after the WIFI signal for detecting WIFI access points most
Big value is 10dBm, minimum value 2dBm, then the Strength Changes value of WIFI signal intensity is 8dB, wherein, dBm is an expression work(
The unit of rate absolute value, calculation formula are:10lg performance numbers/1mW;DB is the unit of signal strength, for representing one relatively
Value, is a Ge Chun digits, can be based on formula 10lg A/B when the power for calculating A is big compared to B or during small how many a dB
It calculates.The Strength Changes value of the WIFI signal of the WIFI access points of the present invention is not exemplified as limiting with above-mentioned, WIFI access points
The maximum value of WIFI signal intensity can also be 10dB, and the minimum value of the WIFI signal intensity of WIFI access points can also be 2dB,
The computational methods of signal strength and its applicable unit are the prior art, not reinflated explanation, herein only for example, not doing
Any restriction.
Further, the technical solution of the embodiment of the present invention is the movement speed by determining terminal device, in combination with
Currently detected WIFI signal variation, carries out comprehensive judgement and then selectivity accesses WIFI network, rather than the prior art
In scheme, the switching for WIFI and 3G, WIFI and LTE is all the principle using setting WIFI priority access.The present invention is implemented
Example more intelligently, reasonably can provide network service for the user of using terminal equipment.
For example, terminal device can detect whether WIFI signal automatically, enter WIFI access point
During the region of WIFI signal covering, terminal device detects the WIFI signal of the WIFI access points, at this point, terminal device determines end
Whether the movement speed of end equipment is less than or equal to the first predetermined threshold value, and the first predetermined threshold value can be according to historical statistics
The user of using terminal equipment is averaged the speed of travel to determine, e.g., the user of the using terminal equipment of historical statistics averagely walks
Speed is 5km/h or 5~7m/s, and terminal device can save as the first predetermined threshold value as 5km/h or 5~7m/s.And it determines
It, can be with when whether the Strength Changes value of the WIFI signal of WIFI access points is less than or equal to the second predetermined threshold value in preset time
It is the use for the using terminal equipment that edge to center or center to edge are covered according to the WIFI signal of the WIFI access points of statistics
The family travel time that is averaged determines preset time, and the letter at WIFI signal covering center to the edge according to the WIFI access points of statistics
Number difference determines the second predetermined threshold value.Such as, when more than above-mentioned 5~7m/s of the speed of travel, user is average just can in 2s
Edge is run to from the WIFI signals of WIFI access points covering center, and the changing value of signal is 5dBm, in this manner it is possible to by the
Two predetermined threshold values are set as 5dBm, and preset time is set as 2s.Certainly, the second predetermined threshold value can also pass through its other party
Formula is pre-set, and is not limited in embodiments of the present invention.
Further, terminal device is when the movement speed for determining terminal device is less than or equal to 5m/s, if in 2s
The Strength Changes value of WIFI signal is more than 5dBm, then terminal device accesses the WIFI access points belonging to the WIFI signal, but by
5dBm may be less than in the next 2s changing values of WIFI signal that terminal device receives, therefore, terminal device can carry out often
Interval sampling primary 2s wouldn't need to switch to other to ensure the user using the terminal device after the WIFI has been accessed
Network.
S102, terminal device are if it is determined that movement speed is less than or equal to the first predetermined threshold value and Strength Changes value is less than or equal to
Second predetermined threshold value then accesses the WIFI access points belonging to WIFI signal.
For example, if terminal device movement speed is less than or equal to the first predetermined threshold value and Strength Changes value is less than or equal to
Second predetermined threshold value, the then access point belonging to terminal device access WIFI signal, as movement speed is less than 3m/s and first pre-
Gating limit value is 5m/s, and the pad value or yield value of signal are 1dBm, and the second predetermined threshold value is set as 5dBm, it is determined that are used
Family low-speed running in the WIFI signal overlay area of the WIFI access points, access WIFI access points will not cause high frequency to switch,
Therefore the WIFI access points belonging to terminal device access WIFI signal.
Wireless Fidelity WIFI network cut-in method provided in an embodiment of the present invention.Terminal device is detecting WIFI signal
When, determine whether the movement speed of terminal device is less than or equal to the first predetermined threshold value, and determine that WIFI believes in preset time
Number Strength Changes value whether be less than or equal to the second predetermined threshold value, wherein, Strength Changes value for WIFI signal in preset time
The difference of interior maxima and minima;If movement speed is less than or equal to the first predetermined threshold value and Strength Changes value is less than or equal to second
Predetermined threshold value, then terminal device access WIFI signal belonging to access point.So, terminal device can by itself
Signal strength in movement speed and residing WIFI coverage areas judges whether to need the access point for being switched to the WIFI, need
When accessing, the operation from other network switchings access WIFI is just performed, so as to reduce unnecessary connection switching, and then is provided
Relatively stable network, and reduce power consumption caused by due to frequent switching.
Fig. 2 is the flow chart of another method for connecting network embodiment provided by the invention, and the present embodiment is with terminal device
To support to illustrate, but do not do any limit with this for the smart mobile phone of WIFI and 3G functions or support WIFI and LTE functions
It is fixed, as shown in Fig. 2, this method includes:
S201, smart mobile phone obtain the movement speed of smart mobile phone.
Further, smart mobile phone can determine whether user is in normal condition according to the movement speed of acquisition, i.e., such as
Fruit movement speed is then determined as normal condition for normal speed or so, which is the using terminal equipment of historical statistics
User is averaged the speed of travel, and smart mobile phone can perform step S202 in the case where being determined as normal condition, and smart mobile phone can not also
The judgement for carrying out normal condition directly performs S202.
S202, smart mobile phone determine whether the movement speed of smart mobile phone is less than or equal to the when detecting WIFI signal
One predetermined threshold value, and determine whether the Strength Changes value of the WIFI signal in preset time is less than or equal to the second pre-determined threshold
Value.
It should be noted that the Strength Changes value of WIFI signal has been unfolded to illustrate in the above-described embodiments, herein no longer
It repeats.
Further, if the Strength Changes value of WIFI signal is less than or equal to the second predetermined threshold value in preset time,
Step S203, i.e. smart mobile phone are then performed if it is determined that movement speed is less than or equal to the intensity of the first predetermined threshold value and WIFI signal
Changing value is less than or equal to the second predetermined threshold value, then performs step S203;If it is not, performing step S206, even movement speed is big
And/or, Strength Changes value is more than the second predetermined threshold value, then performs step S206 in the first predetermined threshold value.
It should be noted that if determine that movement speed is less than or equal to the Strength Changes of the first predetermined threshold value and WIFI signal
Value is less than or equal to the second predetermined threshold value, then it is that can be detained in the WIFI signal overlay area of WIFI access points that can determine user
For a period of time rather than the WIFI signal overlay areas of the WIFI access points is run through, so smart mobile phone accesses the WIFI
The WIFI access points of the WIFI signal overlay area of access point.First predetermined threshold value, preset time and the second pre- gating
Limit value is in the above-described embodiments for example, details are not described herein.
Further, if movement speed be more than the first predetermined threshold value and/or, Strength Changes value be more than the second pre- gating
Limit value then illustrates that the user using the smart mobile phone can speed away the area of coverage of the WIFI signal of WIFI access points detected
Domain, therefore the access point of this WIFI is not accessed, and be to continue with keeping connecting with current network.
For example, smart mobile phone may enter the overlay area of the WIFI signal of WIFI access points with soon leaving
Two time points of the overlay area of the WIFI signal of WIFI access points have detected the Strength Changes value of signal, at this time, intensity
Although changing value be less than the second predetermined threshold value, due to movement speed be more than the first predetermined threshold value, user at once just
The overlay area of the WIFI signal of WIFI access points can be left, so not accessing WIFI access points.
The user of smart mobile phone may be sitting on the vehicle at the uniform velocity travelled covering for the WIFI signal that enters the WIFI access points
Cover area, at this moment, although movement speed is 0m/s, less than the first predetermined threshold value, Strength Changes value is so large that greatly
In the second predetermined threshold value, so this time user is also the overlay area for the WIFI signal that will leave the WIFI access points,
Therefore WIFI access points are not accessed.
If the user of smart mobile phone rapid walks through or ran at a high speed the area of coverage of the WIFI signal of the WIFI access points
Domain, then in the case of most of, movement speed is greater than the first predetermined threshold value and change in signal strength value is more than second in advance
Gating limit value, at this moment, it is also the overlay area for the WIFI signal that will leave the WIFI access points that can also determine user, because
This does not access WIFI access points.
S203, smart mobile phone obtain the intensity value of the WIFI signal after variation.
Further, if smart mobile phone can be changed after WIFI signal intensity value it is relatively stable, can be with
It obtains in the short period, such as intensity value of the average value as WIFI signal of the intensity value in 30ms.If the intensity value of signal becomes
Change larger, then wait for and obtain the intensity value of the WIFI signal after stablizing again.
S204, smart mobile phone determine whether the intensity value of the WIFI signal after variation is more than or equal to third predetermined threshold value.
Further, smart mobile phone is if it is determined that the intensity value of the WIFI signal after variation is more than or equal to third pre-determined threshold
Value, then perform step S205, and smart mobile phone is if it is determined that the intensity value of the WIFI signal after variation is less than third predetermined threshold value, then
Perform step S206.
Further, third predetermined threshold value can be the minimum of the access point belonging to the WIFI signal obtained according to statistics
Access signal strength setting, such as 100dBm.
If still further, smart mobile phone simultaneously in multiple WIFI access points WIFI signal overlay area,
Using the access point belonging to WIFI signal maximum intensity or the most stable of WIFI signal of WIFI signal as target access, when in satisfaction
When stating each threshold condition, the target access is accessed.
Further, third predetermined threshold value is the access point belonging to the WIFI signal obtained according to statistics as described above
Minimum access signal strength setting, such as 100dBm, if less than this signal strength, can not also be enjoyed after smart mobile phone access
The service or service quality provided by the network is very poor, so in this case, smart mobile phone still uses original network
Connection status.
Access point belonging to S205, smart mobile phone access WIFI signal.
It should be noted that for keep connection smooth excessiveness, access WIFI signal belonging to access point during 3G or
LTE is always maintained at connection status, until access point returning response message instruction with WIFI successful connections after just will disconnect 3G or
LTE is always maintained at the connection of 3G or LIE if response message instruction and WIFI connection failures that access point returns.
S206, smart mobile phone keep current network connection state.
For example, current network connection state can be smart mobile phone and another WIFI access point connection status;
Or, it is smart mobile phone and 3G network connection status;Again alternatively, smart mobile phone and LTE network connection status.
Wireless Fidelity WIFI network cut-in method provided in an embodiment of the present invention.Terminal device is detecting WIFI signal
When, determine whether the movement speed of terminal device is less than or equal to the first predetermined threshold value, and determine that WIFI believes in preset time
Number Strength Changes value whether be less than or equal to the second predetermined threshold value, wherein, Strength Changes value for WIFI signal in preset time
The difference of interior maxima and minima;If movement speed is less than or equal to the first predetermined threshold value and Strength Changes value is less than or equal to second
Predetermined threshold value, then terminal device access WIFI signal belonging to access point.So, terminal device can by itself
Signal strength in movement speed and residing WIFI coverage areas judges whether to need the access point for being switched to the WIFI, need
When accessing, the operation from other network switchings access WIFI is just performed, so as to reduce unnecessary connection switching, and then is provided
Relatively stable network, and reduce power consumption caused by due to frequent switching.
Fig. 3 is the structure diagram of terminal device embodiment provided by the invention, as shown in figure 3, terminal device 30 is used for
The access of Wireless Fidelity WIFI network includes:Detection unit 301, comparing unit 302 and processing unit 303.
Detection unit 301, for periodically or continuously detecting WIFI signal.
Comparing unit 302, for when detection unit 301 detects WIFI signal, determining the movement speed of terminal device
Whether the first predetermined threshold value is less than or equal to, and determine whether the Strength Changes value of the WIFI signal in preset time is less than or equal to
Second predetermined threshold value, wherein, the Strength Changes value maximum value and minimum in the preset time for the WIFI signal
The difference of value.
Processing unit 303, if being less than or equal to for movement speed less than or equal to the first predetermined threshold value and Strength Changes value
Second predetermined threshold value then accesses the access point belonging to WIFI signal.
Further, if processing unit 303 is additionally operable to movement speed more than the first predetermined threshold value, current net is kept
Network connection status;Or, Strength Changes value is more than the second predetermined threshold value, then keeps current network connection state;Or, mobile speed
Degree is more than the second predetermined threshold value more than the first predetermined threshold value and Strength Changes value, then keeps current network connection state.
It should be noted that preset time, the first predetermined threshold value and the second predetermined threshold value have been retouched in above method embodiment
It states, details are not described herein.
Fig. 4 is the structure diagram of another embodiment of terminal device provided by the invention, as shown in figure 4, terminal device 30
On the basis of terminal device structure shown in Fig. 3, further, it can also include:Acquiring unit 304.
Acquiring unit 304, for obtaining the intensity value of the WIFI signal after changing.
Processing unit 303, if the intensity value for the WIFI signal being additionally operable to after variation is more than or equal to third predetermined threshold value,
Access the access point belonging to WIFI signal;If the intensity value of the WIFI signal after variation is less than third predetermined threshold value, keep
Current network connection state.
It should be noted that third predetermined threshold value has been described above in above method embodiment, details are not described herein.
For example, current network connection state can be the connection status with WIFI access points;Or, 3G network connection
State;Or, LTE network connection status.
Still further, acquiring unit 304, can be also used for the movement speed of acquisition terminal device.
For example, acquiring unit 304 can be used for obtaining acceleration using acceleration sensor, and end is determined according to acceleration
The movement speed at end;Or, the movement speed of terminal is obtained using velocity sensor.
The terminal device 30 of the present embodiment may be incorporated for performing the technical solution of embodiment of the method shown in Fig. 1 or Fig. 2,
Its implementing principle and technical effect is similar, and details are not described herein again.
Terminal device provided in an embodiment of the present invention, is accessed suitable for Wireless Fidelity WIFI network, and terminal device is detecting
During to WIFI signal, determine whether the movement speed of terminal device is less than or equal to the first predetermined threshold value, and determine when default
Whether the Strength Changes value of interior WIFI signal is less than or equal to the second predetermined threshold value, wherein, Strength Changes value is WIFI signal
The difference of maxima and minima in preset time;If movement speed is less than or equal to the first predetermined threshold value and Strength Changes value is small
In equal to the second predetermined threshold value, then the access point belonging to terminal device access WIFI signal.So, terminal device can
Judge whether to need to be switched to the WIFI's by the signal strength in the movement speed of itself and residing WIFI coverage areas
Access point when needing access, just performs the operation from other network switchings access WIFI, is cut so as to reduce unnecessary connection
It changes, and then relatively stable network is provided, and reduce power consumption caused by due to frequent switching.
Fig. 5 is the structure diagram of another terminal device embodiment provided by the invention, as shown in figure 5, with terminal device
40 are specifically described, and terminal device 40 can be mobile phone or tablet computer.It should be understood that graphic terminal 40 is only
It is an example, terminal device 40 can have than the component more cross or less shown in figure, can combine two
Or more component or can have different component to be configured.Various parts shown in figure can including one or
Hardware, software including multiple signal processings and/or application-specific integrated circuit are realized in the combination of hardware and software.The terminal
Equipment 40 includes:WIFI module 401 and processor 402.
WIFI module 401, for periodically or continuously detecting WIFI signal
Processor 402, for when WIFI module 401 detects WIFI signal, determining the shifting of terminal device terminal device
Whether dynamic speed is less than or equal to the first predetermined threshold value, and determine whether the Strength Changes value of the WIFI signal in preset time is small
In equal to the second predetermined threshold value.
Processor 402 is if it is determined that movement speed is less than or equal to the first predetermined threshold value and Strength Changes value is less than or equal to second
Predetermined threshold value, then so that WIFI module 401 accesses the access point belonging to WIFI signal.Processor 402 is if it is determined that movement speed
And/or, Strength Changes value is more than the second predetermined threshold value more than the first predetermined threshold value, then so that mobile equipment keeps current
Network connection state.It should be noted that preset time, the first predetermined threshold value and the second predetermined threshold value, Strength Changes
Value is described in above method embodiment, and details are not described herein.
For example, processor 402 can be central processing unit etc..Further, WIFI module 401 is additionally operable to obtain and become
The intensity value of WIFI signal after change.If the intensity value of the WIFI signal after variation is more than or equal to third predetermined threshold value, connect
Enter the access point belonging to WIFI signal;If the intensity value of the WIFI signal after variation is less than third predetermined threshold value, keep working as
Preceding network connection state.
For example, current network connection state can be the connection with WIFI access points;Or, 3G network connection shape
State;Or, LTE network connection status.
It should be noted that third predetermined threshold value has been described above in above method embodiment, details are not described herein.
Still further, Fig. 6 is the structure diagram of another embodiment of terminal device provided by the invention, as shown in fig. 6,
Terminal device 40 further includes:Sensor 403.
Sensor 403 can be used for obtaining the movement speed of terminal device.
For example, sensor 403 can be acceleration sensor, with obtain acceleration and so that processor 402 according to adding
Speed determines the movement speed of terminal 4;Or, sensor 403 can also be velocity sensor, to obtain the movement speed of terminal.
The terminal device 40 of the present embodiment may be incorporated for performing the technical solution of embodiment of the method shown in Fig. 1 or Fig. 2,
Its implementing principle and technical effect is similar, and details are not described herein again.
Further, above-mentioned WIFI module 401, processor 402, related to 403 data of sensor, processor 402 can be with
The data of sensor 403 or the acquisition of WIFI module 401 are obtained, WIFI module 401 and WIFI accesses etc. can also be controlled.
Terminal device provided in an embodiment of the present invention, is accessed suitable for Wireless Fidelity WIFI network, and terminal device is detecting
During to WIFI signal, determine whether the movement speed of terminal device is less than or equal to the first predetermined threshold value, and determine when default
Whether the Strength Changes value of interior WIFI signal is less than or equal to the second predetermined threshold value, wherein, Strength Changes value is WIFI signal
The difference of maxima and minima in preset time;If movement speed is less than or equal to the first predetermined threshold value and Strength Changes value is small
In equal to the second predetermined threshold value, then the access point belonging to terminal device access WIFI signal.So, terminal device can
Judge whether to need to be switched to by the signal strength in the terminal device movement speed of itself and residing WIFI coverage areas
The access point of the WIFI when needing access, just performs the operation from other network switchings access WIFI, unnecessary so as to reduce
Connection switching, and then provide relatively stable network, and reduce power consumption caused by due to frequent switching.Ordinary skill
Personnel are appreciated that:Realize above-mentioned each method embodiment all or part of step can by the relevant hardware of program instruction come
It completes.Aforementioned program can be stored in a computer read/write memory medium.When being executed, execution includes above-mentioned the program
The step of each method embodiment;And aforementioned storage medium includes:ROM, RAM, magnetic disc or CD etc. are various can to store journey
The medium of sequence code.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to
Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical features into
Row equivalent replacement;And these modifications or replacement, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.