CN106851690A - Wireless network scanning method, device and computer equipment - Google Patents
Wireless network scanning method, device and computer equipment Download PDFInfo
- Publication number
- CN106851690A CN106851690A CN201710112824.1A CN201710112824A CN106851690A CN 106851690 A CN106851690 A CN 106851690A CN 201710112824 A CN201710112824 A CN 201710112824A CN 106851690 A CN106851690 A CN 106851690A
- Authority
- CN
- China
- Prior art keywords
- wireless network
- parameter
- wireless
- space value
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/02—Arrangements for optimising operational condition
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,特别是涉及一种无线网络扫描方法、装置及计算机设备。The invention relates to the technical field of computers, in particular to a wireless network scanning method, device and computer equipment.
背景技术Background technique
随着信息技术的发展,移动电子设备的应用越来越广泛而普遍。移动电子设备可以通过连接无线网络来上网,实现购物、消费、查询信息、视频通过等应用。无线网络通过电磁波来实现信息的实时传输。然而无线网络有多种分类,比如长期演进、无线局域网、蓝牙等,不同的无线网络通过不同频率的电磁波来实现信息传输。不同的无线网络之间的信号很容易受到干扰,若移动电子设备在上网的时候,无线网络信号受到干扰,就无法流畅的上网,严重影响用户的使用。With the development of information technology, the application of mobile electronic devices is becoming more and more extensive and common. Mobile electronic devices can access the Internet by connecting to a wireless network, and realize applications such as shopping, consumption, information query, and video transmission. Wireless networks use electromagnetic waves to transmit information in real time. However, there are many types of wireless networks, such as long-term evolution, wireless local area network, bluetooth, etc. Different wireless networks implement information transmission through electromagnetic waves of different frequencies. The signals between different wireless networks are easily interfered. If the wireless network signal is interfered when the mobile electronic device is surfing the Internet, it will not be able to surf the Internet smoothly, which will seriously affect the user's use.
发明内容Contents of the invention
本发明实施例提供一种无线网络扫描方法、装置及计算机设备,可以减少无线网络信号的干扰。Embodiments of the present invention provide a wireless network scanning method, device and computer equipment, which can reduce the interference of wireless network signals.
一种无线网络扫描方法,包括:A wireless network scanning method, comprising:
获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值;Obtain the parameter interval value between the frequency attribute parameters of the first wireless network and the second wireless network;
若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。If the parameter interval value is within the preset first parameter range, the scanning mode of the second wireless network is switched to a passive scanning mode.
一种无线网络扫描装置,包括:A wireless network scanning device, comprising:
参数获取模块,用于获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值;A parameter acquisition module, configured to acquire a parameter interval value between frequency attribute parameters of the first wireless network and the second wireless network;
方式切换模块,用于若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。A mode switching module, configured to switch the scanning mode of the second wireless network to a passive scanning mode if the parameter interval value is within the preset first parameter range.
一种计算机设备,其特征在于,包括:A computer device, characterized in that it includes:
存储器,用于存储有可执行程序代码;memory, for storing executable program code;
处理器,用于与所述存储器耦合;a processor, configured to be coupled with the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行以下步骤:获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值;The processor calls the executable program code stored in the memory, and performs the following steps: obtaining a parameter interval value between frequency attribute parameters of the first wireless network and the second wireless network;
若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。If the parameter interval value is within the preset first parameter range, the scanning mode of the second wireless network is switched to a passive scanning mode.
附图说明Description of drawings
图1为一个实施例中无线网络扫描方法的流程图;Fig. 1 is a flowchart of a wireless network scanning method in an embodiment;
图2为一个实施例中不同无线网络的工作频率展示图;Fig. 2 is a diagram showing the operating frequencies of different wireless networks in one embodiment;
图3为另一个实施例中无线网络扫描方法的流程图;Fig. 3 is a flowchart of a wireless network scanning method in another embodiment;
图4为另一个实施例中无线网络扫描方法的流程图;FIG. 4 is a flowchart of a wireless network scanning method in another embodiment;
图5为一个实施例中无线网络扫描装置的结构示意图;FIG. 5 is a schematic structural diagram of a wireless network scanning device in an embodiment;
图6为另一个实施例中无线网络扫描装置的结构示意图;6 is a schematic structural diagram of a wireless network scanning device in another embodiment;
图7为与本发明实施例提供的计算机设备相关的手机的部分结构的框图。Fig. 7 is a block diagram of a partial structure of a mobile phone related to a computer device provided by an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
可以理解,本发明所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本发明的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It can be understood that the terms "first", "second" and the like used in the present invention can be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element. For example, a first client could be termed a second client, and, similarly, a second client could be termed a first client, without departing from the scope of the present invention. Both the first client and the second client are clients, but they are not the same client.
图1为一个实施例中无线网络扫描方法的流程图。如图1所示,该无线网络扫描方法包括步骤S102至步骤S104,其中:Fig. 1 is a flowchart of a wireless network scanning method in an embodiment. As shown in Figure 1, the wireless network scanning method includes steps S102 to S104, wherein:
步骤S102,获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值。Step S102, acquiring a parameter interval value between frequency attribute parameters of the first wireless network and the second wireless network.
在本发明提供的实施例中,无线网络是指利用无线电波作为信息传输的媒介构成的通信网络。其中,无线网络根据覆盖范围大小可以分为无线广域网络和无线局域网络。无线广域网络是指可以使移动用户在大范围内进行通信的无线网络,通常可以覆盖到一个城市或一个国家甚至到一个洲的范围,例如无线广域网络可以是LTE(Long Term Evolution,长期演进)、CDMA(Code Division Multiple Access,码分多址)、GSM(Global System forMobile Communication,全球移动通信系统)。无线局域网络是指可以使移动用户在小范围内进行通信的无线网络,通常只覆盖到几十米到几百米的范围内,例如无线局域网络可以是Wi-Fi(Wireless Fidelity,无线保真)。In the embodiments provided by the present invention, a wireless network refers to a communication network formed by using radio waves as a medium for information transmission. Wherein, the wireless network can be divided into a wireless wide area network and a wireless local area network according to the size of the coverage area. A wireless wide area network refers to a wireless network that enables mobile users to communicate in a wide range, usually covering a city or a country or even a continent. For example, a wireless wide area network can be LTE (Long Term Evolution, Long Term Evolution) , CDMA (Code Division Multiple Access, Code Division Multiple Access), GSM (Global System for Mobile Communication, Global System for Mobile Communications). A wireless local area network refers to a wireless network that enables mobile users to communicate within a small range, usually only covering a range of tens of meters to hundreds of meters. For example, a wireless local area network can be a Wi-Fi (Wireless Fidelity, wireless fidelity ).
频率属性参数是指可以用于表示无线网络的工作频率的属性参数,例如频率属性参数可以是无线网络的信道编号、工作频率和工作带宽等中的一种或者多种的组合。其中,信道是指以无线信号作为传输媒质的信号通道。工作频率是指用于传输通信信号的无线电波的频率。工作带宽是指用于传输通信信号的无线电波的频率宽度。The frequency attribute parameter refers to an attribute parameter that can be used to represent the working frequency of the wireless network. For example, the frequency attribute parameter can be one or a combination of channel number, working frequency, and working bandwidth of the wireless network. Wherein, the channel refers to a signal channel using a wireless signal as a transmission medium. Operating frequency refers to the frequency of radio waves used to transmit communication signals. Operating bandwidth refers to the frequency width of radio waves used to transmit communication signals.
其中,无线网络的工作频率分为上行频率和下行频率,上行频率是指无线通信信号的发射频率,下行频率是指无线通信信号的接收频率。上行频率和下行频率的差值就是工作带宽。不同的无线网络的工作频率不一样。图2为一个实施例中不同无线网络的工作频率展示图。如图2所示,该展示图包括无线网络202、无线网络204、无线网络206和无线网络208。其中,无线网络204的工作频率为2300-2400MHZ,工作带宽为100MHZ;无线网络204的工作频率为2402-2483.5MHZ,工作带宽为81.5MHZ;无线网络206的工作频率为2496-2500MHZ,工作带宽为4MHZ;无线网络208的工作频率为2500-2690MHZ,工作带宽为190MHZ。Wherein, the working frequency of the wireless network is divided into an uplink frequency and a downlink frequency, the uplink frequency refers to the transmission frequency of the wireless communication signal, and the downlink frequency refers to the reception frequency of the wireless communication signal. The difference between the uplink frequency and the downlink frequency is the working bandwidth. Different wireless networks work at different frequencies. Fig. 2 is a diagram showing working frequencies of different wireless networks in an embodiment. As shown in FIG. 2 , the illustration includes wireless network 202 , wireless network 204 , wireless network 206 , and wireless network 208 . Wherein, the working frequency of the wireless network 204 is 2300-2400MHZ, and the working bandwidth is 100MHZ; the working frequency of the wireless network 204 is 2402-2483.5MHZ, and the working bandwidth is 81.5MHZ; 4MHZ; the working frequency of the wireless network 208 is 2500-2690MHZ, and the working bandwidth is 190MHZ.
更进一步地,参数间隔值是指第一无线网络的频率属性参数与第二无线网络的频率属性参数的差值。例如,参数间隔值可以是无线网络的上行频率,若第一无线网络的上行频率是2500MHZ,第二无线网络的上行频率是2483.5MHZ,那么第一无线网络和第二无线网络之间的参数间隔值就为16.5MHZ。Furthermore, the parameter interval value refers to the difference between the frequency attribute parameter of the first wireless network and the frequency attribute parameter of the second wireless network. For example, the parameter interval value may be the uplink frequency of the wireless network, if the uplink frequency of the first wireless network is 2500MHZ, and the uplink frequency of the second wireless network is 2483.5MHZ, then the parameter interval between the first wireless network and the second wireless network The value is 16.5MHZ.
由于无线网络是通过无线电波来传输通信信息的,通过不同的频率属性参数将不同的无线网络进行区分,当两个无线网络的频率属性参数差别非常小时,这两个无线网络所传输的无线通信信息就会相互产生干扰。该参数间隔值越小,就认为两个无线网络之间的干扰就越大。Since wireless networks transmit communication information through radio waves, different wireless networks are distinguished by different frequency attribute parameters. When the difference between the frequency attribute parameters of two wireless networks is very small, the wireless communication transmitted by the two wireless networks Information will interfere with each other. The smaller the value of the parameter interval, the greater the interference between the two wireless networks.
步骤S104,若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。Step S104, if the parameter interval value is within the preset first parameter range, switch the scanning mode of the second wireless network to a passive scanning mode.
在本发明提供的实施例中,预设的第一参数范围是指预先设置用于确定是否切换扫描方式的参数间隔值的范围。当参数间隔值在预设的第一参数范围内时,认为第一无线网络和第二无线网络之间会产生的干扰;当参数间隔值超出预设的第一参数范围时,认为第一无线网络和第二无线网络之间的不会产生干扰。In the embodiment provided by the present invention, the preset first parameter range refers to a preset range of parameter interval values for determining whether to switch the scanning mode. When the parameter interval value is within the preset first parameter range, it is considered that there will be interference between the first wireless network and the second wireless network; when the parameter interval value exceeds the preset first parameter range, it is considered that the first wireless network There will be no interference between the network and the second wireless network.
更进一步地,扫描方式是指电子设备扫描无线网络的方式,可以分为主动扫描方式和被动扫描方式。主动扫描方式是指电子设备在每个信道上都发出探测无线网络信号的请求,当某个无线网络工作站接收到该请求后就会予以回应。被动扫描方式是指电子设备定期侦听无线网络工作站发送的数据包,通过该数据包来识别和连接无线网络。Furthermore, the scanning mode refers to a mode in which an electronic device scans a wireless network, and can be divided into an active scanning mode and a passive scanning mode. The active scanning method means that the electronic device sends a request to detect wireless network signals on each channel, and a wireless network workstation will respond after receiving the request. The passive scanning method means that the electronic device regularly listens to the data packets sent by the wireless network workstation, and uses the data packets to identify and connect to the wireless network.
举例来说,当移动终端以主动扫描的方式扫描无线网络时,会在每个无线网络的信道上发出Probe Request帧。其中,Probe Request帧是移动终端用于请求与AP建立连接的数据包。当AP(Wireless Access Point,无线访问接入点)接收到该Probe Request帧后会予以回应,从而与移动终端建立连接。移动终端以主动扫描方式扫描无线网络时,若因为无AP秘钥等原因未连接到周围的AP,则会每隔一段时间主动扫描周围可用的AP并尝试连接。移动终端以被动扫描方式扫描无线网络时,则会侦听AP定期发送的Beacon帧来发现无线网络。其中,Beacon帧是指AP发送的请求与终端建立连接的数据包。Beacon帧可以包含BSSID(Basic Station System Identifier,基础站系统编码)、SSID(Service SetIdentifier,服务集标识)、AP的认证方式、AP的加密算法、Beacons帧发送间隔时间、信道号等信息。For example, when the mobile terminal scans wireless networks in an active scanning manner, it will send a Probe Request frame on the channel of each wireless network. Wherein, the Probe Request frame is a data packet used by the mobile terminal to request to establish a connection with the AP. After receiving the Probe Request frame, the AP (Wireless Access Point, wireless access point) will respond to establish a connection with the mobile terminal. When the mobile terminal scans the wireless network in the active scanning mode, if it is not connected to the surrounding APs due to reasons such as lack of AP keys, it will actively scan the surrounding available APs at regular intervals and try to connect. When the mobile terminal scans the wireless network in passive scanning mode, it will listen to the Beacon frame periodically sent by the AP to discover the wireless network. Wherein, the Beacon frame refers to a data packet sent by the AP to request to establish a connection with the terminal. The Beacon frame can contain information such as BSSID (Basic Station System Identifier, basic station system code), SSID (Service SetIdentifier, service set identifier), AP authentication method, AP encryption algorithm, Beacons frame transmission interval time, and channel number.
上述无线网络扫描方法,通过获取无线网络的频率属性参数来判断无线网络之间的干扰,当无线网络之间的产生干扰时,将无线网络的扫描方式切换为被动扫描方式。由于被动扫描方式下,电子设备接收到无线网络工作站发送的信号往往会衰减到非常弱,所以电子设备在接收到的无线网络信号之间产生的干扰也会减小。In the above wireless network scanning method, the interference between wireless networks is judged by acquiring the frequency attribute parameters of the wireless networks, and when interference occurs between the wireless networks, the scanning mode of the wireless network is switched to a passive scanning mode. Since in the passive scanning mode, the signal received by the electronic device from the wireless network workstation tends to attenuate to a very weak level, the interference generated by the electronic device between the received wireless network signals will also be reduced.
图3为另一个实施例中无线网络扫描方法的流程图。如图3所示,该无线网络扫描方法包括步骤S302至步骤S306,其中:Fig. 3 is a flowchart of a wireless network scanning method in another embodiment. As shown in Figure 3, the wireless network scanning method includes steps S302 to S306, wherein:
步骤S302,若检测到通过第一无线网络执行预设业务,则获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值。Step S302, if it is detected that the preset service is executed through the first wireless network, then acquire the parameter interval value between the frequency attribute parameters of the first wireless network and the second wireless network.
在本发明提供的实施例中,第一无线网络和第二无线网络分别表示不同的无线网络,第一无线网络和第二无线网络的频率属性参数不同。预设业务是指预先指定的电子设备执行的业务。例如预设业务可以是指移动终端的语音通话、视频通话、字符传输等业务。In the embodiment provided by the present invention, the first wireless network and the second wireless network respectively represent different wireless networks, and the frequency attribute parameters of the first wireless network and the second wireless network are different. The preset service refers to a service performed by a pre-designated electronic device. For example, preset services may refer to services such as voice call, video call, and character transmission of the mobile terminal.
更进一步地,检测到通过第一无线网络执行预设业务是指检测到电子设备执行预设业务,通过第一无线网络来传输该预设业务的数据。例如,第一无线网络和第二无线网络分别指LTE和Wi-Fi,频率属性参数指工作频段。当检测到移动终端通过LTE来执行语音业务的时候,获取该第一无线网络和第二无线网络的工作频段。Furthermore, detecting that the preset service is executed through the first wireless network refers to detecting that the electronic device executes the preset service, and transmitting data of the preset service through the first wireless network. For example, the first wireless network and the second wireless network refer to LTE and Wi-Fi respectively, and the frequency attribute parameter refers to a working frequency band. When it is detected that the mobile terminal performs the voice service through LTE, the working frequency bands of the first wireless network and the second wireless network are acquired.
在一个实施例中,若第一无线网络为预设无线网络,则执行获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值步骤。其中,预设无线网络可以是预先指定的无线网络,也可以是预先指定的在某一个工作频段的无线网络,或者是预先指定的某一信道号的无线网络。例如,指定无线网络可以是图2中所示的无线网络202和无线网络206。当第一无线网络为预设无线网络时,则认为第一无线网络和第二无线网络之间可能存在相互干扰的情况。In one embodiment, if the first wireless network is a preset wireless network, the step of obtaining a parameter interval value between the frequency attribute parameters of the first wireless network and the second wireless network is performed. Wherein, the preset wireless network may be a pre-designated wireless network, or a pre-designated wireless network in a certain working frequency band, or a pre-designated wireless network of a certain channel number. For example, the designated wireless networks may be wireless network 202 and wireless network 206 shown in FIG. 2 . When the first wireless network is the preset wireless network, it is considered that there may be mutual interference between the first wireless network and the second wireless network.
参数间隔值是指第一无线网络的频率属性参数与第二无线网络的频率属性参数的差值。例如,频率属性参数可以是无线网络的工作频段,第一无线网络的工作频段为2300-2400MHZ,第二无线网络的工作频段为2496-2500MHZ。参数间隔值可以定义为第一无线网络和第二无线网络的上行频率/下行频率的间隔值,即为96/100MHZ。The parameter interval value refers to the difference between the frequency attribute parameter of the first wireless network and the frequency attribute parameter of the second wireless network. For example, the frequency attribute parameter may be the working frequency band of the wireless network, the working frequency band of the first wireless network is 2300-2400MHZ, and the working frequency band of the second wireless network is 2496-2500MHZ. The parameter interval value may be defined as the interval value of the uplink frequency/downlink frequency of the first wireless network and the second wireless network, that is, 96/100MHZ.
在本发明提供的其他实施例中,频率属性参数还可以是信道号和工作带宽,信道号对应无线网络的中心频率,再根据中心频率和工作带宽就可以计算出无线网络的工作频段。其中,中心频率是指无线网络的上行频率和下行频率的中间值。例如,中心频率为1000HMZ,工作带宽为50MHZ,那么计算出来的工作频段就为950-1050HMZ。In other embodiments provided by the present invention, the frequency attribute parameters may also be channel number and working bandwidth, and the channel number corresponds to the center frequency of the wireless network, and then the working frequency band of the wireless network can be calculated according to the center frequency and working bandwidth. Wherein, the central frequency refers to an intermediate value between an uplink frequency and a downlink frequency of the wireless network. For example, if the center frequency is 1000HMZ and the working bandwidth is 50MHZ, then the calculated working frequency band is 950-1050HMZ.
由于无线网络是通过无线电波来传输通信信息的,无线网络通过不同的频率属性参数进行区分。当两个无线网络的频率属性参数差别非常小时,这两个无线网络所传输的无线通信信息就会相互产生干扰。该参数间隔值越小,就认为两个无线网络之间的干扰就越大;相反,则认为两个无线网络之间的干扰就越小。Since wireless networks transmit communication information through radio waves, wireless networks are distinguished by different frequency attribute parameters. When the frequency attribute parameters of the two wireless networks differ very little, the wireless communication information transmitted by the two wireless networks will interfere with each other. The smaller the parameter interval value, the greater the interference between the two wireless networks; on the contrary, the smaller the interference between the two wireless networks.
步骤S304,若参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。Step S304, if the parameter interval value is within the preset first parameter range, switch the scanning mode of the second wireless network to a passive scanning mode.
在本发明提供的实施例中,预设的第一参数范围是指预先设置用于确定是否切换扫描方式的参数间隔值的范围。当参数间隔值在预设的第一参数范围内时,就认为第一无线网络和第二无线网络之间会产生干扰;当参数间隔值超出预设的第一参数范围时,认为第一无线网络和第二无线网络之间的不会产生干扰。In the embodiment provided by the present invention, the preset first parameter range refers to a preset range of parameter interval values for determining whether to switch the scanning mode. When the parameter interval value is within the preset first parameter range, it is considered that there will be interference between the first wireless network and the second wireless network; when the parameter interval value exceeds the preset first parameter range, it is considered that the first wireless network There will be no interference between the network and the second wireless network.
更进一步地说,扫描方式是指电子设备扫描无线网络的方式,具体地可以分为主动扫描方式和被动扫描方式。主动扫描方式是指电子设备在每个信道上都发出探测无线网络信号的请求,当某个无线网络工作站接收到该请求后就会予以回应。被动扫描方式是指电子设备定期侦听无线网络工作站发送的数据包,通过该数据包来识别和连接无线网络。Furthermore, the scanning mode refers to a mode in which an electronic device scans a wireless network, and can be specifically divided into an active scanning mode and a passive scanning mode. The active scanning method means that the electronic device sends a request to detect wireless network signals on each channel, and a wireless network workstation will respond after receiving the request. The passive scanning method means that the electronic device regularly listens to the data packets sent by the wireless network workstation, and uses the data packets to identify and connect to the wireless network.
在本发明提供的其他实施例中,检测到所述参数间隔值在预设的第二参数范围内,则关闭该第二无线网络。其中,预设的第二参数范围在预设的第一参数范围内。当参数间隔值在预设的第二参数范围内时,认为第一无线网络和第二无线网络之间产生干扰非常大,则直接关闭第二无线网络;当参数间隔值超出预设的第二参数范围,但在预设的第一参数范围内时,认为第一无线网络和第二无线网络之间的干扰非常小,只需将第二无线网络的扫描方式切换为被动扫描方式。In other embodiments provided by the present invention, when it is detected that the parameter interval value is within the preset second parameter range, the second wireless network is turned off. Wherein, the preset second parameter range is within the preset first parameter range. When the parameter interval value is within the preset second parameter range, it is considered that the interference between the first wireless network and the second wireless network is very large, and the second wireless network is directly closed; when the parameter interval value exceeds the preset second parameter range, but within the preset first parameter range, it is considered that the interference between the first wireless network and the second wireless network is very small, and it is only necessary to switch the scanning mode of the second wireless network to a passive scanning mode.
步骤S306,若预设业务执行结束,则将第二无线网络的扫描方式切换为主动扫描方式。In step S306, if the execution of the preset service is completed, the scanning mode of the second wireless network is switched to an active scanning mode.
在一个实施例中,当检测到预设业务执行结束或者第一无线网络关闭时,将第二无线网络的扫描方式切换到主动扫描方式,以保证电子设备能够及时获取可用的无线网络。In one embodiment, when it is detected that the execution of the preset service ends or the first wireless network is closed, the scanning mode of the second wireless network is switched to an active scanning mode, so as to ensure that the electronic device can obtain available wireless networks in time.
上述无线网络扫描方法,通过获取无线网络的频率属性参数来判断无线网络之间的干扰,当判断无线网络之间会产生干扰时,则将无线网络的扫描方式切换为被动扫描方式。由于被动扫描方式下,电子设备接收到无线网络工作站发送的信号往往会衰减到非常弱,所以电子设备在接收到的无线网络信号之间产生的干扰也会减小。当判断无线网络之间产生的干扰非常大时,直接将其中一个无线网络进行关闭,避免干扰。In the above wireless network scanning method, the interference between wireless networks is judged by acquiring the frequency attribute parameters of the wireless networks, and when it is judged that there will be interference between the wireless networks, the scanning mode of the wireless network is switched to a passive scanning mode. Since in the passive scanning mode, the signal received by the electronic device from the wireless network workstation tends to attenuate to a very weak level, the interference generated by the electronic device between the received wireless network signals will also be reduced. When it is judged that the interference generated between the wireless networks is very large, directly shut down one of the wireless networks to avoid interference.
图4为另一个实施例中无线网络扫描方法的流程图。如图4所示,该无线网络扫描方法包括步骤S402至步骤S414,其中:Fig. 4 is a flowchart of a wireless network scanning method in another embodiment. As shown in Figure 4, the wireless network scanning method includes steps S402 to S414, wherein:
步骤S402,判断是否使用LTE语音业务,若是,则执行步骤S404;若否,则继续执行步骤S402。Step S402, judging whether to use the LTE voice service, if yes, execute step S404; if not, continue to execute step S402.
在本发明提供的实施例中,LTE语音业务是指使用无线网络LTE来执行的语音业务,例如通过无线网络LTE进行语音通话、视频通话等业务。定时检测是否使用LTE语音业务,当检测到电子设备使用LTE语音业务时,则执行步骤S404;若未检测到LTE语音业务,则循环执行步骤S402。In the embodiments provided by the present invention, the LTE voice service refers to voice services performed by using the wireless network LTE, for example, services such as voice calls and video calls through the wireless network LTE. Regularly detect whether to use the LTE voice service, and when it is detected that the electronic device uses the LTE voice service, then execute step S404; if no LTE voice service is detected, then execute step S402 in a loop.
步骤S404,判断LTE频段与WLAN频段的间隔值是否大于预设间隔值,若是,则执行步骤S406;若否,则执行步骤S408。Step S404, judging whether the interval between the LTE frequency band and the WLAN frequency band is greater than a preset interval, if yes, execute step S406; if not, execute step S408.
具体地,LTE频段是指执行语音业务的无线网络LTE的工作频段,WLAN频段是指无线网络WLAN的工作频段。若LTE频段与WLAN频段的间隔值大于预设间隔值,则认为无线网络LTE与无线网络WLAN之间不存在干扰,则执行步骤S406;若LTE频段与WLAN频段的间隔值小于或等于预设间隔值,则认为无线网络LTE与无线网络WLAN之间存在干扰,则执行步骤S408。Specifically, the LTE frequency band refers to a working frequency band of the wireless network LTE performing voice services, and the WLAN frequency band refers to a working frequency band of the wireless network WLAN. If the interval value between the LTE frequency band and the WLAN frequency band is greater than the preset interval value, it is considered that there is no interference between the wireless network LTE and the wireless network WLAN, and then step S406 is performed; if the interval value between the LTE frequency band and the WLAN frequency band is less than or equal to the preset interval value, it is considered that there is interference between the wireless network LTE and the wireless network WLAN, and step S408 is executed.
步骤S406,无线网络WLAN维持主动扫描方式。In step S406, the wireless network WLAN maintains an active scanning mode.
其中,无线网络WLAN的初始扫描方式为主动扫描方式,根据步骤S404判断无线网络LTE与无线网络WLAN之间不存在干扰,则维持无线网络WLAN的主动扫描方式。Wherein, the initial scanning mode of the wireless network WLAN is an active scanning mode, and according to step S404 it is determined that there is no interference between the wireless network LTE and the wireless network WLAN, and the active scanning mode of the wireless network WLAN is maintained.
步骤S408,将WLAN的扫描方式由主动扫描方式切换为被动扫描方式。Step S408, switching the scanning mode of the WLAN from an active scanning mode to a passive scanning mode.
在本发明提供的实施例中,根据步骤S406判断无线网络LTE与无线网络WLAN之间存在干扰,则将无线网络WLAN的扫描方式由主动扫描方式切换为被动扫描方式。In the embodiment provided by the present invention, according to step S406, it is determined that there is interference between the wireless network LTE and the wireless network WLAN, and then the scanning mode of the wireless network WLAN is switched from an active scanning mode to a passive scanning mode.
步骤S410,判断LTE语音业务是否结束,若否,则执行步骤S412;若是,则执行步骤S414。Step S410, determine whether the LTE voice service is over, if not, execute step S412; if yes, execute step S414.
在一个实施例中,判断LTE语音业务是否结束,当LTE语音业务结束后,无线网络WLAN的信号会干扰LTE语音业务的执行,则执行步骤S414;否则,无线网络WLAN的信号将不会再干扰LTE语音业务的执行,则执行步骤S412。In one embodiment, it is determined whether the LTE voice service is over. When the LTE voice service is over, the signal of the wireless network WLAN will interfere with the execution of the LTE voice service, and step S414 is performed; otherwise, the signal of the wireless network WLAN will no longer interfere. For the execution of the LTE voice service, step S412 is performed.
步骤S412,维持无线网络WLAN的被动扫描方式。Step S412, maintaining the passive scanning mode of the wireless network WLAN.
若LTE语音业务还未结束,认为无线网络WLAN的信号会干扰LTE语音业务的执行,则继续维持无线网络WLAN的被动扫描方式。If the LTE voice service has not ended and it is considered that the signal of the wireless network WLAN will interfere with the execution of the LTE voice service, the passive scanning mode of the wireless network WLAN will continue to be maintained.
步骤S414,将WLAN的扫描方式由被动扫描方式切换为主动扫描方式。Step S414, switching the scanning mode of the WLAN from the passive scanning mode to the active scanning mode.
也就是说,若LTE语音业务结束,则无线网络WLAN的信号将不会再干扰LTE语音业务的执行,则将WLAN的扫描方式由被动扫描方式切换为主动扫描方式。That is to say, if the LTE voice service ends, the signal of the wireless network WLAN will no longer interfere with the execution of the LTE voice service, and the scanning mode of the WLAN is switched from a passive scanning mode to an active scanning mode.
图5为一个实施例中无线网络扫描装置的结构示意图。如图5所示,该无线网络扫描装置包括参数获取模块502和方式切换模块504。其中:FIG. 5 is a schematic structural diagram of a wireless network scanning device in an embodiment. As shown in FIG. 5 , the wireless network scanning device includes a parameter acquisition module 502 and a mode switching module 504 . in:
参数获取模块502,用于获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值。The parameter obtaining module 502 is configured to obtain a parameter interval value between frequency attribute parameters of the first wireless network and the second wireless network.
方式切换模块504,用于若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。The mode switching module 504 is configured to switch the scanning mode of the second wireless network to a passive scanning mode if the parameter interval value is within a preset first parameter range.
上述无线网络扫描装置,通过获取无线网络的频率属性参数来判断无线网络之间的干扰,当无线网络之间的产生干扰时,将无线网络的扫描方式切换为被动扫描方式。由于被动扫描方式下,电子设备接收到无线网络工作站发送的信号往往会衰减到非常弱,所以电子设备在接收到的无线网络信号之间产生的干扰也会减小。The above wireless network scanning device judges the interference between wireless networks by acquiring the frequency attribute parameters of the wireless networks, and switches the scanning mode of the wireless network to a passive scanning mode when interference occurs between the wireless networks. Since in the passive scanning mode, the signal received by the electronic device from the wireless network workstation tends to attenuate to a very weak level, the interference generated by the electronic device between the received wireless network signals will also be reduced.
图6为另一个实施例中无线网络扫描装置的结构示意图。如图6所示,该无线网络扫描装置包括参数获取模块602、方式切换模块604和网络关闭模块606。其中:Fig. 6 is a schematic structural diagram of a wireless network scanning device in another embodiment. As shown in FIG. 6 , the wireless network scanning device includes a parameter acquiring module 602 , a mode switching module 604 and a network closing module 606 . in:
参数获取模块602,用于获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值。A parameter acquisition module 602, configured to acquire a parameter interval value between frequency attribute parameters of the first wireless network and the second wireless network.
方式切换模块604,用于若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。A mode switching module 604, configured to switch the scanning mode of the second wireless network to a passive scanning mode if the parameter interval value is within a preset first parameter range.
网络关闭模块606,用于若所述参数间隔值在预设的第二参数范围内,则关闭所述第二无线网络。A network closing module 606, configured to close the second wireless network if the parameter interval value is within the preset second parameter range.
在本发明提供的其他实施例中,参数获取模块602还用于若所述第一无线网络为预设无线网络,则获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值In other embodiments provided by the present invention, the parameter obtaining module 602 is further configured to obtain the parameter interval between the frequency attribute parameters of the first wireless network and the second wireless network if the first wireless network is a preset wireless network value
更进一步地,参数获取模块602还用于若检测到通过第一无线网络执行预设业务,则获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值。Furthermore, the parameter acquiring module 602 is further configured to acquire a parameter interval value between frequency attribute parameters of the first wireless network and the second wireless network if it is detected that the preset service is executed through the first wireless network.
在一个实施例中,方式切换模块604还用于方式切换模块还用于若所述预设业务执行结束,则将所述第二无线网络的扫描方式切换为主动扫描方式。In one embodiment, the mode switching module 604 is further configured to switch the scanning mode of the second wireless network to an active scanning mode if the execution of the preset service ends.
上述无线网络扫描装置中各个模块的划分仅用于举例说明,在其他实施例中,可将无线网络扫描装置按照需要划分为不同的模块,以完成上述无线网络扫描装置的全部或部分功能。The division of each module in the above-mentioned wireless network scanning device is only for illustration. In other embodiments, the wireless network scanning device can be divided into different modules according to needs, so as to complete all or part of the functions of the above-mentioned wireless network scanning device.
一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现以下步骤:A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值;Obtain the parameter interval value between the frequency attribute parameters of the first wireless network and the second wireless network;
若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。If the parameter interval value is within the preset first parameter range, the scanning mode of the second wireless network is switched to a passive scanning mode.
一种计算机设备,包括存储器,处理器及存储在存储器上并可在处理器上运行的计算机程序(指令),所述处理器执行所述程序时实现以下步骤:A computer device, comprising a memory, a processor and a computer program (instruction) stored on the memory and operable on the processor, the processor implements the following steps when executing the program:
获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值;Obtain the parameter interval value between the frequency attribute parameters of the first wireless network and the second wireless network;
若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。If the parameter interval value is within the preset first parameter range, the scanning mode of the second wireless network is switched to a passive scanning mode.
本发明实施例还提供了一种计算机设备。如图7所示,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例方法部分。该计算机设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以计算机设备为手机为例:The embodiment of the invention also provides a computer device. As shown in FIG. 7 , for ease of description, only the parts related to the embodiments of the present invention are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present invention. The computer device can be any terminal device including mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle-mounted computer, wearable device, etc., taking the computer device as a mobile phone as an example :
图7为与本发明实施例提供的计算机设备相关的手机的部分结构的框图。参考图7,手机包括:射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线保真(wireless fidelity,WiFi)模块770、处理器780、以及电源790等部件。本领域技术人员可以理解,图7所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 7 is a block diagram of a partial structure of a mobile phone related to a computer device provided by an embodiment of the present invention. 7, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (wireless fidelity, WiFi) module 770, a processor 780 , and power supply 790 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 7 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
其中,RF电路710可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器780处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System ofMobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband CodeDivision Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。Among them, the RF circuit 710 can be used for sending and receiving information or receiving and sending signals during a call. After receiving the downlink information from the base station, it can be processed by the processor 780; it can also send uplink data to the base station. Generally, an RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 710 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器720可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 720 can be used to store software programs and modules, and the processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720 . The memory 720 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.); The data storage area can store data created according to the use of the mobile phone (such as audio data, address book, etc.) and the like. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元730可用于接收输入的数字或字符信息,以及产生与手机700的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 730 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone 700 . Specifically, the input unit 730 may include a touch panel 731 and other input devices 732 . The touch panel 731, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 731 or near the touch panel 731 operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 731 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 731 , the input unit 730 may also include other input devices 732 . Specifically, other input devices 732 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), and the like.
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元740可包括显示面板741。在一个实施例中,可以采用液晶显示器(LiquidCrystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板741。在一个实施例中,触控面板731可覆盖显示面板741,当触控面板731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图7中,触控面板731与显示面板741是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板731与显示面板741集成而实现手机的输入和输出功能。The display unit 740 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741 . In one embodiment, the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 731 can cover the display panel 741, and when the touch panel 731 detects a touch operation on or near it, the touch operation is sent to the processor 780 to determine the type of the touch event, and then the processor 780 according to the The type of touch event provides a corresponding visual output on the display panel 741 . Although in FIG. 7, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
手机700还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在手机移动到耳边时,关闭显示面板741和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。Cell phone 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and/or when the mobile phone is moved to the ear. or backlight. The motion sensor can include an acceleration sensor, through which the magnitude of acceleration in various directions can be detected, and the magnitude and direction of gravity can be detected when stationary, and can be used for applications that recognize the attitude of a mobile phone (such as switching between horizontal and vertical screens), vibration recognition related functions (such as pedometer, tap), etc.; in addition, the mobile phone can also be equipped with gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors.
音频电路760、扬声器761和传声器762可提供用户与手机之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710可以发送给另一手机,或者将音频数据输出至存储器720以便后续处理。Audio circuitry 760, speaker 761 and microphone 762 may provide an audio interface between the user and the handset. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the speaker 761 converts it into an audio signal for output; After being received, it is converted into audio data, and after being processed by the output processor 780, the audio data can be sent to another mobile phone through the RF circuit 710, or the audio data can be output to the memory 720 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块770,但是可以理解的是,其并不属于手机700的必须构成,可以根据需要而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 770, which provides users with wireless broadband Internet access. Although FIG. 7 shows a WiFi module 770, it can be understood that it is not an essential component of the mobile phone 700 and can be omitted as required.
处理器780是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器780可包括一个或多个处理单元。在一个实施例中,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 720, and calling data stored in the memory 720, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. In one embodiment, processor 780 may include one or more processing units. In one embodiment, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, etc.; the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 780 .
手机700还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 700 also includes a power supply 790 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 780 through a power management system, so that functions such as charging, discharging, and power consumption management can be realized through the power management system.
在一个实施例中,手机700还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 700 may also include a camera, a Bluetooth module, and the like.
在本发明实施例中,该移动终端所包括的处理器780还具有以下功能:In the embodiment of the present invention, the processor 780 included in the mobile terminal also has the following functions:
获取第一无线网络和第二无线网络的频率属性参数之间的参数间隔值;Obtain the parameter interval value between the frequency attribute parameters of the first wireless network and the second wireless network;
若所述参数间隔值在预设的第一参数范围内,则将所述第二无线网络的扫描方式切换为被动扫描方式。If the parameter interval value is within the preset first parameter range, the scanning mode of the second wireless network is switched to a passive scanning mode.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct related hardware, and the programs can be stored in a non-volatile computer-readable storage medium When the program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) and the like.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710112824.1A CN106851690A (en) | 2017-02-28 | 2017-02-28 | Wireless network scanning method, device and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710112824.1A CN106851690A (en) | 2017-02-28 | 2017-02-28 | Wireless network scanning method, device and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106851690A true CN106851690A (en) | 2017-06-13 |
Family
ID=59137558
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710112824.1A Pending CN106851690A (en) | 2017-02-28 | 2017-02-28 | Wireless network scanning method, device and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106851690A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107820303A (en) * | 2017-12-13 | 2018-03-20 | 广东欧珀移动通信有限公司 | Mobile terminal wireless local area network scanning method and device, computer equipment |
CN108064035A (en) * | 2017-11-28 | 2018-05-22 | 广东欧珀移动通信有限公司 | Communication control method and device for electronic equipment, and electronic equipment |
CN110740463A (en) * | 2018-07-19 | 2020-01-31 | 中兴通讯股份有限公司 | method and device for reducing signal interference |
CN113613230A (en) * | 2021-10-09 | 2021-11-05 | 荣耀终端有限公司 | Scanning parameter determination method and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100309893A1 (en) * | 2009-06-05 | 2010-12-09 | Jing Zhu | Techniques for detecting beacons on wireless channels |
CN103716857A (en) * | 2012-09-28 | 2014-04-09 | 华为技术有限公司 | Scanning method, user equipment and base station |
CN104137497A (en) * | 2012-02-27 | 2014-11-05 | 高通股份有限公司 | Generating a search set of television white space channels based on location information |
CN106131898A (en) * | 2016-06-21 | 2016-11-16 | 广东欧珀移动通信有限公司 | Method, device and the mobile terminal of a kind of handover access access point |
CN106211293A (en) * | 2016-08-26 | 2016-12-07 | 广东欧珀移动通信有限公司 | A control method, device and mobile terminal for wireless fidelity function |
CN106330211A (en) * | 2016-08-31 | 2017-01-11 | 广东欧珀移动通信有限公司 | LTE frequency band selection method and equipment |
CN106332238A (en) * | 2016-08-19 | 2017-01-11 | 广东欧珀移动通信有限公司 | A wireless local area network channel scanning method, device and mobile terminal |
-
2017
- 2017-02-28 CN CN201710112824.1A patent/CN106851690A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100309893A1 (en) * | 2009-06-05 | 2010-12-09 | Jing Zhu | Techniques for detecting beacons on wireless channels |
CN104137497A (en) * | 2012-02-27 | 2014-11-05 | 高通股份有限公司 | Generating a search set of television white space channels based on location information |
CN103716857A (en) * | 2012-09-28 | 2014-04-09 | 华为技术有限公司 | Scanning method, user equipment and base station |
CN106131898A (en) * | 2016-06-21 | 2016-11-16 | 广东欧珀移动通信有限公司 | Method, device and the mobile terminal of a kind of handover access access point |
CN106332238A (en) * | 2016-08-19 | 2017-01-11 | 广东欧珀移动通信有限公司 | A wireless local area network channel scanning method, device and mobile terminal |
CN106211293A (en) * | 2016-08-26 | 2016-12-07 | 广东欧珀移动通信有限公司 | A control method, device and mobile terminal for wireless fidelity function |
CN106330211A (en) * | 2016-08-31 | 2017-01-11 | 广东欧珀移动通信有限公司 | LTE frequency band selection method and equipment |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108064035A (en) * | 2017-11-28 | 2018-05-22 | 广东欧珀移动通信有限公司 | Communication control method and device for electronic equipment, and electronic equipment |
CN108064035B (en) * | 2017-11-28 | 2020-10-13 | Oppo广东移动通信有限公司 | Communication control method and device of electronic equipment and electronic equipment |
CN107820303A (en) * | 2017-12-13 | 2018-03-20 | 广东欧珀移动通信有限公司 | Mobile terminal wireless local area network scanning method and device, computer equipment |
CN110740463A (en) * | 2018-07-19 | 2020-01-31 | 中兴通讯股份有限公司 | method and device for reducing signal interference |
CN113613230A (en) * | 2021-10-09 | 2021-11-05 | 荣耀终端有限公司 | Scanning parameter determination method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10142845B2 (en) | Network connection method and apparatus, and computer storage medium | |
WO2018103492A1 (en) | Method for setting wifi roaming, and terminal device | |
KR20200112933A (en) | Downlink channel reception method, transmission method, terminal and base station | |
US10813058B2 (en) | Method for processing information and terminal device | |
CN107231159B (en) | Radio frequency interference processing method, device, storage medium and terminal | |
WO2017080378A1 (en) | Method implementing licensed-assisted access, network equipment, and terminal equipment | |
JP7565335B2 (en) | COMMUNICATION PROCESSING METHOD, COMMUNICATION PROCESSING DEVICE, TERMINAL EQUIPMENT, AND STORAGE MEDIUM | |
CN107734586B (en) | Antenna switching method and mobile terminal | |
CN111343699A (en) | Icon display method, device, storage medium and electronic device | |
EP4138430A1 (en) | Service processing method, user equipment, and computer-readable storage medium | |
CN106604314A (en) | Network access method and terminal equipment for WiFi roaming | |
CN106454810A (en) | A method and terminal equipment for establishing a hotspot | |
CN107820303B (en) | Mobile terminal wireless local area network scanning method and device and computer equipment | |
CN108391277B (en) | Signal connection method, device, mobile terminal and computer readable storage medium | |
CN106358254A (en) | Network access control method and equipment | |
CN111800794B (en) | Method and equipment for determining demodulation reference signal position | |
WO2018145477A1 (en) | Network access method and terminal | |
CN106851690A (en) | Wireless network scanning method, device and computer equipment | |
CN106330211A (en) | LTE frequency band selection method and equipment | |
CN107846723A (en) | Wireless local area network scanning method, device, computer equipment and storage medium | |
CN108540146A (en) | A kind of method, apparatus and computer storage media of antenna switching | |
CN107969025B (en) | Mobile terminal wireless local area network scanning method and device and computer equipment | |
CN107896385B (en) | Mobile terminal wireless local area network scanning method and device and computer equipment | |
CN106982459A (en) | Network scanning method and terminal equipment | |
CN107896381B (en) | Mobile terminal wireless local area network scanning method and device, computer 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170613 |