CN108848547A - WiFi scan method, device, mobile terminal and computer-readable medium - Google Patents

WiFi scan method, device, mobile terminal and computer-readable medium Download PDF

Info

Publication number
CN108848547A
CN108848547A CN201810604015.7A CN201810604015A CN108848547A CN 108848547 A CN108848547 A CN 108848547A CN 201810604015 A CN201810604015 A CN 201810604015A CN 108848547 A CN108848547 A CN 108848547A
Authority
CN
China
Prior art keywords
wifi
channel
scanned
error vector
sweep time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810604015.7A
Other languages
Chinese (zh)
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 CN201810604015.7A priority Critical patent/CN108848547A/en
Publication of CN108848547A publication Critical patent/CN108848547A/en
Pending legal-status Critical Current

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
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present application provides a kind of WiFi scan method, device, mobile terminal and computer-readable medium, is related to field of communication technology.This method includes:Obtain the error vector magnitude of the WiFi channel to be scanned;The sweep time of the WiFi channel to be scanned is determined based on the error vector magnitude of the WiFi channel to be scanned;According to the sweep time of the WiFi channel to be scanned to the WiFi scan channel to be scanned.The sweep time of each channel can be determined according to the error vector magnitude of each channel, rather than is each channel default setting identical sweep time, more the sweep time of each channel of reasonable distribution, avoid omitting the access point under the channel.

Description

