CN107046701B - Base station switch method, device, storage medium and terminal - Google Patents
Base station switch method, device, storage medium and terminal Download PDFInfo
- Publication number
- CN107046701B CN107046701B CN201710370632.0A CN201710370632A CN107046701B CN 107046701 B CN107046701 B CN 107046701B CN 201710370632 A CN201710370632 A CN 201710370632A CN 107046701 B CN107046701 B CN 107046701B
- Authority
- CN
- China
- Prior art keywords
- base station
- terminal
- collection
- signal strength
- communication connection
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- 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/08—Reselecting an access point
Abstract
The embodiment of the present invention provides a kind of base station switch method, device, storage medium and terminal, and this method obtains the signal strength indication that the first base station of communication connection is established with terminal;When the signal strength indication is less than preset threshold, search can establish the collection of base stations of communication connection with the terminal;According in the collection of base stations each base station and the distance between the terminal the second base station is determined from the collection of base stations;The communication connection with second base station is established, and disconnects the communication connection with the first base station.The program established with terminal the signal strength indication of first base station of communication connection it is smaller when, communication connection is switched to the second big base station of signal strength indication, therefore the signal stabilization of terminal can be improved.
Description
Technical field
The present invention relates to field of communication technology, in particular to a kind of base station switch method, device, storage medium and terminal.
Background technique
With the development of communication technology, the function of the mobile terminals such as smart phone is more and more, to the life of user
It brings great convenience.
When being communicated between mobile terminal and other terminals, mobile terminal is by carrying out letter between base station and other terminals
Breath sends and receivees.In general, there is weight between the signal cover of some base station and the signal cover of adjacent base station
It is folded.That is, mobile terminal, when being communicated with other terminals, there are multiple base stations that can establish communication connection.
Currently, when the signal strength indication of mobile terminal is lower, the signal strength indication received is reported to base by mobile terminal
It stands, decided whether the base station of switching and mobile terminal progress communication connection by base station and how to be switched over.And base station is determined
It, can not be in view of actual environment locating for mobile terminal, thus can not be with the reality locating for mobile terminal when determining whether to switch over
Border environment is adapted.
Summary of the invention
The embodiment of the present invention provides a kind of base station switch method, device, storage medium and terminal, and the letter of terminal can be improved
Number stability.
The embodiment of the present invention provides a kind of base station switch method, comprising:
Obtain the signal strength indication that the first base station of communication connection is established with terminal;
When the signal strength indication is less than preset threshold, search can establish the collection of base stations of communication connection with the terminal, should
Collection of base stations includes at least the base station that two signal strength indications are greater than the preset threshold;
According in the collection of base stations each base station and the distance between the terminal determine second from the collection of base stations
The signal strength indication of base station, second base station is greater than the preset threshold;
The communication connection with second base station is established, and disconnects the communication connection with the first base station.
The embodiment of the present invention also provides a kind of base station switching device, comprising:
Module is obtained, for obtaining the signal strength indication for establishing the first base station of communication connection with terminal;
Search module, for when the signal strength indication is less than preset threshold, search can to establish communication connection with the terminal
Collection of base stations, which includes at least the base station that two signal strength indications are greater than the preset threshold;
Determining module, for according in the collection of base stations each base station and the distance between the terminal from the collection of base stations
In determine the second base station, the signal strength indication of second base station is greater than the preset threshold;
Switching module, for establish with the communication connection of second base station, and disconnect and the communication connection of the first base station.
The embodiment of the present invention also provides a kind of storage medium, and a plurality of instruction is stored in the storage medium, which is suitable for
It is loaded by processor to execute above-mentioned base station switch method.
The embodiment of the present invention also provides a kind of terminal, including pocessor and storage media, is stored in the storage medium more
Item instruction, the processor load the instruction to execute above-mentioned base station switch method.
The embodiment of the present invention also provides another terminal, including processor, memory and radio circuit, the processor with
The memory, radio circuit are electrically connected, which believes with data, the radio circuit for transceiving radio frequency for storing instruction
Number;
The radio circuit is also used to obtain the signal strength indication for the first base station that communication connection is established with the terminal;
The radio circuit is also used to when the signal strength indication is less than preset threshold, and search can be established with the terminal and be communicated
The collection of base stations of connection, the collection of base stations include at least the base station that two signal strength indications are greater than the preset threshold;
The processor, for according in the collection of base stations each base station and the distance between the terminal from the collection of base stations
In determine the second base station, the signal strength indication of second base station is greater than the preset threshold;
The radio circuit is also used to establish the communication connection with second base station, and disconnects the communication with the first base station
Connection.
Base station switch method provided in an embodiment of the present invention obtains the signal that the first base station of communication connection is established with terminal
Intensity value;When the signal strength indication is less than preset threshold, search can establish the collection of base stations of communication connection, the base with the terminal
Set of standing includes at least the base station that two signal strength indications are greater than the preset threshold;According in the collection of base stations each base station with
The distance between the terminal determines the second base station from the collection of base stations, and the signal strength indication of second base station is default greater than this
Threshold value;The communication connection with second base station is established, and disconnects the communication connection with the first base station.The program is built with terminal
When the signal strength indication of the first base station of vertical communication connection is smaller, communication connection is switched to the second big base of signal strength indication
It stands, therefore the signal stabilization of terminal can be improved.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the first flow diagram of base station switch method provided in an embodiment of the present invention.
Fig. 2 is second of flow diagram of base station switch method provided in an embodiment of the present invention.
Fig. 3 is the third flow diagram of base station switch method provided in an embodiment of the present invention.
Fig. 4 is the 4th kind of flow diagram of base station switch method provided in an embodiment of the present invention.
Fig. 5 is the 5th kind of flow diagram of base station switch method provided in an embodiment of the present invention.
Fig. 6 is the 6th kind of flow diagram of base station switch method provided in an embodiment of the present invention.
Fig. 7 is the application scenarios schematic diagram of base station switch method provided in an embodiment of the present invention.
Fig. 8 is the another application schematic diagram of a scenario of base station switch method provided in an embodiment of the present invention.
Fig. 9 is the structural schematic diagram of base station switching device provided in an embodiment of the present invention.
Figure 10 is another structural schematic diagram of base station switching device provided in an embodiment of the present invention.
Figure 11 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Figure 12 is another structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, belongs to protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second ", " third " etc.
(if present) is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be appreciated that this
The object of sample description is interchangeable under appropriate circumstances.In addition, term " includes " and " having " and their any deformation, meaning
Figure, which is to cover, non-exclusive includes.For example, containing the process, method of series of steps or containing a series of modules or list
The device of member, terminal, system those of are not necessarily limited to be clearly listed step or module or unit, can also include unclear
The step of ground is listed or module or unit also may include its intrinsic for these process, methods, device, terminal or system
Its step or module or unit.
The embodiment of the present invention provides a kind of base station switch method, and this method can be applied in terminal.The terminal can be
The equipment such as smart phone, tablet computer.As shown in Figure 1, the base station switch method, may comprise steps of:
S110 obtains the signal strength indication that the first base station of communication connection is established with terminal.
Wherein, there is radio circuit in terminal.Terminal is by radio circuit transceiving radio frequency signal, to establish with base station logical
News connection.The base station for establishing communication connection with the terminal is first base station.Terminal can be obtained in real time by radio circuit from
The signal strength indication for the radiofrequency signal that the first base station receives.The signal for the radiofrequency signal that terminal is received from the first base station
Intensity value can be understood as the signal strength indication of the first base station.
Wherein, which can be used any communication standard or agreement, including but not limited to global system for mobile telecommunications system
Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General
Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more
Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term
Evolution) etc..
S120, when the signal strength indication is less than preset threshold, search can establish the base station set of communication connection with the terminal
It closes, the base station that two signal strength indications are greater than the preset threshold is included at least in the collection of base stations.
Wherein, preset threshold can be the signal strength indication preset in the terminal.For example, preset threshold can be with
For -94dBm (decibel milliwatt).After terminal obtains the signal strength indication of first base station in real time, the signal strength indication that will acquire with
The preset threshold is compared, to judge whether the signal strength indication is less than the preset threshold.It is somebody's turn to do when the signal strength indication is less than
When preset threshold, terminal executes search operation, to search for the collection of base stations that can establish communication connection with the terminal.Terminal searching arrives
Collection of base stations in include at least the base station that two signal strength indications are greater than the preset threshold.
In some embodiments, terminal can be fallen signal strength indication with automatic fitration and be less than or wait when executing search operation
In the base station of the preset threshold, and only stick signal intensity value is greater than the base station of the preset threshold.
As shown in fig. 7, terminal establishes communication connection with first base station.The signal that terminal is received from the first base station
Intensity value is less than above-mentioned preset threshold, so that terminal executes search operation.Terminal searching to collection of base stations in include A, B, C tri-
A base station.Wherein, the signal strength indication of tri- base stations A, B, C is all larger than the preset threshold.
In some embodiments, when not including any base station in the search result of terminal, terminal can terminate this process
Or re-execute this process.When only including a base station in the search result of terminal, terminal can also terminate this process, and
Communication connection is directly established with the base station searched, and disconnects the communication connection between above-mentioned first base station.
S130 is determined from the collection of base stations according to the distance between each base station and the terminal in the collection of base stations
The signal strength indication of second base station, second base station is greater than the preset threshold.
Wherein, after terminal searching to collection of base stations, each base station in the collection of base stations and the terminal can be obtained respectively
The distance between.For example, terminal can each base station respectively into the collection of base stations report itself the location of information.It should
After each base station in collection of base stations receives the location information that terminal reports, the distance between calculate with the terminal, and to this
Terminal returns to the distance between itself and the terminal.After terminal receives the distance that each base station returns, according to each terminal with
The second base station is determined in the distance between itself from the collection of base stations.Wherein, the signal strength indication of second base station, which is greater than, is somebody's turn to do
Preset threshold.
S140 establishes the communication connection with second base station, and disconnects the communication connection with the first base station.
Wherein, for terminal after determining the second base station in collection of base stations, terminal establishes the communication between second base station
Connection, and disconnect the communication connection between above-mentioned first base station.
As shown in figure 8, including tri- base stations A, B, C in collection of base stations, terminal is according to true with the distance between each base station
The second fixed base station is base station B, then terminal establishes the communication connection with base station B, and disconnects the communication between first base station and connect
It connects.
Since the signal strength indication of the second base station is greater than above-mentioned preset threshold, and the signal strength indication of first base station is less than this
Preset threshold namely the signal strength indication of the second base station are greater than the signal strength indication of the first base station.Therefore, terminal connects in switching
Behind the base station connect, the signal stabilization of terminal can be improved.
In some embodiments, as shown in Fig. 2, according in the collection of base stations each base station and the distance between the terminal
The second base station is determined from the collection of base stations the following steps are included:
The distance between each base station and the terminal in the collection of base stations is ranked up by S131;
S132 determines the base station nearest apart from the terminal according to ranking results from the collection of base stations;
The base station nearest apart from the terminal is determined as the second base station by S133.
Wherein, after terminal searching to collection of base stations, each base station in the collection of base stations and the terminal can be obtained respectively
The distance between.Then, the distance between each base station and the terminal in the collection of base stations can be ranked up by terminal.Row
Sequence is also possible to ascending order arrangement according to can be descending arrangement.For example, collection of base stations includes tri- base stations A, B, C, wherein A, B,
The distance between tri- base stations C and terminal are respectively 10km (km), 8km, 12km, then the knot of descending arrangement is carried out according to distance
Fruit are as follows: C, A, B.
After obtaining ranking results, terminal determines the base nearest apart from the terminal according to ranking results from the collection of base stations
It stands.For example, being C, A, B according to the result that distance carries out descending arrangement, then it can determine that base station B is nearest apart from the terminal
Base station.Then, base station B is determined as the second base station by terminal.
In some embodiments, as shown in figure 3, it includes following that the base station nearest apart from the terminal, which is determined as the second base station,
Step:
S1331 judges whether the quantity of the base station nearest apart from the terminal is one;
S1332 determines the base station nearest apart from the terminal if the quantity of the base station nearest apart from the terminal is one
For the second base station.
Wherein, after terminal determines the base station nearest apart from the terminal according to ranking results, judge nearest apart from the terminal
The quantity of base station whether be one.If the base station nearest apart from the terminal only one, this is true apart from nearest base station
It is set to the second base station.
In some embodiments, as shown in figure 3, by the base station nearest apart from the terminal be determined as the second base station further include with
Lower step:
S1333 is successively obtained nearest apart from the terminal if the quantity of the base station nearest apart from the terminal is not one
Response time of each base station to instruction;
The response time shortest base station is determined as the second base station by S1334.
It wherein, if the quantity of the base station nearest apart from the terminal is not one, such as include A, B, C, D tetra- in collection of base stations
A base station, tetra- base stations A, B, C, D be respectively 10km, 8km, 12km, 8km, then base station B and base station D at a distance from the terminal with
The distance between the terminal is minimum.At this point, terminal successively obtains base station B, base station D to the response time of instruction, and will ring
Shortest base station is determined as the second base station between seasonable.Wherein, which can be sent to base station for terminal and receive base station and ring
The arbitrary instruction answered.
When the base station number nearest apart from terminal is not one, response time shortest base station is determined as the second base
It stands, it can be ensured that the distance between the second base station and terminal communication efficiency highest simultaneously recently.
In some embodiments, as shown in figure 4, successively obtaining response of each base station nearest apart from the terminal to instruction
Time the following steps are included:
S1333A successively sends probe instructions to each base station nearest apart from the terminal;
S1333B receives the response message that each base station nearest apart from the terminal returns;
S1333C, successively according to the response information acquisition of each base station each base station nearest apart from the terminal to instruction
Response time.
Wherein, terminal successively can send probe instructions to each base station nearest apart from the terminal.For example, apart from terminal
Nearest base station includes base station B and base station D, then terminal successively sends probe instructions to base station B, base station D.The probe instructions only need
The response of base station is obtained, probe instructions can not include any order.Then, terminal is received apart from nearest every of the terminal
The response message that one base station returns.For example, terminal receives the response message of base station B and base station D.Then, for apart from the terminal
Nearest each base station, terminal can obtain the base according at the time of sending probe instructions and at the time of receiving response message
The response time stood to instruction.For example, sending the time between probe instructions and the response message for receiving base station B to base station B
Between be divided into 100ms (millisecond), the time interval that Xiang Jizhan D is sent between probe instructions and the response message for receiving base station D is
120ms, then available to base station B is 100ms to response time of instruction, and base station D is 120ms to the response time of instruction.
In some embodiments, as shown in figure 5, by the base station nearest apart from the terminal be determined as the second base station further include with
Lower step:
S1335, judges whether the terminal is kept in motion;
S1336 obtains the direction of motion of the terminal if the terminal is kept in motion;
S1337 determines the second base station according to the angle between each base station nearest apart from the terminal and the direction of motion.
Wherein, terminal can detect the state of terminal by acceleration transducer, to judge whether terminal is in movement shape
State.When terminal is kept in motion, the direction of motion of the terminal is obtained.Wherein, terminal can be at interval of adopting after a period of time
Collect the location information of terminal, and obtains the direction of motion of terminal according to the location information.For example, terminal was at interval of acquisition one in 1 second
The location information of secondary terminal, and the direction that the position of current one acquisition is directed toward in the position of preceding one acquisition is determined as terminal
The direction of motion.
Then, the location of available each base station nearest apart from the terminal of terminal information, and according to the position
Information calculates the angle between each base station and the direction of motion, then according to the angle between each base station and the direction of motion
Determine the second base station.
In some embodiments, as shown in fig. 6, according between each base station nearest apart from the terminal and the direction of motion
Angle determine the second base station the following steps are included:
Angle between each base station nearest apart from the terminal and the direction of motion is ranked up by S1337A;
The smallest base station of angle between the direction of motion is determined as the second base station by S1337B.
Wherein, after terminal gets the location information of each base station, according to each base station of the positional information calculation and the fortune
Angle between dynamic direction, and calculated multiple angles are ranked up.For example, the angle between base station B and the direction of motion
Degree is 30 degree, and the angle between base station D and the direction of motion is 120 degree, then the direction of motion of terminal deviates from base towards base station B
Stand D, thus the distance between terminal and base station B in reduction and between the D of base station at a distance from increasing.Terminal is to angle according to drop
The result that sequence is ranked up are as follows: base station D, base station B.Then, terminal can will be between the direction of motion according to ranking results
The smallest base station of angle is determined as the second base station.
When it is implemented, the present invention is not limited by the execution sequence of described each step, conflict is not being generated
In the case of, certain steps can also be carried out using other sequences or be carried out simultaneously.
From the foregoing, it will be observed that base station switch method provided in an embodiment of the present invention, obtains and establishes the first of communication connection with terminal
The signal strength indication of base station;When the signal strength indication is less than preset threshold, search can establish the base of communication connection with the terminal
It stands set, which includes at least the base station that two signal strength indications are greater than the preset threshold;According in the collection of base stations
Each base station and the distance between the terminal the second base station is determined from the collection of base stations, the signal strength of second base station
Value is greater than the preset threshold;The communication connection with second base station is established, and disconnects the communication connection with the first base station.The party
Case established with terminal the signal strength indication of first base station of communication connection it is smaller when, communication connection is switched to signal strength indication
The second big base station, therefore the signal stabilization of terminal can be improved.
The embodiment of the present invention also provides a kind of base station switching device, which can integrate in the terminal, which can be with
It is the equipment such as smart phone, tablet computer.
As shown in figure 9, base station switching device 200 may include: to obtain module 201, search module 202, determining module
203, switching module 204.
Module 201 is obtained, for obtaining the signal strength indication for establishing the first base station of communication connection with terminal.
Wherein, there is radio circuit in terminal.Terminal is by radio circuit transceiving radio frequency signal, to establish with base station logical
News connection.The base station for establishing communication connection with the terminal is first base station.Obtaining module 201 can be real-time by radio circuit
Obtain the signal strength indication of the radiofrequency signal received from the first base station.The radiofrequency signal that terminal is received from the first base station
Signal strength indication can be understood as the signal strength indication of the first base station.
Search module 202, for when the signal strength indication is less than preset threshold, search can to establish communication with the terminal and connect
The collection of base stations connect includes at least the base station that two signal strength indications are greater than the preset threshold in the collection of base stations.
Wherein, preset threshold can be the signal strength indication preset in the terminal.For example, preset threshold can be with
For -94dBm (decibel milliwatt).After obtaining the signal strength indication that module 201 obtains first base station in real time, search module 202 will be obtained
The signal strength indication got is compared with the preset threshold, to judge whether the signal strength indication is less than the preset threshold.When
When the signal strength indication is less than the preset threshold, search module 202 executes search operation, can be established and be communicated with the terminal with search
The collection of base stations of connection.The base station that two signal strength indications are greater than the preset threshold is included at least in the collection of base stations searched.
In some embodiments, it is small can to fall signal strength indication with automatic fitration when executing search operation for search module 202
In or equal to the preset threshold base station, and only stick signal intensity value be greater than the preset threshold base station.
In some embodiments, when not including any base station in the search result of search module 202, base station switching device
200 can terminate this process or re-execute this process.When only including a base station in the search result of search module 202
When, base station switching device 200 can also terminate this process, and directly establish communication connection with the base station searched, and
Disconnect the communication connection between above-mentioned first base station.
Determining module 203, for according in the collection of base stations each base station and the distance between the terminal from the base station
The second base station is determined in set, the signal strength indication of second base station is greater than the preset threshold.
Wherein, after search module 202 searches collection of base stations, determining module 203 can be obtained respectively in the collection of base stations
Each base station and the distance between the terminal.For example, determining module 203 can respectively into the collection of base stations each base station
The location of reporting terminal information.Each base station in the collection of base stations receives the terminal location that determining module 203 reports
After information, the distance between the terminal is calculated, and return to the distance between itself and the terminal to determining module 203.It determines
After module 203 receives the distance that each base station returns, according to each terminal and itself the distance between from the collection of base stations
Determine the second base station.Wherein, the signal strength indication of second base station is greater than the preset threshold.
Switching module 204, for establish with the communication connection of second base station, and disconnect and connecting with the communication of the first base station
It connects.
Wherein it is determined that module 203 is after determining the second base station in collection of base stations, switching module 204 establish with this second
Communication connection between base station, and disconnect the communication connection between above-mentioned first base station.
Since the signal strength indication of the second base station is greater than above-mentioned preset threshold, and the signal strength indication of first base station is less than this
Preset threshold namely the signal strength indication of the second base station are greater than the signal strength indication of the first base station.Therefore, base station switching device
200 behind the base station of switching connection, can be improved the signal stabilization of terminal.
In some embodiments, as shown in Figure 10, determining module 203 includes: that sorting sub-module 2031, first determines submodule
Block 2032, second determines submodule 2033.
Sorting sub-module 2031, for arranging the distance between each base station and the terminal in the collection of base stations
Sequence;
First determines submodule 2032, nearest apart from the terminal for being determined from the collection of base stations according to ranking results
Base station;
Second determines submodule 2033, for the base station nearest apart from the terminal to be determined as the second base station.
Wherein, after search module 202 searches collection of base stations, sorting sub-module 2031 can obtain the collection of base stations respectively
In each base station and the distance between the terminal.Then, sorting sub-module 2031 by the collection of base stations each base station with
The distance between the terminal is ranked up.Sort by can be descending arrangement, be also possible to ascending order arrangement.For example, base station set
Close include tri- base stations A, B, C, wherein the distance between tri- base stations A, B, C and terminal respectively 10km (km), 8km,
12km then carries out the result of descending arrangement are as follows: C, A, B according to distance.
After obtaining ranking results, first determines that submodule 2032 determines distance from the collection of base stations according to ranking results
The nearest base station of the terminal.For example, according to distance carry out descending arrangement result be C, A, B, then can determine base station B be away from
The base station nearest from the terminal.Then, second determine that base station B is determined as the second base station by submodule 2033.
In some embodiments, second determine submodule 2033 for executing following steps:
Whether the quantity for judging the base station nearest apart from the terminal is one;
If the quantity of the base station nearest apart from the terminal is one, the base station nearest apart from the terminal is determined as second
Base station.
Wherein, after the first determining submodule 2032 determines the base station nearest apart from the terminal according to ranking results, second
Determine that submodule 2033 judges whether the quantity of the base station nearest apart from the terminal is one.If the base station nearest apart from the terminal
Only one, then be determined as the second base station apart from nearest base station for this.
In some embodiments, second determine that submodule 2033 is also used to execute following steps:
If the quantity of the base station nearest apart from the terminal is not one, each base nearest apart from the terminal is successively obtained
The response time stood to instruction;
The response time shortest base station is determined as the second base station.
It wherein, if the quantity of the base station nearest apart from the terminal is not one, such as include A, B, C, D tetra- in collection of base stations
A base station, tetra- base stations A, B, C, D be respectively 10km, 8km, 12km, 8km, then base station B and base station D at a distance from the terminal with
The distance between the terminal is minimum.At this point, second determines that submodule 2033 successively obtains base station B, base station D to the sound of instruction
Between seasonable, and response time shortest base station is determined as the second base station.
When the base station number nearest apart from terminal is not one, response time shortest base station is determined as the second base
It stands, it can be ensured that the distance between the second base station and terminal communication efficiency highest simultaneously recently.
In some embodiments, when successively obtaining response time of each base station nearest apart from the terminal to instruction, the
Two determine that submodule 2033 executes following steps:
Successively probe instructions are sent to each base station nearest apart from the terminal;
Receive the response message that each base station nearest apart from the terminal returns;
When successively according to the response information acquisition of each base station each base station nearest apart from the terminal to the response of instruction
Between.
Wherein, second determine that submodule 2033 successively can send detection to each base station nearest apart from the terminal and refer to
It enables.For example, the base station nearest apart from terminal includes base station B and base station D, then second determine submodule 2033 successively to base station B, base
The D that stands sends probe instructions.The probe instructions need to only obtain the response of base station, and probe instructions can not include any order.
Then, second determine that submodule 2033 receives the response message that each base station nearest apart from the terminal returns.For example, second is true
The response message of the reception of stator modules 2033 base station B and base station D.Then, for each base station nearest apart from the terminal, second
Determine that submodule 2033 can obtain the base station pair according at the time of sending probe instructions and at the time of receiving response message
The response time of instruction.For example, sending the time interval between probe instructions and the response message for receiving base station B to base station B
For 100ms (millisecond), the time interval that Xiang Jizhan D is sent between probe instructions and the response message for receiving base station D is
120ms, then available to base station B is 100ms to response time of instruction, and base station D is 120ms to the response time of instruction.
In some embodiments, second determine that submodule 2033 is also used to execute following steps:
Judge whether the terminal is kept in motion;
If the terminal is kept in motion, the direction of motion of the terminal is obtained;
The second base station is determined according to the angle between each base station nearest apart from the terminal and the direction of motion.
Wherein, second determine that submodule 2033 can detect the state of terminal by acceleration transducer, to judge terminal
Whether it is kept in motion.When terminal is kept in motion, the direction of motion of the terminal is obtained.Wherein, second submodule is determined
Block 2033 can at interval of the location information of acquisition terminal after a period of time, and according to the location information obtain terminal movement side
To.For example, second determines submodule 2033 at interval of the location information of the terminal of acquisition in 1 second, and by the position of preceding one acquisition
It sets and is directed toward the direction of the position of current one acquisition and is determined as the direction of motion of terminal.
Then, second the location of available each base station nearest apart from the terminal of submodule 2033 letter is determined
Breath, and according to the angle between each base station of the positional information calculation and the direction of motion, then according to each base station and the fortune
Angle between dynamic direction determines the second base station.
In some embodiments, it is determined according to the angle between each base station nearest apart from the terminal and the direction of motion
When the second base station, second determines submodule 2033 for executing following steps:
Angle between each base station nearest apart from the terminal and the direction of motion is ranked up;
The smallest base station of angle between the direction of motion is determined as the second base station.
Wherein, after the second determining submodule 2033 gets the location information of each base station, according to the positional information calculation
Angle between each base station and the direction of motion, and calculated multiple angles are ranked up.For example, base station B and the fortune
Angle between dynamic direction is 30 degree, and the angle between base station D and the direction of motion is 120 degree, then the direction of motion court of terminal
Deviate from base station D to base station B, thus the distance between terminal and base station B in reduction and between the D of base station at a distance from increasing.
Second determines the result that submodule 2033 is ranked up angle according to descending are as follows: base station D, base station B.Then, second son is determined
The smallest base station of angle between the direction of motion can be determined as the second base station according to ranking results by module 2033.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities.
From the foregoing, it will be observed that base station switching device 200 provided in an embodiment of the present invention, by obtaining the acquisition of module 201 and terminal
Establish the signal strength indication of the first base station of communication connection;When the signal strength indication is less than preset threshold, search module 202 is searched
The Suo Keyu terminal establishes the collection of base stations of communication connection, and it is default greater than this which includes at least two signal strength indications
The base station of threshold value;Determining module 203 according in the collection of base stations each base station and the distance between the terminal from the base station set
The second base station is determined in conjunction, the signal strength indication of second base station is greater than the preset threshold;Switching module 204 establish with this
The communication connection of two base stations, and disconnect the communication connection with the first base station.The program is establishing the of communication connection with terminal
When the signal strength indication of one base station is smaller, communication connection is switched to the second big base station of signal strength indication, therefore can be improved
The signal stabilization of terminal.
The embodiment of the present invention also provides a kind of terminal.The terminal can be the equipment such as smart phone, tablet computer.Such as Figure 11
Shown, terminal 300 includes processor 301, memory 302 and radio circuit 303.Wherein, processor 301 respectively with memory
302, radio circuit 303 is electrically connected.
Processor 301 is the control centre of terminal 300, utilizes each portion of various interfaces and the entire terminal of connection
Point, by the application program of operation or load store in memory 302, and the data being stored in memory 302 are called,
The various functions and processing data for executing terminal, to carry out integral monitoring to terminal.
In the present embodiment, the processor 301 in terminal 300 can be according to following step, will be one or more
The corresponding instruction of the process of application program is loaded into memory 302, and is run by processor 301 and be stored in memory 302
In application program, to realize various functions:
Obtain the signal strength indication that the first base station of communication connection is established with terminal;
When the signal strength indication is less than preset threshold, search can establish the collection of base stations of communication connection with the terminal, should
Collection of base stations includes at least the base station that two signal strength indications are greater than the preset threshold;
According in the collection of base stations each base station and the distance between the terminal determine second from the collection of base stations
The signal strength indication of base station, second base station is greater than the preset threshold;
The communication connection with second base station is established, and disconnects the communication connection with the first base station.
In some embodiments, according in the collection of base stations each base station and the distance between the terminal from the base station set
When determining the second base station in conjunction, processor 301 execute following steps: by the collection of base stations each base station and the terminal it
Between distance be ranked up;The base station nearest apart from the terminal is determined from the collection of base stations according to ranking results;By distance
The nearest base station of the terminal is determined as the second base station.
In some embodiments, when the base station nearest apart from the terminal being determined as the second base station, processor 301 execute with
Lower step: whether the quantity for judging the base station nearest apart from the terminal is one;If the quantity of the base station nearest apart from the terminal
It is one, then the base station nearest apart from the terminal is determined as the second base station.
In some embodiments, when the base station nearest apart from the terminal being determined as the second base station, processor 301 is also executed
Following steps: it if the quantity of the base station nearest apart from the terminal is not one, successively obtains apart from nearest each of the terminal
Response time of the base station to instruction;The response time shortest base station is determined as the second base station.
In some embodiments, when successively obtaining response time of each base station nearest apart from the terminal to instruction, place
It manages device 301 and executes following steps: successively sending probe instructions to each base station nearest apart from the terminal;It receives apart from the terminal
The response message that nearest each base station returns;Successively according to the response information acquisition of each base station apart from nearest every of the terminal
Response time of one base station to instruction.
In some embodiments, when the base station nearest apart from the terminal being determined as the second base station, processor 301 is also executed
Following steps: if the quantity of the base station nearest apart from the terminal is not one, judge whether the terminal is kept in motion;If
The terminal is kept in motion, then obtains the direction of motion of the terminal;According to each base station nearest apart from the terminal and the fortune
Angle between dynamic direction determines the second base station.
In some embodiments, it is determined according to the angle between each base station nearest apart from the terminal and the direction of motion
When the second base station, processor 301 executes following steps: will be between each base station nearest apart from the terminal and the direction of motion
Angle is ranked up;The smallest base station of angle between the direction of motion is determined as the second base station.
Memory 302 can be used for storing application program and data.Including in the application program that memory 302 stores can be
The instruction executed in processor.Application program can form various functional modules.Processor 301 is stored in memory by operation
302 application program, thereby executing various function application and data processing.
Radio circuit 303 can establish wireless telecommunications with the network equipment or other electronic equipments by wireless communication, with net
Receiving and transmitting signal between network equipment or other electronic equipments.
In some embodiments, as shown in figure 12, terminal 300 further include: display screen 304, control circuit 305, input are single
Member 306, voicefrequency circuit 307, sensor 308 and power supply 309.Wherein, processor 301 respectively with display screen 304, control circuit
305, input unit 306, voicefrequency circuit 307, sensor 308 and power supply 309 are electrically connected.
Display screen 304 can be used for showing information input by user or be supplied to the information of user and the various figures of terminal
Shape user interface, these graphical user interface can be made of image, text, icon, video and any combination thereof.
Control circuit 305 and display screen 304 are electrically connected, and show information for controlling display screen 304.
Input unit 306 can be used for receiving number, character information or the user's characteristic information (such as fingerprint) of input, and
Generate keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal input.Wherein,
Input unit 306 may include fingerprint recognition mould group.
Voicefrequency circuit 307 can provide the audio interface between user and terminal by loudspeaker, microphone.
Sensor 308 is for acquiring external environmental information.Sensor 308 may include ambient light sensor, acceleration
One of sensors such as sensor, gyroscope are a variety of.
Power supply 309 is used to power to all parts of terminal 300.In some embodiments, power supply 309 can pass through power supply
Management system and processor 301 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system
The functions such as reason.
Although being not shown in Figure 12, terminal 300 can also include camera, bluetooth module etc., and details are not described herein.
From the foregoing, it will be observed that obtaining the first base station for establishing communication connection with terminal the embodiment of the invention provides a kind of terminal
Signal strength indication;When the signal strength indication is less than preset threshold, search can establish the base station set of communication connection with the terminal
It closes, which includes at least the base station that two signal strength indications are greater than the preset threshold;According to every in the collection of base stations
The second base station is determined in the distance between one base station and the terminal from the collection of base stations, and the signal strength indication of second base station is big
In the preset threshold;The communication connection with second base station is established, and disconnects the communication connection with the first base station.The program exists
When the signal strength indication that the first base station of communication connection is established with terminal is smaller, it is big that communication connection is switched to signal strength indication
Second base station, therefore the signal stabilization of terminal can be improved.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps are relevant hardware can be instructed to complete by program, which can store in computer-readable storage medium
In matter, storage medium be can include but is not limited to: read-only memory (ROM, Read Only Memory), random access memory
(RAM, Random Access Memory), disk or CD etc..
It is provided for the embodiments of the invention base station switch method, device and terminal above to be described in detail, herein
In apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to sides
Assistant solves method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, In
There will be changes in specific embodiment and application range, in conclusion the content of the present specification should not be construed as to this hair
Bright limitation.
Claims (5)
1. a kind of base station switch method characterized by comprising
Terminal obtains the signal strength indication that the first base station of communication connection is established with the terminal;
When the signal strength indication is less than preset threshold, the terminal searching can establish the base station of communication connection with the terminal
Set, the collection of base stations include at least the base station that two signal strength indications are greater than the preset threshold;
The distance between each base station and the terminal in the collection of base stations is ranked up by the terminal;
The terminal determines the base station nearest apart from the terminal according to ranking results from the collection of base stations;
If the base station nearest apart from the terminal is not one and the terminal is kept in motion, the terminal will be apart from institute
It states terminal recently and the smallest base station of angle is determined as the second base station between the direction of motion of the terminal;
The terminal establishes the communication connection with second base station, and disconnects the communication connection with the first base station.
2. a kind of base station switching device characterized by comprising
Module is obtained, for obtaining the signal strength indication for establishing the first base station of communication connection with terminal;
Search module, for when the signal strength indication is less than preset threshold, search can to establish communication connection with the terminal
Collection of base stations, the collection of base stations includes at least the base station that two signal strength indications are greater than the preset threshold;
Determining module, for the distance between each base station and the terminal in the collection of base stations to be ranked up;And
The base station nearest apart from the terminal is determined from the collection of base stations according to ranking results;And apart from the terminal most
Close base station is not one and when the terminal is kept in motion, by the movement apart from the terminal recently and with the terminal
The smallest base station of angle is determined as the second base station between direction;
Switching module, for establish with the communication connection of second base station, and disconnect and the communication connection of the first base station.
3. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, the computer program is suitable
It loads in as processor with base station switch method described in perform claim requirement 1.
4. a kind of terminal, which is characterized in that including processor and storage medium, computer journey is stored in the storage medium
Sequence, the processor load the computer program with base station switch method described in perform claim requirement 1.
5. a kind of terminal, including processor, memory and radio circuit, it is characterised in that:
The processor and the memory, radio circuit are electrically connected, and the memory is for storing instruction and data, described
Radio circuit is used for transceiving radio frequency signal;
The radio circuit is also used to obtain the signal strength indication for the first base station that communication connection is established with the terminal;
The radio circuit is also used to when the signal strength indication is less than preset threshold, and search can establish logical with the terminal
The collection of base stations of connection is interrogated, the collection of base stations includes at least the base station that two signal strength indications are greater than the preset threshold;
The processor, for the distance between each base station and the terminal in the collection of base stations to be ranked up;With
And the base station nearest apart from the terminal is determined from the collection of base stations according to ranking results;And apart from the terminal
Nearest base station is not one and when the terminal is kept in motion, by the fortune apart from the terminal recently and with the terminal
The smallest base station of angle is determined as the second base station between dynamic direction;
The radio circuit is also used to establish the communication connection with second base station, and disconnects logical with the first base station
News connection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710370632.0A CN107046701B (en) | 2017-05-23 | 2017-05-23 | Base station switch method, device, storage medium and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710370632.0A CN107046701B (en) | 2017-05-23 | 2017-05-23 | Base station switch method, device, storage medium and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107046701A CN107046701A (en) | 2017-08-15 |
CN107046701B true CN107046701B (en) | 2019-12-03 |
Family
ID=59546124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710370632.0A Active CN107046701B (en) | 2017-05-23 | 2017-05-23 | Base station switch method, device, storage medium and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107046701B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107484215B (en) * | 2017-09-04 | 2020-06-19 | 深圳市盛路物联通讯技术有限公司 | Method for recommending access base station based on antenna received signal strength and mobile terminal |
CN109756943A (en) * | 2017-11-03 | 2019-05-14 | 海能达通信股份有限公司 | Communication system, communication terminal and its method for automatically switching base station |
CN110703192B (en) * | 2018-07-09 | 2023-04-28 | 中移物联网有限公司 | Positioning method and device, equipment and storage medium |
CN110536346B (en) * | 2019-05-16 | 2022-01-11 | Oppo广东移动通信有限公司 | Power consumption control method and device of terminal and storage medium |
CN112533265B (en) * | 2020-12-09 | 2022-07-01 | 山东黄金矿业(莱州)有限公司三山岛金矿 | Multi-gateway wireless channel and network route fast switching method based on wireless ranging |
CN113873686A (en) * | 2021-10-14 | 2021-12-31 | 福州思飞信息技术有限公司 | Electronic price tag base station switching method and device based on Internet of things |
CN113891319B (en) * | 2021-10-29 | 2023-07-04 | 中国联合网络通信集团有限公司 | Switching method between base stations, vehicle-mounted terminal and data processing device |
CN114545328B (en) * | 2022-04-25 | 2022-08-16 | 高勘(广州)技术有限公司 | Tracking method and system for optical cable inspection equipment, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752823A (en) * | 2012-07-04 | 2012-10-24 | 西安电子科技大学 | Method for switching user terminal between access joints in WLAN (Wireless Local Area Network) based on AP (Access Point) collaboration |
CN103781155A (en) * | 2012-10-17 | 2014-05-07 | 希姆通信息技术(上海)有限公司 | Mobile terminal and network searching method thereof |
CN104902529A (en) * | 2015-04-27 | 2015-09-09 | 努比亚技术有限公司 | Network switching method, device and base station |
CN105682163A (en) * | 2016-01-12 | 2016-06-15 | 宇龙计算机通信科技(深圳)有限公司 | Base station switching control method, base station switching control device and terminal |
-
2017
- 2017-05-23 CN CN201710370632.0A patent/CN107046701B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752823A (en) * | 2012-07-04 | 2012-10-24 | 西安电子科技大学 | Method for switching user terminal between access joints in WLAN (Wireless Local Area Network) based on AP (Access Point) collaboration |
CN103781155A (en) * | 2012-10-17 | 2014-05-07 | 希姆通信息技术(上海)有限公司 | Mobile terminal and network searching method thereof |
CN104902529A (en) * | 2015-04-27 | 2015-09-09 | 努比亚技术有限公司 | Network switching method, device and base station |
CN105682163A (en) * | 2016-01-12 | 2016-06-15 | 宇龙计算机通信科技(深圳)有限公司 | Base station switching control method, base station switching control device and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107046701A (en) | 2017-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107046701B (en) | Base station switch method, device, storage medium and terminal | |
CN107147450B (en) | Radio frequency interference processing method, device, storage medium and terminal | |
CN105704734B (en) | A kind of detection method, device and the communication terminal of specified type cell | |
US20170135032A1 (en) | Network connecting method and apparatus, and storage medium | |
CN106951209A (en) | A kind of control method, device and electronic equipment | |
CN109495846A (en) | A kind of localization method and mobile terminal | |
CN109155899A (en) | Network-residing method of mobile terminal in wireless communication network and mobile terminal | |
CN109769287A (en) | Cell selecting method and terminal | |
CN109600808B (en) | Cell selection method, terminal and network side equipment | |
CN106411627A (en) | Network connection detection method and apparatus | |
CN109005574A (en) | Cell selecting method, mobile terminal and computer readable storage medium | |
CN106714275A (en) | Wi-Fi connection method and mobile terminal | |
CN106131931A (en) | A kind of network selecting method, Apparatus and system | |
CN110457086A (en) | A kind of control method of application program, mobile terminal and server | |
CN109640347A (en) | Journal file automatically grabs method, apparatus, mobile terminal and readable storage medium storing program for executing | |
CN108811045B (en) | WiFi channel scanning method and device, mobile terminal and storage medium | |
CN109862607B (en) | Network recommendation method and mobile terminal | |
CN116029719A (en) | Payment service recommendation method, electronic device and storage medium | |
CN112859136B (en) | Positioning method and related device | |
CN110677842A (en) | Network searching method, device, terminal equipment and storage medium | |
CN109993234A (en) | A kind of unmanned training data classification method, device and electronic equipment | |
CN110047246A (en) | Alarm method, equipment and computer readable storage medium | |
CN111093238B (en) | Wireless network control method and device, storage medium and electronic equipment | |
CN105376839A (en) | Mobile terminal and mobile network selection prompting method and system thereof | |
CN112383928A (en) | Cell reselection method, terminal equipment and storage medium |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |