CN108337719A - wireless network scanning method, device, terminal device and storage medium - Google Patents

wireless network scanning method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108337719A
CN108337719A CN201810098273.2A CN201810098273A CN108337719A CN 108337719 A CN108337719 A CN 108337719A CN 201810098273 A CN201810098273 A CN 201810098273A CN 108337719 A CN108337719 A CN 108337719A
Authority
CN
China
Prior art keywords
sweep time
interference
terminal device
wireless network
different channels
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
CN201810098273.2A
Other languages
Chinese (zh)
Other versions
CN108337719B (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 CN201810098273.2A priority Critical patent/CN108337719B/en
Publication of CN108337719A publication Critical patent/CN108337719A/en
Application granted granted Critical
Publication of CN108337719B publication Critical patent/CN108337719B/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

Abstract

The embodiment of the present application discloses a kind of wireless network scanning method, device, terminal device and storage medium, and this method includes when detecting that wireless network scan event is triggered, determining the current interference scene of terminal device;The sweep time adjusted value for determining different channels corresponding with the interference scene, is adjusted the sweep time strategy in the wireless network scan event according to the sweep time adjusted value;Different channels are scanned according to the sweep time strategy after adjustment.In the present solution, introducing interference parameter during terminal device carries out wireless network scan, the influence to radio scan result under interference scene is reduced, scan efficiency is improved.

Description

Wireless network scanning method, device, terminal device and storage medium
Technical field
The invention relates to computer technology more particularly to a kind of wireless network scanning method, device, terminal devices And storage medium.
Background technology
With the raising of terminal device popularity, more and more users' using terminal equipment executes various work( Can be to meet self-demand, such as using terminal equipment reads word, viewing video, listens to music, plays game, is used eventually in user Connection network is frequently necessary to during end equipment to obtain Internet resources, the 4G mobile networks such as provided by mobile operator Or wireless wifi network etc..
When user's using terminal equipment connects wireless wifi network, the channel that terminal device can be supported in wifi sends out scanning Signal waits for the response signal of surrounding router, and signal determines the router of connection, wireless network in the prior art according to response Network scan mechanism existing defects, need to improve.
Invention content
The present invention provides a kind of wireless network scanning method, device, terminal device and storage mediums, improve wireless network Scan efficiency reduces influence of the environmental disturbances to scanning result.
In a first aspect, the embodiment of the present application provides a kind of wireless network scanning method, including:
When detecting that wireless network scan event is triggered, the current interference scene of terminal device is determined;
The sweep time adjusted value for determining different channels corresponding with the interference scene is adjusted according to the sweep time Value is adjusted the sweep time strategy in the wireless network scan event;
Different channels are scanned according to the sweep time strategy after adjustment.
Second aspect, the embodiment of the present application also provides a kind of wireless network scan devices, including:
Determining module is interfered, when for detecting that wireless network scan event is triggered, determining that terminal device is current and doing Disturb scene;
Sweep time determining module, the sweep time adjustment for determining different channels corresponding with the interference scene Value;
Setup module was used for according to the sweep time adjusted value to the sweep time in the wireless network scan event Strategy is adjusted;
Scan module, for being scanned to different channels according to the sweep time strategy after adjustment.
The third aspect, the embodiment of the present application also provides a kind of terminal devices, including:Processor, memory and storage On a memory and the computer program that can run on a processor, the processor are realized such as when executing the computer program Wireless network scanning method described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, institutes Terminal device executable instruction is stated when being executed by terminal device processor for executing the wireless network described in the embodiment of the present application Network scan method.
In the present solution, when detecting that wireless network scan event is triggered, the current interference scene of terminal device is determined, really The sweep time adjusted value of fixed different channels corresponding with the interference scene, according to the sweep time adjusted value to the nothing Sweep time strategy in gauze network scan event is adjusted, and is carried out to different channels according to the sweep time strategy after adjustment Scanning.In the present solution, introducing interference parameter during terminal device carries out wireless network scan, reduce under interference scene to nothing The influence of line scanning result, improves scan efficiency.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of wireless network scanning method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another wireless network scanning method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another wireless network scanning method provided by the embodiments of the present application;
Fig. 4 is the flow chart of another wireless network scanning method provided by the embodiments of the present application;
Fig. 5 is the flow chart of another wireless network scanning method provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of wireless network scan device provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is for explaining the present invention rather than limitation of the invention.It also should be noted that for the ease of retouching It states, only the parts related to the present invention are shown in attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of wireless network scanning method provided by the embodiments of the present application, is applicable to set in terminal Standby the case where carrying out scanning connectable device when network connection, this method can by terminal device provided by the embodiments of the present application Lai It executes, software can be used for the wireless network scan device of the terminal device and/or the mode of hardware is realized, as shown in Figure 1, this reality The concrete scheme for applying example offer is as follows:
When step S101, detecting that wireless network scan event is triggered, the current interference scene of terminal device is determined.
Wireless network (wireless network) is the network realized using wireless communication technique.Wireless network both included Allow terminal device to establish global voice and data network that remote-wireless connects, also includes being carried out near radio connection The infrared technology and radio-frequency technique of optimization, very similar with the purposes of cable network, maximum difference is transmission medium Difference replaces cable using radiotechnics, can backup each other with cable network.
Wherein, wireless network scan event access device (such as router, hot spot currently available for end of scan equipment Equipment etc.), illustratively, which can manually be triggered by user, after such as monitoring that WLAN controls are clicked The signal scanning for proceeding by accessible equipment can also be that terminal device monitors that network state changes (as disconnected net Network connect) when activation trigger wireless network scan event.
Terminal device can send out scanning signal in the channel of support, wait for surrounding that can connect when carrying out wireless network scan The response signal for entering equipment causes since the presence of interference scene makes the signal receiving sensitivity on some channels poor Scanning result in these channels is poor, and it is inaccurate to eventually lead to the accessible equipment scanned.
In one embodiment, by taking Android operation system as an example, network interface card is automatically opened simultaneously after detecting that Wifi starts Start wpa_supplicant, in this step after detecting that Wifi starts or wpa_supplicant is called, determines terminal The current interference scene of equipment.Wherein, which is that the scene of interference is generated to wireless network scan result, can be eventually The interference scene that end equipment internal interference source generates can also be the interference scene that terminal device external interference source generates.Citing For, the corresponding interference scene in internal interference source can be the interference of 4G network data transmissions, and external interference source generates corresponding dry It can be the corresponding interference of bluetooth equipment (such as bluetooth headset) other Wireless Communication Equipment to disturb scene.In one embodiment, Determine that the current interference scene of terminal device can determine terminal in real time when detecting that wireless network scan event is triggered The current interference scene of equipment can also be interference field of the interference scene for obtaining terminal device records as present terminal equipment Scape.
Step S102, the sweep time adjusted value of determination and the corresponding different channels of the interference scene is swept according to described in Time adjusted value is retouched to be adjusted the sweep time strategy in the wireless network scan event.
Wherein, channel (also known as frequency range) is the data-signal Transfer pipe using wireless signal as transmission media, such as common IEEE802.11b/g be operated in 2.4~2.4835GHz frequency ranges, these frequency ranges are divided into 11 or 13 channels.It is wherein different Interference scene is different to different channel effect degree, and specific influence degree can be determined by, illustratively, with LTE For 40 interference scenes of B, its interference to different WiFi channels is tested, wherein and LTE (Long Term Evolution, for a long time Evolution) it is by 3GPP (The 3rd Generation Partnership Project, third generation partner program) tissue UMTS (Universal Mobile Telecommunications System, Universal Mobile Communication System) technical bid of formulation Accurate long term evolution, B 40 are the frequency range (2300-2400Mhz) that band 40 refers to its work, and current LTE can support B 1 to B 40 Totally 40 working frequency range, the disturbed condition that different working frequency range generates different WiFi channels is different, according to international standard The WiFi channels of 2.4GHz are divided into 13 channels (span is frequency 2412 to frequency 2472), such as obtain LTE B by test The interference of 40 pairs of 1 channels of WiFi is 4db.
In one embodiment, the transmission of the wireless network data of different channels is surveyed under different interference scenes in advance Examination determines that different interference scenes interfere the signal strength of different channels, is arranged and records corresponding sweep time adjusted value, In, sweep time adjusted value as the foundation determined during follow-up wireless network scan to different channels duration scanning, The sweep time adjusted value of the corresponding different channels of different interference scenes can in a tabular form record storage in terminal device, when Wireless network scan event is triggered after the interference scene of determining present terminal equipment, and the table according to the record determines the interference Sweep time adjusted value of the scene in different channels.Illustratively, specific test process can be:Respectively test have interference and The signal strength of each channel under noiseless situation, to determine influence of the interference scene to different channels signal strength, Jin Ershe Fixed corresponding sweep time adjusted value, wherein the more strong corresponding sweep time adjusted value of interference is bigger, and interference is smaller, corresponding Sweep time adjusted value is smaller, and for example, when interference strength is 4db, corresponding sweep time adjusted value is 100ms, interference When intensity is 0.2db, sweep time adjusted value is 10ms.
It in another embodiment, can to being tested the scanning signal intensity of different channels under different interference scenes The accessible equipment of fixed signal intensity is set in each channel, test believes the scanning of different channels under different interference scenes Number intensity is tested the annoyance level to determine interference scene to different channels.
Terminal device can be scanned different Wifi channels during wireless network scan to obtain for connection Accessible equipment, consider terminal device the case where scanning result can be affected under interference scene, i.e., existing skill It is fixed when in art to the sweep time of each channel.For example, under noiseless situation, terminal device is in 1 channels of WiFi Scanning scanning 200ms, obtains an accessible device A, is set with accessible in Wifi2 scan channels 200ms to accessible equipment B Standby C, it is stronger to the interference of 2 channels of Wifi if terminal device is at this time under interference scene (such as 40 scenes of LTE B), this When terminal device 2 scan channel 200ms of Wifi may can't had found to can access equipment or finding that one can access and set Standby, i.e., there is deviation in scanning result, and then influences final connection result.Therefore in this step, determine and the interference scene pair The sweep time adjusted value for the different channels answered, according to the sweep time adjusted value in the wireless network scan event Sweep time strategy is adjusted, illustratively, the sweep time adjusted value 100ms of 1 channels of WiFi, then in the acquiescence of setting Increase the sweep time of the sweep time adjusted value (100ms) on the basis of sweep time, is thus swept under interference scene with improving Retouch the probability of accessible equipment.
In one embodiment, can be the side for overriding original default scan time to the adjustment of sweep time strategy Formula can also be the mode for the sweep time for jumping to new setting.
Step S103, different channels are scanned according to the sweep time strategy after adjustment.
In one embodiment, according to the sweep time strategy after adjustment to different channels be scanned including:According to not The sweep time adjusted value corresponding sweep time of cochannel is scanned different channels successively, can also be in default scan The mode of sweep time adjusted value is added on the basis of time.For example, the interference scene that step S101 is determined is LTE B 40 scenes, determine the sweep time adjusted value in corresponding Wifi channels 1 to 13 be followed successively by 100ms, 20ms, 20ms, 50ms, 50ms, 80ms, 70ms, 90ms, 30ms, 40ms, 40ms, 50ms and 80ms, the adjustable strategies changed in step S102 are assumed to The default scan time (such as 300ms) adds the form of sweep time adjusted value, then in this step when carrying out scan channel, channel 1 to sweep time successively of channel 13 is:400ms、320ms、320ms、350ms、350ms、380ms、370ms、390ms、 330ms, 340ms, 340ms, 350ms and 380ms.
As shown in the above, interference parameter is introduced during terminal device carries out wireless network scan, to being disturbed It influences big channel and longer sweep time is set, reduce the influence to radio scan result under interference scene, improve scanning Efficiency.
Fig. 2 is the flow chart of another wireless network scanning method provided by the embodiments of the present application, optionally, the determination The current interference scene of terminal device includes:Determine the channel transmitting frequency range that terminal device uses;Correspondingly, the determination and institute The sweep time adjusted value for stating the corresponding different channels of interference scene includes:Determine difference corresponding with channel transmitting frequency range The sweep time adjusted value of channel.As shown in Fig. 2, technical solution is specific as follows:
When step S201, detecting that wireless network scan event is triggered, the channel transmitting frequency that terminal device uses is determined Section.
Wherein, channel transmitting frequency range is data transmit-receive frequency range when terminal device uses mobile network (such as GSM, 3G, 4G), Terminal device can use mobile network to carry out partial data in couple in router carries out wireless network data transmission process Transmitting-receiving, can generate the scan channel of terminal device channel disturbance, and different channels emits frequency range to different scan channels Signal interference degree is different, can be determined by software test, wherein interference includes adjacent frequency interference, frequency multiplication interference etc..In this step Determine the channel transmitting frequency range (such as using 40 frequency ranges of LTE B in 4G mobile networks) that terminal device uses.
Step S202, the sweep time adjusted value of determination and the corresponding different channels of channel transmitting frequency range, according to institute Sweep time adjusted value is stated to be adjusted the sweep time strategy in the wireless network scan event.
Wherein, due to the tranmitting frequency difference that different channel transmitting frequency ranges uses, therefore it corresponds to different Wifi channels Scanning signal annoyance level is different, and then is provided with different sweep time adjusted values.Optionally, record is stored in terminal device The sweep time adjustment value list for having the corresponding difference Wifi channels of different channels transmitting frequency range, when determining terminal device use Channel transmitting frequency range after correspond to the sweep time adjusted value that the list determines different Wifi channels.Wherein, according to the scanning Step S102 can be used in the process that time adjusted value is adjusted the sweep time strategy in the wireless network scan event In mode, details are not described herein again.
Step S203, different channels are scanned according to the sweep time strategy after adjustment.
It can be seen from the above, when terminal device carries out wireless network scan to obtain can access equipment, to equipment itself Mobile communication interference is evaded, so that final scanning results are more accurate, improves scan efficiency.
Fig. 3 is the flow chart of another wireless network scanning method provided by the embodiments of the present application, optionally, described true Before the sweep time adjusted value of fixed different channels corresponding with channel transmitting frequency range, further include:It determines in preset time Interior, the terminal device emits the data emission measure of frequency range in the channel;Correspondingly, the determination and channel transmitting frequency The sweep time adjusted value of the corresponding different channels of section includes:Emit frequency range according to the channel and the data emission measure is true The sweep time adjusted value of fixed corresponding different channels.As shown in figure 3, technical solution is specific as follows:
When step S301, detecting that wireless network scan event is triggered, the channel transmitting frequency that terminal device uses is determined Section.
Step S302, it determines in preset time, the terminal device emits the data emission measure of frequency range in the channel.
In one embodiment, record terminal device uses mobile network in preset time (such as 30 points, 60 points or 120 points) The data volume of network channel bands transmitting.
Step S303, emit frequency range according to the channel and the data emission measure determines sweeping for corresponding different channels Retouch time adjusted value.
In the sweep time adjusted value for determining different channels, further combined with end other than considering channel bands above-mentioned End equipment is in the data emission measure of the frequency range, and illustratively, data emission measure is bigger, and sweep time adjusted value is bigger, data hair The amount of penetrating is smaller, and sweep time adjusted value is smaller.
Step S304, different channels are scanned according to the sweep time strategy after adjustment.
It can be seen from the above, when terminal device is when carrying out scan channel to determine accessible equipment, the interference to interference source Frequency range and data emission measure carry out comprehensive consideration and determine influence of the interference source to network sweep result, and then using reasonably sweeping Retouching the time obtains accurately scanning result, further improves scan efficiency.
Fig. 4 is the flow chart of another wireless network scanning method provided by the embodiments of the present application, optionally, the determination The current interference scene of terminal device includes:Determine that terminal device is presently in the air interference source of environment;Correspondingly, described true The sweep time adjusted value of different channels corresponding with the interference scene includes calmly:Determination is corresponding with the air interference source The sweep time adjusted value of different channels, the air interference source include bluetooth interference source, ZigBee interference sources, WiMax interference At least one of source and microwave interference source.As shown in figure 4, technical solution is specific as follows:
When step S401, detecting that wireless network scan event is triggered, determine that terminal device is presently in the nothing of environment Line interference source.
Wherein, air interference source includes in bluetooth interference source, ZigBee interference sources, WiMax interference sources and microwave interference source At least one.In one embodiment, when detecting that wireless network scan event is triggered, determine that terminal device currently connects The bluetooth equipment connect, or the record sheet of inquiry storage determine whether there is other wireless network interference sources (as record has presence ZigBee interference sources).
Step S402, the sweep time adjusted value of the corresponding different channels of determination and the air interference source, according to described in Sweep time adjusted value is adjusted the sweep time strategy in the wireless network scan event.
In one embodiment, pre-set not according to different interference source category inquiries after determining interference source With interference source correspond to different channels sweep time adjust value list, determine interference source present each channel sweep time tune Whole value.The mode being adjusted to the sweep time strategy in the wireless network scan event according to sweep time adjusted value can Referring to step S102, details are not described herein again.
Step S403, different channels are scanned according to the sweep time strategy after adjustment.
It can be seen from the above, when terminal device is when carrying out scan channel to determine accessible equipment, to external air interference Source carries out comprehensive consideration, considers that it is influenced caused by scan channel, improves scan channel efficiency.
Fig. 5 is the flow chart of another wireless network scanning method provided by the embodiments of the present application, optionally, at described After being scanned to different channels according to the sweep time strategy after adjustment, further include:If detecting the terminal device Interference scene changes, then is adjusted to the sweep time strategy according to the interference scene after changing.As shown in figure 5, Technical solution is specific as follows:
When step S501, detecting that wireless network scan event is triggered, the current interference scene of terminal device is determined.
Step S502, the sweep time adjusted value of determination and the corresponding different channels of the interference scene.
Step S503, according to the sweep time adjusted value to the sweep time strategy in the wireless network scan event It is adjusted.
Step S504, different channels are scanned according to the sweep time strategy after adjustment.
Step S505, the interference source of terminal device scan channel is monitored.
Illustratively, by the integrated wireless transmitter (module) of terminal device to the data transmit-receive state of each frequency range It is monitored.
Step S506, judge whether the interference scene of terminal device changes, if it is S507 is thened follow the steps, otherwise Continue to monitor.
Step S507, according to change after interference scene the sweep time strategy is adjusted, from the background again into Row scan channel, if scanning arrives new accessible equipment and can access signal strength can access due to existing connection of equipment Equipment, then in the wireless network connection free time, switching is connected to new accessible equipment.
When monitoring that the interference scene of terminal device changes and (increases interference source newly or reduce interference source), according to change Interference scene afterwards is adjusted the sweep time strategy, correspondingly, re-starting scan channel from the background, if scanning To the signal strength of new accessible equipment and accessible equipment due to the accessible equipment of existing connection, then connect in wireless network Switching is connected to new accessible equipment when connecing the free time.
It can be seen from the above, being monitored in real time to the interference scene of terminal device and changing sweep time strategy so that when scanning Between can flexibly change with interference scene so that scanning result is more accurate.Optionally, after interference scene changes, confirm Interference scene after current variation is simultaneously recorded, directly according to record after being triggered for next wireless network scan event Interference scene determine corresponding sweep time adjusted value, or record the sweep time after the adjustment strategy, to be directly used in nothing Line network sweep.
Fig. 6 is a kind of structure diagram of wireless network scan device provided by the embodiments of the present application, and the device is for executing The wireless network scanning method that above-described embodiment provides, has the corresponding function module of execution method and advantageous effect.Such as Fig. 6 institutes Show, which specifically includes:Interfere determining module 101, sweep time determining module 102, setup module 103 and scan module 104, wherein
It interfering determining module 101, when for detecting that wireless network scan event is triggered, determining that terminal device is current Interference scene.
Terminal device can send out scanning signal in the channel of support, wait for surrounding that can connect when carrying out wireless network scan The response signal for entering equipment causes since the presence of interference scene makes the signal receiving sensitivity on some channels poor Scanning result in these channels is poor, and it is inaccurate to eventually lead to the accessible equipment scanned.
In one embodiment, by taking Android operation system as an example, network interface card is automatically opened simultaneously after detecting that Wifi starts Start wpa_supplicant, in this step after detecting that Wifi starts or wpa_supplicant is called, determines terminal The current interference scene of equipment.Wherein, which is that the scene of interference is generated to wireless network scan result, can be eventually The interference scene that end equipment internal interference source generates can also be the interference scene that terminal device external interference source generates.Citing For, the corresponding interference scene in internal interference source can be the interference of 4G network data transmissions, and external interference source generates corresponding dry It can be the corresponding interference of bluetooth equipment (such as bluetooth headset) other Wireless Communication Equipment to disturb scene.In one embodiment, Determine that the current interference scene of terminal device can determine terminal in real time when detecting that wireless network scan event is triggered The current interference scene of equipment can also be interference field of the interference scene for obtaining terminal device records as present terminal equipment Scape.
Sweep time determining module 102, the sweep time tune for determining different channels corresponding with the interference scene Whole value;Setup module 103 was used for according to the sweep time adjusted value to the sweep time in the wireless network scan event Strategy is adjusted.
In one embodiment, the transmission of the wireless network data of different channels is surveyed under different interference scenes in advance Examination determines that different interference scenes interfere the signal strength of different channels, is arranged and records corresponding sweep time adjusted value, In, sweep time adjusted value as the foundation determined during follow-up wireless network scan to different channels duration scanning, The sweep time adjusted value of the corresponding different channels of different interference scenes can in a tabular form record storage in terminal device, when Wireless network scan event is triggered after the interference scene of determining present terminal equipment, and the table according to the record determines the interference Sweep time adjusted value of the scene in different channels.Illustratively, specific test process can be:Respectively test have interference and The signal strength of each channel under noiseless situation, to determine influence of the interference scene to different channels signal strength, Jin Ershe Fixed corresponding sweep time adjusted value, wherein the more strong corresponding sweep time adjusted value of interference is bigger, and interference is smaller, corresponding Sweep time adjusted value is smaller, and for example, when interference strength is 4db, corresponding sweep time adjusted value is 100ms, interference When intensity is 0.2db, sweep time adjusted value is 10ms.
It in another embodiment, can to being tested the scanning signal intensity of different channels under different interference scenes The accessible equipment of fixed signal intensity is set in each channel, test believes the scanning of different channels under different interference scenes Number intensity is tested the annoyance level to determine interference scene to different channels.
Terminal device can be scanned different Wifi channels during wireless network scan to obtain for connection Accessible equipment, consider terminal device the case where scanning result can be affected under interference scene, i.e., existing skill It is fixed when in art to the sweep time of each channel.For example, under noiseless situation, terminal device is in 1 channels of WiFi Scanning scanning 200ms, obtains an accessible device A, is set with accessible in Wifi2 scan channels 200ms to accessible equipment B Standby C, it is stronger to the interference of 2 channels of Wifi if terminal device is at this time under interference scene (such as 40 scenes of LTE B), this When terminal device 2 scan channel 200ms of Wifi may can't had found to can access equipment or finding that one can access and set Standby, i.e., there is deviation in scanning result, and then influences final connection result.Therefore in this step, determine and the interference scene pair The sweep time adjusted value for the different channels answered, according to the sweep time adjusted value in the wireless network scan event Sweep time strategy is adjusted, illustratively, the sweep time adjusted value 100ms of 1 channels of WiFi, then in the acquiescence of setting Increase the sweep time of the sweep time adjusted value (100ms) on the basis of sweep time, is thus swept under interference scene with improving Retouch the probability of accessible equipment.
In one embodiment, can be the side for overriding original default scan time to the adjustment of sweep time strategy Formula can also be the mode for the sweep time for jumping to new setting.
Scan module 104, for being scanned to different channels according to the sweep time strategy after adjustment.
In one embodiment, according to the sweep time strategy after adjustment to different channels be scanned including:According to not The sweep time adjusted value corresponding sweep time of cochannel is scanned different channels successively, can also be in default scan The mode of sweep time adjusted value is added on the basis of time.For example, the interference scene that step S101 is determined is LTE B 40 scenes, determine the sweep time adjusted value in corresponding Wifi channels 1 to 13 be followed successively by 100ms, 20ms, 20ms, 50ms, 50ms, 80ms, 70ms, 90ms, 30ms, 40ms, 40ms, 50ms and 80ms, the adjustable strategies changed in step S102 are assumed to The default scan time (such as 300ms) adds the form of sweep time adjusted value, then in this step when carrying out scan channel, channel 1 to sweep time successively of channel 13 is:400ms、320ms、320ms、350ms、350ms、380ms、370ms、390ms、 330ms, 340ms, 340ms, 350ms and 380ms.
As shown in the above, interference parameter is introduced during terminal device carries out wireless network scan, to being disturbed It influences big channel and longer sweep time is set, reduce the influence to radio scan result under interference scene, improve scanning Efficiency.
In a possible embodiment, the interference determining module 101 is additionally operable to:
Before the sweep time adjusted value of the determination and the corresponding different channels of the interference scene, in disturbance The scanning signal intensity of different channels is tested under scene, corresponding sweep time adjusted value is determined according to test result.
In a possible embodiment, the interference determining module 101 is specifically used for:
Determine the channel transmitting frequency range that terminal device uses;
The sweep time determining module 102 is specifically used for:
Determine the sweep time adjusted value of different channels corresponding with channel transmitting frequency range.
In a possible embodiment, the interference determining module 101 is additionally operable to:
Before the sweep time adjusted value of the determination and the corresponding different channels of channel transmitting frequency range, determine In preset time, the terminal device emits the data emission measure of frequency range in the channel;
The sweep time determining module 102 is specifically used for:
Emit frequency range according to the channel and the data emission measure determines the sweep time tune of corresponding different channels Whole value.
In a possible embodiment, the interference determining module 101 is specifically used for:
Determine that terminal device is presently in the air interference source of environment;
The sweep time determining module 102 is specifically used for:
Determine the sweep time adjusted value of different channels corresponding with the air interference source, the air interference source includes At least one of bluetooth interference source, ZigBee interference sources, WiMax interference sources and microwave interference source.
In a possible embodiment, the scan module 104 is specifically used for:
Different channels are scanned successively according to the sweep time adjusted value corresponding sweep time of the different channels.
In a possible embodiment, further include update module 105, in the sweep time according to after adjustment After strategy is scanned different channels, if detecting that the interference scene of the terminal device changes, foundation changes Interference scene after change is adjusted the sweep time strategy.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 7 is that the embodiment of the present application carries The structural schematic diagram of a kind of terminal device supplied, as shown in fig. 7, the terminal device 200 includes:Memory 201, processor (Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205, Voicefrequency circuit 206, loud speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, Wifi Other input/control devicess 210 of module 213 and outside port 204, these components pass through one or more communication bus or letter Number line 207 communicates.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200 Can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can be including one or more signal processings and/or special It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the terminal device of the rights management provided in this embodiment for more opening application is described in detail below, should Terminal device is by taking smart mobile phone as an example.
Memory 201, the memory 201 can be by access such as CPU202, Peripheral Interfaces 203, and the memory 201 can Can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203 Reservoir 201.
I/O subsystems 209, the I/O subsystems 209 can be by the input/output peripherals in equipment, such as touch screen 212 With other input/control devicess 210, it is connected to Peripheral Interface 203.I/O subsystems 209 may include 2091 He of display controller One or more input controllers 2092 for controlling other input/control devicess 210.Wherein, one or more input controls Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210, Other input/control devicess 210 may include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 2092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 212, the touch screen 212 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 2091 in I/O subsystems 209 receives electric signal from touch screen 212 or is sent out to touch screen 212 Electric signals.Touch screen 212 detects the contact on touch screen, and the contact detected is converted to and is shown by display controller 2091 The interaction of user interface object on touch screen 212, that is, realize human-computer interaction, the user interface being shown on touch screen 212 Object can be the icon of running game, be networked to the icon etc. of corresponding network.It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuits 205 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 205 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 205 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 205 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 206 is mainly used for receiving audio data from Peripheral Interface 203, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 211.
Loud speaker 211, the voice signal for receiving mobile phone from wireless network by RF circuits 205, is reduced to sound And play the sound to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered And power management.
The executable present invention of the wireless network scan device and terminal device of the terminal device provided in above-described embodiment appoints The wireless network scanning method of terminal device that meaning embodiment is provided has and executes the corresponding function module of this method and beneficial Effect.The not technical detail of detailed description in the above-described embodiments, reference can be made to the terminal that any embodiment of the present invention is provided is set Standby wireless network scanning method.
The embodiment of the present application also provides a kind of storage medium including terminal device executable instruction, and the terminal device can It executes instruction when being executed by terminal device processor for executing a kind of wireless network scanning method, this method includes:
When detecting that wireless network scan event is triggered, the current interference scene of terminal device is determined;
The sweep time adjusted value for determining different channels corresponding with the interference scene is adjusted according to the sweep time Value is adjusted the sweep time strategy in the wireless network scan event;
Different channels are scanned according to the sweep time strategy after adjustment.
In a possible embodiment, in the sweep time of the determination and the corresponding different channels of the interference scene Before adjusted value, further include:
The scanning signal intensity of different channels is tested under different interference scenes, is determined and is corresponded to according to test result Sweep time adjusted value.
In a possible embodiment, the current interference scene of the determining terminal device includes:
Determine the channel transmitting frequency range that terminal device uses;
Correspondingly, the sweep time adjusted value of the determination and the corresponding different channels of the interference scene includes:
Determine the sweep time adjusted value of different channels corresponding with channel transmitting frequency range.
In a possible embodiment, in the scanning of the determination and the corresponding different channels of channel transmitting frequency range Before time adjusted value, further include:
It determines in preset time, the terminal device emits the data emission measure of frequency range in the channel;
Correspondingly, the sweep time adjusted value of the determination and the corresponding different channels of channel transmitting frequency range includes:
Emit frequency range according to the channel and the data emission measure determines the sweep time tune of corresponding different channels Whole value.
In a possible embodiment, the current interference scene of the determining terminal device includes:
Determine that terminal device is presently in the air interference source of environment;
Correspondingly, the sweep time adjusted value of the determination and the corresponding different channels of the interference scene includes:
Determine the sweep time adjusted value of different channels corresponding with the air interference source, the air interference source includes At least one of bluetooth interference source, ZigBee interference sources, WiMax interference sources and microwave interference source.
In a possible embodiment, the sweep time strategy according to after adjustment is scanned packet to different channels It includes:
Different channels are scanned successively according to the sweep time adjusted value corresponding sweep time of the different channels.
In a possible embodiment, different channels are scanned in the sweep time strategy according to after adjustment Later, further include:
If detecting that the interference scene of the terminal device changes, according to the interference scene after changing to described Sweep time strategy is adjusted.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);The memory component etc. of register or other similar types.Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location (such as in different computer systems by wireless network scan) two A or more storage medium.Storage medium can store can be (such as specific by program instruction that one or more processors execute It is embodied as computer program).
Certainly, a kind of storage medium including computer executable instructions that the embodiment of the present application is provided, computer The wireless network scanning method operation that executable instruction is not limited to the described above, can also be performed any embodiment of the present invention and is carried Relevant operation in the wireless network scanning method of confession.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (10)

1. wireless network scanning method, which is characterized in that including:
When detecting that wireless network scan event is triggered, the current interference scene of terminal device is determined;
The sweep time adjusted value for determining different channels corresponding with the interference scene, according to the sweep time adjusted value pair Sweep time strategy in the wireless network scan event is adjusted;
Different channels are scanned according to the sweep time strategy after adjustment.
2. according to the method described in claim 1, it is characterized in that, in the corresponding different letters of the determination and the interference scene Before the sweep time adjusted value in road, further include:
The scanning signal intensity of different channels is tested under different interference scenes, corresponding sweep is determined according to test result Retouch time adjusted value.
3. according to the method described in claim 1, it is characterized in that, the current interference scene of the determining terminal device includes:
Determine the channel transmitting frequency range that terminal device uses;
Correspondingly, the sweep time adjusted value of the determination and the corresponding different channels of the interference scene includes:
Determine the sweep time adjusted value of different channels corresponding with channel transmitting frequency range.
4. according to the method described in claim 3, it is characterized in that, corresponding not in the determination and channel transmitting frequency range Before the sweep time adjusted value of cochannel, further include:
It determines in preset time, the terminal device emits the data emission measure of frequency range in the channel;
Correspondingly, the sweep time adjusted value of the determination and the corresponding different channels of channel transmitting frequency range includes:
Emit frequency range according to the channel and the data emission measure determines the sweep time adjusted value of corresponding different channels.
5. according to the method described in claim 1, it is characterized in that, the current interference scene of the determining terminal device includes:
Determine that terminal device is presently in the air interference source of environment;
Correspondingly, the sweep time adjusted value of the determination and the corresponding different channels of the interference scene includes:
Determine the sweep time adjusted value of different channels corresponding with the air interference source, the air interference source includes bluetooth At least one of interference source, ZigBee interference sources, WiMax interference sources and microwave interference source.
6. method according to any one of claims 1-5, which is characterized in that the sweep time plan according to after adjustment Slightly to different channels be scanned including:
Different channels are scanned successively according to the sweep time adjusted value corresponding sweep time of the different channels.
7. according to the method described in claim 6, it is characterized in that, in the sweep time strategy according to after adjustment to difference After channel is scanned, further include:
If detecting that the interference scene of the terminal device changes, according to the interference scene after changing to the scanning Time parameter method is adjusted.
8. wireless network scan device, which is characterized in that including:
Determining module being interfered, when for detecting that wireless network scan event is triggered, determining the current interference field of terminal device Scape;
Sweep time determining module, the sweep time adjusted value for determining different channels corresponding with the interference scene;
Setup module, for tactful to the sweep time in the wireless network scan event according to the sweep time adjusted value It is adjusted;
Scan module, for being scanned to different channels according to the sweep time strategy after adjustment.
9. a kind of terminal device, including:Processor, memory and storage are on a memory and the meter that can run on a processor Calculation machine program, which is characterized in that the processor is realized when executing the computer program such as any one of claim 1-7 institutes The wireless network scanning method stated.
10. a kind of storage medium including terminal device executable instruction, which is characterized in that the terminal device executable instruction When being executed by terminal device processor for executing the wireless network scanning method as described in any one of claim 1-7.
CN201810098273.2A 2018-01-31 2018-01-31 Wireless network scanning method and device, terminal equipment and storage medium Active CN108337719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810098273.2A CN108337719B (en) 2018-01-31 2018-01-31 Wireless network scanning method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810098273.2A CN108337719B (en) 2018-01-31 2018-01-31 Wireless network scanning method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108337719A true CN108337719A (en) 2018-07-27
CN108337719B CN108337719B (en) 2021-04-27

Family

ID=62927787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810098273.2A Active CN108337719B (en) 2018-01-31 2018-01-31 Wireless network scanning method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108337719B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109548102A (en) * 2019-01-08 2019-03-29 重庆邮电大学 A kind of network vertical handoff method based on the cognitive radio adaptive scanning period
CN110337135A (en) * 2019-08-01 2019-10-15 Oppo广东移动通信有限公司 A kind of method of adjustment, terminal and computer storage medium
CN112054856A (en) * 2020-07-29 2020-12-08 博流智能科技(南京)有限公司 Anti-interference communication method and communication system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070087430A (en) * 2006-02-23 2007-08-28 엘지전자 주식회사 Scanning method of wireless lan client
CN101123552A (en) * 2007-09-20 2008-02-13 杭州华三通信技术有限公司 An access point and wireless scanning method for this access point
CN102958135A (en) * 2011-08-08 2013-03-06 瑞轩科技股份有限公司 Methods of optimizing scanning parameters for plurality of channels in wireless band
CN104350784A (en) * 2014-03-18 2015-02-11 华为终端有限公司 A device net searching method and a device
CN105142203A (en) * 2015-08-20 2015-12-09 深圳市金立通信设备有限公司 Wireless fidelity (Wi-Fi) hotspot scanning method and terminal
US20160198326A1 (en) * 2015-01-03 2016-07-07 Google Inc. Methods and Systems for Varying Channel Scanning Duration

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070087430A (en) * 2006-02-23 2007-08-28 엘지전자 주식회사 Scanning method of wireless lan client
CN101123552A (en) * 2007-09-20 2008-02-13 杭州华三通信技术有限公司 An access point and wireless scanning method for this access point
CN102958135A (en) * 2011-08-08 2013-03-06 瑞轩科技股份有限公司 Methods of optimizing scanning parameters for plurality of channels in wireless band
CN104350784A (en) * 2014-03-18 2015-02-11 华为终端有限公司 A device net searching method and a device
US20160198326A1 (en) * 2015-01-03 2016-07-07 Google Inc. Methods and Systems for Varying Channel Scanning Duration
CN105142203A (en) * 2015-08-20 2015-12-09 深圳市金立通信设备有限公司 Wireless fidelity (Wi-Fi) hotspot scanning method and terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109548102A (en) * 2019-01-08 2019-03-29 重庆邮电大学 A kind of network vertical handoff method based on the cognitive radio adaptive scanning period
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
CN112054856A (en) * 2020-07-29 2020-12-08 博流智能科技(南京)有限公司 Anti-interference communication method and communication system
CN112054856B (en) * 2020-07-29 2022-03-18 博流智能科技(南京)有限公司 Anti-interference communication method and communication system

Also Published As

Publication number Publication date
CN108337719B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN108055687A (en) Wireless network connecting method, device, terminal device and storage medium
WO2018205829A1 (en) Radio frequency interference processing method and apparatus, storage medium, and electronic device
US10813057B2 (en) Method for processing information and terminal device
US9179341B2 (en) Method and system for simplifying WiFi setup for best performance
US11012970B2 (en) Method for processing radio frequency interference and electronic device
CN109769281B (en) Method and device for improving communication rate, storage medium and intelligent terminal
CN111372256B (en) Method for assisting installation of client terminal equipment and electronic equipment
CN108337719A (en) wireless network scanning method, device, terminal device and storage medium
CN110856209B (en) Method, apparatus and storage medium for displaying network sign
US11259323B2 (en) Random access method and user equipment
US20220232445A1 (en) Communications System Switching Method and Terminal Device
CN111148137B (en) Data transmission method and device, storage medium and terminal
CN113316173B (en) Networking equipment determination method, device, equipment and storage medium
CN116684514A (en) Sound masking method and device and terminal equipment
WO2020063069A1 (en) Audio playing method and apparatus, electronic device and computer-readable medium
CN108307485A (en) wireless network scanning method, device, terminal device and storage medium
CN109863700A (en) Data transmission method and device
CN107896385B (en) Mobile terminal wireless local area network scan method and apparatus, computer equipment
CN113286335B (en) Frequency point switching method and device, storage medium and access point
CN109600791B (en) Signal strength reporting method and device, storage medium and mobile terminal
CN108832944B (en) Power compensation method, device, terminal equipment and storage medium
CN108337715A (en) Wireless network connecting method, device, terminal device and storage medium
CN108337718A (en) wireless network scanning method, device, terminal device and storage medium
CN108366396A (en) Wireless network transmissions method of rate control, device, terminal device and storage medium
WO2021232814A1 (en) Cell measurement method based on frequency point optimization, and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant