CN106793017A - A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal - Google Patents
A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal Download PDFInfo
- Publication number
- CN106793017A CN106793017A CN201710091092.2A CN201710091092A CN106793017A CN 106793017 A CN106793017 A CN 106793017A CN 201710091092 A CN201710091092 A CN 201710091092A CN 106793017 A CN106793017 A CN 106793017A
- Authority
- CN
- China
- Prior art keywords
- rssi
- increase
- target
- access point
- frequency ranges
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/20—Selecting an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
A kind of Wireless Fidelity Wi Fi connection methods are the embodiment of the invention provides, wherein, methods described includes:After Wi Fi scannings, the signal intensity that the access point in 5G frequency ranges is obtained from scanning result indicates RSSI, obtains N number of RSSI, and M RSSI of the access point in non-5G frequency ranges is also included in the scanning result, and the N, the M are positive integer;Increase treatment is carried out to N number of RSSI, the described N number of RSSI after increase treatment is obtained;The maximum first object RSSI of RSSI are chosen from described N number of RSSI and the M RSSI after increase treatment;Connect the corresponding access points of the first object RSSI.The embodiment of the present invention additionally provides a kind of mobile terminal.Implementing the embodiment of the present invention can be with the AP of Rational choice 5G frequency ranges.
Description
Technical field
The present invention relates to communication technical field, and in particular to a kind of Wireless Fidelity Wi-Fi connection method and mobile terminal.
Background technology
As information technology is fast-developing, mobile terminal (mobile phone, panel computer etc.) is used and increasingly popularized, meanwhile, use
Dependence of the family to wireless network is also more and more stronger.
In the prior art, on the one hand, the access point (Access Point, AP) using 2.4GHz frequency ranges is more and more, leads
Cause interference each other increasingly severe, on the other hand, to lack using the AP of 5GHz frequency ranges is relative, channel disturbance also will
It is few a lot, but, in actual use, often encounter access point (Access Point, AP) signal ratio of 5G frequency ranges
The AP weak (signal of 5GHz is faster than 2.4Ghz decay) of 2.4G, in this way, mobile terminal is easy to the AP of selection connection 2.4G channels,
If the mandatory AP for allowing mobile terminal preferential attachment 5G, if the AP for running into 5G frequency ranges is weaker than the AP signals of 2.4G frequency range too many,
Will also result in Consumer's Experience poor, therefore, how the problems demand of the AP of Rational choice 5G frequency ranges is solved.
The content of the invention
A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal are the embodiment of the invention provides, can be with Rational choice 5G
The AP of frequency range.
Embodiment of the present invention first aspect provides a kind of Wireless Fidelity Wi-Fi connection method, including:
After Wi-Fi scannings, the signal intensity that the access point in 5G frequency ranges is obtained from scanning result indicates RSSI,
Obtain N number of RSSI, in the scanning result also include in non-5G frequency ranges access point M RSSI, the N be positive integer,
The M is natural number;
Increase treatment is carried out to N number of RSSI, the described N number of RSSI after increase treatment is obtained;
The maximum first object RSSI of RSSI are chosen from described N number of RSSI and the M RSSI after increase treatment;
Connect the corresponding access points of the first object RSSI.
Embodiment of the present invention second aspect provides a kind of mobile terminal, including:
Acquiring unit, after being scanned in Wi-Fi, obtains the signal of the access point in 5G frequency ranges from scanning result
Intensity indicates RSSI, obtains N number of RSSI, and M RSSI of the access point in non-5G frequency ranges, institute are also included in the scanning result
State N, the M and be positive integer;
Processing unit, for carrying out increase treatment to N number of RSSI, obtains the described N number of RSSI after increase treatment;
Choose unit, for being processed from increase after described N number of RSSI and the M RSSI in choose the of RSSI maximums
One target RSSI;
Connection unit, for connecting the corresponding access points of the first object RSSI.
The embodiment of the present invention third aspect provides a kind of mobile terminal, including:
Processor and memory;Wherein, the processor is by calling code in the memory or instruction to perform
The some or all of step of the method described by first aspect.
Implement the embodiment of the present invention, have the advantages that:
As can be seen that by the embodiment of the present invention, can be obtained in 5G frequently from scanning result after Wi-Fi scannings
The RSSI of the access point of section, obtains N number of RSSI, and M RSSI of the access point in non-5G frequency ranges is also included in the scanning result,
N is positive integer, M is natural number, and increase treatment is carried out to N number of RSSI, obtains the N number of RSSI after increase treatment, from increase treatment
The maximum first object RSSI of RSSI are chosen in rear N number of RSSI and M RSSI, the corresponding accesses of first object RSSI are connected
Point.In this way, increase treatment can be carried out to the RSSI of the access point in 5G frequency ranges, so that, on the one hand, the AP of 5G frequency ranges can be increased
Be chosen a sequence of probability, on the other hand, can Rational choice 5G frequency ranges AP.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will make needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability
For the those of ordinary skill of domain, on the premise of not paying creative work, can also obtain other attached according to these accompanying drawings
Figure.
Fig. 1 is that a kind of first embodiment flow of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention is illustrated
Figure;
Fig. 2 is that a kind of second embodiment flow of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention is illustrated
Figure;
Fig. 3 a are a kind of first embodiment structural representations of mobile terminal provided in an embodiment of the present invention;
Fig. 3 b are the structural representations of the processing unit of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention;
Fig. 3 c are the another structural representations of the mobile terminal described by Fig. 3 a provided in an embodiment of the present invention;
Fig. 4 is a kind of second embodiment structural representation of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than whole embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " in description and claims of this specification and the accompanying drawing and "
Four " it is etc. for distinguishing different objects, rather than for describing particular order.Additionally, term " comprising " and " having " and it
Any deformation, it is intended that covering non-exclusive is included.For example contain the process of series of steps or unit, method, be
System, product or equipment are not limited to the step of having listed or unit, but alternatively also include the step of not listing or list
Unit, or alternatively also include for these processes, method, product or other intrinsic steps of equipment or unit.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can be wrapped in conjunction with the embodiments
Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal described by the embodiment of the present invention can include smart mobile phone (such as Android phone, iOS mobile phones,
Windows Phone mobile phones etc.), panel computer, palm PC, notebook computer, mobile internet device (MID, Mobile
Internet Devices) or Wearable etc., above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to upper
State mobile terminal.
Fig. 1 is referred to, is a kind of first embodiment stream of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention
Journey schematic diagram.Wireless Fidelity Wi-Fi connection method described in the present embodiment, comprises the following steps:
101st, after Wi-Fi scannings, the signal intensity that the access point in 5G frequency ranges is obtained from scanning result is indicated
RSSI, obtains N number of RSSI, and M RSSI of the access point in non-5G frequency ranges is also included in the scanning result, and the N is for just
Integer, the M are positive integer.
Wherein, mobile terminal can include the access point in 5G frequency ranges after Wi-Fi scannings are carried out in scanning result,
The access point in non-5G frequency ranges can also be included, certainly, specifically according to depending on current environment, if being deposited in current network conditions
In the access point of 5G frequency ranges, then can occur in scanning result, if there is non-5G frequency ranges in current environment (such as:2.4G frequency ranges)
Access point, then can also occur in scanning result.The embodiment of the present invention may be used primarily for the presence of 5G in current network conditions
The access point of frequency range, the access point that there is non-5G frequency ranges again.Therefore, the signal that scanning result can be received comprising multiple access points is strong
Degree indicates (Received Signal Strength Indication, RSSI), and one RSSI of each access point correspondence is (generally
In the case of, the unit of RSSI is decibel, i.e. dBm), access point can be access point in 5G frequency ranges or in non-5G frequency ranges
Access point.In embodiments of the present invention, it can be assumed that the RSSI of the access point in 5G frequency ranges have it is N number of (N number of access point, it is each
Access point one RSSI of correspondence, N is positive integer), the access point in non-5G frequency ranges is M, each access point correspondence one
RSSI (i.e. M RSSI, M are positive integer).
Alternatively, in implementing, after Wi-Fi scannings, with the presence or absence of 5G frequency ranges in detectable scanning result
Access point, if in the absence of the access point of 5G frequency ranges in scanning result, RSSI maximums pair can be directly chosen from scanning result
The access point answered is attached.If in the presence of the access point of at least one 5G frequency ranges, source can be obtained from scanning result in 5G
The access point of frequency range.
Alternatively, in implementing, after Wi-Fi scannings, non-5G frequency ranges are whether there is in detectable scanning result
Access point, if in scanning result all 5G frequency ranges access point, RSSI can be directly chosen from scanning result maximum
Access point is attached.
102nd, increase treatment is carried out to N number of RSSI, obtains the described N number of RSSI after increase treatment.
Wherein, can respectively to N number of RSSI in every RSSI carry out increase treatment, specifically, can previously according to experience will
RSSI points is multiple grades, so, it may be determined that the corresponding grades of every RSSI in N number of RSSI, for different grades, can be right
RSSI carries out different increase treatment, in this way, the N number of RSSI after increase treatment can be obtained.
Alternatively, in above-mentioned steps 102, increase treatment is carried out to N number of RSSI, it may include following steps:
21) the corresponding goal gradient of i-th RSSI, is determined, i-th RSSI is any one in N number of RSSI
RSSI;
22), according to the corresponding relation between default grade and increase parameter, the corresponding target of the goal gradient is determined
Increase parameter;
23), increase parameter according to the target carries out increase treatment to i-th RSSI.
Wherein it is possible to by taking i-th RSSI as an example, i-th RSSI is any one RSSI in above-mentioned N number of RSSI, can be true
The fixed corresponding goal gradients of i-th RSSI, can determine the mesh according to the corresponding relation between default grade and increase parameter
The corresponding target increase parameter of mark grade, and increase treatment is carried out to i-th RSSI according to target increase parameter.Above-mentioned target
Increase parameter can be a specific decibels (for example, 10dBm), or an increase multiple is (such as:0.8).Certainly, originally
Every RSSI in being needed in inventive embodiments to N number of RSSI carries out increase treatment.
Alternatively, in above-mentioned steps 23, increase parameter according to the target carries out increase treatment to i-th RSSI,
Including:
Calculate target increase parameter and i-th RSSI sums.
In implementing, after the Wi-Fi ends of scan, RSSI benefits can be carried out to it according to the signal strength of the AP of 5G frequency ranges
Repay, if the 5G AP signals for scanning are strong, compensation high can be carried out to it, if signal is medium, medium compensation can be carried out, if signal
It is weak, then few compensation or uncompensation can be carried out, the signal intensity of even 5G AP is too weak, then do not increase necessity for the treatment of, because
And, increase treatment can not be carried out to it.
For example, the corresponding relation being provided below between a kind of grade and increase parameter:
If the 1, RSSI>- 60dBm, then it is 15dBm to increase parameter, you can the RSSI of the AP in the grade is added into 15dBm;
If the 2, -70dBm<RSSI≤- 60dBm, then it is 10dBm to increase parameter, you can by the RSSI of the AP in the grade
Plus 10dBm;
If the 3, -80dBm<RSSI≤- 70dBm, then it is 5dBm to increase parameter, you can add the RSSI of the AP in the grade
5dBm
If the 4, RSSI≤- 80dBm, uncompensation.
And then, the AP that can select RSSI maximum from the RSSI of the RSSI of the 5G AP after compensation and non-5G AP is connected
Connect.In this way, the 5G frequency ranges selected probability of AP can be increased to a certain extent, you can rationally the AP to 5G frequency ranges is selected.
Alternatively, in above-mentioned steps 23, increase parameter according to the target carries out increase treatment to i-th RSSI,
Including:
Calculate the product of the target increase parameter and i-th RSSI.
In implementing, after the Wi-Fi ends of scan, RSSI benefits can be carried out to it according to the signal strength of the AP of 5G frequency ranges
Repay, if the 5G AP signals for scanning are strong, compensation high can be carried out to it, if signal is medium, medium compensation can be carried out, if signal
It is weak, then few compensation or uncompensation can be carried out, the signal intensity of even 5G AP is too weak, then do not increase necessity for the treatment of, because
And, increase treatment can not be carried out to it.
For example, the corresponding relation being provided below between a kind of grade and increase parameter:
If the 1, RSSI>- 60dBm, then it is 0.6 to increase parameter, you can the RSSI of the AP in the grade is multiplied by into 0.6;
If the 2, -70dBm<RSSI≤- 60dBm, then it is 0.8 to increase parameter, you can multiply the RSSI of the AP in the grade
With 0.8;
If the 3, -80dBm<RSSI≤- 70dBm, then it is 0.9 to increase parameter, you can multiply the RSSI of the AP in the grade
With 0.9;
If the 4, RSSI≤- 80dBm, uncompensation.
And then, the AP that can select RSSI maximum from the RSSI of the RSSI of the 5G AP after compensation and non-5G AP is connected
Connect.In this way, go up the 5G frequency ranges selected probability of AP can be increased to a certain extent, you can rationally the AP to 5G frequency ranges is selected
Select.
Alternatively, in above-mentioned steps 102, increase treatment is carried out to N number of RSSI, obtains the N after increase treatment
Individual RSSI, can comprise the following steps:
24) current location of mobile terminal, is determined;
25) position of the corresponding access points of every RSSI in N number of RSSI, is obtained, N number of position is obtained;
26), determine the distance between the current location and each position in N number of position value, obtain it is described it is N number of away from
From value;
27), according to the corresponding relation between default distance value and increase parameter, determine each in N number of distance value
The corresponding target increase parameter of distance value, obtains N number of target increase parameter;
28) corresponding RSSI is carried out at increase according to each target increase parameter in N number of target increase parameter,
Reason, obtains the described N number of RSSI after increase treatment.
Wherein, mobile terminal can determine to move by global positioning system (Global Positioning System, GPS)
The current location of dynamic terminal, or, mobile terminal can determine the current location of mobile terminal by Wi-Fi location technologies.It is above-mentioned
The current location of mobile terminal can be indicated with longitude and latitude, for example, current location is represented by 113 ° of 46' of east longitude, 22 ° of north latitude
27'.Certainly, if determining the current location of mobile terminal using Wi-Fi location technologies, then, current Wi-Fi is scanned
The position of a certain AP as the mobile terminal position, if be marked in indoor map can be used as being a point for the position of the AP
(point for expression mobile terminal locations).It is of course also possible in obtaining N number of RSSI the corresponding access point of every RSSI position
Put, obtain N number of position, and then, determine the distance between each position value in current location and N number of position, obtain N number of distance
Value.Certainly, distance have it is remote have near, thus, the RSSI of the access point of the 5G frequency range near apart from current distance, it is possible to increase some more, away from
The RSSI of the access point of the 5G frequency ranges away from current distance, it is possible to increase less.Therefore, can be joined with increase according to default distance value
Corresponding relation between number, determines the corresponding target increase parameter of each distance value in N number of distance value, obtains N number of target increase
Parameter, for example, can meet a functional relation between distance value and increase parameter, such as:Y=f (x), wherein, x is distance value,
Y is increase parameter, and f is the corresponding relation between distance value and increase parameter, and f can be linear function or nonlinear function.Such as
This, it may be determined that go out in above-mentioned N number of distance value it is each apart from corresponding increase parameter, in this way, can according to increase parameter to it
Corresponding RSSI carries out increase treatment.Specifically can refer to above-mentioned:Each target increase parameter and i-th RSSI sum are calculated, or
Person, calculates target increase parameter with i-th product of RSSI.
103rd, the maximum first objects of RSSI are chosen from described N number of RSSI and the M RSSI after increase treatment
RSSI。
Wherein, mobile terminal can choose the maximum first objects of RSSI from N number of RSSI and M RSSI after increase treatment
RSSI。
104th, the corresponding access points of the first object RSSI are connected.
Wherein, mobile terminal can choose the corresponding access points of first object RSSI, and connect the access point.
Alternatively, certainly, if the corresponding access points of mobile terminal access first object RSSI fail, can be processed from increase
Choose second largest corresponding access points of RSSI of RSSI in rear N number of RSSI and M RSSI, mobile terminal can be attempted accessing this and connect
Access point, if being successfully accessed, can access and be successfully accessed the access point, if access point fails, can be N number of from after increase treatment
The third-largest corresponding access points of RSSI of RSSI are chosen in RSSI and M RSSI, mobile terminal can be attempted accessing the access point, with
This analogizes.
Alternatively, between step 101 and step 102, can also comprise the following steps:
Determine the current location of mobile terminal, if the current location belongs to predeterminated position, perform step 102.
Above-mentioned predetermined threshold value can voluntarily be set by user, and predeterminated position may include but be not limited only to:Library, museum,
Airport, station, supermarket, shopping mall, railway station, office building, hospital, school etc..Under normal circumstances, predeterminated position can be according to warp
Test to set, it can be understood as, the access point that predeterminated position is included is more, and user is more, thus, the access point of non-5G frequency ranges it
Between interference may be larger.Certainly, if current location is not belonging to predeterminated position, can directly choose what is received from scanning result
RSSI maximum access point is attached.
Alternatively, between step 101 and step 102, can also comprise the following steps:
Determine that whether above-mentioned M, more than predetermined number threshold value, if the M is more than predetermined number threshold value, performs step 102.
Wherein, M is bigger, then illustrate mobile terminal the access point number in non-2.5G frequency ranges in a network environment get over
Many, in this way, M is bigger, then the signal interference between the access point of non-2.5G frequency ranges that may be in the network environment is larger, if user
The access point of certain non-2.5G frequency range is accessed, then easily occurs going offline, or, situations such as network rate is slow.Therefore, can be set one
Individual predetermined number threshold value, the predetermined number threshold value can voluntarily be set or system default by user, it will be appreciated that be, in non-
The access point number of 2.5G frequency ranges be more than the predetermined number threshold value, then between the access point of non-2.5G frequency ranges signal interference compared with
Greatly, the predetermined number threshold value is less than or equal in the access point number in non-2.5G frequency ranges, then the access point of non-2.5G frequency ranges
Between signal interference it is smaller, it is negligible.The maximum access points of the RSSI of reception then can be directly chosen from scanning result
It is attached.If M be less than or equal to predetermined number threshold value, directly can be chosen from scanning result reception RSSI maximum connect
Access point is attached.
As can be seen that by the embodiment of the present invention, can be obtained in 5G frequently from scanning result after Wi-Fi scannings
The RSSI of the access point of section, obtains N number of RSSI, and M RSSI of the access point in non-5G frequency ranges is also included in the scanning result,
N is positive integer, M is positive integer, and increase treatment is carried out to N number of RSSI, obtains the N number of RSSI after increase treatment, from increase treatment
The maximum first object RSSI of RSSI are chosen in rear N number of RSSI and M RSSI, the corresponding accesses of first object RSSI are connected
Point.In this way, increase treatment can be carried out to the RSSI of the access point in 5G frequency ranges, so that, on the one hand, the AP of 5G frequency ranges can be increased
Be chosen a sequence of probability, on the other hand, can Rational choice 5G frequency ranges AP.
Consistent with the abovely, Fig. 2 is referred to, is a kind of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention
Second embodiment schematic flow sheet.Wireless Fidelity Wi-Fi connection method described in the present embodiment, comprises the following steps:
201st, after Wi-Fi scannings, the signal intensity that the access point in 5G frequency ranges is obtained from scanning result is indicated
RSSI, obtains N number of RSSI, and M RSSI of the access point in non-5G frequency ranges is also included in the scanning result, the N, described
M is positive integer.
202nd, determine the maximum in N number of RSSI, obtain the second target RSSI.
Wherein, after the RSSI that the access point in 5G frequency ranges is determined, N number of RSSI, the value of every RSSI be can obtain
It is different, thus, maximum can be chosen from N number of RSSI, so that, obtain the second target RSSI.
In concrete application, if the RSSI of the access point in 5G frequency ranges is smaller, probably illustrate that the RSSI is corresponding
The signal intensity of access point is weaker, if having accessed the access point, is easy to generation and goes offline, so that, influence Consumer's Experience.This
The maximum in N number of RSSI can be judged in inventive embodiments, if maximum is less than predetermined threshold value, illustrate 5G frequency ranges
Access point signals intensity is very weak, thus, can not consider that mobile terminal accesses the access point of 5G frequency ranges.
203rd, judge the second target RSSI whether more than predetermined threshold value.
Wherein, above-mentioned predetermined threshold value can voluntarily be set or system default by user.If the second target RSSI is less than default
Threshold value, the then RSSI maximums that explanation is in the access point of 5G frequency ranges are less than predetermined threshold value, then others are in 5G frequency ranges
RSSI in access point is respectively less than the predetermined threshold value.Thus, when the second target RSSI is more than predetermined threshold value, can perform step
204.Certainly, predetermined threshold value is less than or equal in the second target RSSI, can perform and RSSI maximums correspondence is chosen from M RSSI
Access point.
204th, when the second target RSSI is more than the predetermined threshold value, increase treatment is carried out to N number of RSSI, is obtained
Described N number of RSSI to after increase treatment.
205th, the maximum first objects of RSSI are chosen from described N number of RSSI and the M RSSI after increase treatment
RSSI。
206th, the corresponding access points of the first object RSSI are connected.
Wherein, above-mentioned steps 201, step 204- steps 206 can refer to the Wireless Fidelity Wi-Fi connection side described by Fig. 1
The corresponding step of method, will not be repeated here.
As can be seen that by the embodiment of the present invention, can be obtained in 5G frequently from scanning result after Wi-Fi scannings
The RSSI of the access point of section, obtains N number of RSSI, and M RSSI of the access point in non-5G frequency ranges is also included in the scanning result,
N is positive integer, M is positive integer, determines the maximum in N number of RSSI, obtains the second target RSSI, is more than in the second target RSSI
During predetermined threshold value, increase treatment is carried out to N number of RSSI, obtain the N number of RSSI after increase treatment, it is N number of from after increase treatment
The maximum first object RSSI of RSSI are chosen in RSSI and M RSSI, the corresponding access points of first object RSSI are connected.Such as
This, can carry out increase treatment to the RSSI of the access point in 5G frequency ranges, so that, on the one hand, the AP that can increase 5G frequency ranges is chosen
Select a sequence of probability, on the other hand, can Rational choice 5G frequency ranges AP.
Consistent with the abovely, the Wireless Fidelity Wi-Fi connection method for being provided for the implementation embodiments of the present invention below
Device, it is specific as follows:
Fig. 3 a are referred to, is a kind of example structure schematic diagram of mobile terminal provided in an embodiment of the present invention.This implementation
Mobile terminal described in example, including:Acquiring unit 301, processing unit 302, selection unit 303 and connection unit 304, tool
Body is as follows:
Acquiring unit 301, after being scanned in Wi-Fi, obtains the access point in 5G frequency ranges from scanning result
RSSI, obtains N number of RSSI, and M RSSI of the access point in non-5G frequency ranges is also included in the scanning result, the N, described
M is positive integer;
Processing unit 302, for carrying out increase treatment to N number of RSSI, obtains described N number of after increase treatment
RSSI;
Choose unit 303, for being processed from increase after described N number of RSSI and the M RSSI in choose RSSI maximum
First object RSSI;
Connection unit 304, for connecting the corresponding access points of the first object RSSI.
Alternatively, the specific refinement structure of the processing unit 302 of the mobile terminal as described by Fig. 3 b, Fig. 3 b are Fig. 3 a,
The processing unit 302 may include:Determining module 3021 and processing module 3022, it is specific as follows:
Determining module 3021, for the corresponding goal gradients of i-th RSSI of determination, i-th RSSI is described N number of
Any one RSSI in RSSI;
The determining module 3021, also particularly useful for:
According to the corresponding relation between default grade and increase parameter, the corresponding target increase of the goal gradient is determined
Parameter;
Processing module 3022, increase treatment is carried out for increasing parameter according to the target to i-th RSSI.
Alternatively, the processing module 3022 specifically for:
Calculate target increase parameter and i-th RSSI sums.
Alternatively, the processing module 3022 specifically for:
Calculate the product of the target increase parameter and i-th RSSI.
Alternatively, the another modification structures of the mobile terminal as described by Fig. 3 c, Fig. 3 c are Fig. 3 a, it can also include:
Determining unit 305, it is specific as follows:
Determining unit 305, the letter of the access point in 5G frequency ranges is obtained for the acquiring unit 301 from scanning result
Number intensity indicates RSSI, obtains after N number of RSSI, determines the maximum in N number of RSSI, obtains the second target RSSI,
When the second target RSSI is more than predetermined threshold value, performed by the processing unit 302 carries out increase to N number of RSSI
Reason.
As can be seen that by the mobile terminal described by the embodiment of the present invention, can be tied from scanning after Wi-Fi scannings
The RSSI of the access point in 5G frequency ranges is obtained in fruit, N number of RSSI is obtained, also included in non-5G frequency ranges in the scanning result
M RSSI of access point, N are positive integer, M is positive integer, and increase treatment is carried out to N number of RSSI, obtain N number of after increase treatment
RSSI, chooses the maximum first object RSSI of RSSI from N number of RSSI and M RSSI after increase treatment, connects first mesh
The corresponding access points of mark RSSI.In this way, increase treatment can be carried out to the RSSI of the access point in 5G frequency ranges, so that, on the one hand,
The AP that 5G frequency ranges can be increased is chosen a sequence of probability, on the other hand, can Rational choice 5G frequency ranges AP.
Fig. 4 is referred to, is a kind of second embodiment structural representation of mobile terminal provided in an embodiment of the present invention.This reality
The mobile terminal described in example is applied, including:At least one input equipment 1000;At least one output equipment 2000;At least one
Individual processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000, the and of processor 3000
Memory 4000 is connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely contact panel, physical button or mouse.
The concretely display screen of above-mentioned output equipment 2000.
Above-mentioned memory 4000 can be high-speed RAM memory, or nonvolatile storage (non-volatile
Memory), such as magnetic disk storage.Above-mentioned memory 4000 is used to store batch processing code, above-mentioned input equipment 1000, defeated
Going out equipment 2000 and processor 3000 is used to call the program code stored in memory 4000, performs following operation:
After Wi-Fi scannings, the signal intensity that the access point in 5G frequency ranges is obtained from scanning result indicates RSSI,
N number of RSSI is obtained, M RSSI of the access point in non-5G frequency ranges is also included in the scanning result, the N, the M are
Positive integer;
Increase treatment is carried out to N number of RSSI, the described N number of RSSI after increase treatment is obtained;
The maximum first object RSSI of RSSI are chosen from described N number of RSSI and the M RSSI after increase treatment;
Connect the corresponding access points of the first object RSSI.
Alternatively, the N number of RSSI of above-mentioned processor 3000 pairs carries out increase treatment, including:
Determine the corresponding goal gradient of i-th RSSI, i-th RSSI is any one RSSI in N number of RSSI;
According to the corresponding relation between default grade and increase parameter, the corresponding target increase of the goal gradient is determined
Parameter;
Increase parameter according to the target carries out increase treatment to i-th RSSI.
Alternatively, above-mentioned processor 3000 increases parameter according to the target carries out increase treatment to i-th RSSI,
Including:
Calculate target increase parameter and i-th RSSI sums.
Alternatively, above-mentioned processor 3000 increases parameter according to the target carries out increase treatment to i-th RSSI,
Including:
Calculate the product of the target increase parameter and i-th RSSI.
Alternatively, above-mentioned processor 3000 is strong in the signal that the access point in 5G frequency ranges is obtained from scanning result
Degree indicates RSSI, after obtaining N number of RSSI, and before carrying out increase treatment to N number of RSSI, also particularly useful for:
Determine the maximum in N number of RSSI, obtain the second target RSSI, in the second target RSSI more than default
During threshold value, execution is described to carry out increase treatment to N number of RSSI.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored with journey
Sequence, the part including any Wireless Fidelity Wi-Fi connection method described in the above method embodiment when program is performed
Or Overall Steps.
Although invention has been described to combine each embodiment herein, however, implementing the present invention for required protection
During, those skilled in the art are by checking the accompanying drawing, disclosure and appended claims, it will be appreciated that and it is real
Other changes of the existing open embodiment.In the claims, " including " (comprising) one word be not excluded for other composition
Part or step, "a" or "an" are not excluded for the situation of multiple.Single processor or other units can realize claim
In some functions enumerating.Mutually different has been recited in mutually different dependent some measures, it is not intended that these are arranged
Apply to combine and produce good effect.
It will be understood by those skilled in the art that embodiments of the invention can be provided as method, device (equipment) or computer journey
Sequence product.Therefore, in terms of the present invention can be using complete hardware embodiment, complete software embodiment or combination software and hardware
The form of embodiment.And, the present invention can be used and wherein include the calculating of computer usable program code at one or more
The computer program implemented in machine usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.Computer program is stored/distributed in suitable medium, is provided together with other hardware or as the one of hardware
Part, it would however also be possible to employ other distribution forms, such as passes through Internet or other wired or wireless telecommunication systems.
The present invention be with reference to the embodiment of the present invention method, device (equipment) and computer program product flow chart with/
Or block diagram is described.It should be understood that each flow during flow chart and/or block diagram can be realized by computer program instructions and/
Or the combination of the flow and/or square frame in square frame and flow chart and/or block diagram.These computer program instructions can be provided
To the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices producing one
Individual machine so that produced for realizing by the instruction of computer or the computing device of other programmable data processing devices
The device of the function of being specified in one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy
In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger
Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Although with reference to specific features and embodiment, invention has been described, it is clear that, do not departing from this hair
In the case of bright spirit and scope, various modifications and combinations can be carried out to it.Correspondingly, the specification and drawings are only institute
The exemplary illustration of the invention that attached claim is defined, and be considered as covered in the scope of the invention any and all and repair
Change, change, combining or equivalent.Obviously, those skilled in the art the present invention can be carried out it is various change and modification without
Depart from the spirit and scope of the present invention.So, if it is of the invention these modification and modification belong to the claims in the present invention and its
Within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.
Claims (11)
1. a kind of Wireless Fidelity Wi-Fi connection method, it is characterised in that including:
After Wi-Fi scannings, the signal intensity that the access point in 5G frequency ranges is obtained from scanning result indicates RSSI, obtains
N number of RSSI, also includes M RSSI of the access point in non-5G frequency ranges in the scanning result, the N, the M are just whole
Number;
Increase treatment is carried out to N number of RSSI, the described N number of RSSI after increase treatment is obtained;
The maximum first object RSSI of RSSI are chosen from described N number of RSSI and the M RSSI after increase treatment;
Connect the corresponding access points of the first object RSSI.
2. method according to claim 1, it is characterised in that described that increase treatment is carried out to N number of RSSI, including:
Determine the corresponding goal gradient of i-th RSSI, i-th RSSI is any one RSSI in N number of RSSI;
According to the corresponding relation between default grade and increase parameter, the corresponding target increase ginseng of the goal gradient is determined
Number;
Increase parameter according to the target carries out increase treatment to i-th RSSI.
3. method according to claim 2, it is characterised in that described that parameter is increased to described i-th according to the target
RSSI carries out increase treatment, including:
Calculate target increase parameter and i-th RSSI sums.
4. method according to claim 2, it is characterised in that described that parameter is increased to described i-th according to the target
RSSI carries out increase treatment, including:
Calculate the product of the target increase parameter and i-th RSSI.
5. the method according to any one of Claims 1-4, it is characterised in that be in described acquisition from scanning result
The signal intensity of the access point of 5G frequency ranges indicates RSSI, after obtaining N number of RSSI, and described N number of RSSI is increased
Before big treatment, methods described also includes:
Determine the maximum in N number of RSSI, obtain the second target RSSI, predetermined threshold value is more than in the second target RSSI
When, execution is described to carry out increase treatment to N number of RSSI.
6. a kind of mobile terminal, it is characterised in that including:
Acquiring unit, after being scanned in Wi-Fi, obtains the signal intensity of the access point in 5G frequency ranges from scanning result
Indicate RSSI, obtain N number of RSSI, in the scanning result also include in non-5G frequency ranges access point M RSSI, the N,
The M is positive integer;
Processing unit, for carrying out increase treatment to N number of RSSI, obtains the described N number of RSSI after increase treatment;
Choose unit, for being processed from increase after described N number of RSSI and the M RSSI in choose RSSI maximum the first mesh
Mark RSSI;
Connection unit, for connecting the corresponding access points of the first object RSSI.
7. mobile terminal according to claim 6, it is characterised in that the processing unit includes:
Determining module, for determining the corresponding goal gradient of i-th RSSI, i-th RSSI is appointing in N number of RSSI
One RSSI;
The determining module, also particularly useful for:
According to the corresponding relation between default grade and increase parameter, the corresponding target increase ginseng of the goal gradient is determined
Number;
Processing module, increase treatment is carried out for increasing parameter according to the target to i-th RSSI.
8. mobile terminal according to claim 7, it is characterised in that the processing module specifically for:
Calculate target increase parameter and i-th RSSI sums.
9. mobile terminal according to claim 7, it is characterised in that the processing module specifically for:
Calculate the product of the target increase parameter and i-th RSSI.
10. the mobile terminal according to any one of claim 6 to 9, it is characterised in that the mobile terminal also includes:
Determining unit, the signal intensity for obtaining the access point in 5G frequency ranges from scanning result in the acquiring unit refers to
Show RSSI, obtain after N number of RSSI, determine the maximum in N number of RSSI, the second target RSSI is obtained, described second
When target RSSI is more than predetermined threshold value, performed by the processing unit carries out increase treatment to N number of RSSI.
A kind of 11. mobile terminals, it is characterised in that including:
Processor and memory;Wherein, the processor is by calling code in the memory or instruction to perform such as power
Profit requires the method described in 1 to 5 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710091092.2A CN106793017B (en) | 2017-02-20 | 2017-02-20 | A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710091092.2A CN106793017B (en) | 2017-02-20 | 2017-02-20 | A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106793017A true CN106793017A (en) | 2017-05-31 |
CN106793017B CN106793017B (en) | 2019-08-20 |
Family
ID=58958628
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710091092.2A Active CN106793017B (en) | 2017-02-20 | 2017-02-20 | A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106793017B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114554584A (en) * | 2021-12-31 | 2022-05-27 | 锐捷网络股份有限公司 | Communication method, system, server and wireless access point |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130065893A (en) * | 2011-12-12 | 2013-06-20 | 주식회사 엘지유플러스 | Communication apparatus for connecting access point and control method thereof |
CN105357728A (en) * | 2015-11-28 | 2016-02-24 | 广东欧珀移动通信有限公司 | Network type switching method, device and mobile terminal |
CN105517113A (en) * | 2016-01-06 | 2016-04-20 | 广东欧珀移动通信有限公司 | Access control method and terminal equipment |
CN105592517A (en) * | 2016-02-17 | 2016-05-18 | 宇龙计算机通信科技(深圳)有限公司 | Network connection processing method, network connection processing device, and network connection processing terminal |
-
2017
- 2017-02-20 CN CN201710091092.2A patent/CN106793017B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20130065893A (en) * | 2011-12-12 | 2013-06-20 | 주식회사 엘지유플러스 | Communication apparatus for connecting access point and control method thereof |
CN105357728A (en) * | 2015-11-28 | 2016-02-24 | 广东欧珀移动通信有限公司 | Network type switching method, device and mobile terminal |
CN105517113A (en) * | 2016-01-06 | 2016-04-20 | 广东欧珀移动通信有限公司 | Access control method and terminal equipment |
CN105592517A (en) * | 2016-02-17 | 2016-05-18 | 宇龙计算机通信科技(深圳)有限公司 | Network connection processing method, network connection processing device, and network connection processing terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114554584A (en) * | 2021-12-31 | 2022-05-27 | 锐捷网络股份有限公司 | Communication method, system, server and wireless access point |
Also Published As
Publication number | Publication date |
---|---|
CN106793017B (en) | 2019-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106658672B (en) | A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal | |
CN106973384B (en) | A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal | |
CN108040318B (en) | Positioning method, electronic equipment and computer readable storage medium | |
CN110069580B (en) | Road marking display method and device, electronic equipment and storage medium | |
WO2010078116A2 (en) | Apparatus and method for femto cell coverage mapping using macro base station | |
CN111898787B (en) | Base station planning method, base station planning device, terminal equipment and storage medium | |
CN107509175A (en) | Bluetooth indoor orientation method, system, storage medium and terminal | |
CN106793080A (en) | It is a kind of based on hotspot can localization method offline | |
CN106973150A (en) | Positioning precision level adjustment method, device and mobile terminal | |
CN104301995A (en) | Hybrid positioning method and device | |
CN106658653A (en) | Method and device used for providing wireless access point information | |
CN106604362A (en) | Wireless fidelity (Wi-Fi) scanning method and mobile terminal | |
CN103220780A (en) | Indoor positioning method, device and system | |
CN106211298A (en) | A kind of information processing method and mobile terminal | |
CN104039008B (en) | A kind of hybrid locating method | |
CN112218306A (en) | Method and device for predicting coverage performance of base station and computer equipment | |
CN106686587A (en) | Wireless fidelity Wi-Fi connecting method and mobile terminal | |
CN105939517A (en) | Method and device for preventing mobile terminal from accessing pseudo base station | |
CN105120518B (en) | A kind of indoor orientation method and user terminal | |
CN106793017A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
CN113613277A (en) | Method, device, equipment and storage medium for testing performance of Mesh system | |
CN106793015A (en) | A kind of Wireless Fidelity Wi Fi connection methods and mobile terminal | |
JP2014175840A (en) | System, method and device for generating area map, program and recording medium | |
CN106658670A (en) | Wireless fidelity Wi-Fi scanning method and mobile terminal | |
CN109756970B (en) | Proximity relation wireless signal positioning method, device, 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 |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |