CN112740827B - Network communication processing method, computer-readable storage medium, and electronic device - Google Patents

Network communication processing method, computer-readable storage medium, and electronic device Download PDF

Info

Publication number
CN112740827B
CN112740827B CN201880097944.1A CN201880097944A CN112740827B CN 112740827 B CN112740827 B CN 112740827B CN 201880097944 A CN201880097944 A CN 201880097944A CN 112740827 B CN112740827 B CN 112740827B
Authority
CN
China
Prior art keywords
wireless network
network
state
signal strength
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201880097944.1A
Other languages
Chinese (zh)
Other versions
CN112740827A (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
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co 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, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN112740827A publication Critical patent/CN112740827A/en
Application granted granted Critical
Publication of CN112740827B publication Critical patent/CN112740827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

一种网络通信处理方法,包括:检测电子设备与第一无线网络之间的连接状态;当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;基于所述网络信号强度,调整所述第二无线网络的测量策略。

Figure 201880097944

A network communication processing method, comprising: detecting a connection state between an electronic device and a first wireless network; when the connection state is a connection establishment state, acquiring a network signal strength of a second wireless network; based on the network signal strength , adjusting the measurement policy of the second wireless network.

Figure 201880097944

Description

网络通信处理方法、计算机可读存储介质和电子设备Network communication processing method, computer readable storage medium and electronic device

技术领域technical field

本申请涉及计算机通信技术领域,特别是涉及一种网络通信处理方法、计算机可读存储介质和电子设备。The present application relates to the technical field of computer communication, and in particular to a network communication processing method, a computer-readable storage medium and electronic equipment.

背景技术Background technique

随着计算机通信技术的快速发展,电子设备可以通过无线局域网络或移动通信系统实现无线通信功能。当电子设备处于无线局域网络覆盖区域时,通常会采用无线局域网络实现无线通信功能,此时电子设备的移动通信系统仍处于工作状态,存在功耗较大的问题。With the rapid development of computer communication technology, electronic devices can realize wireless communication functions through wireless local area networks or mobile communication systems. When the electronic device is in the coverage area of the wireless local area network, the wireless local area network is usually used to realize the wireless communication function. At this time, the mobile communication system of the electronic device is still in the working state, and there is a problem of high power consumption.

发明内容Contents of the invention

根据本申请的各种实施例提供一种网络通信处理方法、计算机可读存储介质和电子设备。Various embodiments according to the present application provide a network communication processing method, a computer-readable storage medium, and an electronic device.

一种网络通信处理方法,包括:A network communication processing method, comprising:

检测电子设备与第一无线网络之间的连接状态;Detecting a connection status between the electronic device and the first wireless network;

当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is a connection establishment state, acquire the network signal strength of the second wireless network; and

基于所述网络信号强度,调整所述第二无线网络的测量策略。Adjusting a measurement policy of the second wireless network based on the network signal strength.

一个或多个包含计算机可执行指令的计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下操作:One or more computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to:

检测电子设备与第一无线网络之间的连接状态;Detecting a connection status between the electronic device and the first wireless network;

当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is a connection establishment state, acquire the network signal strength of the second wireless network; and

基于所述网络信号强度,调整所述第二无线网络的测量策略。Adjusting a measurement policy of the second wireless network based on the network signal strength.

一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下操作:An electronic device includes a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor performs the following operations:

检测电子设备与第一无线网络之间的连接状态;Detecting a connection status between the electronic device and the first wireless network;

当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is a connection establishment state, acquire the network signal strength of the second wireless network; and

基于所述网络信号强度,调整所述第二无线网络的测量策略。Adjusting a measurement policy of the second wireless network based on the network signal strength.

上述网络通信处理方法、计算机可读存储介质和电子设备,通过检测电子设备与第一无线网络之间的连接状态,当连接状态为连接建立状态时,获取第二无线网络的网络信号强度,基于网络信号强度,调整第二无线网络的测量策略。由于可以在第一无线网络处于连接建立状态时,根据第二无线网络的网络信号强度调整第二无线网络的测量策略,可以更准确地对第二无线网络的测量策略进行调整,不同的测量策略所耗费的功耗不同,因此根据网络信号强度调节测量策略后,可以降低电子设备的功耗。The above network communication processing method, computer-readable storage medium and electronic device, by detecting the connection state between the electronic device and the first wireless network, when the connection state is the connection establishment state, obtain the network signal strength of the second wireless network, based on Network signal strength, adjust the measurement strategy of the second wireless network. Since the measurement strategy of the second wireless network can be adjusted according to the network signal strength of the second wireless network when the first wireless network is in the connection establishment state, the measurement strategy of the second wireless network can be adjusted more accurately. Different measurement strategies The power consumption is different, so after adjusting the measurement strategy according to the network signal strength, the power consumption of electronic equipment can be reduced.

本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features, objects and advantages of the present application will be apparent from the description, drawings and claims.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为一个实施例中网络通信处理方法的应用环境图。Fig. 1 is an application environment diagram of a network communication processing method in an embodiment.

图2为一个实施例中网络通信处理方法的流程图。Fig. 2 is a flowchart of a network communication processing method in an embodiment.

图3为一个实施例中调整第二无线网络的测量频率的流程图。Fig. 3 is a flowchart of adjusting the measurement frequency of the second wireless network in one embodiment.

图4为一个实施例中调整无线网络的测量频率的流程图。Figure 4 is a flowchart of adjusting the measurement frequency of a wireless network in one embodiment.

图5为一个实施例中网络通信处理装置的结构框图。Fig. 5 is a structural block diagram of a network communication processing device in an embodiment.

图6为一个实施例中电子设备的内部结构示意图。Fig. 6 is a schematic diagram of the internal structure of an electronic device in one embodiment.

图7为与本申请实施例提供的电子设备相关的手机的部分结构的框图。Fig. 7 is a block diagram of a partial structure of a mobile phone related to the electronic device provided by the embodiment of the present application.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application 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 application, and are not intended to limit the present application.

可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一无线网络称为第二无线网络,且类似地,可将第二无线网络称为第一无线网络。第一无线网络和第二无线网络两者都是无线网络,但其不是同一无线网络。It can be understood that the terms "first", "second" and the like used in this application may 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 wireless network could be termed a second wireless network, and, similarly, a second wireless network could be termed a first wireless network, without departing from the scope of the present application. Both the first wireless network and the second wireless network are wireless networks, but they are not the same wireless network.

图1为一个实施例中网络通信处理方法的应用环境图。如图1所示,该应用环境包括电子设备110、第一无线网络120和第二无线网络130。具体地,电子设备110可以检测电子设备110与第一无线网络120之间的连接状态,当连接状态为连接建立状态时,电子设备110获取第二无线网络130的网络信号强度,基于网络信号强度,调整第二无线网络130的测量策略。其中,第一无线网络120可以是由无线交换机、无线路由器、无线网关、无线网桥等无线接入点形成的无线局域网络。第二无线网路130是指移动通信网络。具体地,第二无线网路130可以是支持4G(第四代移动通信技术)、3G(第三代移动通信技术)、2G(第二代移动通信技术)等移动通信技术的移动通信网络。上述电子设备110可以是手机、电脑、可穿戴设备等,在此不做限定。Fig. 1 is an application environment diagram of a network communication processing method in an embodiment. As shown in FIG. 1 , the application environment includes an electronic device 110 , a first wireless network 120 and a second wireless network 130 . Specifically, the electronic device 110 may detect the connection state between the electronic device 110 and the first wireless network 120, and when the connection state is the connection establishment state, the electronic device 110 acquires the network signal strength of the second wireless network 130, and based on the network signal strength , to adjust the measurement policy of the second wireless network 130 . Wherein, the first wireless network 120 may be a wireless local area network formed by wireless access points such as wireless switches, wireless routers, wireless gateways, and wireless bridges. The second wireless network 130 refers to a mobile communication network. Specifically, the second wireless network 130 may be a mobile communication network supporting mobile communication technologies such as 4G (fourth generation mobile communication technology), 3G (third generation mobile communication technology), and 2G (second generation mobile communication technology). The above-mentioned electronic device 110 may be a mobile phone, a computer, a wearable device, etc., which is not limited here.

图2为一个实施例中网络通信处理方法的流程图。本实施例中的网络通信处理方法,以运行于图1中的电子设备110上为例进行描述。如图2所示,网络通信处理方法包括操作202至操作206。其中:Fig. 2 is a flowchart of a network communication processing method in an embodiment. The network communication processing method in this embodiment is described by taking the electronic device 110 running on the electronic device 110 in FIG. 1 as an example. As shown in FIG. 2 , the network communication processing method includes operation 202 to operation 206 . in:

操作202,检测电子设备与第一无线网络之间的连接状态。Operation 202, detecting a connection status between the electronic device and the first wireless network.

连接状态是指电子设备与第一无线网络之间的连接情况。连接状态可以包括连接建立状态,连接断开状态,漫游状态等。第一无线网络可以是由无线交换机、无线路由器、无线网关、无线网桥等无线接入点形成的无线局域网络。电子设备可以与第一无线网络连接,从而实现无线上网功能。具体地,电子设备可以通过AP(Application Processor,应用处理器)监听电子设备与第一无线网络之间的连接状态。The connection status refers to the connection status between the electronic device and the first wireless network. The connection state may include connection establishment state, connection disconnection state, roaming state and so on. The first wireless network may be a wireless local area network formed by wireless access points such as wireless switches, wireless routers, wireless gateways, and wireless bridges. The electronic device can be connected to the first wireless network, so as to realize the wireless Internet access function. Specifically, the electronic device may monitor the connection status between the electronic device and the first wireless network through an AP (Application Processor, application processor).

操作204,当连接状态为连接建立状态时,获取第二无线网络的网络信号强度。Operation 204, when the connection state is the connection establishment state, acquire the network signal strength of the second wireless network.

连接建立状态是指电子设备与无线局域网络建立连接,通过无线局域网络实现无线通信功能的状态。第二无线网络可以是支持4G、3G、2G等移动通信技术的移动通信网络。电子设备中包含有modem(调制解调器)通信模块,modem通信模块可以用于将基带信号转化为射频信号,以及将射频信号转化为基带信号等。电子设备开启第二无线网络功能时,可以通过modem通信模块实现第二无线网络的连接。第二无线网络的网络信号强度可以用RSRP(Reference Signal Receiving Power,参考信号接收功率)表示,RSRP用于标识测量频率带宽上承载参考信号的资源元素上的接收功率的线性平均值。在一些实施例中,第二无线网络的网络信号强度也可以通过网络传输速率、移动通信技术、丢包率等中的一种或多种综合考虑,在此不做限定。The connection establishment state refers to a state in which the electronic device establishes a connection with the wireless local area network and realizes a wireless communication function through the wireless local area network. The second wireless network may be a mobile communication network supporting mobile communication technologies such as 4G, 3G, and 2G. The electronic device includes a modem (modem) communication module, and the modem communication module can be used to convert a baseband signal into a radio frequency signal, and convert a radio frequency signal into a baseband signal. When the electronic device starts the function of the second wireless network, the connection to the second wireless network can be realized through the modem communication module. The network signal strength of the second wireless network can be represented by RSRP (Reference Signal Receiving Power, reference signal received power), and RSRP is used to identify the linear average value of the received power on the resource elements bearing the reference signal on the measurement frequency bandwidth. In some embodiments, the network signal strength of the second wireless network may also be comprehensively considered by one or more of network transmission rate, mobile communication technology, packet loss rate, etc., which is not limited herein.

当电子设备检测到与第一无线网络的连接状态为连接建立状态时,获取第二无线网络的网络信号强度,具体地,电子设备可以获取与电子设备建立第二无线网络连接的小区的网络信号强度。When the electronic device detects that the connection state with the first wireless network is the connection establishment state, obtain the network signal strength of the second wireless network, specifically, the electronic device may obtain the network signal of the cell that establishes the second wireless network connection with the electronic device strength.

操作206,基于网络信号强度,调整第二无线网络的测量策略。Operation 206, adjust a measurement policy of the second wireless network based on the network signal strength.

第二无线网络的测量策略是指对小区信号进行测量的策略。具体地,电子设备可以通过modem通信模块对小区信号进行测量。小区是指在移动通信系统中,其中的一个基站或基站的一部分(扇形天线)所覆盖的区域,处于该区域的电子设备可以通过无线信道与基站进行通信。电子设备进行测量的功耗高于未进行测量时的功耗,进一步地,电子设备进行测量的频率越高,则modem通信模块的功耗越大。电子设备调整第二无线网络的测量策略,具体地,电子设备可以根据网络信号强度的高低来确定是否进行小区信号测量,也可以划分不同网络信号强度对应的测量频率,从而将modem模块的测量频率调整为获取的网络信号强度对应的测量频率。The measurement strategy of the second wireless network refers to a strategy for measuring cell signals. Specifically, the electronic device can measure cell signals through the modem communication module. A cell refers to an area covered by a base station or a part of a base station (sector antenna) in a mobile communication system, and electronic devices in this area can communicate with the base station through a wireless channel. The power consumption of the electronic device for measurement is higher than the power consumption when the measurement is not performed. Further, the higher the frequency of the electronic device for measurement, the greater the power consumption of the modem communication module. The electronic device adjusts the measurement strategy of the second wireless network. Specifically, the electronic device can determine whether to perform cell signal measurement according to the level of network signal strength, and can also divide measurement frequencies corresponding to different network signal strengths, so that the measurement frequency of the modem module Adjust to the measurement frequency corresponding to the acquired network signal strength.

电子设备基于网络信号强度,调整第二无线网络的测量策略。具体地,电子设备可以预设不同网络信号强度对应的测量策略,从而根据与获取的网络信号强度相对应的测量策略对第二无线网络进行调整。The electronic device adjusts the measurement policy of the second wireless network based on the network signal strength. Specifically, the electronic device may preset measurement strategies corresponding to different network signal strengths, so as to adjust the second wireless network according to the acquired measurement strategies corresponding to the network signal strengths.

本申请实施例提供的网络通信处理方法,通过检测电子设备与第一无线网络之间的连接状态,当连接状态为连接建立状态时,获取第二无线网络的网络信号强度,基于网络信号强度调整第二无线网络的测量策略。由于可以在电子设备与第一无线网络处于连接建立状态时,根据第二无线网络的网络信号强度调整第二无线网络的测量策略,不同的测量策略所耗费的功耗不同,因此根据网络信号强度调节测量策略后,可以降低modem通信模块及电子设备的功耗,避免了第二无线网络采用统一的测量策略而导致的电子设备功耗过大的问题,,增加电子设备的续航时间。The network communication processing method provided by the embodiment of the present application detects the connection state between the electronic device and the first wireless network, and when the connection state is the connection establishment state, obtains the network signal strength of the second wireless network, and adjusts the network signal strength based on the network signal strength. A measurement strategy for the second wireless network. Since the measurement strategy of the second wireless network can be adjusted according to the network signal strength of the second wireless network when the electronic device is in the connection establishment state with the first wireless network, different measurement strategies consume different power consumption, so according to the network signal strength After adjusting the measurement strategy, the power consumption of the modem communication module and the electronic equipment can be reduced, avoiding the problem of excessive power consumption of the electronic equipment caused by the second wireless network adopting a unified measurement strategy, and increasing the battery life of the electronic equipment.

在一个实施例中,提供的网络通信处理方法中基于网络信号强度,调整第二无线网络的测量策略的过程包括:当网络信号强度超过第一强度阈值时,调整第二无线网络的测量频率,其中,测量频率是进行小区信号测量的频率。In one embodiment, the process of adjusting the measurement strategy of the second wireless network based on the network signal strength in the provided network communication processing method includes: when the network signal strength exceeds the first strength threshold, adjusting the measurement frequency of the second wireless network, Wherein, the measurement frequency is a frequency for performing cell signal measurement.

网络信号强度可以用RSRP表示,RSRP越大,则第二无线网络的网络信号强度越高,RSRP越小,则第二无线网络的网络信号强度越低。第一强度阈值可以根据实际需求设定。具体地,当第二无线网络的网络信号强度与第一强度阈值相同时,第二无线网络可以实现基本的移动通信业务。例如,第一强度阈值可以是-90dBm(分贝毫瓦)、-80dBm、-75dBm、-70dBm等不限于此。第二无线网络的测量频率是电子设备中包含的modem模块进行小区信号测量的频率。在电子设备中第二无线网络功能的运行过程中,随着电子设备的移动或其他因素,第二无线网络所在小区和其他小区的信号强度会不断发生变化,电子设备可以定时测量其他小区的网络信号强度,以选择更合适的小区。The network signal strength may be represented by RSRP, the larger the RSRP, the higher the network signal strength of the second wireless network, and the smaller the RSRP, the lower the network signal strength of the second wireless network. The first intensity threshold can be set according to actual needs. Specifically, when the network signal strength of the second wireless network is the same as the first strength threshold, the second wireless network can implement basic mobile communication services. For example, the first intensity threshold may be -90dBm (decibel milliwatts), -80dBm, -75dBm, -70dBm, etc. and is not limited thereto. The measurement frequency of the second wireless network is the frequency at which the modem module included in the electronic device performs cell signal measurement. During the operation of the second wireless network function in the electronic device, with the movement of the electronic device or other factors, the signal strength of the cell where the second wireless network is located and other cells will continue to change, and the electronic device can regularly measure the network of other cells Signal strength to select a more suitable cell.

当网络信号强度超过第一强度阈值时,电子设备调整第二无线网络的测量频率。具体地,电子设备可以降低第二无线网络的测量频率,具体的调整幅度可以根据实际需求进行设定,在此不做限定。When the network signal strength exceeds the first strength threshold, the electronic device adjusts the measurement frequency of the second wireless network. Specifically, the electronic device may reduce the measurement frequency of the second wireless network, and the specific adjustment range may be set according to actual needs, which is not limited herein.

电子设备中modem通信模块在进行小区信号测量时测量频率越高、则功耗越大,但可以保证第二无线网络的网络质量;测量频率越低,则功耗越小,但无法保证第二无线网络的网络质量。通过在第一无线网络处于连接建立状态时,当检测到第二无线网络的网络信号强度超过第一强度阈值时,再调整第二无线网络的测量频率,可以在保证电子设备网络质量的同时降低功耗。The higher the measurement frequency of the modem communication module in the electronic device is, the greater the power consumption will be, but it can guarantee the network quality of the second wireless network; the lower the measurement frequency, the smaller the power consumption, but it cannot guarantee the second wireless network quality. The network quality of the wireless network. By adjusting the measurement frequency of the second wireless network when it is detected that the network signal strength of the second wireless network exceeds the first strength threshold when the first wireless network is in the connection establishment state, the network quality of the electronic device can be reduced while ensuring the network quality of the electronic device. power consumption.

图3为一个实施例中调整第二无线网络的测量频率的流程图。如图3所示,在一个实施例中,提供的网络通信方法中调整第二无线网络的测量频率的过程包括:Fig. 3 is a flowchart of adjusting the measurement frequency of the second wireless network in one embodiment. As shown in FIG. 3, in one embodiment, the process of adjusting the measurement frequency of the second wireless network in the provided network communication method includes:

操作302,检测网络信号强度与第一强度阈值的强度差值。Operation 302, detecting a strength difference between network signal strength and a first strength threshold.

电子设备可以根据获取的网络信号强度和第一强度阈值计算网络信号强度与第一强度阈值之间的强度差值。The electronic device may calculate a strength difference between the network signal strength and the first strength threshold according to the acquired network signal strength and the first strength threshold.

操作304,获取与强度差值相对应的频率调节系数。Operation 304, acquiring a frequency adjustment coefficient corresponding to the intensity difference.

频率调节系数用于调整第二无线网络的测量频率。具体地,频率调节系数可以根据预设测量频率进行设定,其中,预设测量频率为电子设备预存的第二无线网络在通常的默认测量频率,在一个实施例中,预设测量频率可以是第一无线网络处于连接断开状态时,第二无线网络对应的测量频率。频率调节系数也可以根据电子设备当前采用的测量频率进行设定。The frequency adjustment coefficient is used to adjust the measurement frequency of the second wireless network. Specifically, the frequency adjustment coefficient can be set according to a preset measurement frequency, wherein the preset measurement frequency is the usual default measurement frequency of the second wireless network pre-stored in the electronic device. In one embodiment, the preset measurement frequency can be When the first wireless network is disconnected, the corresponding measurement frequency of the second wireless network. The frequency adjustment coefficient can also be set according to the measurement frequency currently adopted by the electronic equipment.

电子设备可以预存不同强度差值对应的频率调节系数,从而检测到网络信号强度与第一强度阈值之间的强度差值时,获取与该强度差值相对应的频率调节系数。The electronic device may pre-store frequency adjustment coefficients corresponding to different strength differences, so that when a strength difference between the network signal strength and the first strength threshold is detected, the frequency adjustment coefficient corresponding to the strength difference is obtained.

操作306,根据频率调节系数对第二无线网络的测量频率进行调整。Operation 306, adjust the measurement frequency of the second wireless network according to the frequency adjustment coefficient.

电子设备可以根据频率调节系数对第二无线网络的测量频率进行调整。例如,第二无线网络的预设测量频率为每50秒测量一次,当频率调节系数为0.8时,则调整后的测量频率为每40秒测量一次,当频率调节系数为0.5时,则调整后的测量频率为每25秒测量一次。在一个实施例中,电子设备也可以预设不同的网络信号强度对应的测量频率,进而直接将第二无线网络的测量频率调整为与获取的网络信号强度相对应的测量频率。The electronic device can adjust the measurement frequency of the second wireless network according to the frequency adjustment coefficient. For example, the preset measurement frequency of the second wireless network is to measure once every 50 seconds. When the frequency adjustment coefficient is 0.8, the adjusted measurement frequency is once every 40 seconds. When the frequency adjustment coefficient is 0.5, the adjusted The measurement frequency is one measurement every 25 seconds. In an embodiment, the electronic device may also preset measurement frequencies corresponding to different network signal strengths, and then directly adjust the measurement frequency of the second wireless network to the measurement frequency corresponding to the obtained network signal strength.

当网络信号强度超过第一强度阈值时,电子设备检测网络信号强度与第一强度阈值的强度差值,获取与强度差值相对应的频率调节系数,对第二无线网络的测量频率进行调整,可以提高测量策略调整的准确性。When the network signal strength exceeds the first strength threshold, the electronic device detects the strength difference between the network signal strength and the first strength threshold, acquires a frequency adjustment coefficient corresponding to the strength difference, and adjusts the measurement frequency of the second wireless network, The accuracy of measurement strategy adjustment can be improved.

在一个实施例中,提供的网络通信方法中调整第二无线网络的测量策略的过程还包括:当网络信号强度超过第二强度阈值时,禁止第二无线网络进行测量操作和重选操作中的至少一种,其中,第二强度阈值大于第一强度阈值。In one embodiment, the process of adjusting the measurement policy of the second wireless network in the provided network communication method further includes: prohibiting the second wireless network from performing measurement operations and reselection operations when the network signal strength exceeds a second strength threshold At least one, wherein the second intensity threshold is greater than the first intensity threshold.

第二强度阈值可以根据实际需求设定。第二强度阈值大于第一强度阈值,例如,当第一强度阈值为-90dBm,则第二强度阈值可以为-80dBm、-75dBm、-70dBm等不限于此;当第一强度阈值为-80dBm,则第二强度阈值可以为-75dBm、-70dBm、-63dBm等不限于此。重选操作是指电子设备根据小区信号测量的结果,选择更合适的小区进行第二无线网络连接的操作。电子设备可以在网络信号强度超过第二强度阈值时,禁止第二无线网络进行测量操作和重选操作中的至少一种,即禁止modem通信模块进行小区信号测量和小区重选中的至少一种。在一个实施例中,电子设备分别为禁止第二无线网络进行测量操作和重选操作设定不同的强度阈值。例如,当网络信号强度阈值超过测量阈值时,禁止第二无线网络进行测量操作;当网络信号强度阈值超过重选阈值时,禁止第二无线网络进行重选操作,其中,测量阈值和重选阈值均高于第一强度阈值,测量阈值可以等于或大于重选阈值。The second intensity threshold can be set according to actual needs. The second intensity threshold is greater than the first intensity threshold. For example, when the first intensity threshold is -90dBm, the second intensity threshold can be -80dBm, -75dBm, -70dBm, etc. and is not limited thereto; when the first intensity threshold is -80dBm, Then the second intensity threshold may be -75dBm, -70dBm, -63dBm, etc. and is not limited thereto. The reselection operation refers to an operation in which the electronic device selects a more suitable cell for connection to the second wireless network according to the result of cell signal measurement. The electronic device may prohibit the second wireless network from performing at least one of measurement operation and reselection operation when the network signal strength exceeds the second strength threshold, that is, prohibit the modem communication module from performing at least one of cell signal measurement and cell reselection. In one embodiment, the electronic device sets different strength thresholds for prohibiting the second wireless network from performing the measurement operation and the reselection operation respectively. For example, when the network signal strength threshold exceeds the measurement threshold, the second wireless network is prohibited from performing measurement operations; when the network signal strength threshold exceeds the reselection threshold, the second wireless network is prohibited from performing reselection operations, wherein the measurement threshold and the reselection threshold are above the first intensity threshold, the measurement threshold may be equal to or greater than the reselection threshold.

图4为一个实施例中调整无线网络的测量频率的流程图。如图4所示,在一个实施例中,提供的网络通信方法中调整无线网络的测量频率的过程包括:Figure 4 is a flowchart of adjusting the measurement frequency of a wireless network in one embodiment. As shown in FIG. 4, in one embodiment, the process of adjusting the measurement frequency of the wireless network in the provided network communication method includes:

操作402,检测第一无线网络是否处于无线通话状态。Operation 402, detecting whether the first wireless network is in a wireless call state.

第一无线网络处于无线通话状态是指电子设备通过第一无线网络与其他的电子设备进行无线通话的状态。具体地,无线通话可以是语音通话也可以是视频通话。电子设备可以在网络信号强度超过第一强度阈值时,检测第一无线网络是否处于无线通话状态。具体地,电子设备可以直接检测第一无线网络是否处于无线通话状态,也可以在电子设备处于无线通话状态时,检测无线通话状态是否采用第一无线网络进行无线通话。The first wireless network being in the wireless call state means that the electronic device is in a state of wireless call with other electronic devices through the first wireless network. Specifically, the wireless call may be a voice call or a video call. The electronic device may detect whether the first wireless network is in a wireless call state when the network signal strength exceeds a first strength threshold. Specifically, the electronic device may directly detect whether the first wireless network is in a wireless call state, or, when the electronic device is in a wireless call state, detect whether the first wireless network is used for a wireless call in the wireless call state.

操作404,当第一无线网络不处于无线通话状态时,调整第二无线网络的测量频率。Operation 404, when the first wireless network is not in a wireless communication state, adjust the measurement frequency of the second wireless network.

当第一无线网络不处于无线通话状态时,电子设备可以根据第二无线网络的网络信号强度调整第二无线网络的测量频率,可以避免测量频率的调整对无线通话的影响。当第一无线网络处于无线通话状态时,电子设备可以不对第二无线网络的测量频率做调整,可以保证通话质量。When the first wireless network is not in the wireless call state, the electronic device can adjust the measurement frequency of the second wireless network according to the network signal strength of the second wireless network, which can avoid the influence of the adjustment of the measurement frequency on the wireless call. When the first wireless network is in a wireless call state, the electronic device may not adjust the measurement frequency of the second wireless network, which can ensure call quality.

在一个实施例中,提供的网络通信方法中当连接状态为连接建立状态时,获取第二无线网络的网络信号强度的过程包括:当检测到第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取第二无线网络的网络信号强度。In one embodiment, in the provided network communication method, when the connection state is the connection establishment state, the process of obtaining the network signal strength of the second wireless network includes: when it is detected that the connection state of the first wireless network is switched from the connection disconnection state When the connection is established, the network signal strength of the second wireless network is acquired.

连接断开状态是指电子设备没有与无线局域网络建立连接,无法通过无线局域网络实现无线通信功能的状态。电子设备可以通过AP监听第一无线网络的连接状态是否发生变化,当第一无线网络的连接状态由连接断开状态切换至连接建立状态时,电子设备可以获取第二无线网络的网络信号强度,进而基于网络信号强度,调整第二无线网络的测量策略。在一个实施例中,电子设备通过AP监听第一无线网络的连接状态,当第一无线网络的连接状态发生变化时,电子设备可以将连接状态的变化发送给modem通信模块,接着当modem通信模块接收到第一无线网络从连接断开状态切换至连接建立状态时,电子设备可以通过modem通信模块获取第二无线网络的网络信号强度,根据该网络信号强度调整modem通信模块对第二无线网络进行小区测量的测量策略,可以降低modem通信模块的功耗,从而降低电子设备的功耗。The disconnected state refers to a state in which the electronic device has not established a connection with the wireless local area network, and cannot implement a wireless communication function through the wireless local area network. The electronic device can monitor whether the connection state of the first wireless network changes through the AP, and when the connection state of the first wireless network is switched from a disconnection state to a connection establishment state, the electronic device can obtain the network signal strength of the second wireless network, Furthermore, based on the network signal strength, the measurement policy of the second wireless network is adjusted. In one embodiment, the electronic device monitors the connection state of the first wireless network through the AP. When the connection state of the first wireless network changes, the electronic device can send the change of the connection state to the modem communication module, and then when the modem communication module When receiving that the first wireless network is switched from the connection disconnection state to the connection establishment state, the electronic device can obtain the network signal strength of the second wireless network through the modem communication module, and adjust the modem communication module to conduct the second wireless network according to the network signal strength. The measurement strategy of the cell measurement can reduce the power consumption of the modem communication module, thereby reducing the power consumption of the electronic equipment.

在一个实施例中,提供的网络通信方法还包括:当检测到第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将第二无线网络的测量策略调整为预设测量策略。In one embodiment, the network communication method provided further includes: when it is detected that the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state, adjusting the measurement strategy of the second wireless network to a preset measurement strategy .

当第一无线网络的连接状态由连接建立状态切换至连接断开状态时,电子设备可以将第二无线网络的测量策略调整为预设测量策略。预设测量策略是指电子设备在正常运行状态下第二无线网络所采用的测量策略,具体地,可以是电子设备预存的第二无线网络的默认测量策略。电子设备可以在第一无线网络处于连接建立状态时,根据第二无线网络的网络信号强度调整第二无线网络的测量策略,进而,当检测第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将第二无线网络的测量策略调整为预设测量策略,可以在降低电子设备功耗的同时保持第二无线网络的稳定型。When the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state, the electronic device may adjust the measurement strategy of the second wireless network to a preset measurement strategy. The preset measurement strategy refers to a measurement strategy adopted by the second wireless network when the electronic device is in a normal operating state, specifically, it may be a default measurement strategy of the second wireless network pre-stored in the electronic device. The electronic device may adjust the measurement policy of the second wireless network according to the network signal strength of the second wireless network when the first wireless network is in the connection establishment state, and then, when detecting that the connection state of the first wireless network is switched from the connection establishment state to the connection In the disconnected state, adjusting the measurement strategy of the second wireless network to a preset measurement strategy can reduce the power consumption of the electronic device while maintaining the stability of the second wireless network.

在一个实施例中,提供的网络通信方法还包括:当检测第一无线网络的连接状态处于漫游状态,保持第二无线网络的测量策略。In one embodiment, the provided network communication method further includes: when detecting that the connection state of the first wireless network is in a roaming state, maintaining the measurement policy of the second wireless network.

漫游状态是指当电子设备周围存在多个无线接入点时,电子设备在多个无线接入点被覆盖的区域移动时,可以从一个无线接入点切换到另一个无线接入点并保持网络连接的过程。电子设备可以在第一无线网络处于漫游状态时,保持第二无线网络的测量策略,即不对第二无线网络的测量策略进行调整。The roaming state means that when there are multiple wireless access points around the electronic device, when the electronic device moves in the area covered by multiple wireless access points, it can switch from one wireless access point to another and maintain The process of network connection. The electronic device may maintain the measurement strategy of the second wireless network when the first wireless network is in a roaming state, that is, not adjust the measurement strategy of the second wireless network.

在一个实施例中,提供了一种网络通信处理方法,实现该方法的具体操作如下所述:In one embodiment, a network communication processing method is provided, and the specific operations for implementing the method are as follows:

首先,电子设备检测与第一无线网络之间的连接状态。第一无线网络可以是由无线交换机、无线路由器、无线网关、无线网桥等无线接入点形成的无线局域网络。电子设备可以通过AP监听电子设备与第一无线网络之间的连接状态。First, the electronic device detects a connection status with the first wireless network. The first wireless network may be a wireless local area network formed by wireless access points such as wireless switches, wireless routers, wireless gateways, and wireless bridges. The electronic device can monitor the connection status between the electronic device and the first wireless network through the AP.

接着,当连接状态为连接建立状态时,电子设备获取第二无线网络的网络信号强度。连接建立状态是指电子设备与无线局域网络建立连接,通过无线局域网络实现无线通信功能的状态。具体地,当电子设备检测到与第一无线网络的连接状态为连接建立状态时,电子设备可以获取与电子设备建立第二无线网络连接的小区的网络信号强度。第二无线网络可以是支持4G、3G、2G等移动通信技术的移动通信网络。Next, when the connection state is the connection establishment state, the electronic device obtains the network signal strength of the second wireless network. The connection establishment state refers to a state in which the electronic device establishes a connection with the wireless local area network and realizes a wireless communication function through the wireless local area network. Specifically, when the electronic device detects that the connection state with the first wireless network is a connection establishment state, the electronic device may acquire the network signal strength of the cell establishing the second wireless network connection with the electronic device. The second wireless network may be a mobile communication network supporting mobile communication technologies such as 4G, 3G, and 2G.

可选地,电子设备检测第一无线网络是否处于无线通话状态,当第一无线网络不处于无线通话状态时,调整第二无线网络的测量频率。从而可以避免测量频率的调整对无线通话的影响。当第一无线网络处于无线通话状态时,电子设备可以不对第二无线网络的测量频率做调整,可以保证通话质量。Optionally, the electronic device detects whether the first wireless network is in a wireless call state, and adjusts the measurement frequency of the second wireless network when the first wireless network is not in a wireless call state. Therefore, the influence of the adjustment of the measurement frequency on the wireless communication can be avoided. When the first wireless network is in a wireless call state, the electronic device may not adjust the measurement frequency of the second wireless network, which can ensure call quality.

可选地,当检测到第一无线网络的连接状态由连接断开状态切换至连接建立状态时,电子设备获取第二无线网络的网络信号强度。电子设备可以通过AP监听第一无线网络的连接状态是否发生变化,当第一无线网络的连接状态由连接断开状态切换至连接建立状态时,电子设备可以获取第二无线网络的网络信号强度,进而基于网络信号强度,调整第二无线网络的测量策略。Optionally, when detecting that the connection state of the first wireless network is switched from the disconnection state to the connection establishment state, the electronic device obtains the network signal strength of the second wireless network. The electronic device can monitor whether the connection state of the first wireless network changes through the AP, and when the connection state of the first wireless network is switched from a disconnection state to a connection establishment state, the electronic device can obtain the network signal strength of the second wireless network, Furthermore, based on the network signal strength, the measurement policy of the second wireless network is adjusted.

可选地,当电子设备检测到第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将第二无线网络的测量策略调整为预设测量策略。预设测量策略是指电子设备在正常运行状态下第二无线网络所采用的测量策略,具体地,可以是电子设备预存的第二无线网络的默认测量策略。Optionally, when the electronic device detects that the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state, the measurement strategy of the second wireless network is adjusted to a preset measurement strategy. The preset measurement strategy refers to a measurement strategy adopted by the second wireless network when the electronic device is in a normal operating state, specifically, it may be a default measurement strategy of the second wireless network pre-stored in the electronic device.

可选地,当电子设备检测第一无线网络的连接状态处于漫游状态,保持第二无线网络的测量策略。电子设备可以在第一无线网络处于漫游状态时,保持第二无线网络的测量策略,即不对第二无线网络的测量策略进行调整。Optionally, when the electronic device detects that the connection state of the first wireless network is in the roaming state, it maintains the measurement policy of the second wireless network. The electronic device may maintain the measurement strategy of the second wireless network when the first wireless network is in a roaming state, that is, not adjust the measurement strategy of the second wireless network.

接着,电子设备基于网络信号强度,调整第二无线网络的测量策略。第二无线网络的测量策略是指对小区信号进行测量的策略。具体地,电子设备可以通过modem通信模块对小区信号进行测量。电子设备基于网络信号强度,调整第二无线网络的测量策略。具体地,电子设备可以预设不同网络信号强度对应的测量策略,从而根据与获取的网络信号强度相对应的测量策略对第二无线网络进行调整。Next, the electronic device adjusts the measurement policy of the second wireless network based on the network signal strength. The measurement strategy of the second wireless network refers to a strategy for measuring cell signals. Specifically, the electronic device can measure cell signals through the modem communication module. The electronic device adjusts the measurement policy of the second wireless network based on the network signal strength. Specifically, the electronic device may preset measurement strategies corresponding to different network signal strengths, so as to adjust the second wireless network according to the acquired measurement strategies corresponding to the network signal strengths.

可选地,当网络信号强度超过第一强度阈值时,电子设备调整第二无线网络的测量频率,其中,测量频率是进行小区信号测量的频率。在电子设备中第二无线网络功能的运行过程中,随着电子设备的移动或其他因素,第二无线网络所在小区和其他小区的信号强度会不断发生变化,电子设备可以定时测量其他小区的网络信号强度,以选择更合适的小区。通过在第一无线网络处于连接建立状态时,当检测到第二无线网络的网络信号强度超过第一强度阈值时,再调整第二无线网络的测量频率,可以在保证电子设备网络质量的同时降低功耗。Optionally, when the network signal strength exceeds the first strength threshold, the electronic device adjusts the measurement frequency of the second wireless network, where the measurement frequency is a frequency for cell signal measurement. During the operation of the second wireless network function in the electronic device, with the movement of the electronic device or other factors, the signal strength of the cell where the second wireless network is located and other cells will continue to change, and the electronic device can regularly measure the network of other cells Signal strength to select a more suitable cell. By adjusting the measurement frequency of the second wireless network when it is detected that the network signal strength of the second wireless network exceeds the first strength threshold when the first wireless network is in the connection establishment state, the network quality of the electronic device can be reduced while ensuring the network quality of the electronic device. power consumption.

可选地,电子设备检测网络信号强度与第一强度阈值的强度差值,获取与强度差值相对应的频率调节系数,根据频率调节系数对第二无线网络的测量频率进行调整。Optionally, the electronic device detects a strength difference between the network signal strength and the first strength threshold, acquires a frequency adjustment coefficient corresponding to the strength difference, and adjusts the measurement frequency of the second wireless network according to the frequency adjustment coefficient.

可选地,当网络信号强度超过第二强度阈值时,电子设备禁止第二无线网络进行测量操作和重选操作中的至少一种,其中,第二强度阈值大于第一强度阈值。重选操作是指电子设备根据小区信号测量的结果,选择更合适的小区进行第二无线网络连接的操作。电子设备可以在网络信号强度超过第二强度阈值时,禁止第二无线网络进行测量操作和重选操作中的至少一种,即禁止modem通信模块进行小区信号测量和小区重选中的至少一种。Optionally, when the network signal strength exceeds a second strength threshold, the electronic device prohibits the second wireless network from performing at least one of a measurement operation and a reselection operation, wherein the second strength threshold is greater than the first strength threshold. The reselection operation refers to an operation in which the electronic device selects a more suitable cell for connection to the second wireless network according to the result of cell signal measurement. The electronic device may prohibit the second wireless network from performing at least one of measurement operation and reselection operation when the network signal strength exceeds the second strength threshold, that is, prohibit the modem communication module from performing at least one of cell signal measurement and cell reselection.

图5为一个实施例中网络通信处理装置的结构框图。如图5所示,该网络通信处理装置包括检测模块502、获取模块504、调整模块506,其中:Fig. 5 is a structural block diagram of a network communication processing device in an embodiment. As shown in Figure 5, the network communication processing device includes a detection module 502, an acquisition module 504, and an adjustment module 506, wherein:

检测模块502,用于检测电子设备与第一无线网络之间的连接状态。The detection module 502 is configured to detect the connection status between the electronic device and the first wireless network.

获取模块504,用于当连接状态为连接建立状态时,获取第二无线网络的网络信号强度。The obtaining module 504 is configured to obtain the network signal strength of the second wireless network when the connection state is the connection establishment state.

调整模块506,用于基于网络信号强度,调整第二无线网络的测量策略。An adjustment module 506, configured to adjust the measurement policy of the second wireless network based on the network signal strength.

本申请实施例提供的网络通信处理装置,可以用于检测检测电子设备与第一无线网络之间的连接状态,当连接状态为连接建立状态时,获取第二无线网络的网络信号强度,基于网络信号强度,调整第二无线网络的测量策略,可以更准确地对第二无线网络的测量策略进行调整,不同的测量策略所耗费的功耗不同,因此根据网络信号强度调节测量策略后,可以降低电子设备的功耗。The network communication processing device provided in the embodiment of the present application can be used to detect the connection state between the electronic device and the first wireless network, and when the connection state is the connection establishment state, obtain the network signal strength of the second wireless network, based on the network Signal strength, adjust the measurement strategy of the second wireless network, you can adjust the measurement strategy of the second wireless network more accurately, different measurement strategies consume different power consumption, so after adjusting the measurement strategy according to the network signal strength, you can reduce Power consumption of electronic equipment.

在一个实施例中,调整模块506还可以用于当网络信号强度超过第一强度阈值时,调整第二无线网络的测量频率,其中,测量频率是进行小区信号测量的频率。In one embodiment, the adjustment module 506 may also be configured to adjust the measurement frequency of the second wireless network when the network signal strength exceeds the first strength threshold, where the measurement frequency is a frequency for cell signal measurement.

在一个实施例中,调整模块506还可以用于检测网络信号强度与第一强度阈值的强度差值;获取与强度差值相对应的频率调节系数;及根据频率调节系数对第二无线网络的测量频率进行调整。In one embodiment, the adjustment module 506 can also be used to detect the strength difference between the network signal strength and the first strength threshold; obtain the frequency adjustment coefficient corresponding to the strength difference; and adjust the frequency of the second wireless network according to the frequency adjustment coefficient. The measurement frequency is adjusted.

在一个实施例中,调整模块506还可以用于检测第一无线网络是否处于无线通话状态;及当第一无线网络不处于无线通话状态时,调整第二无线网络的测量频率。In one embodiment, the adjustment module 506 can also be used to detect whether the first wireless network is in a wireless communication state; and when the first wireless network is not in a wireless communication state, adjust the measurement frequency of the second wireless network.

在一个实施例中,调整模块506还可以用于当网络信号强度超过第二强度阈值时,禁止第二无线网络进行测量操作和重选操作中的至少一种,其中,第二强度阈值大于第一强度阈值。In one embodiment, the adjustment module 506 may also be configured to prohibit the second wireless network from performing at least one of a measurement operation and a reselection operation when the network signal strength exceeds a second strength threshold, wherein the second strength threshold is greater than the second strength threshold an intensity threshold.

在一个实施例中,获取模块504还可以用于当检测到第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取第二无线网络的网络信号强度。In one embodiment, the obtaining module 504 may also be configured to obtain the network signal strength of the second wireless network when it is detected that the connection state of the first wireless network is switched from the disconnected state to the established connection state.

在一个实施例中,调整模块506还可以用于当检测到第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将第二无线网络的测量策略调整为预设测量策略。In one embodiment, the adjustment module 506 may also be configured to adjust the measurement policy of the second wireless network to a preset measurement policy when it is detected that the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state.

所述网络通信处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将网络通信处理装置按照需要划分为不同的模块,以完成所述网络通信处理装置的全部或部分功能。The division of each module in the network communication processing device is only for illustration. In other embodiments, the network communication processing device can be divided into different modules according to needs, so as to complete all or part of the functions of the network communication processing device .

图6为一个实施例中电子设备的内部结构示意图。如图6所示,该电子设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种网络通信处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。Fig. 6 is a schematic diagram of the internal structure of an electronic device in one embodiment. As shown in FIG. 6, the electronic device includes a processor and a memory connected through a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include non-volatile storage media and internal memory. Nonvolatile storage media store operating systems and computer programs. The computer program can be executed by a processor, so as to implement a network communication processing method provided in the following embodiments. The internal memory provides a high-speed running environment for the operating system computer program in the non-volatile storage medium. The electronic device may be a mobile phone, a tablet computer, a personal digital assistant, or a wearable device.

本申请实施例还提供了一种计算机可读存储介质。其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如上所述的网络通信处理方法。The embodiment of the present application also provides a computer-readable storage medium. A computer program is stored on it, and it is characterized in that, when the computer program is executed by the processor, the above-mentioned network communication processing method is realized.

本申请实施例还提供了一种电子设备。如图7所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:The embodiment of the present application also provides an electronic device. As shown in FIG. 7 , for ease of description, only the parts related to the embodiment of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiment of the present application. The electronic 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 electronic 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 the electronic device provided by the embodiment of the present application. Referring to FIG. 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 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 to identify mobile phone posture applications (such as horizontal and vertical screen switching), 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 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 application, the processor 780 included in the electronic device implements the above-mentioned network communication processing method when executing the computer program stored in the memory.

本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Suitable nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present application, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present application. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (24)

1.一种网络通信处理方法,包括:1. A network communication processing method, comprising: 检测电子设备与第一无线网络之间的连接状态;Detecting a connection status between the electronic device and the first wireless network; 当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is a connection establishment state, acquire the network signal strength of the second wireless network; and 当所述网络信号强度超过第一强度阈值时,降低对所述第二无线网络进行测量的测量频率,其中,所述网络信号强度超过第一强度阈值,表示所述电子设备接入所述第二无线网络的情况下实现移动通信业务。When the network signal strength exceeds a first strength threshold, reduce the measurement frequency for measuring the second wireless network, wherein the network signal strength exceeds the first strength threshold, indicating that the electronic device accesses the second wireless network. In the case of the second wireless network, the mobile communication service is realized. 2.根据权利要求1所述的方法,其特征在于,所述降低对所述第二无线网络进行测量的测量频率,包括:2. The method according to claim 1, wherein the reducing the measurement frequency for measuring the second wireless network comprises: 检测所述网络信号强度与所述第一强度阈值的强度差值;detecting a strength difference between the network signal strength and the first strength threshold; 获取与所述强度差值相对应的频率调节系数;及obtaining a frequency adjustment coefficient corresponding to the intensity difference; and 根据所述频率调节系数降低对所述第二无线网络进行测量的测量频率。The measurement frequency for measuring the second wireless network is reduced according to the frequency adjustment coefficient. 3.根据权利要求1所述的方法,其特征在于,所述方法还包括:3. The method according to claim 1, wherein the method further comprises: 检测所述第一无线网络是否处于无线通话状态;及Detecting whether the first wireless network is in a wireless call state; and 当所述第一无线网络不处于无线通话状态时,调整所述第二无线网络的测量频率。When the first wireless network is not in a wireless communication state, adjusting the measurement frequency of the second wireless network. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 当所述网络信号强度超过第二强度阈值时,禁止所述第二无线网络进行测量操作和重选操作中的至少一种,其中,所述第二强度阈值大于所述第一强度阈值。Prohibiting the second wireless network from performing at least one of a measurement operation and a reselection operation when the network signal strength exceeds a second strength threshold, wherein the second strength threshold is greater than the first strength threshold. 5.根据权利要求1所述的方法,其特征在于,所述当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度,包括:5. The method according to claim 1, wherein the acquiring the network signal strength of the second wireless network when the connection state is a connection establishment state comprises: 当检测到所述第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取所述第二无线网络的网络信号强度。When it is detected that the connection state of the first wireless network is switched from the disconnection state to the connection establishment state, the network signal strength of the second wireless network is acquired. 6.根据权利要求1所述的方法,其特征在于,还包括:6. The method according to claim 1, further comprising: 当检测到所述第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将所述第二无线网络的测量策略调整为预设测量策略。When it is detected that the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state, the measurement strategy of the second wireless network is adjusted to a preset measurement strategy. 7.一种网络通信处理装置,包括:7. A network communication processing device, comprising: 检测模块,用于检测电子设备与第一无线网络之间的连接状态;A detection module, configured to detect the connection status between the electronic device and the first wireless network; 获取模块,用于当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及An acquisition module, configured to acquire the network signal strength of the second wireless network when the connection state is a connection establishment state; and 调整模块,用于当所述网络信号强度超过第一强度阈值时,降低对所述第二无线网络进行测量的测量频率,其中,所述网络信号强度超过第一强度阈值,表示所述电子设备接入所述第二无线网络的情况下实现移动通信业务。An adjustment module, configured to reduce the frequency of measuring the second wireless network when the network signal strength exceeds a first strength threshold, wherein the network signal strength exceeds the first strength threshold, indicating that the electronic device The mobile communication service is implemented in the case of accessing the second wireless network. 8.根据权利要求7所述的装置,其特征在于,所述调整模块还用于检测所述网络信号强度与所述第一强度阈值的强度差值;获取与所述强度差值相对应的频率调节系数;及根据所述频率调节系数降低对所述第二无线网络进行测量的测量频率。8. The device according to claim 7, wherein the adjustment module is further configured to detect a strength difference between the network signal strength and the first strength threshold; and obtain the strength difference corresponding to the strength difference a frequency adjustment factor; and reducing a measurement frequency for measuring the second wireless network according to the frequency adjustment factor. 9.根据权利要求7所述的装置,其特征在于,所述调整模块还用于检测所述第一无线网络是否处于无线通话状态;及当所述第一无线网络不处于无线通话状态时,调整所述第二无线网络的测量频率。9. The device according to claim 7, wherein the adjustment module is further configured to detect whether the first wireless network is in a wireless call state; and when the first wireless network is not in a wireless call state, Adjusting the measurement frequency of the second wireless network. 10.根据权利要求7所述的装置,其特征在于,所述调整模块还用于当所述网络信号强度超过第二强度阈值时,禁止所述第二无线网络进行测量操作和重选操作中的至少一种,其中,所述第二强度阈值大于所述第一强度阈值。10. The device according to claim 7, wherein the adjustment module is further configured to prohibit the second wireless network from performing measurement operations and reselection operations when the network signal strength exceeds a second strength threshold At least one of , wherein the second intensity threshold is greater than the first intensity threshold. 11.根据权利要求7所述的装置,其特征在于,所述获取模块还用于当检测到所述第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取所述第二无线网络的网络信号强度。11. The device according to claim 7, wherein the acquiring module is further configured to acquire the first wireless network when it is detected that the connection state of the first wireless network is switched from a disconnection state to a connection establishment state. 2. The network signal strength of the wireless network. 12.根据权利要求7所述的装置,其特征在于,所述调整模块还用于当检测到所述第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将所述第二无线网络的测量策略调整为预设测量策略。12. The device according to claim 7, wherein the adjustment module is further configured to, when it is detected that the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state, set the second The measurement strategy of the second wireless network is adjusted to a preset measurement strategy. 13.一个或多个包含计算机可执行指令的计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下操作:13. One or more computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to: 检测电子设备与第一无线网络之间的连接状态;Detecting a connection status between the electronic device and the first wireless network; 当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is a connection establishment state, acquire the network signal strength of the second wireless network; and 当所述网络信号强度超过第一强度阈值时,降低对所述第二无线网络进行测量的测量频率,其中,所述网络信号强度超过第一强度阈值,表示所述电子设备接入所述第二无线网络的情况下实现移动通信业务。When the network signal strength exceeds a first strength threshold, reduce the measurement frequency for measuring the second wireless network, wherein the network signal strength exceeds the first strength threshold, indicating that the electronic device accesses the second wireless network. In the case of the second wireless network, the mobile communication service is realized. 14.根据权利要求13所述的计算机可读存储介质,其特征在于,所述处理器执行所述降低对所述第二无线网络进行测量的测量频率时,还执行如下操作:14. The computer-readable storage medium according to claim 13, wherein when the processor executes the reducing the measurement frequency for measuring the second wireless network, the following operations are further performed: 检测所述网络信号强度与所述第一强度阈值的强度差值;detecting a strength difference between the network signal strength and the first strength threshold; 获取与所述强度差值相对应的频率调节系数;及obtaining a frequency adjustment coefficient corresponding to the intensity difference; and 根据所述频率调节系数降低对所述第二无线网络进行测量的测量频率。The measurement frequency for measuring the second wireless network is reduced according to the frequency adjustment coefficient. 15.根据权利要求13所述的计算机可读存储介质,其特征在于,所述处理器还执行如下操作:15. The computer-readable storage medium according to claim 13, wherein the processor also performs the following operations: 检测所述第一无线网络是否处于无线通话状态;及Detecting whether the first wireless network is in a wireless call state; and 当所述第一无线网络不处于无线通话状态时,调整所述第二无线网络的测量频率。When the first wireless network is not in a wireless communication state, adjusting the measurement frequency of the second wireless network. 16.根据权利要求13所述的计算机可读存储介质,其特征在于,所述处理器还执行如下操作:16. The computer-readable storage medium according to claim 13, wherein the processor further performs the following operations: 当所述网络信号强度超过第二强度阈值时,禁止所述第二无线网络进行测量操作和重选操作中的至少一种,其中,所述第二强度阈值大于所述第一强度阈值。Prohibiting the second wireless network from performing at least one of a measurement operation and a reselection operation when the network signal strength exceeds a second strength threshold, wherein the second strength threshold is greater than the first strength threshold. 17.根据权利要求13所述的计算机可读存储介质,其特征在于,所述处理器执行所述当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度时,还执行如下操作:17. The computer-readable storage medium according to claim 13, wherein when the processor executes the step of obtaining the network signal strength of the second wireless network when the connection state is the connection establishment state, further executes Do as follows: 当检测到所述第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取所述第二无线网络的网络信号强度。When it is detected that the connection state of the first wireless network is switched from the disconnection state to the connection establishment state, the network signal strength of the second wireless network is acquired. 18.根据权利要求13所述的计算机可读存储介质,其特征在于,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器还执行以下操作:18. The computer-readable storage medium according to claim 13, wherein when the computer-executable instructions are executed by one or more processors, the processors are made to further perform the following operations: 当检测到所述第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将所述第二无线网络的测量策略调整为预设测量策略。When it is detected that the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state, the measurement strategy of the second wireless network is adjusted to a preset measurement strategy. 19.一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下操作:19. An electronic device, comprising a memory and a processor, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor is made to perform the following operations: 检测电子设备与第一无线网络之间的连接状态;Detecting a connection status between the electronic device and the first wireless network; 当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is a connection establishment state, acquire the network signal strength of the second wireless network; and 当所述网络信号强度超过第一强度阈值时,降低对所述第二无线网络进行测量的测量频率,其中,所述网络信号强度超过第一强度阈值,表示所述电子设备接入所述第二无线网络的情况下实现移动通信业务。When the network signal strength exceeds a first strength threshold, reduce the measurement frequency for measuring the second wireless network, wherein the network signal strength exceeds the first strength threshold, indicating that the electronic device accesses the second wireless network. In the case of the second wireless network, the mobile communication service is realized. 20.根据权利要求19所述的电子设备,其特征在于,所述处理器执行所述降低对所述第二无线网络进行测量的测量频率时,还执行如下操作:20. The electronic device according to claim 19, wherein when the processor executes the reduction of the measurement frequency for measuring the second wireless network, it also performs the following operations: 检测所述网络信号强度与所述第一强度阈值的强度差值;detecting a strength difference between the network signal strength and the first strength threshold; 获取与所述强度差值相对应的频率调节系数;及obtaining a frequency adjustment coefficient corresponding to the intensity difference; and 根据所述频率调节系数降低对所述第二无线网络进行测量的测量频率进行调整。Adjust the measurement frequency at which the second wireless network is measured according to the reduction of the frequency adjustment coefficient. 21.根据权利要求19所述的电子设备,其特征在于,所述处理器还执行如下操作:21. The electronic device according to claim 19, wherein the processor further performs the following operations: 检测所述第一无线网络是否处于无线通话状态;及Detecting whether the first wireless network is in a wireless call state; and 当所述第一无线网络不处于无线通话状态时,调整所述第二无线网络的测量频率。When the first wireless network is not in a wireless communication state, adjusting the measurement frequency of the second wireless network. 22.根据权利要求19所述的电子设备,其特征在于,所述处理器还执行如下操作:22. The electronic device according to claim 19, wherein the processor further performs the following operations: 当所述网络信号强度超过第二强度阈值时,禁止所述第二无线网络进行测量操作和重选操作中的至少一种,其中,所述第二强度阈值大于所述第一强度阈值。Prohibiting the second wireless network from performing at least one of a measurement operation and a reselection operation when the network signal strength exceeds a second strength threshold, wherein the second strength threshold is greater than the first strength threshold. 23.根据权利要求19所述的电子设备,其特征在于,所述处理器执行所述当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度时,还执行如下操作:23. The electronic device according to claim 19, wherein when the processor executes the acquisition of the network signal strength of the second wireless network when the connection state is the connection establishment state, the following operations are also performed: 当检测到所述第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取所述第二无线网络的网络信号强度。When it is detected that the connection state of the first wireless network is switched from the disconnection state to the connection establishment state, the network signal strength of the second wireless network is acquired. 24.根据权利要求19所述的电子设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下操作:24. The electronic device according to claim 19, wherein when the computer-readable instructions are executed by the processor, the processor is made to perform the following operations: 当检测到所述第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将所述第二无线网络的测量策略调整为预设测量策略。When it is detected that the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state, the measurement strategy of the second wireless network is adjusted to a preset measurement strategy.
CN201880097944.1A 2018-11-22 2018-11-22 Network communication processing method, computer-readable storage medium, and electronic device Active CN112740827B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/116914 WO2020103077A1 (en) 2018-11-22 2018-11-22 Network communication processing method, computer-readable storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112740827A CN112740827A (en) 2021-04-30
CN112740827B true CN112740827B (en) 2023-05-12

Family

ID=70773783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201880097944.1A Active CN112740827B (en) 2018-11-22 2018-11-22 Network communication processing method, computer-readable storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN112740827B (en)
WO (1) WO2020103077A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314966A (en) * 2021-05-06 2022-11-08 Oppo广东移动通信有限公司 Wireless network switching method, device, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007001689A1 (en) * 2005-06-23 2007-01-04 Motorola Inc. Method and system for adjusting inter-scan period of a mobile station
CN104041139A (en) * 2012-09-20 2014-09-10 华为技术有限公司 Receiver and method for accessing access point of wireless local area network
CN106489287A (en) * 2014-06-20 2017-03-08 高通股份有限公司 Save via for the enhanced scanning of the AP putting altogether and associated STA and the power of beacon
CN107820331A (en) * 2017-10-31 2018-03-20 广东欧珀移动通信有限公司 Call method, device, computer equipment and readable storage medium storing program for executing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007001689A1 (en) * 2005-06-23 2007-01-04 Motorola Inc. Method and system for adjusting inter-scan period of a mobile station
CN104041139A (en) * 2012-09-20 2014-09-10 华为技术有限公司 Receiver and method for accessing access point of wireless local area network
CN106489287A (en) * 2014-06-20 2017-03-08 高通股份有限公司 Save via for the enhanced scanning of the AP putting altogether and associated STA and the power of beacon
CN107820331A (en) * 2017-10-31 2018-03-20 广东欧珀移动通信有限公司 Call method, device, computer equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN112740827A (en) 2021-04-30
WO2020103077A1 (en) 2020-05-28

Similar Documents

Publication Publication Date Title
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
CN107820331A (en) Call method, device, computer equipment and readable storage medium storing program for executing
JP7565335B2 (en) COMMUNICATION PROCESSING METHOD, COMMUNICATION PROCESSING DEVICE, TERMINAL EQUIPMENT, AND STORAGE MEDIUM
CN108040357B (en) Mobile terminal wireless local area network scanning method and device, computer equipment
CN106331359B (en) A kind of speech signal collection method, device and terminal
WO2022001050A1 (en) Method for processing relax measurement parameter update and terminal device
CN107172702B (en) Mobile terminal and WiFi transmission power adjusting method and device thereof
US11076354B2 (en) Cell handover method and terminal device
RU2748612C1 (en) Method for determining ue capabilities, method for transmitting information about ue capabilities, mobile subscriber equipment and server
CN107295591B (en) Call method, device, computer storage medium and mobile terminal
CN107947894A (en) Anti-interference method of electronic equipment and related product
CN106604314A (en) Network access method and terminal equipment for WiFi roaming
CN107846723A (en) Wireless local area network scanning method, device, computer equipment and storage medium
CN107820303B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN112152649B (en) Radio frequency circuit, terminal device, signal transmission method, and storage medium
CN107896385B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN107969025B (en) Mobile terminal wireless local area network scanning method and device and computer equipment
CN106851690A (en) Wireless network scanning method, device and computer equipment
CN112954755B (en) Optimized network switching method and device and computer readable storage medium
CN112740827B (en) Network communication processing method, computer-readable storage medium, and electronic device
CN110266428B (en) Electromagnetic interference control method and device, electronic equipment and storage medium
JP2022552327A (en) HANDOVER METHOD, CONFIGURATION METHOD, TERMINAL AND NETWORK DEVICE
CN111642000A (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN114245427B (en) Network switching method and device and mobile terminal
CN106445841B (en) Data transmission control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant