CN108307485B - 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
CN108307485B
CN108307485B CN201810097164.9A CN201810097164A CN108307485B CN 108307485 B CN108307485 B CN 108307485B CN 201810097164 A CN201810097164 A CN 201810097164A CN 108307485 B CN108307485 B CN 108307485B
Authority
CN
China
Prior art keywords
interference
scanning
channel
wireless network
determining
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.)
Expired - Fee Related
Application number
CN201810097164.9A
Other languages
Chinese (zh)
Other versions
CN108307485A (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 CN201810097164.9A priority Critical patent/CN108307485B/en
Publication of CN108307485A publication Critical patent/CN108307485A/en
Application granted granted Critical
Publication of CN108307485B publication Critical patent/CN108307485B/en
Expired - Fee Related 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 an interference channel corresponding to the interference scene, and adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel; and scanning different channels according to the adjusted channel scanning times. In the scheme, the influence on the scanning result under an interference scene is considered when the terminal equipment scans the accessible equipment, so that the wireless network scanning efficiency is improved, and the scanning result is more accurate.

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 enable the scanning result to be more accurate.
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 an interference channel corresponding to the interference scene, and adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel;
and scanning different channels according to the adjusted channel scanning times.
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 channel determining module, configured to determine an interference channel corresponding to the interference scenario;
the setting module is used for adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel;
and the scanning module is used for scanning different channels according to the adjusted channel scanning times.
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.
In the scheme, when a wireless network scanning event is detected to be triggered, the current interference scene of the terminal equipment is determined; determining an interference channel corresponding to the interference scene, and adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel; and scanning different channels according to the adjusted channel scanning times. In the scheme, the influence on the scanning result under an interference scene is considered when the terminal equipment scans the accessible equipment, so that the wireless network scanning efficiency is improved, and the scanning result is more accurate.
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, and is applicable to wireless network scanning of a terminal device, where 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 an interference channel corresponding to the interference scene, and adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel.
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, scanning signal interference of different channels is tested in advance under different interference scenarios, signal interference strength of different interference scenarios on different channels is determined, and corresponding interference channels are set and marked, and for example, when the signal interference strength is greater than or equal to 2db in the test process, the channel is determined to be an interference channel. The interference channels corresponding to different interference scenes obtained through testing can be recorded and stored in the terminal equipment in a form of a table, and when a wireless network scanning event is triggered to determine the interference scene of the current terminal equipment, the interference channels corresponding to the scene are determined according to the recorded table. For example, the specific test procedure may be: respectively testing the signal strength of each channel under the interference and non-interference conditions to determine the influence of an interference scene on the signal strength of different channels, and determining a channel with the interference strength greater than a preset threshold (such as 2db) as an interference channel corresponding to the test scene, taking an LTE B40 scene as an example, determining the corresponding interference channel through the test may be: channel 1, channel 5, channel 11, etc.
In another embodiment, the scanning signal strengths of different channels are tested in different interference scenarios, accessible devices with fixed signal strengths 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 the different channels and finally determine corresponding interference 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, that is, the scanning times of each channel in the prior art are fixed. For example, under the non-interference condition, the terminal device scans each channel of WiFi 1-13 once, scans an accessible device a on a WiFi 2 channel, scans an accessible device B and an accessible device C on a WiFi 5 channel, and if the terminal device is in an interference scene (e.g., LTE B40 scene) at this time, the interference to the WiFi 5 channel is strong, at this time, the terminal device may not find an accessible device or only find the accessible device B or only the accessible device C in the WiFi 5 channel scanning process, that is, the scanning result has a deviation, thereby affecting the final connection result. In this step, an interference channel corresponding to the interference scenario is determined, and the channel scanning times in the wireless network scanning event are adjusted according to the identifier of the interference channel, where the identifier of the interference channel may be a channel label or a custom identifier code, and the adjusting of the channel scanning times in the wireless network scanning event according to the identifier of the interference channel may be: the scanning times of the interference channel are increased by 1-3 times on the basis of the original scanning.
And step S103, scanning different channels according to the adjusted channel scanning times.
In an embodiment, if the original scanning strategy is that channels 1 to 13 are sequentially scanned to obtain scanning results, if the determined channels 5 and 8 are interference channels, the corresponding channels 5 and 8 are scanned twice, and the specific scanning process may be that the channels 5 and 8 are scanned for the second time immediately after scanning is completed, or that the channels 5 and 8 are sequentially scanned again after all the channels 1 to 13 are scanned, so as to improve the probability of scanning the accessible device in the interference scene.
According to the above content, when the terminal device scans the accessible device, the influence on the scanning result in the interference scene is considered, the scanning times of the interference channel is adjusted, the probability of scanning the accessible device is improved, and the scanning result is more accurate.
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 an interference channel corresponding to the interference scenario includes: and determining an interference channel corresponding to the channel transmitting frequency band. 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 an interference channel corresponding to the interference scene, and adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel.
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 the scanning times of the interference channels corresponding to the interference scene need to be reset. Optionally, different interference channels corresponding to different channel transmission frequency bands are stored and recorded in the terminal device, when the channel transmission frequency band used by the terminal device is determined, the corresponding interference channel is determined corresponding to the list, and the scanning times of the interference channel is correspondingly increased. The specific setting manner may adopt the manner in step S102, and is not described herein again.
And step S203, scanning different channels according to the adjusted channel scanning times.
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 an embodiment of the present application, and optionally before adjusting the number of channel scans in the wireless network scanning event according to the identifier of the interfering channel, 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 adjusting the channel scanning times in the wireless network scanning event according to the identifier of the interference channel includes: and determining the scanning times of the corresponding interference channel 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 the scanning times of the corresponding interference channel according to the channel transmitting frequency band and the data transmitting quantity.
When determining the number of scanning times of the interference channel, in addition to considering the aforementioned channel frequency band, the terminal device is further combined with the data transmission amount in the frequency band, and illustratively, the larger the data transmission amount is, the more the number of scanning times is, the smaller the data transmission amount is, and the fewer the number of scanning times is.
And step S304, scanning different channels according to the adjusted channel scanning times.
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 scanning process is controlled by using reasonable scanning times, so that the scanning efficiency is further improved.
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 an interference channel corresponding to the interference scenario includes: and determining an interference channel 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 an interference channel corresponding to the wireless interference source, and adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel.
In an embodiment, after the interference source is determined, the preset interference channels corresponding to different interference sources are queried according to different interference source types, and the number of times of scanning the current interference source on the interference channel is determined, where the number of times of scanning the same interference source on different channels may be different, for example, a channel with an interference strength greater than or equal to 2db is defined as the interference channel, and the number of times of scanning the interference channel with an interference strength greater than 5db may be 5.
And step S403, scanning different channels according to the adjusted channel scanning times.
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 channel scanning times, the method further includes: and if the interference scene of the terminal equipment is detected to be changed, determining an interference channel corresponding to the changed interference scene and scanning again. 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.
And step S502, determining an interference channel corresponding to the interference scene.
Step S503, adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel.
And step S504, scanning different channels according to the adjusted channel scanning times.
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.
And step S507, determining an interference channel corresponding to the changed interference scene and scanning again.
When it is monitored that an interference scene of the terminal device changes (an interference source is newly added or reduced), a corresponding interference channel is determined according to the changed interference scene, for example, when a user uses the terminal device for conversation, the interference scene changes, and the interference channel corresponding to the changed scene (such as a transmission frequency band used by the terminal device) is correspondingly determined (such as by querying a table stored in the terminal device), and the interference channel is scanned again.
Therefore, the interference scene of the terminal equipment is monitored in real time, and the scanning strategy is changed, so that the scanning times of different channels are changed along with the scene change, and the scanning result is more accurate. Optionally, after the interference scene changes, the currently changed interference scene is determined and recorded, so that the next time the wireless network scanning event is triggered, the corresponding interference channel is directly determined according to the recorded interference scene, or the adjusted channel scanning times are 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 channel determination module 102, a setup module 103 and a scanning module 104, wherein,
and the interference determining module is used for determining the current interference scene of the terminal equipment when the wireless network scanning event is triggered.
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 channel determining module, configured to determine an interference channel corresponding to the interference scenario; and the setting module is used for adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel.
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, scanning signal interference of different channels is tested in advance under different interference scenarios, signal interference strength of different interference scenarios on different channels is determined, and corresponding interference channels are set and marked, and for example, when the signal interference strength is greater than or equal to 2db in the test process, the channel is determined to be an interference channel. The interference channels corresponding to different interference scenes obtained through testing can be recorded and stored in the terminal equipment in a form of a table, and when a wireless network scanning event is triggered to determine the interference scene of the current terminal equipment, the interference channels corresponding to the scene are determined according to the recorded table. For example, the specific test procedure may be: respectively testing the signal strength of each channel under the interference and non-interference conditions to determine the influence of an interference scene on the signal strength of different channels, and determining a channel with the interference strength greater than a preset threshold (such as 2db) as an interference channel corresponding to the test scene, taking an LTE B40 scene as an example, determining the corresponding interference channel through the test may be: channel 1, channel 5, channel 11, etc.
In another embodiment, the scanning signal strengths of different channels are tested in different interference scenarios, accessible devices with fixed signal strengths 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 the different channels and finally determine corresponding interference 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, that is, the scanning times of each channel in the prior art are fixed. For example, under the non-interference condition, the terminal device scans each channel of WiFi 1-13 once, scans an accessible device a on a WiFi 2 channel, scans an accessible device B and an accessible device C on a WiFi 5 channel, and if the terminal device is in an interference scene (e.g., LTE B40 scene) at this time, the interference to the WiFi 5 channel is strong, at this time, the terminal device may not find an accessible device or only find the accessible device B or only the accessible device C in the WiFi 5 channel scanning process, that is, the scanning result has a deviation, thereby affecting the final connection result. In this step, an interference channel corresponding to the interference scenario is determined, and the channel scanning times in the wireless network scanning event are adjusted according to the identifier of the interference channel, where the identifier of the interference channel may be a channel label or a custom identifier code, and the adjusting of the channel scanning times in the wireless network scanning event according to the identifier of the interference channel may be: the scanning times of the interference channel are increased by 1-3 times on the basis of the original scanning
And the scanning module is used for scanning different channels according to the adjusted channel scanning times.
In an embodiment, if the original scanning strategy is that channels 1 to 13 are sequentially scanned to obtain scanning results, if the determined channels 5 and 8 are interference channels, the corresponding channels 5 and 8 are scanned twice, and the specific scanning process may be that the channels 5 and 8 are scanned for the second time immediately after scanning is completed, or that the channels 5 and 8 are sequentially scanned again after all the channels 1 to 13 are scanned, so as to improve the probability of scanning the accessible device in the interference scene.
According to the above content, when the terminal device scans the accessible device, the influence on the scanning result in the interference scene is considered, the scanning times of the interference channel is adjusted, the probability of scanning the accessible device is improved, and the scanning result is more accurate.
In one possible embodiment, the interference determination module 101 is further configured to:
before determining the interference channel corresponding to the interference scene, testing the signal scanning intensity of different channels in different interference scenes, and determining the corresponding interference channel 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 channel determination module 102 is specifically configured to:
and determining an interference channel corresponding to the channel transmitting frequency band.
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 adjusting the channel scanning times in the wireless network scanning event according to the identifier of the interference channel;
the setting module 103 is specifically configured to:
and determining the scanning times of the corresponding interference channel 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 channel determining module 102 is specifically configured to:
and determining an interference channel 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 for corresponding scanning times in sequence.
In a possible embodiment, the system further includes an updating module 105, specifically configured to:
after scanning different channels according to the adjusted channel scanning times, if the interference scene of the terminal equipment is detected to change, determining an interference channel corresponding to the changed interference scene and scanning again.
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 an interference channel corresponding to the interference scene, and adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel;
and scanning different channels according to the adjusted channel scanning times.
In a possible embodiment, before the determining the interference channel corresponding to the interference scenario, the method further includes:
and testing the signal scanning intensity of different channels in different interference scenes, and determining corresponding interference channels according to the test result.
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 an interference channel corresponding to the interference scenario includes:
and determining an interference channel corresponding to the channel transmitting frequency band.
In one possible embodiment, before the adjusting the number of channel scans in the wireless network scanning event according to the identifier of the interfering channel, 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 adjusting the channel scanning times in the wireless network scanning event according to the identifier of the interference channel includes:
and determining the scanning times of the corresponding interference channel 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 an interference channel corresponding to the interference scenario includes:
and determining an interference channel 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 channel scanning times includes:
and scanning different channels for corresponding scanning times in sequence.
In a possible embodiment, after the scanning the different channels according to the adjusted channel scanning times, the method further includes:
and if the interference scene of the terminal equipment is detected to be changed, determining an interference channel corresponding to the changed interference scene and scanning again.
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 (10)

1. A wireless network scanning method, comprising:
when a wireless network scanning event is detected to be triggered, determining a current interference scene of a terminal device, wherein 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 device or an interference scene generated by an external interference source of the terminal device;
determining an interference channel corresponding to different interference scenes based on the degree of influence of the different interference scenes on different channels, adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel, wherein the channel scanning times of the interference channel are increased on the basis of the original scanning, the degree of influence is determined through testing, and the testing process comprises the steps of respectively testing the signal intensity of each channel in the different channels under the conditions of interference and no interference so as to determine the signal interference intensity of the interference scenes on the different channels, and testing the scanning signal intensity of the different channels under the different interference scenes so as to determine any one of the degrees of interference of the interference scenes on the different channels;
and scanning different channels according to the adjusted channel scanning times.
2. The method of claim 1, wherein prior to the determining the interference channel corresponding to the interference scenario, further comprising:
and testing the scanning signal intensity of different channels in different interference scenes, and determining corresponding interference channels according to the test result.
3. The method of claim 1, wherein the determining the current interference scenario of the terminal device comprises:
determining a channel transmitting frequency band used by the terminal equipment;
correspondingly, the determining an interference channel corresponding to the interference scenario includes:
and determining an interference channel corresponding to the channel transmitting frequency band.
4. The method of claim 3, further comprising, before said adjusting the number of channel scans in the wireless network scanning event according to the identity of the interfering channel:
determining the data transmission quantity of the terminal equipment in the channel transmission frequency band within a preset time;
correspondingly, the adjusting the channel scanning times in the wireless network scanning event according to the identifier of the interference channel includes:
and determining the scanning times of the corresponding interference channel according to the channel transmitting frequency band and the data transmitting quantity.
5. The method of claim 1, wherein the determining the current interference scenario of the terminal device comprises:
determining a wireless interference source of the current environment of the terminal equipment;
correspondingly, the determining an interference channel corresponding to the interference scenario includes:
and determining an interference channel 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.
6. The method according to any of claims 1-5, wherein the scanning different channels according to the adjusted channel scanning times comprises:
and scanning different channels for corresponding scanning times in sequence.
7. The method according to any of claims 1-5, wherein after the scanning different channels according to the adjusted channel scanning times, further comprising:
and if the interference scene of the terminal equipment is detected to be changed, determining an interference channel corresponding to the changed interference scene and scanning again.
8. A wireless network scanning device, comprising:
the interference determining module is used for determining a current interference scene of the terminal equipment when a wireless network scanning event is triggered, wherein 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 or an interference scene generated by an external interference source of the terminal equipment;
a channel determination module, configured to determine an interference channel corresponding to a different interference scenario based on degrees of influence of the different interference scenarios on different channels, where the degrees of influence are determined through a test, and the test includes testing signal strengths of the different channels under interference and non-interference conditions, respectively, to determine signal interference strengths of the different channels by the interference scenario, and testing scanning signal strengths of the different channels under the different interference scenarios, to determine any one of the degrees of interference of the different channels by the interference scenario;
the setting module is used for adjusting the channel scanning times in the wireless network scanning event according to the identification of the interference channel, and the channel scanning times of the interference channel is increased on the basis of the original scanning;
and the scanning module is used for scanning different channels according to the adjusted channel scanning times.
9. A terminal device, comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor implements the wireless network scanning method of any one of claims 1-7 when executing the computer program.
10. A storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are configured to perform the wireless network scanning method of any one of claims 1-7.
CN201810097164.9A 2018-01-31 2018-01-31 Wireless network scanning method and device, terminal equipment and storage medium Expired - Fee Related CN108307485B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810097164.9A CN108307485B (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
CN201810097164.9A CN108307485B (en) 2018-01-31 2018-01-31 Wireless network scanning method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108307485A CN108307485A (en) 2018-07-20
CN108307485B true CN108307485B (en) 2021-07-13

Family

ID=62850850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810097164.9A Expired - Fee Related CN108307485B (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) CN108307485B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385774B (en) * 2018-12-12 2021-08-13 北京骑胜科技有限公司 Bluetooth device connection method, connection device, terminal and computer device
CN110167058B (en) * 2019-05-14 2023-02-21 广州三星通信技术研究有限公司 Interference frequency identification method, mobile terminal, log management method and server
CN113099378B (en) * 2021-03-23 2023-05-16 北京三快在线科技有限公司 Positioning method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103228045A (en) * 2013-04-10 2013-07-31 华为技术有限公司 Channel selection method and device
CN103517321A (en) * 2012-06-26 2014-01-15 上海无线通信研究中心 Heterogeneous network fusion-based interference collection and suppression method
CN104244366A (en) * 2014-09-17 2014-12-24 广东欧珀移动通信有限公司 Wireless network connection method and device and mobile device
WO2017142656A1 (en) * 2016-02-19 2017-08-24 Qualcomm Incorporated Systems and methods for prioritizing channel scanning

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2229792B1 (en) * 2008-01-17 2017-11-01 Nokia Technologies Oy Using information obtained from one wireless medium for communication in another wireless medium
US8451733B2 (en) * 2011-08-08 2013-05-28 Amtran Technology Co., Ltd Methods of optimizing scanning parameters for a plurality of channels in a wireless band

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103517321A (en) * 2012-06-26 2014-01-15 上海无线通信研究中心 Heterogeneous network fusion-based interference collection and suppression method
CN103228045A (en) * 2013-04-10 2013-07-31 华为技术有限公司 Channel selection method and device
CN104244366A (en) * 2014-09-17 2014-12-24 广东欧珀移动通信有限公司 Wireless network connection method and device and mobile device
WO2017142656A1 (en) * 2016-02-19 2017-08-24 Qualcomm Incorporated Systems and methods for prioritizing channel scanning

Also Published As

Publication number Publication date
CN108307485A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
US20210336737A1 (en) Measurement configuration method, apparatus, devices, system, and storage medium
CN108055687B (en) Wireless network connection method and device and terminal equipment
CN108476060B (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
US9155026B2 (en) Systems for facilitating wireless communication and related methods
US20130178163A1 (en) Systems for Facilitating Wireless Communication and Related Methods
CN107231159B (en) Radio frequency interference processing method, device, storage medium and terminal
US11671809B2 (en) Bluetooth profile fast connect
CN108093444B (en) Wireless network transmission rate control method and device, terminal equipment and storage medium
CN109379498B (en) Electromagnetic interference control method and related device
US10917792B2 (en) Method for establishing wireless local area network connection, apparatus, and terminal
CN108307485B (en) Wireless network scanning method and device, terminal equipment and storage medium
WO2018103584A1 (en) Method for determining cell, and relevant device and system
CN108337719B (en) Wireless network scanning method and device, terminal equipment and storage medium
WO2023078193A1 (en) Handover method, and terminal and network-side device
EP4064760A1 (en) Device control method and apparatus, storage medium and electronic device
CN108832944B (en) Power compensation method, device, terminal equipment and storage medium
CN108833033B (en) Method and device for determining radio frequency calibration parameters, storage medium and mobile terminal
CN108337715B (en) Wireless network connection method, device, terminal equipment and storage medium
CN108055706B (en) Wireless network connection control method, device, storage medium and terminal equipment
CN113840303B (en) Measurement indication method, terminal and network side equipment
CN113286335A (en) Frequency point switching method and device, storage medium and access point
CN111818642B (en) Parameter processing method, device and computer readable storage medium
CN108337718B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN108307447B (en) Wireless network transmission control method, device, storage medium and terminal equipment
CN107659996B (en) Channel access method and equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210713

CF01 Termination of patent right due to non-payment of annual fee