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
wireless
connection
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. TPC [Transmission Power Control], power saving 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

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

Description

Network communication processing method, computer-readable storage medium, and electronic device
Technical Field
The present invention relates to the field of computer communications technologies, and in particular, to a network communication processing method, a computer readable storage medium, and an electronic device.
Background
With rapid development of computer communication technology, electronic devices may implement wireless communication functions through a wireless local area network or a mobile communication system. When the electronic device is in the coverage area of the wireless local area network, the wireless local area network is generally adopted to realize the wireless communication function, and at the moment, the mobile communication system of the electronic device is still in a working state, so that the problem of high power consumption exists.
Disclosure of Invention
A network communication processing method, a computer-readable storage medium, and an electronic device are provided according to various embodiments of the present application.
A network communication processing method, comprising:
detecting a connection state between the electronic device and the first wireless network;
when the connection state is a connection establishment state, acquiring the network signal strength of the second wireless network; and
And adjusting a measurement strategy 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 state between the electronic device and the first wireless network;
when the connection state is a connection establishment state, acquiring the network signal strength of the second wireless network; and
And adjusting a measurement strategy of the second wireless network based on the network signal strength.
An electronic device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to:
detecting a connection state between the electronic device and the first wireless network;
when the connection state is a connection establishment state, acquiring the network signal strength of the second wireless network; and
And adjusting a measurement strategy of the second wireless network based on the network signal strength.
According to the network communication processing method, the computer readable storage medium and the electronic device, the connection state between the electronic device and the first wireless network is detected, when the connection state is the connection establishment state, the network signal intensity of the second wireless network is obtained, and the measurement strategy of the second wireless network is adjusted based on the network signal intensity. When the first wireless network is in a connection establishment state, the measurement strategy of the second wireless network can be adjusted according to the network signal intensity of the second wireless network, so that the measurement strategy of the second wireless network can be adjusted more accurately, the consumed power of different measurement strategies is different, and the power consumption of the electronic equipment can be reduced after the measurement strategy is adjusted according to the network signal intensity.
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 application will be apparent from the description and drawings, and from the claims.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application environment diagram of a network communication processing method in one embodiment.
Fig. 2 is a flow chart of a network communication processing method in one embodiment.
Fig. 3 is a flow chart of adjusting a measurement frequency of a second wireless network in one embodiment.
Fig. 4 is a flow chart of adjusting a measurement frequency of a wireless network in one embodiment.
Fig. 5 is a block diagram of a network communication processing apparatus in one embodiment.
Fig. 6 is a schematic diagram of an internal structure of an electronic device in one embodiment.
Fig. 7 is a block diagram of a part of a structure of a mobile phone related to an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, 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 may be referred to as a second wireless network, and similarly, a second wireless network may be referred to as 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.
Fig. 1 is an application environment diagram of a network communication processing method in one 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 a connection state between the electronic device 110 and the first wireless network 120, and when the connection state is a connection establishment state, the electronic device 110 obtains a network signal strength of the second wireless network 130, and adjusts a measurement policy of the second wireless network 130 based on the network signal strength. The first wireless network 120 may be a wireless local area network formed by wireless access points such as a wireless switch, a wireless router, a wireless gateway, a wireless bridge, and the like. The second wireless network 130 is referred to as 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), 2G (second generation mobile communication technology), and the like. The electronic device 110 may be a mobile phone, a computer, a wearable device, etc., which is not limited herein.
Fig. 2 is a flow chart of a network communication processing method in one embodiment. The network communication processing method in the present embodiment is described taking the electronic device 110 in fig. 1 as an example. As shown in fig. 2, the network communication processing method includes operations 202 through 206. Wherein:
Operation 202 detects a connection state between an electronic device and a first wireless network.
The connection state refers to a connection condition between the electronic device and the first wireless network. The connection state may include a connection establishment state, a connection disconnection state, a roaming state, and the like. The first wireless network may be a wireless local area network formed by wireless access points such as wireless switches, wireless routers, wireless gateways, wireless bridges, and the like. The electronic device may be connected to a first wireless network, thereby implementing a wireless internet function. Specifically, the electronic device may monitor a connection state between the electronic device and the first wireless network through the AP (Application Processor ).
In operation 204, when the connection state is the connection establishment state, the network signal strength of the second wireless network is obtained.
The connection establishment state refers to a state in which the electronic device establishes connection with the wireless local area network, and a wireless communication function is realized through the wireless local area network. The second wireless network may be a mobile communication network supporting mobile communication technologies such as 4G, 3G, 2G, etc. The electronic device includes a modem communication module, which may be used to convert a baseband signal into a radio frequency signal, convert a radio frequency signal into a baseband signal, and the like. When the electronic equipment starts the second wireless network function, the connection of the second wireless network can be realized through the modem communication module. The network signal strength of the second wireless network may be represented by RSRP (Reference Signal Receiving Power, reference signal received power) that is used to identify a linear average of received power over resource elements carrying reference signals over a measured frequency bandwidth. In some embodiments, the network signal strength of the second wireless network may also be considered by one or more of network transmission rate, mobile communication technology, packet loss rate, etc., without limitation.
When the electronic device detects that the connection state with the first wireless network is the connection establishment state, the network signal strength of the second wireless network is acquired, and specifically, the electronic device may acquire the network signal strength of a cell in which the connection with the electronic device is established.
Operation 206 adjusts the measurement policy of the second wireless network based on the network signal strength.
The measurement policy of the second wireless network refers to a policy of measuring cell signals. Specifically, the electronic device may measure the cell signal through the modem communication module. A cell refers to an area covered by one base station or a part (sector antenna) of the base stations in a mobile communication system, and an electronic device in the area can communicate with the base station through a wireless channel. The power consumption of the electronic equipment for measurement is higher than that of the electronic equipment when the electronic equipment is not used for measurement, and further, the higher the frequency of the electronic equipment for measurement is, the larger the power consumption of the modem communication module is. The electronic device adjusts the measurement policy of the second wireless network, specifically, the electronic device may determine whether to perform cell signal measurement according to the level of the network signal strength, or may divide measurement frequencies corresponding to different network signal strengths, so as to adjust the measurement frequency of the modem module to the measurement frequency corresponding to the acquired network signal strength.
The electronic device adjusts a measurement policy of the second wireless network based on the network signal strength. Specifically, the electronic device may preset measurement policies corresponding to different network signal strengths, so as to adjust the second wireless network according to the measurement policies corresponding to the acquired network signal strengths.
According to the network communication processing method, the connection state between the electronic equipment and the first wireless network is detected, when the connection state is the connection establishment state, the network signal strength of the second wireless network is obtained, and the measurement strategy of the second wireless network is adjusted based on the network signal strength. When the electronic equipment and the first wireless network are in a connection establishment state, the measurement strategies of the second wireless network can be adjusted according to the network signal intensity of the second wireless network, and the consumed power of different measurement strategies is different.
In one embodiment, the process of adjusting the measurement policy of the second wireless network based on the network signal strength in the network communication processing method includes: and when the network signal strength exceeds the first strength threshold, adjusting the measurement frequency of the second wireless network, wherein the measurement frequency is the frequency for making cell signal measurements.
The network signal strength may be represented by RSRP, with the higher the RSRP, the higher the network signal strength of the second wireless network, and the lower the RSRP, the lower the network signal strength of the second wireless network. The first intensity threshold may be set according to actual requirements. In particular, the second wireless network may implement basic mobile communication services when the network signal strength of the second wireless network is the same as the first strength threshold. For example, the first intensity threshold may be, but not limited to, -90dBm (decibel-milliwatts), -80dBm, -75dBm, -70dBm, and so on. The measurement frequency of the second wireless network is the frequency at which the modem module included in the electronic device performs cell signal measurements. In the running process of the second wireless network function in the electronic equipment, along with the movement of the electronic equipment or other factors, the signal strength of the cell in which the second wireless network is located and the signal strength of other cells can be changed continuously, and the electronic equipment can measure the network signal strength of the other cells at regular time so as to select a more proper 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 the actual requirement, which is not limited herein.
The higher the measurement frequency is, the larger the power consumption is, but the network quality of the second wireless network can be ensured when the modem communication module in the electronic equipment is used for measuring the cell signal; the lower the measurement frequency, the lower the power consumption, but the network quality of the second wireless network cannot be guaranteed. When the first wireless network is in a connection establishment state, when the network signal strength of the second wireless network is detected to exceed the first strength threshold value, the measurement frequency of the second wireless network is adjusted, so that the power consumption can be reduced while the network quality of the electronic equipment is ensured.
Fig. 3 is a flow chart of adjusting a measurement frequency of a second wireless network in one embodiment. As shown in fig. 3, in one embodiment, a network communication method is provided, in which a process of adjusting a measurement frequency of a second wireless network includes:
at operation 302, an intensity difference between the network signal intensity and a first intensity threshold is detected.
The electronic device may calculate an intensity difference between the network signal intensity and the first intensity threshold based on the acquired network signal intensity and the first intensity threshold.
Operation 304 obtains 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 may be set according to a preset measurement frequency, where the preset measurement frequency is a measurement frequency corresponding to a second wireless network pre-stored in the electronic device when the first wireless network is in a disconnected state in a normal default measurement frequency, and in one embodiment, the preset measurement frequency may be a measurement frequency corresponding to the second wireless network. The frequency adjustment coefficient may also be set according to the measurement frequency currently employed by the electronic device.
The electronic device may pre-store frequency adjustment coefficients corresponding to different intensity differences, so as to obtain a frequency adjustment coefficient corresponding to the intensity difference when the intensity difference between the network signal intensity and the first intensity threshold is detected.
Operation 306 adjusts the measured frequency of the second wireless network according to the frequency adjustment coefficient.
The electronic device may adjust the measured frequency of the second wireless network based on the frequency adjustment factor. For example, the preset measurement frequency of the second wireless network is measured every 50 seconds, when the frequency adjustment coefficient is 0.8, the adjusted measurement frequency is measured every 40 seconds, and when the frequency adjustment coefficient is 0.5, the adjusted measurement frequency is measured every 25 seconds. In an embodiment, the electronic device may also preset measurement frequencies corresponding to different network signal strengths, so as to directly adjust the measurement frequency of the second wireless network to the measurement frequency corresponding to the acquired network signal strength.
When the network signal strength exceeds the first strength threshold, the electronic equipment detects the strength difference value between the network signal strength and the first strength threshold, acquires a frequency adjustment coefficient corresponding to the strength difference value, and adjusts the measurement frequency of the second wireless network, so that 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 network communication method further includes: and when the network signal strength exceeds a second strength threshold, prohibiting the second wireless network from at least one of a measurement operation and a reselection operation, wherein the second strength threshold is greater than the first strength threshold.
The second intensity threshold may be set according to actual requirements. The second intensity threshold is greater than the first intensity threshold, e.g., when the first intensity threshold is-90 dBm, the second intensity threshold may be-80 dBm, -75dBm, -70dBm, etc., without limitation; when the first intensity threshold is-80 dBm, the second intensity threshold may be-75 dBm, -70dBm, -63dBm, etc., without being limited thereto. The reselection operation refers to an operation that the electronic device selects a more suitable cell to perform the second wireless network connection according to the result of cell signal measurement. The electronic device may prohibit the second wireless network from performing at least one of a measurement operation and a reselection operation, i.e., prohibit the modem communication module from performing at least one of a cell signal measurement and a cell reselection, when the network signal strength exceeds the second strength threshold. In one embodiment, the electronic device sets different intensity 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, disabling the second wireless network from performing the measurement operation; and when the network signal strength threshold exceeds the reselection threshold, prohibiting the second wireless network from performing reselection operation, wherein the measurement threshold and the reselection threshold are both higher than the first strength threshold, and the measurement threshold can be equal to or higher than the reselection threshold.
Fig. 4 is a flow chart of adjusting a measurement frequency of a wireless network in one embodiment. As shown in fig. 4, in one embodiment, a process of adjusting a measurement frequency of a wireless network in a network communication method is provided, including:
operation 402 detects whether the first wireless network is in a wireless talk state.
The first wireless network being in a wireless communication state refers to a state in which the electronic device performs wireless communication 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 talk 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 communication state, or may detect whether the wireless communication state uses the first wireless network to perform wireless communication when the electronic device is in the wireless communication state.
In operation 404, when the first wireless network is not in the wireless communication state, the measurement frequency of the second wireless network is adjusted.
When the first wireless network is not in the wireless communication 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, and 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 communication state, the electronic device can not adjust the measurement frequency of the second wireless network, so that communication quality can be ensured.
In one embodiment, the process of obtaining the network signal strength of the second wireless network when the connection state is the connection establishment state in the network communication method includes: and when the connection state of the first wireless network is detected to be switched from the connection disconnection state to the connection establishment state, acquiring the network signal strength of the second wireless network.
The disconnected state refers to a state in which the electronic device does not establish a connection with the wireless local area network and cannot realize a wireless communication function through the wireless local area network. The electronic equipment can monitor whether the connection state of the first wireless network is changed or not through the AP, and when the connection state of the first wireless network is switched from the connection disconnection state to the connection establishment state, the electronic equipment can acquire the network signal strength of the second wireless network, and further adjust the measurement strategy of the second wireless network based on the network signal strength. In one embodiment, the electronic device monitors a connection state of the first wireless network through the AP, when the connection state of the first wireless network changes, the electronic device may send the change of the connection state to the modem communication module, and then when the modem communication module receives that the first wireless network is switched from a connection disconnection state to a connection establishment state, the electronic device may acquire a network signal strength of the second wireless network through the modem communication module, and adjust a measurement policy of the modem communication module for performing cell measurement on the second wireless network according to the network signal strength, so that power consumption of the modem communication module may be reduced, thereby reducing power consumption of the electronic device.
In one embodiment, the network communication method provided further includes: when the connection state of the first wireless network is detected to be switched from the connection establishment state to the connection disconnection state, the measurement strategy of the second wireless network is adjusted to be 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 policy of the second wireless network to a preset measurement policy. The preset measurement policy refers to a measurement policy adopted by the second wireless network in the normal operation state of the electronic device, and specifically may be a default measurement policy of the second wireless network pre-stored by the electronic device. The electronic device may adjust a 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 further adjust the measurement policy of the second wireless network to a preset measurement policy when detecting that the connection state of the first wireless network is switched from the connection establishment state to the connection disconnection state, so that power consumption of the electronic device may be reduced while maintaining a stable type of the second wireless network.
In one embodiment, the network communication method provided further includes: and when the connection state of the first wireless network is detected to be in a roaming state, maintaining the measurement strategy of the second wireless network.
Roaming state refers to a process in which an electronic device can be handed over from one wireless access point to another wireless access point and maintain a network connection when there are multiple wireless access points around the electronic device and the electronic device moves in an area where the multiple wireless access points are covered. The electronic device may maintain the measurement policy of the second wireless network when the first wireless network is in the roaming state, i.e., without adjusting the measurement policy of the second wireless network.
In one embodiment, a network communication processing method is provided, and specific operations for implementing the method are as follows:
first, the electronic device detects a connection state 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, wireless bridges, and the like. The electronic device may monitor a connection state between the electronic device and the first wireless network through the AP.
Then, 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 connection with the wireless local area network, and a wireless communication function is realized through the wireless local area network. Specifically, when the electronic device detects that the connection state with the first wireless network is the connection establishment state, the electronic device may acquire the network signal strength of the cell in which the second wireless network connection is established with the electronic device. The second wireless network may be a mobile communication network supporting mobile communication technologies such as 4G, 3G, 2G, etc.
Optionally, the electronic device detects whether the first wireless network is in a wireless communication state, and adjusts the measurement frequency of the second wireless network when the first wireless network is not in the wireless communication state. Thus, 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 communication state, the electronic device can not adjust the measurement frequency of the second wireless network, so that communication quality can be ensured.
Optionally, when detecting that the connection state of the first wireless network is switched from the connection disconnection state to the connection establishment state, the electronic device acquires the network signal strength of the second wireless network. The electronic equipment can monitor whether the connection state of the first wireless network is changed or not through the AP, and when the connection state of the first wireless network is switched from the connection disconnection state to the connection establishment state, the electronic equipment can acquire the network signal strength of the second wireless network, and further adjust the measurement strategy of the second wireless network based on the network signal strength.
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 policy of the second wireless network is adjusted to a preset measurement policy. The preset measurement policy refers to a measurement policy adopted by the second wireless network in the normal operation state of the electronic device, and specifically may be a default measurement policy of the second wireless network pre-stored by the electronic device.
Optionally, when the electronic device detects that the connection state of the first wireless network is in the roaming state, the measurement policy of the second wireless network is maintained. The electronic device may maintain the measurement policy of the second wireless network when the first wireless network is in the roaming state, i.e., without adjusting the measurement policy of the second wireless network.
The electronic device then adjusts a measurement policy of the second wireless network based on the network signal strength. The measurement policy of the second wireless network refers to a policy of measuring cell signals. Specifically, the electronic device may measure the cell signal through the modem communication module. The electronic device adjusts a measurement policy of the second wireless network based on the network signal strength. Specifically, the electronic device may preset measurement policies corresponding to different network signal strengths, so as to adjust the second wireless network according to the measurement policies corresponding to the acquired network signal strengths.
Optionally, the electronic device adjusts a measurement frequency of the second wireless network when the network signal strength exceeds the first strength threshold, wherein the measurement frequency is a frequency at which cell signal measurements are made. In the running process of the second wireless network function in the electronic equipment, along with the movement of the electronic equipment or other factors, the signal strength of the cell in which the second wireless network is located and the signal strength of other cells can be changed continuously, and the electronic equipment can measure the network signal strength of the other cells at regular time so as to select a more proper cell. When the first wireless network is in a connection establishment state, when the network signal strength of the second wireless network is detected to exceed the first strength threshold value, the measurement frequency of the second wireless network is adjusted, so that the power consumption can be reduced while the network quality of the electronic equipment is ensured.
Optionally, the electronic device detects an intensity difference between the network signal intensity and the first intensity threshold, obtains a frequency adjustment coefficient corresponding to the intensity difference, and adjusts the measurement frequency of the second wireless network according to the frequency adjustment coefficient.
Optionally, the electronic device prohibits the second wireless network from 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. The reselection operation refers to an operation that the electronic device selects a more suitable cell to perform the second wireless network connection according to the result of cell signal measurement. The electronic device may prohibit the second wireless network from performing at least one of a measurement operation and a reselection operation, i.e., prohibit the modem communication module from performing at least one of a cell signal measurement and a cell reselection, when the network signal strength exceeds the second strength threshold.
Fig. 5 is a block diagram of a network communication processing apparatus in one embodiment. As shown in fig. 5, the network communication processing apparatus includes a detection module 502, an acquisition module 504, and an adjustment module 506, where:
the detection module 502 is configured to detect a connection state between the electronic device and the first wireless network.
An obtaining module 504, configured to obtain a network signal strength of the second wireless network when the connection state is a connection establishment state.
An adjustment module 506 is configured to adjust a measurement policy of the second wireless network based on the network signal strength.
The network communication processing device provided by the embodiment of the invention can be used for detecting and detecting the connection state between the electronic equipment and the first wireless network, when the connection state is the connection establishment state, the network signal intensity of the second wireless network is acquired, the measurement strategy of the second wireless network is adjusted based on the network signal intensity, the measurement strategy of the second wireless network can be adjusted more accurately, the consumed power consumption of different measurement strategies is different, and therefore, the power consumption of the electronic equipment can be reduced after the measurement strategy is adjusted according to the network signal intensity.
In one embodiment, the adjustment module 506 may be further configured to adjust a measurement frequency of the second wireless network when the network signal strength exceeds the first strength threshold, wherein the measurement frequency is a frequency at which cell signal measurements are made.
In one embodiment, the adjustment module 506 may also be configured to detect an intensity difference between the network signal intensity and a first intensity threshold; acquiring a frequency adjustment coefficient corresponding to the intensity difference value; and adjusting the measurement frequency of the second wireless network according to the frequency adjustment coefficient.
In one embodiment, the adjustment module 506 may also be configured to detect whether the first wireless network is in a wireless talk state; and when the first wireless network is not in the wireless communication state, adjusting the measurement frequency of the second wireless network.
In one embodiment, the adjustment module 506 may be further configured to inhibit the second wireless network from at least one of measuring and reselecting when the network signal strength exceeds a second strength threshold, wherein the second strength threshold is greater than the first strength threshold.
In one embodiment, the obtaining module 504 may be further 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 connection-off state to the connection-on state.
In one embodiment, the adjustment module 506 may be further 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 the various modules in the network communication processing device is for illustration only, and in other embodiments, the network communication processing device may be divided into different modules as needed to perform all or part of the functions of the network communication processing device.
Fig. 6 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 6, the electronic device includes a processor and a memory connected by a system bus. Wherein the processor is configured to provide computing and control capabilities to support operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a network communication processing method provided in the following embodiments. The internal memory provides a cached operating environment for operating system computer programs in the non-volatile storage medium. The electronic device may be a cell phone, tablet computer or personal digital assistant or wearable device, etc.
Embodiments of the present application also provide a computer-readable storage medium. A computer program stored thereon, characterized in that the computer program, when executed by a processor, implements a network communication processing method as described above.
The embodiment of the application also provides electronic equipment. As shown in fig. 7, for convenience of explanation, only the portions related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method portions of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant ), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the electronic device as an example of the mobile phone:
Fig. 7 is a block diagram of a part of a structure of a mobile phone related to an electronic device according to an embodiment of the present application. Referring to fig. 7, the mobile phone includes: radio Frequency (RF) circuitry 710, memory 720, input unit 730, display unit 740, sensor 750, audio circuitry 760, wireless fidelity (wireless fidelity, wiFi) module 770, processor 780, power supply 790, and the like. It will be appreciated by those skilled in the art that the handset construction shown in fig. 7 is not limiting of the handset and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The RF circuit 710 may be configured to receive and transmit information or receive and transmit signals during a call, and may receive downlink information of a base station and process the downlink information with the processor 780; the uplink data may be transmitted to the base station. Typically, RF circuitry includes, but is not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers (Low Noise Amplifier, LNAs), diplexers, and the like. In addition, the RF circuitry 710 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol including, but not limited to, global system for mobile communications (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 (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), email, short message service (Short Messaging Service, SMS), and the like.
The memory 720 may be used to store software programs and modules, and the processor 780 performs various functional applications and data processing of the handset 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, application programs required for at least one function (such as an application program of a sound playing function, an application program of an image playing function, etc.), and the like; the data storage area may store data (such as audio data, address book, etc.) created according to the use of the cellular phone, etc. In addition, memory 720 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The input unit 730 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 700. In particular, the input unit 730 may include a touch panel 731 and other input devices 732. The touch panel 731, which may also be referred to as a touch screen, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch panel 731 or thereabout using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a predetermined program. In one embodiment, touch panel 731 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 780, and can receive commands from the processor 780 and execute them. In addition, the touch panel 731 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 730 may include other input devices 732 in addition to the touch panel 731. In particular, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), and the like.
The display unit 740 may be used to display information input by a user or information 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 (OLED), or the like. In one embodiment, touch panel 731 may overlay display panel 741, and when touch panel 731 detects a touch operation thereon or thereabout, it is passed to processor 780 to determine the type of touch event, and processor 780 then provides a corresponding visual output on display panel 741 based on the type of touch event. Although in fig. 7, the touch panel 731 and the display panel 741 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 may be integrated to implement the input and output functions of the mobile phone.
The handset 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 ambient light, and the proximity sensor may turn off the display panel 741 and/or the backlight when the mobile phone moves to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the acceleration in all directions, the gravity and the direction can be detected when the motion sensor is static, and the motion sensor can be used for identifying the application of the gesture of a mobile phone (such as switching of a transverse screen and a vertical screen), vibration identification related functions (such as a pedometer and knocking) and the like; in addition, the mobile phone can be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor and the like.
Audio circuitry 760, speaker 761, and microphone 762 may provide an audio interface between a user and a cell phone. The audio circuit 760 may transmit the received electrical signal converted from audio data to the speaker 761, and the electrical signal is converted into a sound signal by the speaker 761 to be output; on the other hand, microphone 762 converts the collected sound signals into electrical signals, which are received by audio circuit 760 and converted into audio data, which are processed by audio data output processor 780, and then transmitted to another cell phone via RF circuit 710 or output to memory 720 for subsequent processing.
WiFi belongs to a short-distance wireless transmission technology, and a mobile phone can help a user to send and receive emails, browse webpages, access streaming media and the like through a WiFi module 770, so that wireless broadband Internet access is provided for the user. Although fig. 7 shows a WiFi module 770, it is to be understood that it is not a necessary component of the handset 700 and may be omitted as desired.
The processor 780 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions and processes of the mobile phone by running or executing software programs and/or modules stored in the memory 720 and calling data stored in the memory 720, thereby performing overall monitoring of the mobile phone. In one embodiment, the 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 primarily processes operating systems, user interfaces, application programs, and the like; the modem processor primarily handles wireless communications. It will be appreciated that the modem processor may not be integrated into the processor 780.
The handset 700 further includes a power supply 790 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 780 through a power management system, such as to provide for managing charging, discharging, and power consumption by the power management system.
In one embodiment, the handset 700 may also include a camera, bluetooth module, or the like.
In the embodiment of the present application, the processor 780 included in the electronic device implements the network communication processing method described above when executing the computer program stored on the memory.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable nonvolatile memory can 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 a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (24)

1. A network communication processing method, comprising:
detecting a connection state between the electronic device and the first wireless network;
when the connection state is a connection establishment state, acquiring the network signal strength of the second wireless network; and
And when the network signal strength exceeds a first strength threshold, reducing the measurement frequency for measuring the second wireless network, wherein the network signal strength exceeds the first strength threshold, which indicates that mobile communication service is realized under the condition that the electronic equipment is accessed to the second wireless network.
2. The method of claim 1, wherein said reducing the measurement frequency at which measurements are made on the second wireless network comprises:
Detecting an intensity difference between the network signal intensity and the first intensity threshold;
acquiring a frequency adjustment coefficient corresponding to the intensity difference value; and
And reducing the measurement frequency for measuring the second wireless network according to the frequency adjustment coefficient.
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
And when the first wireless network is not in a wireless communication state, adjusting the measurement frequency of the second wireless network.
4. The method according to claim 1, wherein the method further comprises:
and when the network signal strength exceeds a second strength threshold, prohibiting the second wireless network from at least one of a measurement operation and a reselection operation, wherein the second strength threshold is greater than the first strength threshold.
5. The method of claim 1, wherein obtaining the network signal strength of the second wireless network when the connection state is a connection establishment state comprises:
and when the connection state of the first wireless network is detected to be switched from the connection disconnection state to the connection establishment state, acquiring the network signal strength of the second wireless network.
6. The method as recited in claim 1, further comprising:
and when the connection state of the first wireless network is detected to be 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.
7. A network communication processing apparatus comprising:
the detection module is used for detecting the connection state between the electronic equipment and the first wireless network;
the acquisition module is used for acquiring the network signal strength of the second wireless network when the connection state is a connection establishment state; and
And the adjusting module is used for reducing the measurement frequency for measuring the second wireless network when the network signal strength exceeds a first strength threshold value, wherein the network signal strength exceeds the first strength threshold value, which indicates that mobile communication service is realized under the condition that the electronic equipment is accessed to the second wireless network.
8. The apparatus of claim 7, wherein the adjustment module is further configured to detect an intensity difference between the network signal intensity and the first intensity threshold; acquiring a frequency adjustment coefficient corresponding to the intensity difference value; and reducing a measurement frequency of the second wireless network according to the frequency adjustment coefficient.
9. The apparatus of claim 7, wherein the adjustment module is further configured to detect whether the first wireless network is in a wireless talk state; and when the first wireless network is not in the wireless communication state, adjusting the measurement frequency of the second wireless network.
10. The apparatus of claim 7, wherein the adjustment module is further configured to prohibit the second wireless network from 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.
11. The apparatus of claim 7, wherein the means for obtaining is further configured to obtain a 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 connection established state.
12. The apparatus of claim 7, wherein the adjustment module is further 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.
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 state between the electronic device and the first wireless network;
when the connection state is a connection establishment state, acquiring the network signal strength of the second wireless network; and
And when the network signal strength exceeds a first strength threshold, reducing the measurement frequency for measuring the second wireless network, wherein the network signal strength exceeds the first strength threshold, which indicates that mobile communication service is realized under the condition that the electronic equipment is accessed to the second wireless network.
14. The computer readable storage medium of claim 13, wherein the processor, when executing the reducing the measurement frequency of the measurements made on the second wireless network, further performs the operations of:
detecting an intensity difference between the network signal intensity and the first intensity threshold;
acquiring a frequency adjustment coefficient corresponding to the intensity difference value; and
And reducing the measurement frequency for measuring the second wireless network according to the frequency adjustment coefficient.
15. The computer-readable storage medium of claim 13, wherein the processor further performs the following:
detecting whether the first wireless network is in a wireless call state; and
And when the first wireless network is not in a wireless communication state, adjusting the measurement frequency of the second wireless network.
16. The computer-readable storage medium of claim 13, wherein the processor further performs the following:
and when the network signal strength exceeds a second strength threshold, prohibiting the second wireless network from at least one of a measurement operation and a reselection operation, wherein the second strength threshold is greater than the first strength threshold.
17. The computer-readable storage medium of claim 13, wherein the processor performs the following operations when the network signal strength of the second wireless network is acquired when the connection state is a connection establishment state:
and when the connection state of the first wireless network is detected to be switched from the connection disconnection state to the connection establishment state, acquiring the network signal strength of the second wireless network.
18. The computer-readable storage medium of claim 13, wherein the computer-executable instructions, when executed by one or more processors, cause the processors to further perform the operations of:
And when the connection state of the first wireless network is detected to be 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.
19. An electronic device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to:
detecting a connection state between the electronic device and the first wireless network;
when the connection state is a connection establishment state, acquiring the network signal strength of the second wireless network; and
And when the network signal strength exceeds a first strength threshold, reducing the measurement frequency for measuring the second wireless network, wherein the network signal strength exceeds the first strength threshold, which indicates that mobile communication service is realized under the condition that the electronic equipment is accessed to the second wireless network.
20. The electronic device of claim 19, wherein the processor, when executing the reducing the measurement frequency of the measurement performed on the second wireless network, further performs the operations of:
detecting an intensity difference between the network signal intensity and the first intensity threshold;
Acquiring a frequency adjustment coefficient corresponding to the intensity difference value; and
And adjusting the measurement frequency of the second wireless network according to the reduction of the frequency adjustment coefficient.
21. The electronic device of claim 19, wherein the processor further performs the following:
detecting whether the first wireless network is in a wireless call state; and
And when the first wireless network is not in a wireless communication state, adjusting the measurement frequency of the second wireless network.
22. The electronic device of claim 19, wherein the processor further performs the following:
and when the network signal strength exceeds a second strength threshold, prohibiting the second wireless network from at least one of a measurement operation and a reselection operation, wherein the second strength threshold is greater than the first strength threshold.
23. The electronic device of claim 19, wherein the processor performs the following when the network signal strength of the second wireless network is obtained when the connection state is a connection establishment state:
and when the connection state of the first wireless network is detected to be switched from the connection disconnection state to the connection establishment state, acquiring the network signal strength of the second wireless network.
24. The electronic device of claim 19, wherein the computer readable instructions, when executed by the processor, cause the processor to:
and when the connection state of the first wireless network is detected to be 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.
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 and device, electronic equipment 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 An Access Point Of A 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 An Access Point Of A 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
WO2020103077A1 (en) 2020-05-28
CN112740827A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN107820331B (en) Call method, device, computer equipment and readable storage medium
US10285106B2 (en) User equipment and method for ensuring continuous service reception in wireless network
CN110278574B (en) Measurement method, measurement configuration method, terminal and network equipment
CN111770529B (en) Method for processing relaxation measurement parameter update, terminal device and storage medium
CN106604314B (en) WiFi roaming network access method and terminal equipment
JP7565335B2 (en) COMMUNICATION PROCESSING METHOD, COMMUNICATION PROCESSING DEVICE, TERMINAL EQUIPMENT, AND STORAGE MEDIUM
CN108471626B (en) Reporting method and detection method of UE (user equipment) capability, mobile terminal and server
CN107846723B (en) Wireless local area network scanning method and device, computer equipment and storage medium
CN111641963B (en) Cell measurement method and terminal equipment
CN107820301B (en) Control method, device, terminal and storage medium of wireless local area network switch
CN111787563A (en) Method for executing relaxation measurement and terminal equipment
US11076354B2 (en) Cell handover method and terminal device
CN111050373A (en) Cell reselection method, cell reselection device, electronic equipment and computer-readable storage medium
CN108601068B (en) UE capability detection method, reporting method, mobile terminal and server
CN112954755B (en) Optimized network switching method and device and computer readable storage medium
CN114173389A (en) Processing method, mobile terminal and 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
CN117063502A (en) Processing method, terminal device and readable storage medium
CN110856207A (en) Neighbor cell measurement method and terminal equipment
CN114828130B (en) Network switching method of terminal equipment, terminal equipment and storage medium
CN114828187B (en) Method for adjusting power of electronic equipment, electronic equipment and storage medium
CN114245427B (en) Network switching method and device and mobile terminal
CN112752317B (en) Service cell selection method, device, terminal equipment and storage medium
CN114554559B (en) Cell switching control method and device and terminal 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
GR01 Patent grant
GR01 Patent grant