CN106793017B - A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal - Google Patents

A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal Download PDF

Info

Publication number
CN106793017B
CN106793017B CN201710091092.2A CN201710091092A CN106793017B CN 106793017 B CN106793017 B CN 106793017B CN 201710091092 A CN201710091092 A CN 201710091092A CN 106793017 B CN106793017 B CN 106793017B
Authority
CN
China
Prior art keywords
rssi
access point
target
frequency range
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710091092.2A
Other languages
Chinese (zh)
Other versions
CN106793017A (en
Inventor
黄园
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710091092.2A priority Critical patent/CN106793017B/en
Publication of CN106793017A publication Critical patent/CN106793017A/en
Application granted granted Critical
Publication of CN106793017B publication Critical patent/CN106793017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal 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

The embodiment of the invention provides a kind of Wireless Fidelity Wi-Fi connection methods, wherein, the described method includes: after Wi-Fi scanning, the signal strength that the access point in 5G frequency range is obtained from scanning result indicates RSSI, obtain N number of RSSI, it further include M RSSI of the access point in non-5G frequency range in the scanning result, the N, the M are positive integer;Increase processing is carried out to N number of RSSI, obtains increasing treated N number of RSSI;From increasing the selection maximum first object RSSI of RSSI in treated the N number of RSSI and M RSSI;Connect the corresponding access point of the first object RSSI.The embodiment of the invention also provides a kind of mobile terminals.Implementing the embodiment of the present invention can be with the AP of Rational choice 5G frequency range.

Description

A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of Wireless Fidelity Wi-Fi connection method and mobile terminal.
Background technique
With information technology fast development, mobile terminal (mobile phone, tablet computer etc.) use is more more and more universal, meanwhile, it uses Family is also increasingly stronger to the dependence of wireless network.
In the prior art, on the one hand, it is more and more using the access point (Access Point, AP) of 2.4GHz frequency range, it leads Cause mutual interference increasingly severe, on the other hand, relatively will less using the AP of 5GHz frequency range, channel disturbance is also wanted It is few very much, still, during actual use, often encounter access point (Access Point, AP) signal ratio of 5G frequency range The AP of 2.4G weak (the signal ratio 2.4Ghz decaying of 5GHz is fast), in this way, mobile terminal is easy to the AP of selection connection 2.4G channel, If the mandatory AP for allowing mobile terminal preferential attachment 5G, if the AP signal for encountering the AP ratio 2.4G frequency range of 5G frequency range is weak too many, It is poor to will also result in user experience, therefore, how Rational choice 5G frequency range AP the problem of it is urgently to be resolved.
Summary of the invention
The embodiment of the invention provides a kind of Wireless Fidelity Wi-Fi connection method and mobile terminals, can be with Rational choice 5G The AP of frequency range.
First aspect of the embodiment of the present invention provides a kind of Wireless Fidelity Wi-Fi connection method, comprising:
After Wi-Fi scanning, the signal strength that the access point in 5G frequency range is obtained from scanning result indicates RSSI, Obtain N number of RSSI, further include in the scanning result in non-5G frequency range access point M RSSI, the N be positive integer, The M is natural number;
Increase processing is carried out to N number of RSSI, obtains increasing treated N number of RSSI;
From increasing the selection maximum first object RSSI of RSSI in treated the N number of RSSI and M RSSI;
Connect the corresponding access point of the first object RSSI.
Second aspect of the embodiment of the present invention provides a kind of mobile terminal, comprising:
Acquiring unit, for obtaining the signal of the access point in 5G frequency range from scanning result after Wi-Fi scanning Intensity indicates RSSI, obtains N number of RSSI, further includes M RSSI of the access point in non-5G frequency range, institute in the scanning result State N, the M is positive integer;
Processing unit obtains increasing treated N number of RSSI for carrying out increase processing to N number of RSSI;
Selection unit, for from increasing selection RSSI in treated the N number of RSSI and M RSSI maximum the One target RSSI;
Connection unit, for connecting the corresponding access point of the first object RSSI.
The third aspect of the embodiment of the present invention provides a kind of mobile terminal, comprising:
Processor and memory;Wherein, the processor is by calling the code in the memory or instructing to execute The some or all of step of method described in first aspect.
The implementation of the embodiments of the present invention has the following beneficial effects:
As can be seen that through the embodiment of the present invention, can be obtained from scanning result after Wi-Fi scanning in 5G frequency The RSSI of the access point of section, obtains N number of RSSI, further includes M RSSI of the access point in non-5G frequency range in the scanning result, N is positive integer, M is natural number, carries out increase processing to N number of RSSI, obtains increasing treated N number of RSSI, handle from increase The maximum first object RSSI of RSSI is chosen in N number of RSSI and M RSSI afterwards, connects the corresponding access of first object RSSI Point.In this way, increase processing can be carried out to the RSSI of the access point in 5G frequency range, thus, on the one hand, the AP of 5G frequency range can be increased Selected a sequence of probability, on the other hand, can Rational choice 5G frequency range AP.
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 apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of first embodiment process signal of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention Figure;
Fig. 2 is a kind of second embodiment process signal of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention Figure;
Fig. 3 a is a kind of schematic structural diagram of the first embodiment of mobile terminal provided in an embodiment of the present invention;
Fig. 3 b is the structural schematic diagram of the processing unit of mobile terminal described in Fig. 3 a provided in an embodiment of the present invention;
Fig. 3 c is the another structural schematic diagram of mobile terminal described in Fig. 3 a provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic structural diagram of the second embodiment of mobile 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, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap 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 in the embodiment of the present invention may include smart phone (such as Android phone, iOS mobile phone, Windows Phone mobile phone etc.), tablet computer, palm PC, laptop, mobile internet device (MID, Mobile Internet Devices) or wearable device etc., above-mentioned mobile terminal is only citing, and non exhaustive, including but not limited to upper State mobile terminal.
Referring to Fig. 1, being 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 as described in this embodiment, comprising the following steps:
101, after Wi-Fi scanning, the signal strength instruction of the access point in 5G frequency range is obtained from scanning result RSSI, obtains N number of RSSI, further includes M RSSI of the access point in non-5G frequency range in the scanning result, and the N is positive Integer, the M are positive integer.
Wherein, mobile terminal may include the access point in 5G frequency range in scanning result after carrying out Wi-Fi scanning, Also it may include the access point in non-5G frequency range, certainly, specifically depending on foundation current environment, if depositing in current network environment In the access point of 5G frequency range, then can occur in scanning result, if there are non-5G frequency range (such as 2.4G frequency range) in current environment Access point can also then occur in scanning result.The embodiment of the present invention may be used primarily for the presence of 5G in current network environment The access point of frequency range, but there are the access points of non-5G frequency range.Therefore, scanning result may include that multiple access point received signals are strong Degree instruction (Received Signal Strength Indication, RSSI), the corresponding RSSI of each access point is (usually In the case of, the unit of RSSI is decibel, i.e. dBm), access point can be for the access point in 5G frequency range or in non-5G frequency range Access point.In embodiments of the present invention, it can be assumed that the RSSI of the access point in 5G frequency range have it is N number of (N number of access point, it is each Access point corresponds to a RSSI, and N is positive integer), the access point in non-5G frequency range is M, and each access point is one corresponding RSSI (i.e. M RSSI, M are positive integer).
Optionally, in the concrete realization, it after Wi-Fi scanning, can detect in scanning result with the presence or absence of 5G frequency range Access point can choose RSSI maximum value pair if the access point of 5G frequency range is not present in scanning result directly from scanning result The access point answered is attached.The access point of at least one 5G frequency range if it exists can then obtain source in 5G from scanning result The access point of frequency range.
Optionally, in the concrete realization, after Wi-Fi scanning, it can detect and whether there is non-5G frequency range in scanning result Access point, if in scanning result all 5G frequency ranges access point, it is maximum RSSI can be chosen directly from scanning result Access point is attached.
102, increase processing is carried out to N number of RSSI, obtains increasing treated N number of RSSI.
Wherein, increase processing can be carried out to every RSSI in N number of RSSI respectively, specifically, can be incited somebody to action previously according to experience RSSI points are multiple grades, so, it may be determined that the corresponding grade of every RSSI in N number of RSSI can be right for different grades RSSI carries out different increase processing, in this way, treated N number of RSSI can be obtained increasing.
Optionally, in above-mentioned steps 102, increase processing is carried out to N number of RSSI, it may include following steps:
21), determine that the corresponding goal gradient of i-th of RSSI, i-th of RSSI are any of described N number of RSSI RSSI;
22), according to the corresponding relationship between preset grade and increase parameter, the corresponding target of the goal gradient is determined Increase parameter;
23) parameter, is increased according to the target, increase processing is carried out to i-th of RSSI.
Wherein it is possible to i-th of RSSI is any one RSSI in above-mentioned N number of RSSI by taking i-th of RSSI as an example, it can be true The fixed corresponding goal gradient of i-th of RSSI according to preset grade and can increase the corresponding relationship between parameter, determine the mesh It marks the corresponding target of grade and increases parameter, and parameter is increased according to the target, increase processing is carried out to i-th of RSSI.Above-mentioned target Increasing parameter can be a specific decibels (for example, 10dBm), or an increase multiple is (such as: 0.8).Certainly, originally It needs all to carry out increase processing to every RSSI in N number of RSSI in inventive embodiments.
Optionally, in above-mentioned steps 23, parameter is increased according to the target, increase processing is carried out to i-th of RSSI, Include:
It calculates the target and increases the sum of parameter and i-th of RSSI.
In the specific implementation, after the Wi-Fi end of scan RSSI benefit can be carried out to it according to the signal strength or weakness of the AP of 5G frequency range It repays, if the 5G AP signal scanned is strong, high compensation 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 strength of even 5G AP is too weak, then without increasing the necessity handled, because And increase processing can not be carried out to it.
For example, providing a kind of grade as follows and increasing the corresponding relationship between parameter:
If 1, RSSI > -60dBm, increasing parameter is 15dBm, the RSSI of the AP in the grade can be added 15dBm;
If 2, -70dBm < RSSI≤- 60dBm, increasing parameter is 10dBm, can be by the RSSI of the AP in the grade Add 10dBm;
If 3, -80dBm < RSSI≤- 70dBm, increasing parameter is 5dBm, can add the RSSI of the AP in the grade 5dBm
If 4, RSSI≤- 80dBm, uncompensation.
In turn, the maximum AP of RSSI can be selected to be connected from the RSSI of the RSSI and non-5G AP of compensated 5G AP It connects.In this way, the probability that 5G frequency range AP is selected can be increased to a certain extent, can the AP rationally to 5G frequency range select.
Optionally, in above-mentioned steps 23, parameter is increased according to the target, increase processing is carried out to i-th of RSSI, Include:
Calculate the product that the target increases parameter and i-th of RSSI.
In the specific implementation, after the Wi-Fi end of scan RSSI benefit can be carried out to it according to the signal strength or weakness of the AP of 5G frequency range It repays, if the 5G AP signal scanned is strong, high compensation 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 strength of even 5G AP is too weak, then without increasing the necessity handled, because And increase processing can not be carried out to it.
For example, providing a kind of grade as follows and increasing the corresponding relationship between parameter:
If 1, RSSI > -60dBm, increasing parameter is 0.6, can be by the RSSI of the AP in the grade multiplied by 0.6;
If 2, -70dBm < RSSI≤- 60dBm, increasing parameter is 0.8, can multiply the RSSI of the AP in the grade With 0.8;
If 3, -80dBm < RSSI≤- 70dBm, increasing parameter is 0.9, can multiply the RSSI of the AP in the grade With 0.9;
If 4, RSSI≤- 80dBm, uncompensation.
In turn, the maximum AP of RSSI can be selected to be connected from the RSSI of the RSSI and non-5G AP of compensated 5G AP It connects.In this way, the probability that 5G frequency range AP is selected can be increased to a certain extent, can the AP rationally to 5G frequency range select.
Optionally, in above-mentioned steps 102, increase processing is carried out to N number of RSSI, obtains increasing treated the N A RSSI, may include following steps:
24) current location of mobile terminal, is determined;
25) position for, obtaining the corresponding access point of every RSSI in N number of RSSI, obtains N number of position;
26), determine the distance between each position value in the current location and N number of position, obtain it is described it is N number of away from From value;
27) it, according to the corresponding relationship between preset distance value and increase parameter, determines each in N number of distance value The corresponding target of distance value increases parameter, obtains N number of target and increases parameter;
28), increase each target increase parameter in parameter according to N number of target to carry out at increase corresponding RSSI Reason obtains increasing treated N number of RSSI.
Wherein, mobile terminal can be determined by global positioning system (Global Positioning System, GPS) and be moved The current location of dynamic terminal, alternatively, mobile terminal can determine the current location of mobile terminal by Wi-Fi location technology.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 technology, then, current Wi-Fi is scanned Position of the position of a certain AP as the mobile terminal, if it is a point that the position label of the AP can be used as on map indoors (points of an expression mobile terminal locations).It is of course also possible to obtain the position of the corresponding access point of every RSSI in N number of RSSI It sets, obtains N number of position, in turn, determine the distance between each position value in current location and N number of position, obtain N number of distance Value.Certainly, distance, which has far, has closely, thus, the RSSI of the access point of the 5G frequency range close apart from current distance, it is possible to increase it is some more, away from The RSSI of the access point of the 5G frequency range remote from current distance, it is possible to increase less.Therefore, according to preset distance value and ginseng can be increased Corresponding relationship between number determines that the corresponding target of each distance value increases parameter in N number of distance value, obtains N number of target and increases Parameter a, for example, functional relation can be met between distance value and increase parameter, such as: y=f (x), wherein x is distance value, Y is to increase parameter, and f is distance value and increases the corresponding relationship between parameter, and f can be linear function or nonlinear function.Such as This, it may be determined that go out above-mentioned N number of distance value in it is each apart from corresponding increase parameter, in this way, can according to increase parameter to it Corresponding RSSI carries out increase processing.It specifically can refer to above-mentioned: calculating each target and increase the sum of parameter and i-th of RSSI, or Person calculates the product that target increases parameter and i-th of RSSI.
103, from increasing the selection maximum first object of RSSI in treated the N number of RSSI and M RSSI RSSI。
Wherein, mobile terminal can be from increasing the selection maximum first object of RSSI in treated N number of RSSI and M RSSI RSSI。
104, the corresponding access point of the first object RSSI is connected.
Wherein, mobile terminal can choose the corresponding access point of first object RSSI, and connect the access point.
Optionally, certainly, it if the corresponding access point of mobile terminal access first object RSSI fails, can be handled from increase Choose the second largest corresponding access point of RSSI of RSSI in N number of RSSI and M RSSI afterwards, mobile terminal, which can be attempted to access this, to be connect Access point can access if being successfully accessed and be successfully accessed the access point, can that treated is N number of from increasing if access point fails The third-largest corresponding access point of RSSI of RSSI is chosen in RSSI and M RSSI, mobile terminal can be attempted to access the access point, with This analogizes.
Optionally, it between step 101 and step 102, can also comprise the following steps:
It determines the current location of mobile terminal, if the current location belongs to predeterminated position, thens follow the steps 102.
Above-mentioned preset threshold can be set by the user himself, and predeterminated position may include, but are not limited to: library, museum, Airport, station, supermarket, shopping mall, railway station, office building, hospital, school etc..Under normal conditions, predeterminated position can be according to warp Test to be arranged, it can be understood as, the access point that predeterminated position includes is more, and user is more, thus, the access point of non-5G frequency range it Between interference may be larger.Certainly, it if current location is not belonging to predeterminated position, can directly be chosen from scanning result received The maximum access point of RSSI is attached.
Optionally, it between step 101 and step 102, can also comprise the following steps:
It determines whether above-mentioned M is greater than predetermined number threshold value, if the M is greater than predetermined number threshold value, thens follow the steps 102.
Wherein, M is bigger, then illustrate mobile terminal being got in the access point number of non-5G frequency range in a network environment It is more, in this way, M is bigger, then may signal interference between the access point of non-5G frequency range in the network environment it is larger, if user connects The access point for entering some non-5G frequency range, then be easy to appear and go offline, alternatively, situations such as network rate is slow.Therefore, settable one it is pre- If number threshold value, which can be set by the user himself or system default, it will be appreciated that is to be in non-5G frequency range Access point number be greater than the predetermined number threshold value, then the signal interference between the access point of non-5G frequency range is larger, in non- The access point number of 5G frequency range be less than or equal to the predetermined number threshold value, then the signal interference between the access point of non-5G frequency range compared with It is small, it can be neglected.The maximum access point of received RSSI then can be directly chosen from scanning result to be attached.If M is less than Or be equal to predetermined number threshold value, then the maximum access point of received RSSI can be directly chosen from scanning result to be attached.
As can be seen that through the embodiment of the present invention, can be obtained from scanning result after Wi-Fi scanning in 5G frequency The RSSI of the access point of section, obtains N number of RSSI, further includes M RSSI of the access point in non-5G frequency range in the scanning result, N is positive integer, M is positive integer, carries out increase processing to N number of RSSI, obtains increasing treated N number of RSSI, handle from increase The maximum first object RSSI of RSSI is chosen in N number of RSSI and M RSSI afterwards, connects the corresponding access of first object RSSI Point.In this way, increase processing can be carried out to the RSSI of the access point in 5G frequency range, thus, on the one hand, the AP of 5G frequency range can be increased Selected a sequence of probability, on the other hand, can Rational choice 5G frequency range AP.
Consistent with the abovely, referring to Fig. 2, being a kind of Wireless Fidelity Wi-Fi connection method provided in an embodiment of the present invention Second embodiment flow diagram.Wireless Fidelity Wi-Fi connection method as described in this embodiment, comprising the following steps:
201, after Wi-Fi scanning, the signal strength instruction of the access point in 5G frequency range is obtained from scanning result RSSI, obtains N number of RSSI, further includes M RSSI of the access point in non-5G frequency range in the scanning result, the N, described M is positive integer.
202, it determines the maximum value in N number of RSSI, obtains the second target RSSI.
Wherein, after the RSSI that the access point in 5G frequency range has been determined, N number of RSSI, the value of every RSSI can be obtained It is different, thus, maximum value can be chosen from N number of RSSI, thus, obtain the second target RSSI.
In concrete application, if the RSSI of the access point in 5G frequency range is smaller, probably illustrate that the RSSI is corresponding The signal strength of access point is weaker, if having accessed the access point, is easy to generation and goes offline, thus, influence user experience.This The maximum value in N number of RSSI can be judged in inventive embodiments, if maximum value is less than preset threshold, illustrate 5G frequency range Access point signals intensity is very weak, thus, it can not consider the access point of mobile terminal access 5G frequency range.
203, judge whether the second target RSSI is greater than preset threshold.
Wherein, above-mentioned preset threshold can be set by the user himself or system default.If the second target RSSI is less than default Threshold value, then RSSI maximum value of the explanation in the access point of 5G frequency range is less than preset threshold, then others are in 5G frequency range RSSI in access point is respectively less than the preset threshold.Thus, when the second target RSSI is greater than preset threshold, step can be performed 204.Certainly, it is less than or equal to preset threshold in the second target RSSI, it is corresponding that the selection RSSI maximum value from M RSSI can be performed Access point.
204, when the second target RSSI is greater than the preset threshold, increase processing is carried out to N number of RSSI, is obtained To increasing treated N number of RSSI.
205, from increasing the selection maximum first object of RSSI in treated the N number of RSSI and M RSSI RSSI。
206, the corresponding access point of the first object RSSI is connected.
Wherein, above-mentioned steps 201, step 204- step 206 can refer to Wireless Fidelity Wi-Fi connection side described in Fig. 1 The correspondence step of method, details are not described herein.
As can be seen that through the embodiment of the present invention, can be obtained from scanning result after Wi-Fi scanning in 5G frequency The RSSI of the access point of section, obtains N number of RSSI, further includes M RSSI of the access point in non-5G frequency range in the scanning result, N is positive integer, M is positive integer, determines the maximum value in N number of RSSI, obtains the second target RSSI, is greater than in the second target RSSI When preset threshold, increase processing is carried out to N number of RSSI, obtains increasing treated N number of RSSI, it is N number of from increasing that treated The maximum first object RSSI of RSSI is chosen in RSSI and M RSSI, connects the corresponding access point of first object RSSI.Such as This, can carry out increase processing to the RSSI of the access point in 5G frequency range, thus, on the one hand, the AP that can increase 5G frequency range is selected Select a sequence of probability, on the other hand, can Rational choice 5G frequency range AP.
Consistent with the abovely, the following are the Wireless Fidelity Wi-Fi connection methods for implementing embodiments of the present invention offer Device, specific as follows:
Fig. 3 a is please 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, comprising: acquiring unit 301, processing unit 302, selection unit 303 and connection unit 304, tool Body is as follows:
Acquiring unit 301, for obtaining the access point in 5G frequency range from scanning result after Wi-Fi scanning RSSI, obtains N number of RSSI, further includes M RSSI of the access point in non-5G frequency range in the scanning result, the N, described M is positive integer;
Processing unit 302 obtains increasing that treated is described N number of for carrying out increase processing to N number of RSSI RSSI;
Selection unit 303, for choosing RSSI maximum in treated the N number of RSSI and M RSSI from increasing First object RSSI;
Connection unit 304, for connecting the corresponding access point of the first object RSSI.
Optionally, such as Fig. 3 b, Fig. 3 b is the specific refinement structure of the processing unit 302 of mobile terminal described in Fig. 3 a, The processing unit 302 can include: determining module 3021 and processing module 3022, specific as follows:
Determining module 3021, for determining that the corresponding goal gradient of i-th of RSSI, i-th of RSSI are described N number of Any one RSSI in RSSI;
The determining module 3021, also particularly useful for:
According to preset grade and increase the corresponding relationship between parameter, determines that the corresponding target of the goal gradient increases Parameter;
Processing module 3022 carries out increase processing to i-th of RSSI for increasing parameter according to the target.
Optionally, the processing module 3022 is specifically used for:
It calculates the target and increases the sum of parameter and i-th of RSSI.
Optionally, the processing module 3022 is specifically used for:
Calculate the product that the target increases parameter and i-th of RSSI.
Optionally, such as Fig. 3 c, Fig. 3 c is the another modification structures of mobile terminal described in Fig. 3 a, can also include: Determination unit 305, specific as follows:
Determination unit 305 obtains the letter of the access point in 5G frequency range for the acquiring unit 301 from scanning result Number intensity indicates RSSI, after obtaining N number of RSSI, determines the maximum value in N number of RSSI, obtains the second target RSSI, When the second target RSSI is greater than preset threshold, increase is carried out to N number of RSSI by the processing unit 302 execution Reason.
As can be seen that mobile terminal described in through the embodiment of the present invention, can tie after Wi-Fi scanning from scanning The RSSI that the access point in 5G frequency range is obtained in fruit, obtains N number of RSSI, further includes in non-5G frequency range in the scanning result M RSSI of access point, N is positive integer, M is positive integer, carries out increase processing to N number of RSSI, obtains increasing that treated is N number of RSSI connects first mesh from the selection maximum first object RSSI of RSSI in treated N number of RSSI and M RSSI is increased Mark the corresponding access point of RSSI.In this way, increase processing can be carried out to the RSSI of the access point in 5G frequency range, thus, on the one hand, The AP of 5G frequency range can be increased and selected a sequence of probability, on the other hand, can Rational choice 5G frequency range AP.
Referring to Fig. 4, being a kind of schematic structural diagram of the second embodiment of mobile terminal provided in an embodiment of the present invention.This reality Apply mobile terminal described in example, comprising: at least one input equipment 1000;At least one output equipment 2000;At least one A processor 3000, such as CPU;With memory 4000, above-mentioned input equipment 1000, output equipment 2000,3000 and of processor Memory 4000 is connected by bus 5000.
Wherein, above-mentioned input equipment 1000 concretely touch panel, physical button or mouse.
Above-mentioned output equipment 2000 concretely display screen.
Above-mentioned memory 4000 can be high speed RAM memory, can also be nonvolatile storage (non-volatile ), such as magnetic disk storage memory.Above-mentioned memory 4000 is used to store a set of program code, above-mentioned input equipment 1000, defeated Equipment 2000 and processor 3000 are used to call the program code stored in memory 4000 out, perform the following operations:
After Wi-Fi scanning, the signal strength that the access point in 5G frequency range is obtained from scanning result indicates RSSI, N number of RSSI is obtained, further includes M RSSI of the access point in non-5G frequency range in the scanning result, the N, the M are Positive integer;
Increase processing is carried out to N number of RSSI, obtains increasing treated N number of RSSI;
From increasing the selection maximum first object RSSI of RSSI in treated the N number of RSSI and M RSSI;
Connect the corresponding access point of the first object RSSI.
Optionally, above-mentioned processor 3000 carries out increase processing to N number of RSSI, comprising:
Determine that the corresponding goal gradient of i-th of RSSI, i-th of RSSI are any one RSSI in N number of RSSI;
According to preset grade and increase the corresponding relationship between parameter, determines that the corresponding target of the goal gradient increases Parameter;
Increase parameter according to the target and increase processing is carried out to i-th of RSSI.
Optionally, above-mentioned processor 3000 carries out increase processing to i-th of RSSI according to target increase parameter, Include:
It calculates the target and increases the sum of parameter and i-th of RSSI.
Optionally, above-mentioned processor 3000 carries out increase processing to i-th of RSSI according to target increase parameter, Include:
Calculate the product that the target increases parameter and i-th of RSSI.
Optionally, above-mentioned processor 3000 is strong in the signal for obtaining the access point in 5G frequency range from scanning result Degree instruction RSSI, after obtaining N number of RSSI, and before carrying out increase processing to N number of RSSI, also particularly useful for:
It determines the maximum value in N number of RSSI, obtains the second target RSSI, be greater than in the second target RSSI default When threshold value, execution is described to carry out increase processing to N number of RSSI.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program include the part for any Wireless Fidelity Wi-Fi connection method recorded in above method embodiment when executing Or Overall Steps.
Although combining each embodiment herein, invention has been described, however, implementing the claimed invention In the process, those skilled in the art are by checking the attached drawing, disclosure and the appended claims, it will be appreciated that and it is real Other variations of the existing open embodiment.In the claims, " comprising " (comprising) word is not excluded for other compositions Part or step, "a" or "an" are not excluded for multiple situations.Claim may be implemented in single processor or other units In several functions enumerating.Mutually different has been recited in mutually different dependent certain measures, it is not intended that these are arranged It applies to combine and generates good effect.
It will be understood by those skilled in the art that the embodiment of the present invention can provide as method, apparatus (equipment) or computer journey Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the present invention The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the present invention, which can be used in 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 can also use other distribution forms, such as pass through the wired or wireless telecommunication system of Internet or other.
The present invention be referring to the embodiment of the present invention method, apparatus (equipment) and computer program product flow chart with/ Or block diagram describes.It should be understood that each process that can be realized by computer program instructions in flowchart and/or the block diagram and/ Or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer program instructions To general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor to generate one A machine so that by the instruction that the processor of computer or other programmable data processing devices executes generate for realizing The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although in conjunction with specific features and embodiment, invention has been described, it is clear that, do not departing from this hair In the case where bright spirit and scope, it can be carry out various modifications and is combined.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 various changes and modifications can be made to the invention without It is detached from the spirit and scope of the present invention.If in this way, these modifications and changes of the present invention belong to the claims in the present invention and its Within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (12)

1. a kind of Wireless Fidelity Wi-Fi connection method characterized by comprising
After Wi-Fi scanning, the signal strength that the access point in 5G frequency range is obtained from scanning result indicates RSSI, obtains N number of RSSI further includes M RSSI of the access point in non-5G frequency range in the scanning result, and the N, the M are positive whole Number;
Increase processing is carried out to N number of RSSI, obtains increasing treated N number of RSSI;
From increasing the selection maximum first object RSSI of RSSI in treated the N number of RSSI and M RSSI;
Connect the corresponding access point of the first object RSSI.
2. the method according to claim 1, wherein described carry out increase processing to N number of RSSI, comprising:
Determine that the corresponding goal gradient of i-th of RSSI, i-th of RSSI are any one RSSI in N number of RSSI;
According to preset grade and increase the corresponding relationship between parameter, determines the corresponding target increase ginseng of the goal gradient Number;
Increase parameter according to the target and increase processing is carried out to i-th of RSSI.
3. according to the method described in claim 2, it is characterized in that, described increase parameter to described i-th according to the target RSSI carries out increase processing, comprising:
It calculates the target and increases the sum of parameter and i-th of RSSI.
4. according to the method described in claim 2, it is characterized in that, described increase parameter to described i-th according to the target RSSI carries out increase processing, comprising:
Calculate the product that the target increases parameter and i-th of RSSI.
5. method according to any one of claims 1 to 4, which is characterized in that be in described obtained from scanning result The signal strength of the access point of 5G frequency range indicates RSSI, obtains after N number of RSSI and described increases to N number of RSSI Before big processing, the method also includes:
It determines the maximum value in N number of RSSI, obtains the second target RSSI, be greater than preset threshold in the second target RSSI When, execution is described to carry out increase processing to N number of RSSI.
6. a kind of mobile terminal characterized by comprising
Acquiring unit, for obtaining the signal strength of the access point in 5G frequency range from scanning result after Wi-Fi scanning Indicate RSSI, obtain N number of RSSI, further include in the scanning result in non-5G frequency range access point M RSSI, the N, The M is positive integer;
Processing unit obtains increasing treated N number of RSSI for carrying out increase processing to N number of RSSI;
Selection unit, for from increasing selection maximum first mesh of RSSI in treated the N number of RSSI and M RSSI Mark RSSI;
Connection unit, for connecting the corresponding access point of the first object RSSI.
7. mobile terminal according to claim 6, which is characterized in that the processing unit includes:
Determining module, for determining that the corresponding goal gradient of i-th of RSSI, i-th of RSSI are appointing in N number of RSSI One RSSI;
The determining module, also particularly useful for:
According to preset grade and increase the corresponding relationship between parameter, determines the corresponding target increase ginseng of the goal gradient Number;
Processing module carries out increase processing to i-th of RSSI for increasing parameter according to the target.
8. mobile terminal according to claim 7, which is characterized in that the processing module is specifically used for:
It calculates the target and increases the sum of parameter and i-th of RSSI.
9. mobile terminal according to claim 7, which is characterized in that the processing module is specifically used for:
Calculate the product that the target increases parameter and i-th of RSSI.
10. according to the described in any item mobile terminals of claim 6 to 9, which is characterized in that the mobile terminal further include:
Determination unit, the signal strength for obtaining the access point in 5G frequency range from scanning result in the acquiring unit refer to Show RSSI, after obtaining N number of RSSI, determines the maximum value in N number of RSSI, the second target RSSI is obtained, described second When target RSSI is greater than preset threshold, increase processing is carried out to N number of RSSI by processing unit execution.
11. a kind of mobile terminal characterized by comprising
Processor and memory;Wherein, the processor is by calling the code in the memory or instructing to execute such as power Benefit requires method described in 1 to 5 any one.
12. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with computer program, wherein The method as described in claim 1 to 5 any one is realized when described program is executed by processor.
CN201710091092.2A 2017-02-20 2017-02-20 A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal Active CN106793017B (en)

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 CN106793017A (en) 2017-05-31
CN106793017B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554584B (en) * 2021-12-31 2024-07-19 锐捷网络股份有限公司 Communication method, system, server and wireless access point

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN106793017A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106658672B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN108304758B (en) Face characteristic point tracking method and device
CN106973384B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN109495846B (en) Positioning method and mobile terminal
CN106804055B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN107534949B (en) Indoor positioning method and equipment
WO2010078116A2 (en) Apparatus and method for femto cell coverage mapping using macro base station
CN111050346B (en) Network signal strength evaluation method, device, equipment and storage medium
CN110602736B (en) Method and device for field intensity prediction and computer equipment
Sung et al. Sound based indoor and outdoor environment detection for seamless positioning handover
CN104268472B (en) Reduction is by the method and apparatus of third party&#39;s dynamic base Modification growth function address
CN107993672A (en) Frequency expansion method and device
CN104091600B (en) A kind of song method for detecting position and device
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
CN105282692A (en) Speed measurement information display method and device
JP2015122580A (en) Portable electronic apparatus, control method and control program
CN106793017B (en) A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal
CN106658670B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN113596710A (en) Vehicle positioning method, device, server and readable storage medium
US11044766B2 (en) Method for Wi-Fi connection and related products
CN108882165B (en) Navigation method and device
CN111641921A (en) UWB-based pipe gallery positioning method, terminal equipment and storage medium
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

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