WiFi scan method, device, mobile terminal and computer-readable medium
Technical field
This application involves field of communication technology, more particularly, to a kind of WiFi scan method, device, mobile terminal and Computer-readable medium.
Background technique
Existing electronic device usually can carry out network number by WiFi (Wireless Fidelity, Wireless Fidelity) According to transmission.
The process of wifi scanning at present is to be scanned according to the process set, and be all arranged on each channel Certain sweep time is scanned next if not scanning available access point on channel in sweep time section A channel.Then, it is not accurate enough to will lead to scanning result for this scanning mode.
Summary of the invention
It is above-mentioned to improve present applicant proposes a kind of WiFi scan method, device, mobile terminal and computer-readable medium Defect.
In a first aspect, the embodiment of the present application provides a kind of WiFi scan method, it is applied to mobile terminal, the method packet It includes:Obtain the error vector magnitude of the WiFi channel to be scanned;Error vector magnitude based on the WiFi channel to be scanned Determine the sweep time of the WiFi channel to be scanned;According to the sweep time of the WiFi channel to be scanned to described to be scanned WiFi scan channel.
Second aspect, the embodiment of the present application also provides a kind of WiFi scanning means, are applied to mobile terminal, described device Including:Acquiring unit, determination unit and scanning element.Acquiring unit, for obtain the error of the WiFi channel to be scanned to Discharge amplitude.Determination unit, for determining that the WiFi to be scanned believes based on the error vector magnitude of the WiFi channel to be scanned The sweep time in road.Scanning element, for being believed according to the sweep time of the WiFi channel to be scanned the WiFi to be scanned Road scanning.
The third aspect, the embodiment of the present application also provides a kind of mobile terminal, including memory and processor, the storages Device is coupled with the processor;The memory store instruction, when executed by the processor so that the place It manages device and executes following operation:Obtain the error vector magnitude of the WiFi channel to be scanned;Based on the WiFi channel to be scanned Error vector magnitude determine sweep time of the WiFi channel to be scanned;When according to the scanning of the WiFi channel to be scanned Between to the WiFi scan channel to be scanned.
Fourth aspect, the embodiment of the present application also provides a kind of computers of program code that can be performed with processor can Medium is read, said program code makes the processor execute the above method.
WiFi scan method, device, mobile terminal and computer-readable medium provided by the embodiments of the present application are scanning certain When the WiFi of a channel, the error vector magnitude of WiFi channel to be scanned is determined.Based on the WiFi channel to be scanned Error vector magnitude determines the sweep time of the WiFi channel to be scanned;According to the sweep time of the WiFi channel to be scanned To the WiFi scan channel to be scanned.Therefore, sweeping for each channel can be determined according to the error vector magnitude of each channel It retouches the time, rather than is each channel default setting identical sweep time, more sweep time of each channel of reasonable distribution, It avoids omitting the access point under the channel.
Other feature and advantage of the embodiment of the present application will illustrate in subsequent specification, also, partly from specification In become apparent, or understood and implementing the embodiment of the present application.The purpose of the embodiment of the present application and other advantages can It is achieved and obtained by structure specifically indicated in the written description, claims, and drawings.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 shows the schematic diagram of WIFI network access scene provided by the embodiments of the present application;
Fig. 2 shows the WiFi network list interfaces that one embodiment of the application provides;
Fig. 3 shows the method flow diagram of the WiFi scan method of one embodiment of the application offer;
Fig. 4 shows the method flow diagram for the WiFi scan method that another embodiment of the application provides;
Fig. 5 shows the WiFi network list interface that another embodiment of the application provides;
Fig. 6 shows the WiFi network list interface of the application another embodiment offer;
Fig. 7 shows the WiFi network list interface that the another embodiment of the application provides;
Fig. 8 shows the module frame chart of WiFi scanning means provided by the embodiments of the present application;
Fig. 9 shows the structural schematic diagram of the electronic device of the embodiment of the present application proposition;
Figure 10 shows the mould of the electronic device for executing the method according to the embodiment of the present application of the embodiment of the present application Block block diagram.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile the application's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
In wireless communication technique, the process that electronic equipment accesses wireless network includes scanning (Scanning), certification (Authentication), four steps of (Association) and successful connection are associated with.Wherein, the electronic equipment can be with It is the equipment such as smart phone, tablet computer, desktop computer, laptop or palm PC.
Specifically, referring to Fig. 1, showing the schematic diagram of WIFI network access scene provided by the embodiments of the present application.Such as It include multiple WiFi access points in the network coverage of mobile terminal 100 shown in Fig. 1, the first WiFi access as shown in figure 1 The 201, the 2nd WiFi access point 202 of point and the 3rd WiFi access point 203.Mobile terminal 100 and any one WiFi access point are all A channel is needed to connect, that is to say, that each WiFi access point is all located on a channel, and different WiFi access points It can be located on different channels, can also be located on the same channel.
When mobile terminal 100 enters in the network coverage, start to meet the WiFi in the network coverage Enter spot scan, specifically, the system of mobile terminal sends scan request, by the WiFi chip of mobile terminal or other underlying networks After network module receives scan command, it is scanned according to preset scan channel sequence, such as first scans common channels 1,7,13 Channel, then scan other non-common channels.
Specifically, WiFi network list interface as shown in Figure 2 shows WiFi control switch in the interface, the WiFi Control switch has the function of opening or closing WiFi network.For example, WiFi control switch can control the power supply of WiFi module On-off, when user clicked on mobile phone open WiFi when, WiFi module be powered operation, and accordingly load WiFi driving journey Sequence.
After WiFi control switch is turned on, searched near mobile terminal 100 by way of scanning (Scanning) WiFi access point, and by after scanning as the result is shown in the WiFi network list interface, wherein active scan can be passed through Or the mode of drive sweep is scanned.After the completion of scanning, need to authenticate the accessing wirelessly access hot spot scanned (Authentication).For example, the modes such as open system authentication, shared key authentication or preparatory authentication can be passed through It is authenticated.For example, it is the first WiFi access point that mobile terminal 100, which authenticates successful WiFi access point,.After the completion of certification, it will move Dynamic terminal 100 is associated with access point, to obtain the complete access right of network, so that mobile terminal 100 passes through access point It is successfully connected internet.
Wherein, above-mentioned scanning mode is other than having determined the scanning sequency of above-mentioned different channels, it is also necessary to determine The sweep time of each channel, mobile terminal in channel according to the channel corresponding sweep time to the scan channel, to sweep The WiFi access point in the channel is retouched, then after sweep time, then scans next channel.
But at present sweep time set by each channel be it is identical, inventor has found under study for action, some letters Road needs to scan long, could scan the channel comprehensively and accurately in this way, avoid causing not since sweep time is too short The access point in the channel is scanned, and some channels can also reduce sweep time, it can sweeping with all channels of reasonable distribution Retouch the time.
Therefore, in order to improve the problem, the embodiment of the present application provides a kind of WiFi scan method, as shown in figure 3, the party Method enables in WiFi scanning process, more reasonable to the sweep time length of channel, and specifically, this method includes:S301 To S303.
S301:Obtain the error vector magnitude of the WiFi channel to be scanned.
Wherein, error vector magnitude (Error Vector Magnitude, abbreviation EVM) refers to errorless in given time ideal The vector difference of poor reference signal and actual transmission signal, for measuring the range error and phase error of modulated signal, EVM is specific The degree of closeness for indicating the IQ component and ideal signal component that generate when reception terminal demodulates signal is to consider modulation letter A kind of index of number quality.EVM is smaller, and the signal quality of channel is better.
As an implementation, mobile terminal scan network coverage area in all WiFi access points when, The scanning of the channel that can be supported according to mobile terminal channel one by one, to obtain in each channel scanned on each channel WiFi access point to can determine whether a scanning sequency, and scans channel according to the scanning sequency, then the WiFi letter to be scanned Road is the WiFi channel currently to be scanned in scanning sequency, then first determines the EVM value of the channel before the scan.
S302:The scanning of the WiFi channel to be scanned is determined based on the error vector magnitude of the WiFi channel to be scanned Time.
It is being determined the error vector magnitude of WiFi channel to be scanned, i.e., when the EVM value of WiFi channel to be scanned, due to this The size of EVM value has reacted the signal quality of the channel, therefore the sweep time of the channel, Neng Gouzhen are determined according to the EVM value The sweep time of the channel is determined to the signal quality of the channel, for example, it may be the EVM of the channel is bigger, the signal of channel Quality is poorer, then the time scanned is fewer, then can reduce sweep time for the bad channel of those signal qualities, or even can Not scan, because the signal quality of the channel is bad, then the signal quality of the access point on the channel also can be poor, then may be used It is also unimportant to abandon access point on the channel or even if several access points have been arrived in few scanning.
And another situation, the EVM of channel is bigger, and the signal quality of channel is poorer, then the time scanned is longer, then can be with It may result in signal because the signal quality of channel is bad for those signal qualities bad channel increase sweep time Transmission rate it is too low, and cause the transmission rate of the signal of the channel excessively slow, and then cause scanning process slower, need The more long time then needs to increase the sweep time of the channel, more comprehensive so as to the scanning to each channel.
It therefore, can be one sweep time of the channel configuration, i.e. hand according to the EVM value in the EVM value for determining the channel It moves and has for each channel configuration time it is of course also possible to be the corresponding relationship that an error vector magnitude and sweep time is arranged Body, the corresponding relationship can be preset, include multiple error vector magnitudes and each error vector width in the corresponding relationship Corresponding sweep time is spent, specifically, as shown in table 1.
Table 1
EVM value Sweep time
-30 20s
-25 25s
-16 30s
-19 28s
It can be seen that, EVM value is smaller, then corresponding sweep time is shorter, and EVM value is bigger, then corresponding in above-mentioned table 1 Sweep time is more long.As a result, in the EVM value that channel to be scanned has been determined, it will be able to according to correspondence exemplified by above-mentioned table 1 In relationship, the error vector magnitude corresponding sweep time of WiFi channel to be scanned is found, for example, WiFi channel to be scanned Error vector magnitude is -30, then corresponding sweep time is 20s.
The corresponding relationship can be user according to demand and set, and as an implementation, which can be with It is to test to obtain before mobile terminal factory, specifically, in preset error vector magnitude pass corresponding with sweep time In system, before the error vector magnitude corresponding sweep time for determining the WiFi channel to be scanned, further include:Detect the shifting The error vector magnitude of dynamic each WiFi channel of the terminal in the multiple WiFi channel supported;It is obtained according to detection The error vector magnitude of each WiFi channel establishes corresponding relationship and the storage of error vector magnitude and sweep time.
Mobile terminal is before factory, under the test environment pre-established, each channel that mobile terminal is supported Then the test of EVM value, establishes a network environment, packet in the network environment to obtain the EVM value for each channel supported Multiple WiFi access points are included, and the distribution of multiple WiFi access points is on a different channel, at least be distributed on each channel There is a WiFi access point, then, constantly debug the sweep time of each channel, is divided with guaranteeing scanning to the channel All access points of cloth, thus, it is possible to the error vector magnitude for testing to obtain each WiFi channel establish error vector magnitude with Then the preset corresponding relationship is stored, this can be used after going on business so as to mobile terminal by the corresponding relationship of sweep time Default corresponding relationship.
When as an implementation, for the comprehensive consideration of the surface sweeping to channel, error vector magnitude and scanning Between be positively correlated.And it is positively related be meant that, error vector magnitude is bigger, and sweep time is more long.To error vector magnitude compared with Greatly, i.e. when the signal quality of channel is poor, the sweep time of the channel can be increased, more so as to the scanning to each channel Add comprehensively, to obtain all access points being distributed on the channel.
S303:According to the sweep time of the WiFi channel to be scanned to the WiFi scan channel to be scanned.
Specifically, active scan can be to the scanning of WiFi channel to be scanned and is also possible to drive sweep.
Under the mode of active scan, mobile terminal in an active manner, issues Probe on WiFi channel to be scanned Request frame waits and carrys out frame instruction (indicationof an incoming frame) or wait until sweep time time-out, such as Fruit receives frame on this channel, then can scan WiFi access point, specifically, including WiFi access point in the frame Mark.
Under drive sweep, mobile terminal beacon to be received (Beacon) information such as on WiFi channel to be scanned, at this Thus the mark of WiFi access point in beacon just can determine the WiFi access point on the channel, but the channel is provided with and sweeps It retouches the time, therefore, after sweep time time-out, just stops at waiting signal on the channel, that is, finish to sweep the channel It retouches.
Mobile terminal saves the mark of the WiFi access point as a result, and shows in the interface of above-mentioned Fig. 2.It is sweeping After retouching time time-out, just terminate the scanning to the channel.
Referring to Fig. 4, showing a kind of WiFi scan method provided by the embodiments of the present application, this method enables to WiFi More reasonable to the sweep time length of channel in scanning process, specifically, this method includes:S401 to S406.
S401:Obtain the error vector magnitude of the WiFi channel to be scanned.
S402:The scanning of the WiFi channel to be scanned is determined based on the error vector magnitude of the WiFi channel to be scanned Time.
S403:According to the sweep time of the WiFi channel to be scanned to the WiFi scan channel to be scanned.
S404:Whether determination scans attachable WiFi access point within the sweep time.
Specifically, when sweep time time-out, it is determined whether the WiFi access on the channel can be got Point, if it is possible to get, then it represents that WiFi access point can be scanned, and determines whether attachable access point, it can be with It is the signal strength of the determining WiFi access point, if signal strength is greater than preset value, then it represents that the WiFi access point is available, when So, it is also possible to detected WiFi access point being regarded as attachable WiFi access point.
S405:Record the WiFi access point.
Detected WiFi access point is recorded, to own after scanning through all channels by what is scanned WiFi access point is shown in interface shown in Fig. 2.
S406:Next WiFi channel that the WiFi channel to be scanned is determined according to preset scan channel sequence, makees For new WiFi channel to be scanned.
If not scanning WiFi access point, directly execution S406, to scan next channel.Specifically, it obtains Preset scan channel sequence, specifically, scan channel sequence can be the institute of preset mobile terminal supported There is the scanning sequency of channel, for example, the channel that the mobile terminal is supported includes 1~13 channel, then scanning sequency can be from 1 To 13, it is also possible to first scan common channel, for example, 6 and 7 are first scanned, according still further to 1 to 5,8 to 13 sequential scan.
Furthermore it is also possible to scan channel sequence be determined according to the error vector magnitude of each channel, specifically, described in acquisition Before the error vector magnitude of WiFi channel to be scanned, the scanning sequency of all channels can be first determined, as a kind of embodiment party Formula determines the error vector magnitude of each WiFi channel in multiple WiFi channels that the mobile terminal is supported;According to every The error vector magnitude of a WiFi channel is ranked up the multiple WiFi channel to obtain the scan channel sequence; The WiFi channel to be scanned is determined according to the scan channel sequence.
For example, the signal supported of mobile terminal is channel A, channel B, channel C and channel D, then the EVM of each channel Value is as shown in table 2 below.
Table 2
The mark of channel EVM value
Channel A -30
Channel B -15
Channel C -9
Channel D -10
After getting the EVM value of each channel, to all channels according to EVM value sort, specifically, can be according to The descending sequence sequence of EVM value, is also possible to sort according to ascending sequence, in the embodiment of the present application, according to The value of the EVM of each channel sorts according to the sequence of EVM value from small to large, then after table 2 sorting, becomes table 3.
Table 3
The mark of channel EVM value
Channel A -30
Channel B -15
Channel D -10
Channel C -9
The scan channel sequence then obtained is [channel A, channel B, channel C, channel D].Thus, it is possible to lower to EVM value Channel first scan, and sequentially can determine according to this sequence that each WiFi access point is scanned, then display when It waits, the WiFi access point first scanned can be shown in the position by top at interface, so that user can the preferential company of selection It connects.As shown in figure 5, WiFi-1 and WiFi-2 are respectively positioned on channel A, then in the interface shown in fig. 5, WiFi-1 and WiFi-2's Position is more top.
Furthermore it is also possible to by the WiFi access point first scanned marked out in WiFi network list interface come, so as to Family can significantly recognize which corresponding EVM of WiFi access point is lower.As shown in fig. 6, having in the interface display " according to institute Sort from high to low in channel quality " prompt information, to remind the EVM of the channel where which WiFi access point of user more Low, i.e., signal quality is more preferable.
In addition, some WiFi that can be connected automatically are directed to, for example, having connected and and having got the WiFi's The public WiFi of connection password or some not set passwords, if scanning is accessed to such WiFi in the channel of priority scan Point, can be directly connected to the WiFi access point, then can guarantee preferentially first to find WiFi access in the good channel of signal quality It puts and connects.
Then if scanning can be directly connected to WiFi access to the WiFi access point that can connect in the channel Point exports an interrupt requests if be successfully connected, then after mobile terminal receives interrupt requests, stops scan channel. As shown in fig. 7, it is access point in the channel scanned at first that WiFi-1 and WiFi-2 is corresponding, it is corresponding to WiFi-2 in scanning When channel, WiFi-2 is arrived in scanning, and is directly connected to WiFi-2, then according in scan channel sequence, after WiFi-2 The channel of scanning no longer scans, then compared to shown in Fig. 7 and Fig. 5, WiFi-3 to WiFi-6 is no longer shown.
But a prompting message is shown in Fig. 7, " remaining access point is not shown, clicks display " as shown in Figure 7 Information, user click the prompting message, then input continues to scan on request, then according in scan channel sequence, after WiFi-2 Channel continues to be scanned, and the WiFi access point scanned is shown in Fig. 7.
In addition, the multiple WiFi channels supported for above-mentioned mobile terminal, it is contemplated that user is in different geographical positions It sets, it, for example, being equally in the frequency range of 2.4GHz, is 1-13 in the channel of China that the channel that may be supported, which is different, and The U.S., then channel is 1-11.
Accordingly, it is determined that the error vector width of each WiFi channel in multiple WiFi channels that the mobile terminal is supported The specific embodiment of degree can be:Determine the geographical location information of the mobile terminal;It is true according to the geographical location information Multiple WiFi channels that the fixed mobile terminal is supported;It determines every in multiple WiFi channels that the mobile terminal is supported The error vector magnitude of a WiFi channel.
Specifically, the network address of the present access network of the mobile terminal is obtained;It is obtained according to the network address The location information of the mobile terminal.
When connection of mobile terminal into network, or the network address that user accesses the network is got, for example, IP Location can get the network address of the present access network of mobile terminal by some instructions or code.For example, if The network that mobile terminal is currently accessed is mobile communications network, such as 4G network, then is obtained by getLocalIpAddress () Take the network address of the present access network of mobile terminal.
After getting network address, according to the corresponding relationship of preset network address and location information, it can obtain The location information of mobile terminal corresponding to the network address.For example, 103.21.176.0 is the IP address of China, then it is corresponded to Location information be China, 195.090.053.000 be the U.S. IP address, then the location information of its corresponding mobile terminal be The U.S..
It as another embodiment, can be by the locating module in mobile terminal, for example, GPS module, obtains movement The location information of terminal.
As another embodiment, it can also determine that current geographical location is believed by obtaining the information of current operator Breath.Specifically, the operator's informaiton for obtaining the present access network of the mobile terminal determines that institute is right according to the operator's informaiton The geographical location information answered.
Wherein, operator's informaiton includes the title of operator, for example, mobile, communication and telecommunications.
The network identification information that mobile terminal is currently located network is obtained, by obtained network identification information and preset fortune The network identification information stored in battalion's quotient's title table matches, and obtains the corresponding operator name of successful match item.Operation It include operator name and network identification information corresponding with the operator in quotient's title table.For example, mobile terminal is accessing When network, the Extended System Parameters Message that the network issues is received, and extract network identification information from the message.Wherein, net Network identification information may include:MCC (Mobile Country Code, Mobile Country Code MCC) and MNC (Mobile Network Code, mobile network code), so that the operator's informaiton of the present access network of mobile terminal can be obtained.As a result, can To determine the corresponding country of the operator's informaiton.
Referring to Fig. 8, showing a kind of WiFi scanning means 800 provided by the embodiments of the present application, this method is enabled to More reasonable to the sweep time length of channel in WiFi scanning process, specifically, which includes:Acquiring unit 801, really Order member 802 and scanning element 803.
Acquiring unit 801, for obtaining the error vector magnitude of the WiFi channel to be scanned.
Determination unit 802, it is described to be scanned for being determined based on the error vector magnitude of the WiFi channel to be scanned The sweep time of WiFi channel.
Scanning element 803, for the sweep time according to the WiFi channel to be scanned to the WiFi channel to be scanned Scanning.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description It with the specific work process of unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
Referring to Fig. 9, the embodiment of the present application also provides a kind of electronic device, electronics dress based on above-mentioned method and apparatus Setting 100 can be any one of various types of computer system devices that are mobile or portable and executing wireless communication (a kind of form is only illustratively shown in Fig. 1).Specifically, electronic device 100 can be mobile phone or smart phone (example Such as, iPhone TM, the phone based on Android TM are based on), portable gaming device (such as Nintendo DS TM, PlayStation Portable TM, Gameboy Advance TM, iPhone TM), laptop computer, PDA, it is portable mutually Networked devices, music player and data storage device, other handheld devices and such as wrist-watch, earphone, pendant, earphone It can also be other wearable devices (for example, such as electronic glasses, electronics clothes, electronics bracelet, electricity Deng, electronic device 100 Subitem chain, electronics tatoo, the headset equipment (HMD) of electronic equipment or smartwatch).
Electronic device 100 can also be that any one of multiple electronic equipments, multiple electronic equipments include but is not limited to Cellular phone, smart phone, other wireless telecom equipments, personal digital assistant, audio player, other media players, sound Happy logger, video recorder, camera, other medium recorders, radio, Medical Devices, vehicle transport instrument, calculator, can Program remote controler, pager, laptop computer, desktop computer, printer, netbook computer, personal digital assistant (PDA), portable media player (PMP), Motion Picture Experts Group's (MPEG-1 or MPEG-2) audio layer 3 (MP3) play Device, portable medical device and digital camera and combinations thereof.
In some cases, electronic device 100 can execute multiple functions and (for example, playing music, show video, storage Picture and send and receive call).If desired, electronic device 100 can be such as cellular phone, media play The portable device of device, other handheld devices, watch equipment, pendant equipment, receiver device or other compact portable equipment.
Illustratively, above-mentioned electronic device 100 is mobile terminal comprising electronic body portion 10, the electronic body portion 10 include shell 12 and the display screen 120 being arranged on the shell 12.Metal can be used in the shell 12, such as steel, aluminium close Gold is made.In the present embodiment, the display screen 120 generally includes display panel 111, may also comprise for responding to the display The circuit etc. of the progress touch control operation of panel 111.The display panel 111 can be a liquid crystal display panel (Liquid Crystal Display, LCD), in some embodiments, the display panel 111 is a touch screen 109 simultaneously.
Please refer to Figure 10, in actual application scenarios, the electronic device 500 can be used as intelligent mobile phone terminal into It exercises and uses, the electronic body portion 10 also typically includes one or more (only showing one in figure) processors in this case 102, memory 104, RF (Radio Frequency, radio frequency) module 106, voicefrequency circuit 110, sensor 114, input module 118, power module 122, WiFi module 501 etc..It will appreciated by the skilled person that structure shown in Fig. 10 is only to show Meaning, does not cause to limit to the structure in the electronic body portion 10.For example, the electronic body portion 10, which may also include, compares Figure 10 Shown in more perhaps less component or with the correspondence different from shown in Figure 10.
It will appreciated by the skilled person that every other component belongs to for the processor 102 It is coupled between peripheral hardware, the processor 102 and these peripheral hardwares by multiple Peripheral Interfaces 124.The Peripheral Interface 124 can Based on following standard implementation:Universal Asynchronous Receive/sending device (Universal Asynchronous Receiver/ Transmitter, UART), universal input/output (General Purpose Input Output, GPIO), serial peripheral connect Mouthful (Serial Peripheral Interface, SPI), internal integrated circuit (Inter-Integrated Circuit, I2C), but it is not limited to above-mentioned standard.In some instances, the Peripheral Interface 124 can only include bus;In other examples In, the Peripheral Interface 124 may also include other elements, such as one or more controller, such as connecting the display The display controller of panel 111 or storage control for connecting memory.In addition, these controllers can also be from described It detaches, and is integrated in the processor 102 or in corresponding peripheral hardware in Peripheral Interface 124.
The memory 104 can be used for storing software program and module, and the processor 102 is stored in institute by operation The software program and module in memory 104 are stated, thereby executing various function application and data processing.The memory 104 may include high speed random access memory, may also include nonvolatile memory, and such as one or more magnetic storage device dodges It deposits or other non-volatile solid state memories.In some instances, the memory 104 can further comprise relative to institute The remotely located memory of processor 102 is stated, these remote memories can pass through network connection to the electronic body portion 10 Or the display screen 120.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication And combinations thereof.
The RF module 106 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus It is communicated with communication network or other equipment.The RF module 106 may include various existing for executing these functions Circuit element, for example, antenna, RF transceiver, digital signal processor, encryption/deciphering chip, subscriber identity module (SIM) card, memory etc..The RF module 106 can be carried out with various networks such as internet, intranet, wireless network Communication is communicated by wireless network and other equipment.Above-mentioned wireless network may include cellular telephone networks, wireless Local area network or Metropolitan Area Network (MAN).Various communication standards, agreement and technology can be used in above-mentioned wireless network, including but not limited to Global system for mobile communications (Global System for Mobile Communication, GSM), enhanced mobile communication skill Art (Enhanced Data GSM Environment, EDGE), Wideband CDMA Technology (wideband code Division multiple access, W-CDMA), Code Division Multiple Access (Code division access, CDMA), time-division Multiple access technology (time division multiple access, TDMA), the networking telephone (Voice over internet Protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other are for mail, the agreement of instant messaging and short message and any other suitable communication association View, or even may include the agreement that those are not developed currently yet.
WiFi module 501 specifically, can pass through nothing with peripheral apparatus for emitting WiFi signal or receiving WiFi signal Line fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE 802.11b, IEEE802.11g and/or IEEE 802.11n) agreement establishes communication connection, then WiFi module 501 may include power amplifier, wireless transceiver, transmit/receive switch, low-noise amplifier and antenna etc..Send signal When, transceiver itself can directly export low power faint radiofrequency signal, send to power amplifier (Power Amplifier, PA power amplification) is carried out, then by transmit/receive switch (Transmit/Receive Switch) via antenna (Antenna) It is radiated to space.When receiving signal, antenna can sense the electromagnetic signal in space, be put by sending after switch to low noise Big device (Low Noise Amplifier, LNA) amplifies, in this way, amplified signal can be directly fed to transceiver into Row processing, is demodulated.
Voicefrequency circuit 110, loudspeaker 101, microphone 103, microphone 105 provide user and the electronic body portion jointly Audio interface between 10 or the display screen 120.
The setting of sensor 114 is in the electronic body portion 10 or in the display screen 120, the sensor 114 Example include but is not limited to:Acceleration transducer 114F, gyroscope 114G, magnetometer 114H and other sensors.
In the present embodiment, the input module 118 may include the touch screen 109 being arranged on the display screen 120, The touch screen 109 collects the touch operation of user on it or nearby, and (for example user is suitble to using finger, stylus etc. are any Object or attachment operation on the touch screen 109 or near the touch screen 109), it is hereby achieved that user Touch gestures, and corresponding attachment device is driven according to a pre-set procedure, therefore, user can pass through the touching in display screen Control operation selected target region.Optionally, the touch screen 109 may include touch detecting apparatus and touch controller.Wherein, institute The touch orientation of touch detecting apparatus detection user is stated, and detects touch operation bring signal, transmits a signal to the touching Touch controller;The touch controller receives touch information from the touch detecting apparatus, and the touch information is converted into Contact coordinate, then give the processor 102, and order that the processor 102 is sent can be received and executed.In addition, The touch detection of the touch screen 109 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Function.In addition to the touch screen 109, in other change embodiments, the input module 118 can also include other inputs Equipment, such as key 107.The key 107 for example may include the character keys for inputting character, and for triggering control function The control button of energy.The example of the control button includes " returning to main screen " key, power on/off key etc..
The display screen 120 is used for the information and the electronics sheet for showing information input by user, being supplied to user The various graphical user interface in body portion 10, these graphical user interface can be by figure, text, icon, number, video and Qi Ren Meaning combination is to constitute.In an example, the touch screen 109 may be disposed on the display panel 111 to show with described Show that panel 111 constitutes an entirety.
The power module 122 is used to provide power supply to the processor 102 and other each components.Specifically, The power module 122 may include power-supply management system, one or more power supply (such as battery or alternating current), charging circuit, Power-fail detection circuit, inverter, indicator of the power supply status and any other and electronic body portion 10 are described aobvious The generation, management of electric power and the relevant component of distribution in display screen 120.
The electronic device 500 further includes locator 119, and the locator 119 is for determining 500 institute of electronic device The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the electronic device 500 using positioning service, The positioning service, it should be understood that the location information of the electronic device 500 is obtained by specific location technology (as passed through Latitude coordinate), it is marked on the electronic map by the technology or service of the position of positioning object.
In conclusion WiFi scan method provided by the embodiments of the present application, device, mobile terminal and computer-readable Jie Matter determines the error vector magnitude of WiFi channel to be scanned when scanning the WiFi of some channel.Based on described to be scanned The error vector magnitude of WiFi channel determines the sweep time of the WiFi channel to be scanned;According to the WiFi channel to be scanned Sweep time to the WiFi scan channel to be scanned.Therefore, it can be determined according to the error vector magnitude of each channel every The sweep time of a channel, rather than be each channel default setting identical sweep time, the more each channel of reasonable distribution Sweep time, avoid omitting the access point under the channel.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized:With for realizing the logic gates of logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.In addition, in each embodiment of the application In each functional unit can integrate in a processing module, be also possible to each unit and physically exist alone, can also two A or more than two units are integrated in a module.Above-mentioned integrated module both can take the form of hardware realization, can also It is realized in the form of using software function module.If the integrated module realized in the form of software function module and as Independent product when selling or using, also can store in a computer readable storage medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.
Finally it should be noted that:Above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although The application is described in detail with reference to the foregoing embodiments, those skilled in the art are when understanding:It still can be with It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And These are modified or replaceed, do not drive corresponding technical solution essence be detached from each embodiment technical solution of the application spirit and Range.

Claims (10)

1. a kind of WiFi scan method, which is characterized in that it is applied to mobile terminal, the method includes:
Obtain the error vector magnitude of the WiFi channel to be scanned;
The sweep time of the WiFi channel to be scanned is determined based on the error vector magnitude of the WiFi channel to be scanned;
According to the sweep time of the WiFi channel to be scanned to the WiFi scan channel to be scanned.
2. the method according to claim 1, wherein the error vector based on the WiFi channel to be scanned Amplitude determines the sweep time of the WiFi channel to be scanned, including:
In the corresponding relationship of preset error vector magnitude and sweep time, determine the error of the WiFi channel to be scanned to Discharge amplitude corresponding sweep time.
3. according to the method described in claim 2, it is characterized in that, described in preset error vector magnitude and sweep time In corresponding relationship, before the error vector magnitude corresponding sweep time for determining the WiFi channel to be scanned, further include:
Detect the error vector magnitude of each WiFi channel of the mobile terminal in the multiple WiFi channel supported;
It is corresponding with sweep time that the error vector magnitude of each WiFi channel obtained according to detection establishes error vector magnitude Relationship simultaneously stores.
4. according to the method in claim 2 or 3, which is characterized in that in the corresponding relationship, the error vector magnitude with The sweep time is positively correlated.
5. the method according to claim 1, wherein the sweep time according to the WiFi channel to be scanned After the WiFi scan channel to be scanned, further include:
Whether determination scans attachable WiFi access point within the sweep time;
If scanning is arrived, the WiFi access point is recorded;
If not scanning, determine that next WiFi of the WiFi channel to be scanned believes according to preset scan channel sequence Road as new WiFi channel to be scanned, and executes the behaviour for obtaining the error vector magnitude of the WiFi channel to be scanned again Make.
6. according to the method described in claim 5, it is characterized in that, the error vector for obtaining the WiFi channel to be scanned Before amplitude, the method also includes:
Determine the error vector magnitude of each WiFi channel in multiple WiFi channels that the mobile terminal is supported;
The multiple WiFi channel is ranked up to obtain the letter according to the error vector magnitude of each WiFi channel Road scanning sequency;
The WiFi channel to be scanned is determined according to the scan channel sequence.
7. according to the method described in claim 6, it is characterized in that, determining multiple WiFi channels that the mobile terminal is supported In each WiFi channel error vector magnitude, including:
Determine the geographical location information of the mobile terminal;
Multiple WiFi channels that the mobile terminal is supported are determined according to the geographical location information;
Determine the error vector magnitude of each WiFi channel in multiple WiFi channels that the mobile terminal is supported.
8. a kind of WiFi scanning means, which is characterized in that be applied to mobile terminal, described device includes:
Acquiring unit, for obtaining the error vector magnitude of the WiFi channel to be scanned;
Determination unit, for determining the WiFi channel to be scanned based on the error vector magnitude of the WiFi channel to be scanned Sweep time;
Scanning element, for the sweep time according to the WiFi channel to be scanned to the WiFi scan channel to be scanned.
9. a kind of mobile terminal, which is characterized in that including memory and processor, the memory is coupled with the processor; The memory store instruction, when executed by the processor so that the processor executes following operation:
Obtain the error vector magnitude of the WiFi channel to be scanned;
The sweep time of the WiFi channel to be scanned is determined based on the error vector magnitude of the WiFi channel to be scanned;
According to the sweep time of the WiFi channel to be scanned to the WiFi scan channel to be scanned.
10. a kind of computer-readable medium for the program code that can be performed with processor, which is characterized in that said program code The processor is set to execute any one of claim 1-7 the method.
CN201810604015.7A 2018-06-12 2018-06-12 WiFi scan method, device, mobile terminal and computer-readable medium Pending CN108848547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810604015.7A CN108848547A (en) 2018-06-12 2018-06-12 WiFi scan method, device, mobile terminal and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810604015.7A CN108848547A (en) 2018-06-12 2018-06-12 WiFi scan method, device, mobile terminal and computer-readable medium

Publications (1)

Publication Number Publication Date
CN108848547A true CN108848547A (en) 2018-11-20

Family

ID=64211094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810604015.7A Pending CN108848547A (en) 2018-06-12 2018-06-12 WiFi scan method, device, mobile terminal and computer-readable medium

Country Status (1)

Country Link
CN (1) CN108848547A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924908A (en) * 2018-06-12 2018-11-30 Oppo广东移动通信有限公司 WiFi scan method, device and electronic device
CN109660990A (en) * 2019-02-18 2019-04-19 上海连尚网络科技有限公司 Method and apparatus for scanning wireless access point
CN110337135A (en) * 2019-08-01 2019-10-15 Oppo广东移动通信有限公司 A kind of method of adjustment, terminal and computer storage medium
CN111836240A (en) * 2019-08-19 2020-10-27 北京骑胜科技有限公司 Bluetooth connection establishing method and device, electronic equipment and storage medium
CN114885401A (en) * 2022-05-12 2022-08-09 南京创芯慧联技术有限公司 WIFI active scanning method and device, and terminal positioning method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545261A (en) * 2003-11-11 2004-11-10 中兴通讯股份有限公司 Method for automatically searching clear channel in wirelesss local area network
CN101600242A (en) * 2009-07-06 2009-12-09 深圳华为通信技术有限公司 Small region search method and portable terminal
CN101626609A (en) * 2008-07-10 2010-01-13 株式会社理光 Communication apparatus
CN101690294A (en) * 2007-03-13 2010-03-31 美商亚瑟罗斯通讯股份有限公司 Estimating timing and frequency information in multiple channel wireless communication system
CN102124788A (en) * 2008-06-26 2011-07-13 施克莱无线公司 Method and apparatus for scanning multi-mode wireless communication environments
CN102625414A (en) * 2012-03-02 2012-08-01 杭州星纬物联技术有限公司 Wireless sensor network signal channel search algorithm
CN103379532A (en) * 2012-04-12 2013-10-30 华为技术有限公司 Method and apparatus for testing signal quality of radio frequency unit of base station
US20150351120A1 (en) * 2014-05-27 2015-12-03 Mstar Semiconductor, Inc. Scheduling method and device
CN105142203A (en) * 2015-08-20 2015-12-09 深圳市金立通信设备有限公司 Wireless fidelity (Wi-Fi) hotspot scanning method and terminal
CN106851719A (en) * 2017-04-18 2017-06-13 云熠信息科技有限公司 A kind of Wifi probes, data balancing acquisition system and method
CN107222290A (en) * 2017-01-09 2017-09-29 重庆大学 The Error Vector Magnitude self-adaptive modulation method of unbound nucleus under varying Channels
CN108093444A (en) * 2018-02-23 2018-05-29 广东欧珀移动通信有限公司 Wireless network transmissions method of rate control, device, terminal device and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1545261A (en) * 2003-11-11 2004-11-10 中兴通讯股份有限公司 Method for automatically searching clear channel in wirelesss local area network
CN101690294A (en) * 2007-03-13 2010-03-31 美商亚瑟罗斯通讯股份有限公司 Estimating timing and frequency information in multiple channel wireless communication system
CN102124788A (en) * 2008-06-26 2011-07-13 施克莱无线公司 Method and apparatus for scanning multi-mode wireless communication environments
CN101626609A (en) * 2008-07-10 2010-01-13 株式会社理光 Communication apparatus
CN101600242A (en) * 2009-07-06 2009-12-09 深圳华为通信技术有限公司 Small region search method and portable terminal
CN102625414A (en) * 2012-03-02 2012-08-01 杭州星纬物联技术有限公司 Wireless sensor network signal channel search algorithm
CN103379532A (en) * 2012-04-12 2013-10-30 华为技术有限公司 Method and apparatus for testing signal quality of radio frequency unit of base station
US20150351120A1 (en) * 2014-05-27 2015-12-03 Mstar Semiconductor, Inc. Scheduling method and device
CN105142203A (en) * 2015-08-20 2015-12-09 深圳市金立通信设备有限公司 Wireless fidelity (Wi-Fi) hotspot scanning method and terminal
CN107222290A (en) * 2017-01-09 2017-09-29 重庆大学 The Error Vector Magnitude self-adaptive modulation method of unbound nucleus under varying Channels
CN106851719A (en) * 2017-04-18 2017-06-13 云熠信息科技有限公司 A kind of Wifi probes, data balancing acquisition system and method
CN108093444A (en) * 2018-02-23 2018-05-29 广东欧珀移动通信有限公司 Wireless network transmissions method of rate control, device, terminal device and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924908A (en) * 2018-06-12 2018-11-30 Oppo广东移动通信有限公司 WiFi scan method, device and electronic device
CN109660990A (en) * 2019-02-18 2019-04-19 上海连尚网络科技有限公司 Method and apparatus for scanning wireless access point
CN110337135A (en) * 2019-08-01 2019-10-15 Oppo广东移动通信有限公司 A kind of method of adjustment, terminal and computer storage medium
WO2021017712A1 (en) * 2019-08-01 2021-02-04 Oppo广东移动通信有限公司 Adjustment method, terminal and computer storage medium
CN110337135B (en) * 2019-08-01 2021-08-17 Oppo广东移动通信有限公司 Adjusting method, terminal and computer storage medium
CN111836240A (en) * 2019-08-19 2020-10-27 北京骑胜科技有限公司 Bluetooth connection establishing method and device, electronic equipment and storage medium
CN111836240B (en) * 2019-08-19 2024-03-22 北京骑胜科技有限公司 Bluetooth connection establishment method and device, electronic equipment and storage medium
CN114885401A (en) * 2022-05-12 2022-08-09 南京创芯慧联技术有限公司 WIFI active scanning method and device, and terminal positioning method and device

