CN108924908A - WiFi scan method, device and electronic device - Google Patents

WiFi scan method, device and electronic device Download PDF

Info

Publication number
CN108924908A
CN108924908A CN201810602451.0A CN201810602451A CN108924908A CN 108924908 A CN108924908 A CN 108924908A CN 201810602451 A CN201810602451 A CN 201810602451A CN 108924908 A CN108924908 A CN 108924908A
Authority
CN
China
Prior art keywords
channel
scanning
duration
wireless environment
environment 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.)
Granted
Application number
CN201810602451.0A
Other languages
Chinese (zh)
Other versions
CN108924908B (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 CN201810602451.0A priority Critical patent/CN108924908B/en
Publication of CN108924908A publication Critical patent/CN108924908A/en
Application granted granted Critical
Publication of CN108924908B publication Critical patent/CN108924908B/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

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of WiFi scan method, device and electronic device, is related to field of terminal technology.Wherein, this method includes:Obtain the wireless environment parameter in multiple channels;Scanning duration is determined according to the wireless environment parameter in each channel;Channel is scanned according to the scanning duration, makes more to accord with current practical service environment to the scanning of channel, obtains good scanning effect.

Description

WiFi scan method, device and electronic device
Technical field
This application involves field of terminal technology, more particularly, to a kind of WiFi scan method, device and electronic device.
Background technique
Existing electronic device usually can carry out network number by WiFi (Wireless Fidelity, Wireless Fidelity) According to transmission.Electronic device can carry out each channel when needing to reconnect after entering new region or WiFi network disconnection Scanning, to search out the access point for being suitable for connection.But in scan channel, unfavorable sweep time can not be obtained well Scanning effect.
Summary of the invention
In view of the above problems, present applicant proposes a kind of WiFi scan method, device and electronic devices, according to wireless environment Determination obtains good scanning effect to the scanning duration of each channel with determination suitable sweep time.
In a first aspect, the embodiment of the present application provides a kind of WiFi scan method, the method includes:Obtain multiple channels In wireless environment parameter;Scanning duration is determined according to the wireless environment parameter in each channel;When according to the scanning Length is scanned channel.
Second aspect, the embodiment of the present application provide a kind of WiFi scanning means, and described device includes:Parameter obtains mould Block, for obtaining the wireless environment parameter in multiple channels;Duration determining module, for according to described wireless in each channel Environmental parameter determines scanning duration;Scan module, for being scanned according to the scanning duration to channel.
The third aspect, the embodiment of the present application provide a kind of electronic device, including WiFi module, memory and processor, The WiFi module and the memory are couple to the processor, the memory store instruction, when described instruction is by described The processor executes above-mentioned method when processor execution.
Fourth aspect, the embodiment of the present application provide it is a kind of with processor can be performed program code it is computer-readable Storage medium, said program code make the processor execute above-mentioned method.
WiFi scan method, device and electronic device provided by the present application, wireless environment parameter determine the scanning to channel Duration obtains good scanning effect so that the scanning to channel more accords with current practical service environment.
These aspects or other aspects of the application can more straightforward in the following description.
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 a flow chart of the WiFi scan method of the embodiment of the present application proposition;
Fig. 2 shows the default mapping tables that the embodiment of the present application proposes;
Fig. 3 shows the flow chart of the part steps of the WiFi scan method of the embodiment of the present application proposition;
Fig. 4 shows the functional block diagram of the WiFi scanning means of the embodiment of the present application proposition;
Fig. 5 shows the structural block diagram of the electronic device of the embodiment of the present application proposition;
Fig. 6 shows a kind of structural schematic diagram of the electronic device of the embodiment of the present application proposition;
Fig. 7 shows filling for executing according to the electronics of the WiFi scan method of the embodiment of the present application for the embodiment of the present application The block diagram set.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The electronic devices such as mobile phone, tablet computer usually pass through WiFi network and are connected to the network.Electronic device is entering newly Environment, or stayed for a long time before returning to some WiFi area of coverage when, WiFi connection can be carried out.It is common, The WiFi rate testing mechanism of electronic device can detect ambient enviroment again, according to the sequential scan of channel from low to high, or Channel where the wireless access point first connected before scanning.Wireless terminal is known that after scanning through all available channels Wireless access point present in ambient enviroment, and it is possible to know the access point in each channel.
Inventor has found that the scanning duration on each channel is influenced by specific wireless environment, for same Channel can obtain preferable scanning effect in different environments with long scan when different scanning.Wherein, preferable scanning effect Fruit can be, and can search out the hot spot that may search for as far as possible on congested channel, on idle channel, due to being easier to search Rope keeps its scanning time-consuming shorter to channel.If being scanned to each channel using same time, in some possible channels Wireless access point is not scanned, such as compares the channel of congestion, and the sweep time process of some channels, such as idle channel.Cause This, the embodiment of the present application provides a kind of WiFi scan method, can be determined each according to the wireless environment around electronic device Channel suitable sweep time, to obtain good scanning effect.Below in conjunction with attached drawing and by specific embodiment to this WiFi scan method, device and the electronic device that application embodiment provides are illustrated.
First embodiment
Referring to Fig. 1, the application first embodiment provides a kind of WiFi scan method, this method is filled applied to electronics It sets, which can be a kind of wireless device, including WiFi module, wireless access point can be connected by WiFi module, To access network.Wherein, which can be mobile phone, tablet computer, laptop, Streaming Media, Intelligent wearable The equipment that equipment, reader etc. can carry out WiFi connection, does not limit in the embodiment of the present application.
In the method, each channel suitable sweep time can be determined according to wireless environment parameter.Specific real It applies in example, the WiFi scan method is applied to WiFi scanning means as shown in Figure 4 and is corresponding with WiFi scanning means 400 Electronic device 400 (Fig. 5, Fig. 6).Above-mentioned WiFi scan method can specifically include following steps:
Step S110:Obtain the wireless environment parameter in multiple channels.
Obtain the corresponding wireless environment parameter of each channel.Wherein, which is the relevant nothing of WiFi connection Line number evidence, volume of transmitted data, the EVM value of channel, the signal-to-noise ratio of channel etc. such as the number of access point in the channel, in the channel One or more of them.Wherein, which can be the data volume carried out data transmission in preset time, in 1 second Amount of communication data.
Certainly, wireless environment parameter can also include other, such as the congestion index of the EVM value of channel, channel.Wherein, The acquisition modes of various wireless environment parameters are referred to existing acquisition modes, it is not limited here.
Step S120:Scanning duration is determined according to the wireless environment parameter in each channel.
According to the wireless environment parameter of each channel, the corresponding scanning duration of each channel is determined.
Specifically, as an implementation, can be, it is previously provided between wireless environment parameter and scanning duration Functional relation, if wireless environment parameter includes access point and volume of transmitted data, can be previously provided with access point number and Functional relation between volume of transmitted data and scanning duration.In the case where obtaining the wireless environment parameter of each channel, Ke Yigen The scanning duration of each channel is calculated according to wireless environment parameter and pre-set functional relation.
As an implementation, it is also possible to be previously provided with wireless environment parameter and scans the corresponding relationship of duration, The scanning duration of each channel is determined according to the corresponding relationship.
Step S130:Channel is scanned according to the scanning duration.
Each channel is scanned with determining scanning duration.
In the embodiment of the present application, the actual scanning duration of each channel is determined by current wireless environment, to make to access The scanning duration of the excessive equal relatively channel of congestion of point is unlikely to too short, when the scanning of the less equal more idle channel of access point Length is unlikely to too long.
Step 210:Obtain the wireless environment parameter in multiple channels.
In the embodiment of the present application, the channel for obtaining wireless environment parameter is available channel in ambient enviroment.
Step 220:Scanning duration is determined according to the wireless environment parameter in each channel.
In the embodiment of the present application, when can determine the scanning of each channel by pre-stored default mapping table It is long.In default mapping table, closed including the wireless environment parameter of each channel and the corresponding of time span numerical value System.
As a kind of specific embodiment, presetting the time span numerical value in mapping table is corresponding channel right Under the wireless environment parameter answered needed for scanning duration, preset mapping table in include each channel wireless environment parameter with The corresponding relationship of duration.
Wherein, which can be test in advance and obtains, such as factory test.It takes the mobile phone as an example, specifically may be used To test certain mobile phone under the different radio environment in each channel, how long to be scanned and can obtain good sweep Effect is retouched, scanning duration under the good scanning effect can be just scanning and scannable wirelessly connect to all in the channel Time span needed for access point.Optionally, a scanning duration critical value can also be set, if certain channel is in the scanning of needs In the long wireless environment more than the critical value, a length of critical value when its scanning is set, influences user to avoid lengthy scan Experience.
In default mapping table, for each channel, it can be one or more wireless environments of different numerical value Parameter respectively corresponds different scanning durations.Such as shown in Fig. 2, for channel 1, in the wireless environment parameter A that parameter value is a1 And parameter value is in the wireless environment of the wireless environment parameter B of b1, the value of corresponding scanning duration T is t1.Wherein, parameter value A1, a2 and parameter value b1, b2 can be specific value, be also possible to numerical intervals.T1, t2, t3 and t4 respectively indicate phase Same or different scanning duration.
It, can be from default corresponding relationship then when determining scanning duration according to the wireless environment parameter in each channel The corresponding duration of the wireless environment parameter is searched in table, then using the duration found as when scanning.
As an implementation, presetting the time span numerical value in mapping table can be duration value added, i.e. phase Increased time span is needed to preset standard duration.Wherein, a length of preset expression time span when preset standard Quantitative value, specific value is it is not limited here.That is, default mapping table includes the nothing that may include each channel The corresponding relationship of thread environment parameter and duration value added.
In this embodiment, relation table can also be obtained according to preparatory test by presetting.Each channel is tested to exist Scanning duration needed under different wireless environment parameters, according to required the scanning duration and preset standard duration, really Fixed duration value added of each channel under different radio environmental parameter forms the default mapping table.
It, can be from the default corresponding pass when then determining scanning duration according to the wireless environment parameter in each channel It is that the corresponding duration value added of the wireless environment parameter is searched in table;Again by the preset standard duration add find when It is that long value added obtains as a result, as scanning duration.
Step 230:Channel is scanned according to the scanning duration.
Each channel is scanned according to the scanning duration of acquisition.For example, determining a length of t1 when the scanning of channel 1, really Determine a length of t2 when the scanning of channel 6, then when scanning channel 1, the time span of scanning is t1, when scanning channel 6, the time of scanning Length is t2.
Specifically, since the scanning duration of each channel of each determination is different, it can also be according to the scanning of each channel Length of time determines the sequencing of scanning, to obtain the information of more wireless access point within the shorter time.
Specifically, as shown in figure 3, this step may include:
Step S231:It is sorted from high to low to the multiple channel from short to long according to scanning duration.
Each channel is ranked up according to its sweep time length.Wherein, if there are two or more than two channels It is identical to scan duration, can be sorted with any sequence, or will be with the less channel sequence of other cross channel frequency ranges more It is forward.
Step S232:The scanning strategy to the multiple channel is determined according to ranking results.
The scanning strategy to channel has been determined according to scanning result, and each channel has been scanned according to scanning strategy.
Specific scanning strategy can be, and successively scan to each channel of duration from high to low is scanned in ranking results.
In addition, during the scanning process, can be chosen from high to low from ranking results default from available multiple channels The channel of quantity is scanned.For the preset quantity channel of selection, can with random scanning, can also according to ranking results by High to Low scanning.
Optionally, during the scanning process, in the wireless access point that can be obtained with scanning, attachable wireless access point phase Connection;Or in the wireless access point obtained with scanning, the access point connected is connected.If during the scanning process, being connected to Signal quality meets the wireless access point of preset standard, then can stop scanning.
Optionally, the wireless access point information that scanning obtains can be shown, to show user.If receiving use Attended operation of the family to the wireless access point wherein shown, connects the wireless access point.If during the scanning process, wirelessly being connect with this Access point successful connection can then stop scanning.Or during the scanning process, and after the wireless access point successful connection, this is wireless The signal quality of access point meets preset standard, then can stop scanning.Wherein, signal quality, which meets preset standard, can be weight Biography rate, bit error rate etc. meet preset standard.
In the embodiment of the present application, if after being scanned to all channels, the wireless access point that can be successfully connected is not obtained, Sweep time scanning is determined after can continuing the wireless environment parameter of acquisition channel.It wherein, can to the acquisition of wireless environment parameter Carried out after all channels with scanning, optionally, to reduce detection to the power consumption of system, can also every preset period of time into Row obtains.
Wherein, after obtaining wireless environment parameter again, it can be determined that in each channel, if there is this to get wireless Difference between environmental parameter and the previous corresponding wireless environment parameter got is greater than preset value.If for some channel, Judging result is the difference between the wireless environment parameter and the previous corresponding wireless environment parameter got for having this to get Value is greater than preset value, then the scanning duration of the channel is determined according to the wireless environment parameter regained.If for some letter Road, judging result are between the wireless environment parameter and the previous corresponding wireless environment parameter got got without this Difference be greater than preset value, then using the scanning duration of previous determination as the scanning duration of the channel present scan, swept with reduction Duration obtaining step is retouched, power consumption is saved.
Specifically, to Mr. Yu's channel, if this wireless environment parameter for detecting and the previous gap detected are little, Wireless environment when this detection is close with wireless environment when previous detection, for the scanning duration and previous determination of the channel Scanning duration it is same or similar, then under this detection case, can not know scanning duration.
If this wireless environment parameter detected and the previous gap detected are larger, the wireless environment of electronic device It changes greatly, may be affected with the scanning duration of channel, can again be the channel determination scan duration.
Wherein, this wireless environment parameter detected and the previous gap size detected, can be by detecting twice Between difference measured.That is, it can be determined that this each wireless environment parameter detected and previous detect Whether the difference between corresponding wireless environment parameter is greater than preset value.Wherein, every kind of wireless environment parameter can be correspondingly arranged Preset value, the corresponding preset value of various wireless environment parameters is not necessarily identical, for example, the corresponding preset value of access point number is 2 A, the corresponding preset value of volume of transmitted data is 5M etc..
If wireless environment parameter include it is a variety of, the comparison of detection data twice is successively carried out to every kind of wireless environment parameter. If wherein there is the difference between a kind of wireless environment parameter and the previous value detected to be greater than preset value, it is determined with this detection To wireless environment parameter and the previous corresponding wireless environment parameter detected between difference be greater than preset value.
Certainly, in this step, it is also possible to have greater than between a kind of wireless parameter and the previous data detected When difference is greater than preset value, it is just determined with wireless environment parameter that this is detected and the previous corresponding wireless environment detected Difference between parameter is greater than preset value.
In the embodiment of the present application, the scanning duration of each channel can be obtained according to current wireless environment parameter.And And the scanning sequencing of channel is determined according to ranking results, with as fast as possible according to scanning duration sequence to each channel Velocity scanning improves scanning effect to wireless access point as much as possible.
The embodiment of the present application also provides a kind of WiFi scanning means 300, refer to Fig. 4, and described device 300 includes:Ginseng Number obtains module 310, for obtaining the wireless environment parameter in multiple channels.Duration determining module 320, for according to each letter The wireless environment parameter in road determines scanning duration.Scan module 330, for being carried out according to the scanning duration to channel Scanning.
Optionally, duration determining module 320 may include searching unit, for searching institute from default mapping table State the corresponding duration of wireless environment parameter;Determination unit, for using the duration that finds as scanning duration.
Optionally, duration determining module 320 may include searching unit, for looking into from the default mapping table Look for the corresponding duration value added of the wireless environment parameter;Determination unit is found for adding the preset standard duration Duration value added obtain as a result, as scanning duration.
Optionally, scan module 330 may include:Sequencing unit is used for according to scanning duration from short to long to described more A channel is sorted from high to low;Scanning element determines the scanning strategy to the multiple channel, and root according to ranking results It is scanned according to scanning strategy.
Wherein, scanning element is scanned according to scanning survey and can be, and sweeps from high to low to the multiple channel It retouches.
Scanning element is scanned according to scanning survey to be also possible to from the multiple channel, is chosen from high to low pre- If the channel of quantity is scanned.
In conclusion the scanning duration to each channel is determined according to wireless environment, to wireless ring in the embodiment of the present application The simple channel in border, can distribute less sweep time, to the channel of wireless environment complexity, when can distribute more scannings Between, to obtain scanning effect as good as possible with the time as few as possible.
Referring to Fig. 5, based on above-mentioned WiFi scan method and device, the embodiment of the present application also provides a kind of electronics Device 400.As shown in figure 5, the electronic device 400 includes WiFi module 401, memory 104 and processor 102, the WiFi Module 401 and the memory 104 are couple to the processor 102, and the WiFi module 401 is used to pass through network transmission number According to 104 store instruction of memory, when described instruction is executed by the processor 102, the processor 102 is executed above-mentioned Method.
Specifically, as shown in fig. 6, being illustrated using mobile phone as electronic device.The electronic device 400 may include electronics Body part 10, the electronic body portion 10 include shell 12 and the display screen 120 being arranged on the shell 12.The shell 12 Metal can be used, such as steel, aluminium alloy are made.In the present embodiment, the display screen 120 generally includes display panel 111, can also Including for responding the circuit etc. for carrying out touch control operation to the display panel 111.The display panel 111 can be a liquid LCD panel (Liquid Crystal Display, LCD), in some embodiments, the display panel 111 is one simultaneously A touch screen 109.
Please refer to Fig. 7, in actual application scenarios, the electronic device 400 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 401 etc..It will appreciated by the skilled person that structure shown in Fig. 7 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 Fig. 7 Shown in more perhaps less component or with the correspondence different from shown in Fig. 7.
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), adopting wireless fidelity technology (Wireless, Fidelity, WiFi) (such as American Institute of Electrical and Electronics Engineers's standard IEEE 802.10A, IEEE802.11b, IEEE802.11g and/or IEEE 802.11n), the networking telephone (Voice over internet protocal, VoIP), worldwide interoperability for microwave accesses (Worldwide Interoperability for Microwave Access, Wi-Max), other be used for mail, Instant Messenger The agreement and any other suitable communications protocol of news and short message, or even may include that those are not developed currently yet Agreement.
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 400 further includes locator 119, and the locator 119 is for determining 400 institute of electronic device The physical location at place.In the present embodiment, the locator 119 realizes the positioning of the electronic device 400 using positioning service, The positioning service, it should be understood that the location information of the electronic device 400 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.
It should be understood that above-mentioned electronic device 400 is not limited to intelligent mobile phone terminal, should refer to can moved Computer equipment used in dynamic.Specifically, electronic device 400, refers to the mobile computer for being equipped with intelligent operating system Equipment, electronic device 400 include but is not limited to smart phone, smartwatch, tablet computer, etc..
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng See the part explanation of embodiment of the method.For arbitrary processing mode described in embodiment of the method, in device reality Apply in example can no longer be repeated in Installation practice by corresponding processing modules implement one by one.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
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 (11)

1. a kind of WiFi scan method, which is characterized in that the method includes:
Obtain the wireless environment parameter in multiple channels;
Scanning duration is determined according to the wireless environment parameter in each channel;
Channel is scanned according to the scanning duration.
2. the method according to claim 1, wherein the wireless environment parameter includes one or more of:
The number of access point in channel, in channel amount of communication data size, the EVM value of channel and the signal-to-noise ratio of channel.
3. the method according to claim 1, wherein the wireless environment parameter according in each channel Determine scanning duration, including:
The corresponding duration of the wireless environment parameter is searched from default mapping table;
Using the duration that finds as scanning duration.
4. according to the method described in claim 3, it is characterized in that, including the nothing of each channel in the default mapping table The corresponding relationship of thread environment parameter and duration.
5. the method according to claim 1, wherein be pre-stored with default mapping table, the default correspondence Relation table includes:The wireless environment parameter of each channel and the corresponding relationship of duration value added, the duration value added is opposite Preset standard duration needs increased time span,
The wireless environment parameter according in each channel determines scanning duration, including:
The corresponding duration value added of the wireless environment parameter is searched from the default mapping table;
The preset standard duration is added that the duration value added found obtains as a result, as scanning duration.
6. the method according to claim 1, wherein described be scanned channel according to the scanning duration, Including:
It is sorted from high to low to the multiple channel from short to long according to scanning duration,
The scanning strategy to the multiple channel is determined according to ranking results.
7. according to the method described in claim 6, it is characterized in that, determining the scanning to the multiple channel according to ranking results Strategy, including:
The multiple channel is scanned from high to low.
8. according to the method described in claim 6, it is characterized in that, determining the scanning to the multiple channel according to ranking results Strategy, including:
From the multiple channel, the channel for choosing preset quantity from high to low is scanned.
9. a kind of WiFi scanning means, which is characterized in that described device includes:
Parameter acquisition module, for obtaining the wireless environment parameter in multiple channels;
Duration determining module, for determining scanning duration according to the wireless environment parameter in each channel;
Scan module, for being scanned according to the scanning duration to channel.
10. a kind of electronic device, which is characterized in that including WiFi module, memory and processor, the WiFi module and described Memory is couple to the processor, the memory store instruction, when executed by the processor the place It manages device perform claim and requires 1 to 8 described in any item methods.
11. a kind of computer readable storage medium for the program code that can be performed with processor, which is characterized in that described program Code makes the processor perform claim require 1 to 8 described in any item methods.
CN201810602451.0A 2018-06-12 2018-06-12 WiFi scanning method and device and electronic device Active CN108924908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810602451.0A CN108924908B (en) 2018-06-12 2018-06-12 WiFi scanning method and device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810602451.0A CN108924908B (en) 2018-06-12 2018-06-12 WiFi scanning method and device and electronic device

Publications (2)

Publication Number Publication Date
CN108924908A true CN108924908A (en) 2018-11-30
CN108924908B CN108924908B (en) 2021-02-02

Family

ID=64409884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810602451.0A Active CN108924908B (en) 2018-06-12 2018-06-12 WiFi scanning method and device and electronic device

Country Status (1)

Country Link
CN (1) CN108924908B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225573A (en) * 2019-06-03 2019-09-10 Oppo广东移动通信有限公司 WiFi channel scanning method and device, electronic equipment, computer readable storage medium
CN110337135A (en) * 2019-08-01 2019-10-15 Oppo广东移动通信有限公司 A kind of method of adjustment, terminal and computer storage medium
CN111294887A (en) * 2019-01-28 2020-06-16 紫光展讯通信(惠州)有限公司 Self-adaptive adjusting method and device for channel scanning time
CN113225787A (en) * 2021-04-06 2021-08-06 Oppo广东移动通信有限公司 Wi-Fi scanning method, terminal equipment and storage medium

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626609A (en) * 2008-07-10 2010-01-13 株式会社理光 Communication apparatus
US20100150118A1 (en) * 2008-12-12 2010-06-17 Daniel Daum Method and System for Time Based WLAN Scanning
CN102752823A (en) * 2012-07-04 2012-10-24 西安电子科技大学 Method for switching user terminal between access joints in WLAN (Wireless Local Area Network) based on AP (Access Point) collaboration
CN104768156A (en) * 2015-04-30 2015-07-08 北京奇虎科技有限公司 WiFi connection method and device
CN105142203A (en) * 2015-08-20 2015-12-09 深圳市金立通信设备有限公司 Wireless fidelity (Wi-Fi) hotspot scanning method and terminal
CN105636170A (en) * 2015-12-25 2016-06-01 深圳Tcl数字技术有限公司 Wireless hotspot scanning and displaying method and device
CN106604362A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 Wireless fidelity (Wi-Fi) scanning method and mobile terminal
CN106792993A (en) * 2016-12-07 2017-05-31 广东欧珀移动通信有限公司 Channel scanning method and mobile terminal
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
CN106851719A (en) * 2017-04-18 2017-06-13 云熠信息科技有限公司 A kind of Wifi probes, data balancing acquisition system and method
CN106982459A (en) * 2017-03-14 2017-07-25 广东欧珀移动通信有限公司 network scanning method and terminal device
CN107094315A (en) * 2017-04-24 2017-08-25 北京星网锐捷网络技术有限公司 Scan channel collocation method and device
CN107969025A (en) * 2017-11-30 2018-04-27 广东欧珀移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN108111977A (en) * 2017-12-07 2018-06-01 广东欧珀移动通信有限公司 network scanning method, device, storage medium and electronic equipment
CN108811045A (en) * 2018-06-12 2018-11-13 Oppo广东移动通信有限公司 WiFi channel scanning methods, device, mobile terminal and storage medium
CN108848547A (en) * 2018-06-12 2018-11-20 Oppo广东移动通信有限公司 WiFi scan method, device, mobile terminal and computer-readable medium

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626609A (en) * 2008-07-10 2010-01-13 株式会社理光 Communication apparatus
US20100150118A1 (en) * 2008-12-12 2010-06-17 Daniel Daum Method and System for Time Based WLAN Scanning
CN102752823A (en) * 2012-07-04 2012-10-24 西安电子科技大学 Method for switching user terminal between access joints in WLAN (Wireless Local Area Network) based on AP (Access Point) collaboration
CN104768156A (en) * 2015-04-30 2015-07-08 北京奇虎科技有限公司 WiFi connection method and device
CN105142203A (en) * 2015-08-20 2015-12-09 深圳市金立通信设备有限公司 Wireless fidelity (Wi-Fi) hotspot scanning method and terminal
CN105636170A (en) * 2015-12-25 2016-06-01 深圳Tcl数字技术有限公司 Wireless hotspot scanning and displaying method and device
CN106792984A (en) * 2016-11-29 2017-05-31 努比亚技术有限公司 A kind of WIFI hot spot scanning connection control method and terminal
CN106792993A (en) * 2016-12-07 2017-05-31 广东欧珀移动通信有限公司 Channel scanning method and mobile terminal
CN106604362A (en) * 2016-12-07 2017-04-26 广东欧珀移动通信有限公司 Wireless fidelity (Wi-Fi) scanning method and mobile terminal
CN106982459A (en) * 2017-03-14 2017-07-25 广东欧珀移动通信有限公司 network scanning method and terminal device
CN106851719A (en) * 2017-04-18 2017-06-13 云熠信息科技有限公司 A kind of Wifi probes, data balancing acquisition system and method
CN107094315A (en) * 2017-04-24 2017-08-25 北京星网锐捷网络技术有限公司 Scan channel collocation method and device
CN107969025A (en) * 2017-11-30 2018-04-27 广东欧珀移动通信有限公司 Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN108111977A (en) * 2017-12-07 2018-06-01 广东欧珀移动通信有限公司 network scanning method, device, storage medium and electronic equipment
CN108811045A (en) * 2018-06-12 2018-11-13 Oppo广东移动通信有限公司 WiFi channel scanning methods, device, mobile terminal and storage medium
CN108848547A (en) * 2018-06-12 2018-11-20 Oppo广东移动通信有限公司 WiFi scan method, device, mobile terminal and computer-readable medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294887A (en) * 2019-01-28 2020-06-16 紫光展讯通信(惠州)有限公司 Self-adaptive adjusting method and device for channel scanning time
CN110225573A (en) * 2019-06-03 2019-09-10 Oppo广东移动通信有限公司 WiFi channel scanning method and device, electronic equipment, computer readable storage medium
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
CN113438714A (en) * 2019-08-01 2021-09-24 Oppo广东移动通信有限公司 Adjusting method, terminal and computer storage medium
CN113438714B (en) * 2019-08-01 2022-12-02 Oppo广东移动通信有限公司 Adjusting method, terminal and computer storage medium
CN113225787A (en) * 2021-04-06 2021-08-06 Oppo广东移动通信有限公司 Wi-Fi scanning method, terminal equipment and storage medium
CN113225787B (en) * 2021-04-06 2023-02-28 Oppo广东移动通信有限公司 Wi-Fi scanning method, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN108924908B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN108924908A (en) WiFi scan method, device and electronic device
CN108964838A (en) transmission rate adjusting method, device and electronic device
CN108990105A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN108717343A (en) Application icon processing method, device and mobile terminal
CN108762859A (en) Wallpaper displaying method, device, mobile terminal and storage medium
US20210092630A1 (en) Method for cell management, terminal, and network-side device
CN108345422A (en) Application control method, apparatus, mobile terminal and computer-readable medium
CN108762466A (en) Display methods, device, mobile terminal and storage medium
CN108880751A (en) transmission rate adjusting method, device and electronic device
CN108512997A (en) Display methods, device, mobile terminal and storage medium
CN108770055A (en) Transmission power adjustment method, device and electronic device
CN110221882A (en) Display methods, device, mobile terminal and storage medium
CN111601347B (en) Reporting method, configuration method, terminal and network side equipment
CN108650335A (en) The method, apparatus and test equipment being communicatively coupled with mobile terminal to be tested
CN108494851B (en) Application program recommended method, device and server
CN108763243A (en) Application program recommends method, apparatus, mobile terminal and server
CN108683812A (en) volume adjusting method, device and mobile terminal
CN110611933A (en) Link quality monitoring method and terminal
CN108449787A (en) Connect control method, device and electronic equipment
CN108882335A (en) Method for connecting network, device and electronic device
CN108667962A (en) Display methods, device, mobile terminal and storage medium
CN108632822A (en) Detection method, device and the mobile terminal of wireless access point
CN108990104A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN108901062A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN107930126A (en) Reservation data of playing processing method, device 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
GR01 Patent grant
GR01 Patent grant