CN108337719B - Wireless network scanning method and device, terminal equipment and storage medium - Google Patents

Wireless network scanning method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN108337719B
CN108337719B CN201810098273.2A CN201810098273A CN108337719B CN 108337719 B CN108337719 B CN 108337719B CN 201810098273 A CN201810098273 A CN 201810098273A CN 108337719 B CN108337719 B CN 108337719B
Authority
CN
China
Prior art keywords
scanning
interference
determining
wireless network
scanning time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810098273.2A
Other languages
Chinese (zh)
Other versions
CN108337719A (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

Images

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)

Abstract

The embodiment of the application discloses a wireless network scanning method, a wireless network scanning device, terminal equipment and a storage medium, wherein the method comprises the steps of determining the current interference scene of the terminal equipment when a wireless network scanning event is triggered; determining scanning time adjustment values of different channels corresponding to the interference scene, and adjusting a scanning time strategy in the wireless network scanning event according to the scanning time adjustment values; and scanning different channels according to the adjusted scanning time strategy. In the scheme, the interference parameters are introduced in the process of wireless network scanning by the terminal equipment, so that the influence on the wireless scanning result in an interference scene is reduced, and the scanning efficiency is improved.

Description

Wireless network scanning method and device, terminal equipment and storage medium
Technical Field
The present disclosure relates to computer technologies, and in particular, to a wireless network scanning method and apparatus, a terminal device, and a storage medium.
Background
With the increase of the popularity of the terminal device, more and more users use the terminal device to execute various functions to meet their own needs, such as reading text, watching video, listening to music, playing games, etc., and often need to connect to a network to obtain network resources in the process of using the terminal device, such as a 4G mobile network or a wireless wifi network provided by a mobile operator.
When a user uses a terminal device to connect a wireless wifi network, the terminal device can send a scanning signal at a channel supported by wifi, waits for a response signal of a surrounding router, and determines a connected router according to the response signal.
Disclosure of Invention
The invention provides a wireless network scanning method, a wireless network scanning device, terminal equipment and a storage medium, which improve the wireless network scanning efficiency and reduce the influence of environmental interference on a scanning result.
In a first aspect, an embodiment of the present application provides a wireless network scanning method, including:
when a wireless network scanning event is detected to be triggered, determining a current interference scene of terminal equipment;
determining scanning time adjustment values of different channels corresponding to the interference scene, and adjusting a scanning time strategy in the wireless network scanning event according to the scanning time adjustment values;
and scanning different channels according to the adjusted scanning time strategy.
In a second aspect, an embodiment of the present application further provides a wireless network scanning apparatus, including:
the interference determining module is used for determining the current interference scene of the terminal equipment when detecting that a wireless network scanning event is triggered;
a scanning time determining module, configured to determine scanning time adjustment values of different channels corresponding to the interference scenario;
the setting module is used for adjusting the scanning time strategy in the wireless network scanning event according to the scanning time adjusting value;
and the scanning module is used for scanning different channels according to the adjusted scanning time strategy.
In a third aspect, an embodiment of the present application further provides a terminal device, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the wireless network scanning method as described in embodiments of the present application when executing the computer program.
In a fourth aspect, the present application further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are executed by a terminal device processor to perform the wireless network scanning method according to the present application.
According to the scheme, when a wireless network scanning event is detected to be triggered, the current interference scene of the terminal equipment is determined, the scanning time adjustment values of different channels corresponding to the interference scene are determined, the scanning time strategy in the wireless network scanning event is adjusted according to the scanning time adjustment values, and different channels are scanned according to the adjusted scanning time strategy. In the scheme, the interference parameters are introduced in the process of wireless network scanning by the terminal equipment, so that the influence on the wireless scanning result in an interference scene is reduced, and the scanning efficiency is improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a wireless network scanning method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another wireless network scanning method according to an embodiment of the present invention;
fig. 3 is a flowchart of another wireless network scanning method provided in an embodiment of the present application;
fig. 4 is a flowchart of another wireless network scanning method provided in an embodiment of the present application;
fig. 5 is a flowchart of another wireless network scanning method provided in an embodiment of the present application;
fig. 6 is a block diagram illustrating a wireless network scanning apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a wireless network scanning method provided in an embodiment of the present application, which is applicable to a situation where a terminal device scans a connectable device when performing network connection, and the method may be executed by the terminal device provided in the embodiment of the present application, and a wireless network scanning apparatus of the terminal device may be implemented in a software and/or hardware manner, as shown in fig. 1, a specific scheme provided in this embodiment is as follows:
step S101, when detecting that a wireless network scanning event is triggered, determining a current interference scene of the terminal equipment.
A wireless network (wireless network) is a network implemented using wireless communication technology. The wireless network comprises a global voice and data network allowing the terminal equipment to establish long-distance wireless connection, and also comprises an infrared technology and a radio frequency technology which are optimized for short-distance wireless connection, the purpose of the wireless network is very similar to that of a wired network, the biggest difference lies in the difference of transmission media, the wireless technology is used for replacing a network cable, and the wireless network and the wired network can be mutually backed up.
The wireless network scanning event may be triggered manually by a user, for example, when it is monitored that the WLAN control is clicked, signal scanning of the accessible device is started, or when the terminal device monitors that the network state changes (for example, network connection is disconnected), the wireless network scanning event is triggered.
When the terminal device scans a wireless network, it sends a scanning signal on a supported channel, and waits for a response signal of a peripheral accessible device, and due to the existence of an interference scene, the signal receiving sensitivity on some channels is poor, so that the scanning result in these channels is poor, and finally the scanned accessible device is inaccurate.
In one embodiment, taking an Android operating system as an example, when it is detected that Wifi is started, a network card is automatically opened and a wpa _ supplicant is started, and in this step, when it is detected that Wifi is started or wpa _ supplicant is called, a current interference scene of the terminal device is determined. The interference scenario is a scenario in which interference is generated on a wireless network scanning result, and may be an interference scenario generated by an internal interference source of the terminal device or an interference scenario generated by an external interference source of the terminal device. For example, the interference scenario corresponding to the internal interference source may be data transmission interference of a 4G network, and the interference scenario corresponding to the external interference source may be interference corresponding to other wireless network devices such as a bluetooth device (e.g., a bluetooth headset). In an embodiment, the determining of the current interference scenario of the terminal device may be determining the current interference scenario of the terminal device in real time when it is detected that the wireless network scanning event is triggered, or acquiring the interference scenario recorded by the terminal device as the interference scenario of the current terminal device.
Step S102, determining scanning time adjustment values of different channels corresponding to the interference scene, and adjusting a scanning time strategy in the wireless network scanning event according to the scanning time adjustment values.
The channel (also called frequency band) is a data signal transmission channel using wireless signals as transmission media, for example, the commonly used ieee802.11b/g works in the frequency band of 2.4 to 2.4835GHz, and these frequency bands are divided into 11 or 13 channels. Where different interference scenarios have different degrees of impact on different channels, the specific degree of impact may be determined by testing, which may be, for example, taking LTE B40 interference scenario as an example, test its interference to different WiFi channels, wherein, LTE (Long Term Evolution) is The Long Term Evolution of UMTS (Universal Mobile Telecommunications System) technical standard organized by 3GPP (The 3rd Generation Partnership Project), B40, i.e. band 40, refers to The operating frequency band (2300 + 2400Mhz), currently, LTE can support 40 working bands from B1 to B40, and different working bands generate different interference situations for different WiFi channels, WiFi channels at 2.4GHz according to international standard are divided into 13 channels (spanning frequency 2412 to frequency 2472), the interference of the LTE B40 to the WiFi 1 channel is 4db as obtained through the test.
In one embodiment, wireless network data transmission of different channels is tested in advance under different interference scenarios, signal intensity interference of the different interference scenarios on the different channels is determined, and corresponding scanning time adjustment values are set and recorded, wherein the scanning time adjustment values serve as a basis for determining scanning duration of the different channels in a subsequent wireless network scanning process, the scanning time adjustment values of the different channels corresponding to the different interference scenarios can be recorded and stored in a terminal device in a table form, and when a wireless network scanning event is triggered to determine an interference scenario of a current terminal device, the scanning time adjustment values of the interference scenario on the different channels are determined according to the recorded table. For example, the specific test procedure may be: respectively testing the signal intensity of each channel under the interference and non-interference conditions to determine the influence of an interference scene on the signal intensity of different channels, and further setting corresponding scanning time adjustment values, wherein the scanning time adjustment value corresponding to the stronger interference is larger, the smaller the interference is, and the smaller the corresponding scanning time adjustment value is, for example, when the interference intensity is 4db, the corresponding scanning time adjustment value is 100ms, and when the interference intensity is 0.2db, the scanning time adjustment value is 10 ms.
In another embodiment, the scanning signal strengths of different channels are tested in different interference scenarios, an accessible device with fixed signal strength can be set in each channel, and the scanning signal strengths of different channels are tested in different interference scenarios to determine the interference degree of the interference scenarios on different channels.
The terminal device scans different Wifi channels in the wireless network scanning process to obtain the accessible device for connection, and does not consider the situation that the scanning result of the terminal device is affected in an interference scene, namely that the scanning time of each channel is fixed in the prior art. For example, under the non-interference condition, the terminal device scans a WiFi 1 channel for 200ms to obtain an accessible device a, scans a WiFi2 channel for 200ms to an accessible device B and an accessible device C, and if the terminal device is in an interference scene (e.g., LTE B40 scene) at this time, the interference to the WiFi2 channel is strong, and at this time, the terminal device may not discover the accessible device or an accessible device during WiFi2 channel scanning for 200ms, that is, a scanning result is biased, thereby affecting a final connection result. In this step, scanning time adjustment values of different channels corresponding to the interference scenario are determined, and the scanning time policy in the wireless network scanning event is adjusted according to the scanning time adjustment values, for example, the scanning time adjustment value of the WiFi 1 channel is 100ms, and the scanning time of the scanning time adjustment value (100ms) is increased on the basis of the set default scanning time, so as to improve the probability of scanning the accessible device in the interference scenario.
In one embodiment, the adjustment of the scanning time strategy may be a way of overriding the original default scanning time, or a way of jumping to a new set scanning time.
And step S103, scanning different channels according to the adjusted scanning time strategy.
In one embodiment, scanning different channels according to the adjusted scanning time strategy comprises: and scanning different channels in sequence according to the scanning time corresponding to the scanning time adjustment values of different channels, or adding the scanning time adjustment values on the basis of default scanning time. For example, the interference scenario determined in step S101 is an LTE B40 scenario, the scanning time adjustment values in the corresponding Wifi channels 1 to 13 are determined to be 100ms, 20ms, 50ms, 80ms, 70ms, 90ms, 30ms, 40ms, 50ms, and 80ms in sequence, and the adjustment policy modified in step S102 is assumed to be a form of adding the scanning time adjustment value to the default scanning time (e.g., 300ms), so that when channel scanning is performed in this step, the sequential scanning time of the channels 1 to 13 is: 400ms, 320ms, 350ms, 380ms, 370ms, 390ms, 330ms, 340ms, 350ms and 380 ms.
According to the above content, the interference parameters are introduced in the process of wireless network scanning by the terminal equipment, so that longer scanning time is set for the channel greatly affected by the interference, the influence on the wireless scanning result in the interference scene is reduced, and the scanning efficiency is improved.
Fig. 2 is a flowchart of another wireless network scanning method provided in the embodiment of the present application, where optionally, the determining a current interference scenario of a terminal device includes: determining a channel transmitting frequency band used by the terminal equipment; correspondingly, the determining the scan time adjustment value of the different channels corresponding to the interference scenario includes: and determining scanning time adjustment values of different channels corresponding to the channel transmitting frequency bands. As shown in fig. 2, the technical solution is as follows:
step S201, when detecting that a wireless network scanning event is triggered, determining a channel transmission frequency band used by the terminal device.
The channel transmitting frequency band is a data transmitting and receiving frequency band when the terminal device uses a mobile network (such as GSM, 3G and 4G), the terminal device can use the mobile network to transmit and receive partial data simultaneously in the wireless network data transmission process of the access router, channel scanning of the terminal device can generate channel interference, different channel transmitting frequency bands have different interference degrees on different channel scanning signals, and the interference can be determined through software testing, wherein the interference comprises adjacent channel interference, frequency multiplication interference and the like. In this step, the channel transmission frequency band used by the terminal device (for example, the LTE B40 frequency band in the 4G mobile network is used) is determined.
Step S202, determining scanning time adjustment values of different channels corresponding to the channel transmitting frequency bands, and adjusting scanning time strategies in the wireless network scanning events according to the scanning time adjustment values.
Because the transmitting frequencies used by different channel transmitting frequency bands are different, the interference degrees of scanning signals corresponding to different Wifi channels are different, and different scanning time adjusting values are further set. Optionally, the terminal device stores and records a list of scanning time adjustment values of different Wifi channels corresponding to different channel transmission frequency bands, and determines the scanning time adjustment values of the different Wifi channels corresponding to the list after determining the channel transmission frequency band used by the terminal device. The process of adjusting the scanning time policy in the wireless network scanning event according to the scanning time adjustment value may adopt the method in step S102, and details are not repeated here.
And step S203, scanning different channels according to the adjusted scanning time strategy.
Therefore, when the terminal equipment scans the wireless network to obtain the accessible equipment, the mobile communication interference of the equipment is avoided, so that the final scanning result is more accurate, and the scanning efficiency is improved.
Fig. 3 is a flowchart of another wireless network scanning method provided in this embodiment, and optionally before determining the adjustment value of the scanning time of different channels corresponding to the channel transmission frequency band, the method further includes: determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time; correspondingly, the determining the scanning time adjustment values of the different channels corresponding to the channel transmission frequency bands includes: and determining corresponding scanning time adjustment values of different channels according to the channel transmitting frequency band and the data transmitting quantity. As shown in fig. 3, the technical solution is as follows:
step S301, when detecting that the wireless network scanning event is triggered, determining a channel transmitting frequency band used by the terminal equipment.
Step S302, determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time.
In one embodiment, the amount of data transmitted by the terminal device using the mobile network channel frequency band within a preset time (e.g., 30 minutes, 60 minutes, or 120 minutes) is recorded.
Step S303, determining corresponding scanning time adjustment values of different channels according to the channel transmitting frequency band and the data transmitting amount.
When determining the scanning time adjustment values of different channels, in addition to considering the aforementioned channel frequency band, the data transmission amount of the terminal device in the frequency band is further combined, and illustratively, the larger the data transmission amount is, the larger the scanning time adjustment value is, the smaller the data transmission amount is, and the smaller the scanning time adjustment value is.
And step S304, scanning different channels according to the adjusted scanning time strategy.
Therefore, when the terminal device performs channel scanning to determine the accessible device, the interference frequency band of the interference source and the data transmission amount are comprehensively considered to determine the influence of the interference source on the network scanning result, and then the reasonable scanning time is used to obtain an accurate scanning result, thereby further improving the scanning efficiency.
Fig. 4 is a flowchart of another wireless network scanning method provided in the embodiment of the present application, where optionally, the determining a current interference scenario of a terminal device includes: determining a wireless interference source of the current environment of the terminal equipment; correspondingly, the determining the scan time adjustment value of the different channels corresponding to the interference scenario includes: and determining scanning time adjustment values of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source. As shown in fig. 4, the technical solution is as follows:
step S401, when detecting that the wireless network scanning event is triggered, determining a wireless interference source of the environment where the terminal device is currently located.
The wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source. In one embodiment, when a wireless network scanning event is detected to be triggered, a Bluetooth device currently connected with the terminal device is determined, or a stored record table is inquired to determine whether other wireless network interference sources exist (such as ZigBee interference sources are recorded).
Step S402, determining scanning time adjustment values of different channels corresponding to the wireless interference source, and adjusting a scanning time strategy in the wireless network scanning event according to the scanning time adjustment values.
In one embodiment, after the interference source is determined, a preset scanning time adjustment value list of different channels corresponding to different interference sources is queried according to different interference source types, and a scanning time adjustment value of the current interference source in each channel is determined. The manner of adjusting the scanning time policy in the wireless network scanning event according to the scanning time adjustment value may refer to step S102, which is not described herein again.
And S403, scanning different channels according to the adjusted scanning time strategy.
Therefore, when the terminal device performs channel scanning to determine the accessible device, the external wireless interference source is considered comprehensively, and the influence of the external wireless interference source on the channel scanning is considered, so that the channel scanning efficiency is improved.
Fig. 5 is a flowchart of another wireless network scanning method provided in the embodiment of the present application, and optionally, after scanning different channels according to the adjusted scanning time policy, the method further includes: and if the change of the interference scene of the terminal equipment is detected, adjusting the scanning time strategy according to the changed interference scene. As shown in fig. 5, the technical solution is as follows:
step S501, when the wireless network scanning event is triggered, determining the current interference scene of the terminal equipment.
Step S502, determining the scanning time adjustment values of different channels corresponding to the interference scene.
Step S503, adjusting the scanning time strategy in the wireless network scanning event according to the scanning time adjustment value.
And step S504, scanning different channels according to the adjusted scanning time strategy.
And step S505, monitoring the interference source scanned by the terminal equipment channel.
Illustratively, the data transceiving state of each frequency band is monitored through a wireless transceiving device (module) integrated with the terminal device.
And step S506, judging whether the interference scene of the terminal equipment is changed, if so, executing step S507, otherwise, continuing to monitor.
Step S507, adjusting the scanning time policy according to the changed interference scenario, performing channel scanning again in the background, and if a new accessible device is scanned and the signal strength of the accessible device is due to an existing connected accessible device, switching to connect to the new accessible device when the wireless network connection is idle.
When the interference scene of the terminal equipment is monitored to be changed (an interference source is newly added or reduced), the scanning time strategy is adjusted according to the changed interference scene, correspondingly, channel scanning is carried out again in the background, and if new accessible equipment is scanned and the signal intensity of the accessible equipment is due to the existing connected accessible equipment, the wireless network connection is switched and connected to the new accessible equipment when the wireless network connection is idle.
Therefore, the interference scene of the terminal equipment is monitored in real time, and the scanning time strategy is changed, so that the scanning time can be flexibly changed along with the interference scene, and the scanning result is more accurate. Optionally, after the interference scene changes, the currently changed interference scene is determined and recorded, so that a corresponding scanning time adjustment value is directly determined according to the recorded interference scene after a next wireless network scanning event is triggered, or the adjusted scanning time strategy is recorded, so as to be directly used for wireless network scanning.
Fig. 6 is a block diagram of a wireless network scanning apparatus according to an embodiment of the present application, where the apparatus is configured to execute a wireless network scanning method according to the foregoing embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 6, the apparatus specifically includes: an interference determination module 101, a scan time determination module 102, a setup module 103 and a scan module 104, wherein,
the interference determining module 101 is configured to determine a current interference scenario of the terminal device when detecting that a wireless network scanning event is triggered.
When the terminal device scans a wireless network, it sends a scanning signal on a supported channel, and waits for a response signal of a peripheral accessible device, and due to the existence of an interference scene, the signal receiving sensitivity on some channels is poor, so that the scanning result in these channels is poor, and finally the scanned accessible device is inaccurate.
In one embodiment, taking an Android operating system as an example, when it is detected that Wifi is started, a network card is automatically opened and a wpa _ supplicant is started, and in this step, when it is detected that Wifi is started or wpa _ supplicant is called, a current interference scene of the terminal device is determined. The interference scenario is a scenario in which interference is generated on a wireless network scanning result, and may be an interference scenario generated by an internal interference source of the terminal device or an interference scenario generated by an external interference source of the terminal device. For example, the interference scenario corresponding to the internal interference source may be data transmission interference of a 4G network, and the interference scenario corresponding to the external interference source may be interference corresponding to other wireless network devices such as a bluetooth device (e.g., a bluetooth headset). In an embodiment, the determining of the current interference scenario of the terminal device may be determining the current interference scenario of the terminal device in real time when it is detected that the wireless network scanning event is triggered, or acquiring the interference scenario recorded by the terminal device as the interference scenario of the current terminal device.
A scanning time determining module 102, configured to determine scanning time adjustment values of different channels corresponding to the interference scenario; a setting module 103, configured to adjust a scanning time policy in the wireless network scanning event according to the scanning time adjustment value.
In one embodiment, wireless network data transmission of different channels is tested in advance under different interference scenarios, signal intensity interference of the different interference scenarios on the different channels is determined, and corresponding scanning time adjustment values are set and recorded, wherein the scanning time adjustment values serve as a basis for determining scanning duration of the different channels in a subsequent wireless network scanning process, the scanning time adjustment values of the different channels corresponding to the different interference scenarios can be recorded and stored in a terminal device in a table form, and when a wireless network scanning event is triggered to determine an interference scenario of a current terminal device, the scanning time adjustment values of the interference scenario on the different channels are determined according to the recorded table. For example, the specific test procedure may be: respectively testing the signal intensity of each channel under the interference and non-interference conditions to determine the influence of an interference scene on the signal intensity of different channels, and further setting corresponding scanning time adjustment values, wherein the scanning time adjustment value corresponding to the stronger interference is larger, the smaller the interference is, and the smaller the corresponding scanning time adjustment value is, for example, when the interference intensity is 4db, the corresponding scanning time adjustment value is 100ms, and when the interference intensity is 0.2db, the scanning time adjustment value is 10 ms.
In another embodiment, the scanning signal strengths of different channels are tested in different interference scenarios, an accessible device with fixed signal strength can be set in each channel, and the scanning signal strengths of different channels are tested in different interference scenarios to determine the interference degree of the interference scenarios on different channels.
The terminal device scans different Wifi channels in the wireless network scanning process to obtain the accessible device for connection, and does not consider the situation that the scanning result of the terminal device is affected in an interference scene, namely that the scanning time of each channel is fixed in the prior art. For example, under the non-interference condition, the terminal device scans a WiFi 1 channel for 200ms to obtain an accessible device a, scans a WiFi2 channel for 200ms to an accessible device B and an accessible device C, and if the terminal device is in an interference scene (e.g., LTE B40 scene) at this time, the interference to the WiFi2 channel is strong, and at this time, the terminal device may not discover the accessible device or an accessible device during WiFi2 channel scanning for 200ms, that is, a scanning result is biased, thereby affecting a final connection result. In this step, scanning time adjustment values of different channels corresponding to the interference scenario are determined, and the scanning time policy in the wireless network scanning event is adjusted according to the scanning time adjustment values, for example, the scanning time adjustment value of the WiFi 1 channel is 100ms, and the scanning time of the scanning time adjustment value (100ms) is increased on the basis of the set default scanning time, so as to improve the probability of scanning the accessible device in the interference scenario.
In one embodiment, the adjustment of the scanning time strategy may be a way of overriding the original default scanning time, or a way of jumping to a new set scanning time.
And a scanning module 104, configured to scan different channels according to the adjusted scanning time policy.
In one embodiment, scanning different channels according to the adjusted scanning time strategy comprises: and scanning different channels in sequence according to the scanning time corresponding to the scanning time adjustment values of different channels, or adding the scanning time adjustment values on the basis of default scanning time. For example, the interference scenario determined in step S101 is an LTE B40 scenario, the scanning time adjustment values in the corresponding Wifi channels 1 to 13 are determined to be 100ms, 20ms, 50ms, 80ms, 70ms, 90ms, 30ms, 40ms, 50ms, and 80ms in sequence, and the adjustment policy modified in step S102 is assumed to be a form of adding the scanning time adjustment value to the default scanning time (e.g., 300ms), so that when channel scanning is performed in this step, the sequential scanning time of the channels 1 to 13 is: 400ms, 320ms, 350ms, 380ms, 370ms, 390ms, 330ms, 340ms, 350ms and 380 ms.
According to the above content, the interference parameters are introduced in the process of wireless network scanning by the terminal equipment, so that longer scanning time is set for the channel greatly affected by the interference, the influence on the wireless scanning result in the interference scene is reduced, and the scanning efficiency is improved.
In one possible embodiment, the interference determination module 101 is further configured to:
before determining the scanning time adjustment values of different channels corresponding to the interference scene, testing the scanning signal intensity of different channels in different interference scenes, and determining the corresponding scanning time adjustment values according to the test result.
In a possible embodiment, the interference determination module 101 is specifically configured to:
determining a channel transmitting frequency band used by the terminal equipment;
the scan time determination module 102 is specifically configured to:
and determining scanning time adjustment values of different channels corresponding to the channel transmitting frequency bands.
In one possible embodiment, the interference determination module 101 is further configured to:
determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time before determining the scanning time adjustment values of different channels corresponding to the channel transmission frequency band;
the scan time determination module 102 is specifically configured to:
and determining corresponding scanning time adjustment values of different channels according to the channel transmitting frequency band and the data transmitting quantity.
In a possible embodiment, the interference determination module 101 is specifically configured to:
determining a wireless interference source of the current environment of the terminal equipment;
the scan time determination module 102 is specifically configured to:
and determining scanning time adjustment values of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source.
In a possible embodiment, the scanning module 104 is specifically configured to:
and scanning different channels in sequence according to the scanning time corresponding to the scanning time adjustment values of the different channels.
In a possible embodiment, the method further includes an updating module 105, configured to, after the scanning of different channels according to the adjusted scanning time policy, if it is detected that an interference scenario of the terminal device changes, adjust the scanning time policy according to the changed interference scenario.
In this embodiment, a terminal device is provided on the basis of the foregoing embodiments, and fig. 7 is a schematic structural diagram of a terminal device provided in an embodiment of the present application, and as shown in fig. 7, the terminal device 200 includes: memory 201, processor (CPU) 202, peripheral interfaces 203, RF (Radio Frequency) circuitry 205, audio circuitry 206, speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, Wifi module 213, other input/control devices 210, and external port 204, which communicate via one or more communication buses or signal lines 207.
It should be understood that the illustrated terminal device 200 is only one example of a terminal device, and that the terminal device 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 201, the memory 201 being accessible by the CPU202, the peripheral interface 203, and the like, the memory 201 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 203, said peripheral interface 203 may connect input and output peripherals of the device to the CPU202 and the memory 201.
An I/O subsystem 209, the I/O subsystem 209 may connect input and output peripherals on the device, such as a touch screen 212 and other input/control devices 210, to the peripheral interface 203. The I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling the other input/control devices 210. Where one or more input controllers 2092 receive electrical signals from or transmit electrical signals to other input/control devices 210, the other input/control devices 210 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 2092 may be coupled to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 212, the touch screen 212 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 2091 within the I/O subsystem 209 receives electrical signals from the touch screen 212 or transmits electrical signals to the touch screen 212. The touch screen 212 detects a contact on the touch screen, and the display controller 2091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 212, i.e., implements a human-machine interaction, and the user interface object displayed on the touch screen 212 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 205 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 205 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 205 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 205 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 206 is mainly used to receive audio data from the peripheral interface 203, convert the audio data into an electric signal, and transmit the electric signal to the speaker 211.
And a speaker 211 for reproducing the voice signal received by the handset from the wireless network through the RF circuit 205 into sound and playing the sound to the user.
And the power management chip 208 is used for supplying power and managing power to the hardware connected with the CPU202, the I/O subsystem and the peripheral interface.
The wireless network scanning device of the terminal device and the terminal device provided in the above embodiments can execute the wireless network scanning method of the terminal device provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For details of the wireless network scanning method of the terminal device, reference may be made to the above embodiments.
Embodiments of the present application further provide a storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are configured to perform a wireless network scanning method, where the method includes:
when a wireless network scanning event is detected to be triggered, determining a current interference scene of terminal equipment;
determining scanning time adjustment values of different channels corresponding to the interference scene, and adjusting a scanning time strategy in the wireless network scanning event according to the scanning time adjustment values;
and scanning different channels according to the adjusted scanning time strategy.
In a possible embodiment, before the determining the scan time adjustment value of the different channel corresponding to the interference scenario, the method further includes:
and testing the scanning signal intensity of different channels in different interference scenes, and determining corresponding scanning time adjustment values according to the test results.
In a possible embodiment, the determining the current interference scenario of the terminal device includes:
determining a channel transmitting frequency band used by the terminal equipment;
correspondingly, the determining the scan time adjustment value of the different channels corresponding to the interference scenario includes:
and determining scanning time adjustment values of different channels corresponding to the channel transmitting frequency bands.
In a possible embodiment, before the determining the scan time adjustment value of the different channel corresponding to the channel transmission frequency band, the method further includes:
determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time;
correspondingly, the determining the scanning time adjustment values of the different channels corresponding to the channel transmission frequency bands includes:
and determining corresponding scanning time adjustment values of different channels according to the channel transmitting frequency band and the data transmitting quantity.
In a possible embodiment, the determining the current interference scenario of the terminal device includes:
determining a wireless interference source of the current environment of the terminal equipment;
correspondingly, the determining the scan time adjustment value of the different channels corresponding to the interference scenario includes:
and determining scanning time adjustment values of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source.
In a possible embodiment, the scanning different channels according to the adjusted scanning time strategy includes:
and scanning different channels in sequence according to the scanning time corresponding to the scanning time adjustment values of the different channels.
In a possible embodiment, after the scanning the different channels according to the adjusted scanning time policy, the method further includes:
and if the change of the interference scene of the terminal equipment is detected, adjusting the scanning time strategy according to the changed interference scene.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are scanned across a wireless network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the wireless network scanning method described above, and may also perform related operations in the wireless network scanning method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A wireless network scanning method, comprising:
when a wireless network scanning event is detected to be triggered, determining a current interference scene of terminal equipment; the interference scene is a scene which generates interference on a wireless network scanning result and comprises an interference scene generated by an internal interference source of the terminal equipment and an interference scene generated by an external interference source of the terminal equipment;
determining scanning time adjustment values of different channels corresponding to the interference scene, and adjusting a scanning time strategy in the wireless network scanning event according to the scanning time adjustment values;
scanning different channels according to the adjusted scanning time strategy;
the determining the current interference scene of the terminal device includes:
determining a channel transmitting frequency band used by the terminal equipment;
correspondingly, the determining the scan time adjustment value of the different channels corresponding to the interference scenario includes:
determining scanning time adjustment values of different channels corresponding to the channel transmitting frequency bands; or,
the determining the current interference scene of the terminal device includes:
determining a wireless interference source of the current environment of the terminal equipment;
correspondingly, the determining the scan time adjustment value of the different channels corresponding to the interference scenario includes:
and determining scanning time adjustment values of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source.
2. The method of claim 1, wherein prior to determining the scan time adjustment value for the different channel corresponding to the interference scenario, further comprising:
and testing the scanning signal intensity of different channels in different interference scenes, and determining corresponding scanning time adjustment values according to the test results.
3. The method of claim 1, prior to determining the scan time adjustment value for the different channel corresponding to the channel transmission frequency band, further comprising:
determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time;
correspondingly, the determining the scanning time adjustment values of the different channels corresponding to the channel transmission frequency bands includes:
and determining corresponding scanning time adjustment values of different channels according to the channel transmitting frequency band and the data transmitting quantity.
4. The method according to any of claims 1-3, wherein scanning different channels according to the adjusted scanning time strategy comprises:
and scanning different channels in sequence according to the scanning time corresponding to the scanning time adjustment values of the different channels.
5. The method of claim 4, further comprising, after the scanning different channels according to the adjusted scanning time strategy:
and if the change of the interference scene of the terminal equipment is detected, adjusting the scanning time strategy according to the changed interference scene.
6. A wireless network scanning device, comprising:
the interference determining module is used for determining the current interference scene of the terminal equipment when detecting that a wireless network scanning event is triggered; the interference scene is a scene which generates interference on a wireless network scanning result and comprises an interference scene generated by an internal interference source of the terminal equipment and an interference scene generated by an external interference source of the terminal equipment;
a scanning time determining module, configured to determine scanning time adjustment values of different channels corresponding to the interference scenario;
the setting module is used for adjusting the scanning time strategy in the wireless network scanning event according to the scanning time adjusting value;
the scanning module is used for scanning different channels according to the adjusted scanning time strategy;
the interference determination module is specifically configured to: determining a channel transmitting frequency band used by the terminal equipment;
the scan time determination module is specifically configured to: determining scanning time adjustment values of different channels corresponding to the channel transmitting frequency bands; or,
the interference determination module is specifically configured to: determining a wireless interference source of the current environment of the terminal equipment;
the scan time determination module is specifically configured to: and determining scanning time adjustment values of different channels corresponding to the wireless interference source, wherein the wireless interference source comprises at least one of a Bluetooth interference source, a ZigBee interference source, a WiMax interference source and a microwave interference source.
7. A terminal device, comprising: processor and memory, the memory having stored thereon a computer program operable on the processor, characterized in that the processor, when executing the computer program, implements the wireless network scanning method according to any of claims 1-5.
8. A storage medium containing a computer program executable by a terminal device, the computer program executable by the terminal device being adapted to perform a wireless network scanning method according to any one of claims 1 to 5 when executed by a terminal device processor.
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 CN108337719A (en) 2018-07-27
CN108337719B true 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)

Families Citing this family (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
CN113438714B (en) * 2019-08-01 2022-12-02 Oppo广东移动通信有限公司 Adjusting method, terminal and computer storage medium
CN112054856B (en) * 2020-07-29 2022-03-18 博流智能科技(南京)有限公司 Anti-interference communication method and communication system

Citations (5)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9432834B2 (en) * 2015-01-03 2016-08-30 Google Inc. Methods and systems for varying channel scanning duration

Patent Citations (5)

* 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

Also Published As

Publication number Publication date
CN108337719A (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN109548075B (en) Measurement report reporting method, device, storage medium and mobile terminal
CN108055687B (en) Wireless network connection method and device and terminal equipment
US20210336737A1 (en) Measurement configuration method, apparatus, devices, system, and storage medium
KR20200112933A (en) Downlink channel reception method, transmission method, terminal and base station
CN109379498B (en) Electromagnetic interference control method and related device
EP4002780B1 (en) Wireless high-fidelity wi-fi connection control method and related product
CN108337719B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN109769281B (en) Method and device for improving communication rate, storage medium and intelligent terminal
WO2018103584A1 (en) Method for determining cell, and relevant device and system
WO2023078193A1 (en) Handover method, and terminal and network-side device
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
EP4064760A1 (en) Device control method and apparatus, storage medium and electronic device
WO2022206740A1 (en) Beam switching method and device and storage medium
WO2022068755A1 (en) Information transmission method, terminal, and network side device
CN108337718B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108337715B (en) Wireless network connection method, device, terminal equipment and storage medium
CN108832944B (en) Power compensation method, device, terminal equipment and storage medium
CN108055706B (en) Wireless network connection control method, device, storage medium and terminal equipment
CN108923866B (en) Antenna calibration method, antenna calibration device, terminal equipment and storage medium
CN108307447B (en) Wireless network transmission control method, device, storage medium and terminal equipment
JPWO2013179473A1 (en) COMMUNICATION DEVICE, COMMUNICATION CONTROL PROGRAM, AND COMMUNICATION CONTROL METHOD
CN115474255A (en) Relay service method and device based on sidelink, terminal and network side equipment
CN115314173A (en) Resource pool configuration method, device, terminal and network side equipment
CN114788349A (en) Device control method, device, storage medium and electronic device
TWI539295B (en) Pairing method and electronic apparatus using the same

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