Similar Documents

Publication Publication Date Title
CN108848547A (en) WiFi scan method, device, mobile terminal and computer-readable medium
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
CN110431868B (en) Wi-Fi hotspot connection method and terminal
CN110622571B (en) Network connection method, device and terminal
CN107734586B (en) Antenna switching method and mobile terminal
CN106507289A (en) A kind of cut-in method of wireless network and mobile terminal
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN108811045B (en) WiFi channel scanning method and device, mobile terminal and storage medium
CN106793010A (en) A kind of method for network access and equipment
CN108471630B (en) Transmission rate adjusting method, device, mobile terminal and computer readable medium
CN104363590A (en) Access point connection method and device
CN108924908A (en) WiFi scan method, device and electronic device
CN108650335A (en) The method, apparatus and test equipment being communicatively coupled with mobile terminal to be tested
CN106851690A (en) wireless network scanning method, device and computer equipment
CN108471622B (en) WiFi connection adjustment method and device, mobile terminal and storage medium
CN106535188A (en) Access control method and mobile terminal
RU2617547C2 (en) Method, device and end device for nfc data transmission
CN106507357B (en) Access control method and terminal equipment
CN108848557A (en) Output power method of adjustment, device, mobile terminal and computer-readable medium
KR101658093B1 (en) Mobile terminal and method of controlling the same
CN111399011A (en) Position information determining method and electronic equipment
CN108696917A (en) Communication connecting method, device, electronic device and computer-readable medium
CN108924868A (en) WiFi disconnects method of adjustment, device, mobile terminal and storage medium
CN108966266A (en) Communication connecting method, device, electronic device and computer-readable medium
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181120