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

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

Info

Publication number
WO2020103077A1
WO2020103077A1 PCT/CN2018/116914 CN2018116914W WO2020103077A1 WO 2020103077 A1 WO2020103077 A1 WO 2020103077A1 CN 2018116914 W CN2018116914 W CN 2018116914W WO 2020103077 A1 WO2020103077 A1 WO 2020103077A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless network
network
measurement
state
signal strength
Prior art date
Application number
PCT/CN2018/116914
Other languages
French (fr)
Chinese (zh)
Inventor
林进全
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/116914 priority Critical patent/WO2020103077A1/en
Priority to CN201880097944.1A priority patent/CN112740827B/en
Publication of WO2020103077A1 publication Critical patent/WO2020103077A1/en

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

Definitions

  • the present application relates to the field of computer communication technology, and in particular, to a network communication processing method, a computer-readable storage medium, and an electronic device.
  • wireless local area networks With the rapid development of computer communication technology, electronic devices can realize wireless communication functions through wireless local area networks or mobile communication systems.
  • the wireless local area network When the electronic device is in the wireless local area network coverage area, the wireless local area network is usually used to realize the wireless communication function.
  • the mobile communication system of the electronic device is still in a working state, and there is a problem of large power consumption.
  • 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 including:
  • connection state is the connection establishment state, acquiring the network signal strength of the second wireless network
  • the measurement strategy of the second wireless network is adjusted.
  • One or more computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to perform the following operations:
  • connection state is the connection establishment state, acquiring the network signal strength of the second wireless network
  • the measurement strategy of the second wireless network is adjusted.
  • An electronic device includes a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor causes the processor to perform the following operations:
  • connection state is the connection establishment state, acquiring the network signal strength of the second wireless network
  • the measurement strategy of the second wireless network is adjusted.
  • the above network communication processing method, computer-readable storage medium, and electronic device detect the connection status between the electronic device and the first wireless network, and when the connection status is the connection establishment status, acquire the network signal strength of the second wireless network based on The network signal strength adjusts 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 the electronic device can be reduced.
  • FIG. 1 is an application environment diagram of a network communication processing method in an embodiment.
  • FIG. 2 is a flowchart of a network communication processing method in an embodiment.
  • FIG. 3 is a flowchart of adjusting the measurement frequency of the second wireless network in an embodiment.
  • FIG. 4 is a flowchart of adjusting the measurement frequency of the wireless network in one embodiment.
  • FIG. 5 is a structural block diagram of a network communication processing device in an embodiment.
  • FIG. 6 is a schematic diagram of an internal structure of an electronic device in an embodiment.
  • FIG. 7 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application.
  • first”, “second”, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.
  • the first wireless network may be referred to as the second wireless network, and similarly, the second wireless network may be referred to as the first wireless network.
  • 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 an embodiment.
  • the application environment includes an electronic device 110, a first wireless network 120, and a second wireless network 130.
  • the electronic device 110 may detect the connection status between the electronic device 110 and the first wireless network 120.
  • the connection status is the connection establishment state
  • the electronic device 110 obtains the network signal strength of the second wireless network 130 based on the network signal strength To adjust the measurement strategy of the second wireless network 130.
  • 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.
  • the second wireless network 130 may be a mobile communication network that supports 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 electronic device 110 may be a mobile phone, a computer, a wearable device, etc., and is not limited herein.
  • 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 in FIG. 1 as an example.
  • the network communication processing method includes operations 202 to 206. among them:
  • Operation 202 detecting the connection status between the electronic device and the first wireless network.
  • the connection status refers to the connection between the electronic device and the first wireless network.
  • the connection state may include a connection establishment state, a disconnected state, a roaming state, etc.
  • 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).
  • AP Application Processor
  • Operation 204 when the connection state is the connection establishment state, obtain the network signal strength of the second wireless network.
  • the connection establishment state refers to a state where the electronic device establishes a connection with the wireless local area network and realizes the wireless communication function through the wireless local area network.
  • the second wireless network may be a mobile communication network that supports mobile communication technologies such as 4G, 3G, and 2G.
  • the electronic device includes a modem (modem) communication module.
  • the modem communication module can be used to convert a baseband signal into a radio frequency signal and a radio frequency signal into a baseband signal.
  • the second wireless network can be connected through the modem communication module.
  • the network signal strength of the second wireless network may be represented by RSRP (Reference Signal Receiving Power), which is used to identify the linear average value of the received power on the resource element carrying the reference signal on the measurement frequency bandwidth.
  • RSRP Reference Signal Receiving Power
  • 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., and is not limited herein.
  • the network signal strength of the second wireless network is obtained.
  • the electronic device may obtain the network signal of the cell that establishes the second wireless network connection with the electronic device strength.
  • Operation 206 based on the network signal strength, adjust the measurement strategy of the second wireless network.
  • the measurement strategy of the second wireless network refers to a strategy for measuring cell signals.
  • the electronic device can measure the cell signal 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 the 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 no measurement is performed. Further, the higher the frequency of measurement by the electronic device, the greater the power consumption of the modem communication module.
  • the electronic device adjusts the measurement strategy of the second wireless network.
  • the electronic device can determine whether to perform the cell signal measurement according to the level of the network signal strength, and can also divide the measurement frequency corresponding to the signal strength of different networks, thereby changing 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 strategy of the second wireless network based on the network signal strength.
  • the electronic device may preset measurement strategies corresponding to different network signal strengths, so as to adjust the second wireless network according to the measurement strategies corresponding to the acquired network signal strengths.
  • 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 based on the network signal strength
  • 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 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, the problem of excessive power consumption of the electronic equipment caused by the uniform measurement strategy of the second wireless network is avoided, and the life time of the electronic equipment is increased.
  • 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: adjusting the measurement frequency of the second wireless network when the network signal strength exceeds the first strength threshold, Among them, the measurement frequency is the frequency at which the cell signal is measured.
  • the network signal strength can be expressed by RSRP.
  • 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 may implement basic mobile communication services. For example, the first intensity threshold may be -90 dBm (decibel milliwatts), -80 dBm, -75 dBm, -70 dBm, etc., but 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.
  • the electronic device can periodically measure the network of other cells Signal strength to select a more suitable cell.
  • 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.
  • the modem communication module in the electronic device uses a higher measurement frequency when measuring the cell signal, the greater the power consumption, 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 The network quality of the wireless network.
  • 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 Power consumption.
  • FIG. 3 is a flowchart of adjusting the measurement frequency of the second wireless network in an 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:
  • Operation 302 detecting the difference between the network signal strength and the first strength threshold.
  • the electronic device may calculate the strength difference between the network signal strength and the first strength threshold according to the acquired network signal strength and the first strength threshold.
  • the frequency adjustment factor is used to adjust the measurement frequency of the second wireless network.
  • the frequency adjustment coefficient may be set according to a preset measurement frequency, where the preset measurement frequency is a common default measurement frequency of the second wireless network pre-stored by the electronic device.
  • the preset measurement frequency may be The measurement frequency corresponding to the second wireless network when the first wireless network is in a disconnected state.
  • the frequency adjustment factor can also be set according to the measurement frequency currently used by the electronic device.
  • the electronic device may pre-store frequency adjustment coefficients corresponding to different strength difference values, so as 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 value.
  • Operation 306 Adjust the measurement frequency of the second wireless network according to the frequency adjustment factor.
  • the electronic device may 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 measured every 50 seconds. When the frequency adjustment factor is 0.8, the adjusted measurement frequency is measured every 40 seconds. When the frequency adjustment factor is 0.5, the adjusted The measurement frequency is measured every 25 seconds. In one 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 acquired network signal strength.
  • the electronic device detects the strength difference between the network signal strength and the first strength threshold, obtains a frequency adjustment coefficient corresponding to the strength difference, and adjusts the measurement frequency of the second wireless network, Can improve the accuracy of measurement strategy adjustment.
  • the process of adjusting the measurement strategy of the second wireless network in the provided network communication method further includes: when the network signal strength exceeds the second strength threshold, prohibiting the second wireless network from performing measurement operations and reselection operations At least one, wherein the second intensity threshold is greater than the first intensity threshold.
  • the second intensity threshold can be set according to actual needs.
  • the second intensity threshold is greater than the first intensity threshold.
  • the second intensity threshold may be -80 dBm, -75 dBm, -70 dBm, etc. It is not limited thereto; when the first intensity threshold is -80 dBm, Then, the second intensity threshold may be -75 dBm, -70 dBm, -63 dBm, etc., which is not limited thereto.
  • the reselection operation refers to an operation in which the electronic device selects a more suitable cell to connect to the second wireless network according to the measurement result of the cell signal.
  • the electronic device may prohibit the second wireless network from performing at least one of the measurement operation and the reselection operation when the network signal strength exceeds the second strength threshold, that is, prohibiting the modem communication module from performing at least one of the cell signal measurement and the cell reselection.
  • the electronic device sets different intensity thresholds for prohibiting the measurement operation and the reselection operation of the second wireless network, respectively.
  • the second wireless network 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, where the measurement threshold and the reselection threshold Both are higher than the first intensity threshold, and the measurement threshold may be equal to or greater than the reselection threshold.
  • FIG. 4 is a flowchart of adjusting the measurement frequency of the 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:
  • Operation 402 detecting whether the first wireless network is in a wireless call state.
  • the first wireless network being in a wireless call state refers to a state in which the electronic device is in a wireless call with other electronic devices through the first wireless network.
  • 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 the first strength threshold. Specifically, the electronic device may directly detect whether the first wireless network is in the wireless call state, or may detect whether the first wireless network is used for the wireless call in the wireless call state when the electronic device is in the wireless call state.
  • Operation 404 when the first wireless network is not in a wireless call state, adjust the measurement frequency of the second wireless network.
  • 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.
  • the electronic device may not adjust the measurement frequency of the second wireless network to ensure the call quality.
  • the process of acquiring 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 disconnected state When the connection is established, the network signal strength of the second wireless network is obtained.
  • the disconnected state refers to a state where the electronic device has not established a connection with the wireless local area network and cannot realize the 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.
  • the electronic device can obtain the network signal strength of the second wireless network, Furthermore, based on the network signal strength, the measurement strategy of the second wireless network is adjusted.
  • the electronic device monitors the connection status of the first wireless network through the AP.
  • the electronic device can send the change of the connection status to the modem communication module, and then the modem communication module
  • the electronic device may obtain the network signal strength of the second wireless network through the modem communication module, and adjust the modem communication module to the second wireless network according to the network signal strength
  • the measurement strategy of cell measurement can reduce the power consumption of the modem communication module, thereby reducing the power consumption of electronic devices.
  • the provided network communication method 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 the preset measurement strategy .
  • the electronic device may adjust the measurement strategy of the second wireless network to the preset measurement strategy.
  • the preset measurement strategy refers to a measurement strategy adopted by the second wireless network in the normal operation state of the electronic device, and specifically, may be a default measurement strategy of the second wireless network pre-stored by the electronic device.
  • the electronic device may adjust the measurement strategy 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, when detecting the connection state of the first wireless network, switch from the connection establishment state to the connection In the disconnected state, the measurement strategy of the second wireless network is adjusted to a preset measurement strategy, which can reduce the power consumption of the electronic device while maintaining the stability of the second wireless network.
  • the provided network communication method further includes: when detecting that the connection state of the first wireless network is in the roaming state, maintaining the measurement strategy of the second wireless network.
  • 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 the multiple wireless access points, it can switch from one wireless access point to another wireless access point 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 the roaming state, that is, do not adjust the measurement strategy of the second wireless network.
  • a network communication processing method is provided, and specific operations for implementing the method are as follows:
  • the electronic device detects the 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 may monitor the connection status between the electronic device and the first wireless network through the AP.
  • connection state when the connection state is the connection establishment state, the electronic device acquires the network signal strength of the second wireless network.
  • the connection establishment state refers to a state where the electronic device establishes a connection with the wireless local area network and realizes the wireless communication function through the wireless local area network.
  • the electronic device may acquire the network signal strength of the cell that establishes the second wireless network connection with the electronic device.
  • the second wireless network may be a mobile communication network that supports mobile communication technologies such as 4G, 3G, and 2G.
  • the electronic device detects whether the first wireless network is in the wireless call state, and adjusts the measurement frequency of the second wireless network when the first wireless network is not in the wireless call state. Therefore, the influence of the adjustment of the measurement frequency on the wireless call can be avoided.
  • the electronic device may not adjust the measurement frequency of the second wireless network to ensure the call quality.
  • the electronic device acquires 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.
  • the electronic device can obtain the network signal strength of the second wireless network, Furthermore, based on the network signal strength, the measurement strategy of the second wireless network is adjusted.
  • the measurement strategy of the second wireless network is adjusted to the preset measurement strategy.
  • the preset measurement strategy refers to a measurement strategy adopted by the second wireless network in the normal operation state of the electronic device, and specifically, may be a default measurement strategy of the second wireless network pre-stored by the electronic device.
  • the electronic device when the electronic device detects that the connection state of the first wireless network is in the roaming state, the measurement strategy of the second wireless network is maintained.
  • the electronic device may maintain the measurement strategy of the second wireless network when the first wireless network is in the roaming state, that is, do not adjust the measurement strategy of the second wireless network.
  • the electronic device adjusts the measurement strategy 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 the cell signal through the modem communication module. The electronic device adjusts the measurement strategy 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 measurement strategies corresponding to the acquired network signal strengths.
  • the electronic device adjusts the measurement frequency of the second wireless network, where the measurement frequency is the frequency at which the cell signal is measured.
  • the measurement frequency is the frequency at which the cell signal is measured.
  • the electronic device can periodically measure the network of other cells Signal strength to select a more suitable cell.
  • the electronic device detects an intensity difference between the network signal strength 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.
  • the electronic device prohibits the second wireless network from performing at least one of a measurement operation and a reselection operation, where 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 to connect to the second wireless network according to the measurement result of the cell signal.
  • the electronic device may prohibit the second wireless network from performing at least one of the measurement operation and the reselection operation when the network signal strength exceeds the second strength threshold, that is, prohibiting the modem communication module from performing at least one of the cell signal measurement and the cell reselection.
  • the network communication processing device includes a detection module 502, an acquisition module 504, and an adjustment module 506, where:
  • the detection module 502 is configured to detect the connection status between the electronic device and the first wireless network.
  • 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.
  • the adjustment module 506 is used to adjust the measurement strategy of the second wireless network based on the network signal strength.
  • the network communication processing apparatus may be used to detect and detect the connection state between the electronic device and the first wireless network, and when the connection state is the connection establishment state, acquire 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, it can be reduced Power consumption of electronic equipment.
  • the adjustment module 506 can also be used 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 the frequency at which the cell signal is measured.
  • the adjustment module 506 can also be used to detect the difference between the strength of the network signal strength and the first strength threshold; obtain a frequency adjustment coefficient corresponding to the strength difference; and to the second wireless network according to the frequency adjustment coefficient Adjust the measurement frequency.
  • the adjustment module 506 can also be used 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, adjust the measurement frequency of the second wireless network.
  • the adjustment module 506 may be further 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 the second strength threshold, where the second strength threshold is greater than the An intensity threshold.
  • the acquiring module 504 may be further configured to acquire 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 connection established state.
  • the adjustment module 506 can also be used to adjust the measurement strategy of the second wireless network to the preset measurement strategy when it is detected that the connection state of the first wireless network is switched from the connection establishment state to the disconnected state.
  • each module in the network communication processing device is for illustration only. In other embodiments, the network communication processing device may be divided into different modules as needed to complete all or part of the functions of the network communication processing device .
  • the electronic device includes a processor and a memory connected by a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory may include a non-volatile storage medium and internal memory.
  • the non-volatile storage medium stores an operating system and computer programs.
  • the computer program can be executed by the processor to implement a network communication processing method provided by the following embodiments.
  • the internal memory provides a cached operating environment for the operating system computer programs 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 embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored thereon, which is characterized in that when the computer program is executed by a processor, the network communication processing method as described above is realized.
  • An embodiment of the present application also provides an electronic device. As shown in FIG. 7, for ease of description, only parts related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments of the present application.
  • the electronic device may be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computer, wearable device, etc. Taking the electronic device as a mobile phone for example :
  • the mobile phone includes: a radio frequency (Radio Frequency) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780 , And power supply 790 and other components.
  • a radio frequency (Radio Frequency) circuit 710 for a radio frequency (Radio Frequency) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780 , And power supply 790 and other components.
  • WiFi wireless fidelity
  • FIG. 7 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or a different component arrangement.
  • the RF circuit 710 can be used for receiving and sending signals during sending and receiving information or during a call. It can receive the downlink information of the base station and process it to the processor 780; it can also send the uplink data to the base station.
  • RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on.
  • the RF circuit 710 can also communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Message Service (SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Message Service
  • the memory 720 may be used to store software programs and modules.
  • 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, where the program storage area may store an operating system and applications required for at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.), etc .;
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
  • 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, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 730 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the mobile phone 700.
  • the input unit 730 may include a touch panel 731 and other input devices 732.
  • the touch panel 731 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on or near the touch panel 731 Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 731 may include a touch detection device and a touch controller.
  • 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 touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 780, and can receive the command sent by the processor 780 and execute it.
  • the touch panel 731 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 730 may also include other input devices 732.
  • other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.).
  • the display unit 740 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 740 may include a display panel 741.
  • the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 731 may cover the display panel 741, and when the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event, and then the processor 780 according to The type of touch event provides a corresponding visual output on the display panel 741.
  • the touch panel 731 and the display panel 741 are implemented 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 may be integrated and Realize the input and output functions of the mobile phone.
  • the mobile phone 700 may further include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors.
  • 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 close the display panel 741 and / or when the mobile phone moves to the ear Or backlight.
  • the motion sensor may include an acceleration sensor, which can detect the magnitude of acceleration in various directions through the acceleration sensor, and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize mobile phone gestures (such as horizontal and vertical screen switching), and vibration recognition-related functions (such as Pedometer, percussion), etc.
  • the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor and so on.
  • the audio circuit 760, the speaker 761, and the microphone 762 may provide an audio interface between the user and the mobile phone.
  • the audio circuit 760 can transmit the received electrical signal converted to electrical signals to the speaker 761, which is converted into a sound signal output by the speaker 761; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 760 After receiving, it is converted into audio data, and then processed by the audio data output processor 780, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for subsequent processing.
  • WiFi is a short-range 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. It provides users with wireless broadband Internet access.
  • FIG. 7 shows the WiFi module 770, it can be understood that it is not a necessary component of the mobile phone 700, and may be omitted as needed.
  • the processor 780 is the control center of the mobile phone, connects various parts of the entire mobile phone with various interfaces and lines, executes or executes the software programs and / or modules stored in the memory 720, and calls the data stored in the memory 720 to execute Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole.
  • the processor 780 may include one or more processing units.
  • the processor 780 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the modem processor may not be integrated into the processor 780.
  • the mobile phone 700 also includes a power supply 790 (such as a battery) for powering various components.
  • a power supply 790 (such as a battery) for powering various components.
  • the power supply can be logically connected to the processor 780 through the power management system, so as to realize functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 700 may further include a camera, a Bluetooth module, and the like.
  • the processor 780 included in the electronic device implements the network communication processing method as described above when executing the computer program stored on the memory.
  • Non-volatile 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.
  • 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).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Abstract

Disclosed is 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; and based on the network signal strength, adjusting a measurement strategy for the second wireless network.

Description

网络通信处理方法、计算机可读存储介质和电子设备Network communication processing method, computer readable storage medium and electronic equipment 技术领域Technical field
本申请涉及计算机通信技术领域,特别是涉及一种网络通信处理方法、计算机可读存储介质和电子设备。The present application relates to the field of computer communication technology, and in particular, to a network communication processing method, a computer-readable storage medium, and an electronic device.
背景技术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 wireless local area network coverage area, 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 a working state, and there is a problem of large power consumption.
发明内容Summary 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, including:
检测电子设备与第一无线网络之间的连接状态;Detect the connection status between the electronic device and the first wireless network;
当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is the connection establishment state, acquiring the network signal strength of the second wireless network; and
基于所述网络信号强度,调整所述第二无线网络的测量策略。Based on the network signal strength, the measurement strategy of the second wireless network is adjusted.
一个或多个包含计算机可执行指令的计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下操作:One or more computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to perform the following operations:
检测电子设备与第一无线网络之间的连接状态;Detect the connection status between the electronic device and the first wireless network;
当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is the connection establishment state, acquiring the network signal strength of the second wireless network; and
基于所述网络信号强度,调整所述第二无线网络的测量策略。Based on the network signal strength, the measurement strategy of the second wireless network is adjusted.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下操作:An electronic device includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor causes the processor to perform the following operations:
检测电子设备与第一无线网络之间的连接状态;Detect the connection status between the electronic device and the first wireless network;
当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is the connection establishment state, acquiring the network signal strength of the second wireless network; and
基于所述网络信号强度,调整所述第二无线网络的测量策略。Based on the network signal strength, the measurement strategy of the second wireless network is adjusted.
上述网络通信处理方法、计算机可读存储介质和电子设备,通过检测电子设备与第一无线网络之间的连接状态,当连接状态为连接建立状态时,获取第二无线网络的网络信号强度,基于网络信号强度,调整第二无线网络的测量策略。由于可以在第一无线网络处于连接建立状态时,根据第二无线网络的网络信号强度调整第二无线网络的测量策略,可以更准确地对第二无线网络的测量策略进行调整,不同的测量策略所耗费的功耗不同,因此根据网络信号强度调节测量策略后,可以降低电子设备的功耗。The above network communication processing method, computer-readable storage medium, and electronic device detect the connection status between the electronic device and the first wireless network, and when the connection status is the connection establishment status, acquire the network signal strength of the second wireless network based on The network signal strength adjusts 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 the electronic device can be reduced.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the drawings and description below. Other features, objects, and advantages of this application will become apparent from the description, drawings, and claims.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments or the description of the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, without paying any creative work, other drawings can be obtained based on these drawings.
图1为一个实施例中网络通信处理方法的应用环境图。FIG. 1 is an application environment diagram of a network communication processing method in an embodiment.
图2为一个实施例中网络通信处理方法的流程图。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 an embodiment.
图4为一个实施例中调整无线网络的测量频率的流程图。FIG. 4 is a flowchart of adjusting the measurement frequency of the wireless network in one embodiment.
图5为一个实施例中网络通信处理装置的结构框图。5 is a structural block diagram of a network communication processing device in an embodiment.
图6为一个实施例中电子设备的内部结构示意图。6 is a schematic diagram of an internal structure of an electronic device in an embodiment.
图7为与本申请实施例提供的电子设备相关的手机的部分结构的框图。7 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be described in further detail in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一无线网络称为第二无线网络,且类似地,可将第二无线网络称为第一无线网络。第一无线网络和第二无线网络两者都是无线网络,但其不是同一无线网络。It can be understood that the terms “first”, “second”, etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first wireless network may be referred to as the second wireless network, and similarly, the second wireless network may be referred to as the first wireless network. 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 status between the electronic device 110 and the first wireless network 120. When the connection status is the connection establishment state, the electronic device 110 obtains the network signal strength of the second wireless network 130 based on the network signal strength To adjust the measurement strategy of the second wireless network 130. 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 that supports 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 electronic device 110 may be a mobile phone, a computer, a wearable device, etc., and is not limited herein.
图2为一个实施例中网络通信处理方法的流程图。本实施例中的网络通信处理方法,以运行于图1中的电子设备110上为例进行描述。如图2所示,网络通信处理方法包括操作202至操作206。其中: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 in FIG. 1 as an example. As shown in FIG. 2, the network communication processing method includes operations 202 to 206. among them:
操作202,检测电子设备与第一无线网络之间的连接状态。 Operation 202, detecting the connection status between the electronic device and the first wireless network.
连接状态是指电子设备与第一无线网络之间的连接情况。连接状态可以包括连接建立状态,连接断开状态,漫游状态等。第一无线网络可以是由无线交换机、无线路由器、无线网关、无线网桥等无线接入点形成的无线局域网络。电子设备可以与第一无线网络连接,从而实现无线上网功能。具体地,电子设备可以通过AP(Application Processor,应用处理器)监听电子设备与第一无线网络之间的连接状态。The connection status refers to the connection between the electronic device and the first wireless network. The connection state may include a connection establishment state, a disconnected state, a roaming state, etc. 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).
操作204,当连接状态为连接建立状态时,获取第二无线网络的网络信号强度。 Operation 204, when the connection state is the connection establishment state, obtain 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 where the electronic device establishes a connection with the wireless local area network and realizes the wireless communication function through the wireless local area network. The second wireless network may be a mobile communication network that supports mobile communication technologies such as 4G, 3G, and 2G. The electronic device includes a modem (modem) communication module. The modem communication module can be used to convert a baseband signal into a radio frequency signal and a radio frequency signal into a baseband signal. When the electronic device starts the second wireless network function, the second wireless network can be connected through the modem communication module. The network signal strength of the second wireless network may be represented by RSRP (Reference Signal Receiving Power), which is used to identify the linear average value of the received power on the resource element carrying 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., and is not limited herein.
当电子设备检测到与第一无线网络的连接状态为连接建立状态时,获取第二无线网络的网络信号强度,具体地,电子设备可以获取与电子设备建立第二无线网络连接的小区 的网络信号强度。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 obtained. 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, based on the network signal strength, adjust the measurement strategy of the second wireless network.
第二无线网络的测量策略是指对小区信号进行测量的策略。具体地,电子设备可以通过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 the cell signal 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 the 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 no measurement is performed. Further, the higher the frequency of measurement by the electronic device, 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 the cell signal measurement according to the level of the network signal strength, and can also divide the measurement frequency corresponding to the signal strength of different networks, thereby changing 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 strategy 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 measurement strategies corresponding to the acquired 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 based on the network signal strength 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 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, the problem of excessive power consumption of the electronic equipment caused by the uniform measurement strategy of the second wireless network is avoided, and the life time of the electronic equipment is increased.
在一个实施例中,提供的网络通信处理方法中基于网络信号强度,调整第二无线网络的测量策略的过程包括:当网络信号强度超过第一强度阈值时,调整第二无线网络的测量频率,其中,测量频率是进行小区信号测量的频率。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: adjusting the measurement frequency of the second wireless network when the network signal strength exceeds the first strength threshold, Among them, the measurement frequency is the frequency at which the cell signal is measured.
网络信号强度可以用RSRP表示,RSRP越大,则第二无线网络的网络信号强度越高,RSRP越小,则第二无线网络的网络信号强度越低。第一强度阈值可以根据实际需求设定。具体地,当第二无线网络的网络信号强度与第一强度阈值相同时,第二无线网络可以实现基本的移动通信业务。例如,第一强度阈值可以是-90dBm(分贝毫瓦)、-80dBm、-75dBm、-70dBm等不限于此。第二无线网络的测量频率是电子设备中包含的modem模块进行小区信号测量的频率。在电子设备中第二无线网络功能的运行过程中,随着电子设备的移动或其他因素,第二无线网络所在小区和其他小区的信号强度会不断发生变化,电子设备可以定时测量其他小区的网络信号强度,以选择更合适的小区。The network signal strength can be expressed 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 may implement basic mobile communication services. For example, the first intensity threshold may be -90 dBm (decibel milliwatts), -80 dBm, -75 dBm, -70 dBm, etc., but 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, as the electronic device moves 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 periodically 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 modem communication module in the electronic device uses a higher measurement frequency when measuring the cell signal, the greater the power consumption, 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 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 Power consumption.
图3为一个实施例中调整第二无线网络的测量频率的流程图。如图3所示,在一个实施例中,提供的网络通信方法中调整第二无线网络的测量频率的过程包括:FIG. 3 is a flowchart of adjusting the measurement frequency of the second wireless network in an 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 the difference between the network signal strength and the first strength threshold.
电子设备可以根据获取的网络信号强度和第一强度阈值计算网络信号强度与第一强度阈值之间的强度差值。The electronic device may calculate the 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,获取与强度差值相对应的频率调节系数。In operation 304, a frequency adjustment coefficient corresponding to the intensity difference is obtained.
频率调节系数用于调整第二无线网络的测量频率。具体地,频率调节系数可以根据预设测量频率进行设定,其中,预设测量频率为电子设备预存的第二无线网络在通常的默认测量频率,在一个实施例中,预设测量频率可以是第一无线网络处于连接断开状态时,第二无线网络对应的测量频率。频率调节系数也可以根据电子设备当前采用的测量频率进行设定。The frequency adjustment factor 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 common default measurement frequency of the second wireless network pre-stored by the electronic device. In one embodiment, the preset measurement frequency may be The measurement frequency corresponding to the second wireless network when the first wireless network is in a disconnected state. The frequency adjustment factor can also be set according to the measurement frequency currently used by the electronic device.
电子设备可以预存不同强度差值对应的频率调节系数,从而检测到网络信号强度与第一强度阈值之间的强度差值时,获取与该强度差值相对应的频率调节系数。The electronic device may pre-store frequency adjustment coefficients corresponding to different strength difference values, so as 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 value.
操作306,根据频率调节系数对第二无线网络的测量频率进行调整。Operation 306: Adjust the measurement frequency of the second wireless network according to the frequency adjustment factor.
电子设备可以根据频率调节系数对第二无线网络的测量频率进行调整。例如,第二无线网络的预设测量频率为每50秒测量一次,当频率调节系数为0.8时,则调整后的测量频率为每40秒测量一次,当频率调节系数为0.5时,则调整后的测量频率为每25秒测量一次。在一个实施例中,电子设备也可以预设不同的网络信号强度对应的测量频率,进而直接将第二无线网络的测量频率调整为与获取的网络信号强度相对应的测量频率。The electronic device may 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 measured every 50 seconds. When the frequency adjustment factor is 0.8, the adjusted measurement frequency is measured every 40 seconds. When the frequency adjustment factor is 0.5, the adjusted The measurement frequency is measured every 25 seconds. In one 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 acquired 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, obtains a frequency adjustment coefficient corresponding to the strength difference, and adjusts the measurement frequency of the second wireless network, Can improve the accuracy of measurement strategy adjustment.
在一个实施例中,提供的网络通信方法中调整第二无线网络的测量策略的过程还包括:当网络信号强度超过第二强度阈值时,禁止第二无线网络进行测量操作和重选操作中的至少一种,其中,第二强度阈值大于第一强度阈值。In one embodiment, the process of adjusting the measurement strategy of the second wireless network in the provided network communication method further includes: when the network signal strength exceeds the second strength threshold, prohibiting the second wireless network from performing measurement operations and reselection operations 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 -90 dBm, the second intensity threshold may be -80 dBm, -75 dBm, -70 dBm, etc. It is not limited thereto; when the first intensity threshold is -80 dBm, Then, the second intensity threshold may be -75 dBm, -70 dBm, -63 dBm, etc., which is not limited thereto. The reselection operation refers to an operation in which the electronic device selects a more suitable cell to connect to the second wireless network according to the measurement result of the cell signal. The electronic device may prohibit the second wireless network from performing at least one of the measurement operation and the reselection operation when the network signal strength exceeds the second strength threshold, that is, prohibiting the modem communication module from performing at least one of the cell signal measurement and the cell reselection. In one embodiment, the electronic device sets different intensity thresholds for prohibiting the measurement operation and the reselection operation of the second wireless network, 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, where the measurement threshold and the reselection threshold Both are higher than the first intensity threshold, and the measurement threshold may be equal to or greater than the reselection threshold.
图4为一个实施例中调整无线网络的测量频率的流程图。如图4所示,在一个实施例中,提供的网络通信方法中调整无线网络的测量频率的过程包括:FIG. 4 is a flowchart of adjusting the measurement frequency of the 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 a wireless call state refers to a state in which the electronic device is in a 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 the first strength threshold. Specifically, the electronic device may directly detect whether the first wireless network is in the wireless call state, or may detect whether the first wireless network is used for the wireless call in the wireless call state when the electronic device is in the wireless call state.
操作404,当第一无线网络不处于无线通话状态时,调整第二无线网络的测量频率。 Operation 404, when the first wireless network is not in a wireless call state, adjust the measurement frequency of the second wireless network.
当第一无线网络不处于无线通话状态时,电子设备可以根据第二无线网络的网络信号强度调整第二无线网络的测量频率,可以避免测量频率的调整对无线通话的影响。当第一无线网络处于无线通话状态时,电子设备可以不对第二无线网络的测量频率做调整,可以保证通话质量。When the first wireless network is not in a 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 to ensure the call quality.
在一个实施例中,提供的网络通信方法中当连接状态为连接建立状态时,获取第二无线网络的网络信号强度的过程包括:当检测到第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取第二无线网络的网络信号强度。In one embodiment, in the provided network communication method, when the connection state is the connection establishment state, the process of acquiring 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 disconnected state When the connection is established, the network signal strength of the second wireless network is obtained.
连接断开状态是指电子设备没有与无线局域网络建立连接,无法通过无线局域网络实现无线通信功能的状态。电子设备可以通过AP监听第一无线网络的连接状态是否发生变化,当第一无线网络的连接状态由连接断开状态切换至连接建立状态时,电子设备可以获取第二无线网络的网络信号强度,进而基于网络信号强度,调整第二无线网络的测量策略。在一个实施例中,电子设备通过AP监听第一无线网络的连接状态,当第一无线网络的连接状态发生变化时,电子设备可以将连接状态的变化发送给modem通信模块,接着当modem通信模块接收到第一无线网络从连接断开状态切换至连接建立状态时,电子设备可以通过modem通信模块获取第二无线网络的网络信号强度,根据该网络信号强度调整modem通信模块对第二无线网络进行小区测量的测量策略,可以降低modem通信模块的功耗,从而降低电子设备的功耗。The disconnected state refers to a state where the electronic device has not established a connection with the wireless local area network and cannot realize the 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. When the connection state of the first wireless network is switched from the disconnected state to the connection established state, the electronic device can obtain the network signal strength of the second wireless network, Furthermore, based on the network signal strength, the measurement strategy of the second wireless network is adjusted. In one embodiment, the electronic device monitors the connection status of the first wireless network through the AP. When the connection status of the first wireless network changes, the electronic device can send the change of the connection status to the modem communication module, and then the modem communication module When receiving that the first wireless network is switched from the disconnected state to the connection established state, the electronic device may obtain the network signal strength of the second wireless network through the modem communication module, and adjust the modem communication module to the second wireless network according to the network signal strength The measurement strategy of cell measurement can reduce the power consumption of the modem communication module, thereby reducing the power consumption of electronic devices.
在一个实施例中,提供的网络通信方法还包括:当检测到第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将第二无线网络的测量策略调整为预设测量策略。In one embodiment, the provided network communication method 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 the preset measurement strategy .
当第一无线网络的连接状态由连接建立状态切换至连接断开状态时,电子设备可以将第二无线网络的测量策略调整为预设测量策略。预设测量策略是指电子设备在正常运行状态下第二无线网络所采用的测量策略,具体地,可以是电子设备预存的第二无线网络的默认测量策略。电子设备可以在第一无线网络处于连接建立状态时,根据第二无线网络的网络信号强度调整第二无线网络的测量策略,进而,当检测第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将第二无线网络的测量策略调整为预设测量策略,可以在降低电子设备功耗的同时保持第二无线网络的稳定型。When the connection state of the first wireless network is switched from the connection establishment state to the disconnected state, the electronic device may adjust the measurement strategy of the second wireless network to the preset measurement strategy. The preset measurement strategy refers to a measurement strategy adopted by the second wireless network in the normal operation state of the electronic device, and specifically, may be a default measurement strategy of the second wireless network pre-stored by the electronic device. The electronic device may adjust the measurement strategy 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, when detecting the connection state of the first wireless network, switch from the connection establishment state to the connection In the disconnected state, the measurement strategy of the second wireless network is adjusted to a preset measurement strategy, which 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 the roaming state, maintaining the measurement strategy of the second wireless network.
漫游状态是指当电子设备周围存在多个无线接入点时,电子设备在多个无线接入点被覆盖的区域移动时,可以从一个无线接入点切换到另一个无线接入点并保持网络连接的过程。电子设备可以在第一无线网络处于漫游状态时,保持第二无线网络的测量策略,即不对第二无线网络的测量策略进行调整。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 the multiple wireless access points, it can switch from one wireless access point to another wireless access point 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 the roaming state, that is, do not adjust the measurement strategy 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:
首先,电子设备检测与第一无线网络之间的连接状态。第一无线网络可以是由无线交换机、无线路由器、无线网关、无线网桥等无线接入点形成的无线局域网络。电子设备可以通过AP监听电子设备与第一无线网络之间的连接状态。First, the electronic device detects the 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 may 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 acquires the network signal strength of the second wireless network. The connection establishment state refers to a state where the electronic device establishes a connection with the wireless local area network and realizes the 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 the connection establishment state, the electronic device may acquire the network signal strength of the cell that establishes the second wireless network connection with the electronic device. The second wireless network may be a mobile communication network that supports mobile communication technologies such as 4G, 3G, and 2G.
可选地,电子设备检测第一无线网络是否处于无线通话状态,当第一无线网络不处于无线通话状态时,调整第二无线网络的测量频率。从而可以避免测量频率的调整对无线通话的影响。当第一无线网络处于无线通话状态时,电子设备可以不对第二无线网络的测量频率做调整,可以保证通话质量。Optionally, the electronic device detects whether the first wireless network is in the wireless call state, and adjusts the measurement frequency of the second wireless network when the first wireless network is not in the wireless call state. Therefore, the influence of the adjustment of the measurement frequency on the wireless call 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 to ensure the call quality.
可选地,当检测到第一无线网络的连接状态由连接断开状态切换至连接建立状态时,电子设备获取第二无线网络的网络信号强度。电子设备可以通过AP监听第一无线网络的连接状态是否发生变化,当第一无线网络的连接状态由连接断开状态切换至连接建立状态时,电子设备可以获取第二无线网络的网络信号强度,进而基于网络信号强度,调整第二无线网络的测量策略。Optionally, when it is detected that the connection state of the first wireless network is switched from the disconnected state to the connection established state, the electronic device acquires 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. When the connection state of the first wireless network is switched from the disconnected state to the connection established state, the electronic device can obtain the network signal strength of the second wireless network, Furthermore, based on the network signal strength, the measurement strategy 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 the preset measurement strategy. The preset measurement strategy refers to a measurement strategy adopted by the second wireless network in the normal operation state of the electronic device, and specifically, may be a default measurement strategy 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 strategy of the second wireless network is maintained. The electronic device may maintain the measurement strategy of the second wireless network when the first wireless network is in the roaming state, that is, do not adjust the measurement strategy of the second wireless network.
接着,电子设备基于网络信号强度,调整第二无线网络的测量策略。第二无线网络的测量策略是指对小区信号进行测量的策略。具体地,电子设备可以通过modem通信模块对小区信号进行测量。电子设备基于网络信号强度,调整第二无线网络的测量策略。具体地,电子设备可以预设不同网络信号强度对应的测量策略,从而根据与获取的网络信号强度相对应的测量策略对第二无线网络进行调整。Next, the electronic device adjusts the measurement strategy 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 the cell signal through the modem communication module. The electronic device adjusts the measurement strategy 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 measurement strategies corresponding to the acquired 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 the frequency at which the cell signal is measured. During the operation of the second wireless network function in the electronic device, as the electronic device moves 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 periodically 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 Power consumption.
可选地,电子设备检测网络信号强度与第一强度阈值的强度差值,获取与强度差值相对应的频率调节系数,根据频率调节系数对第二无线网络的测量频率进行调整。Optionally, the electronic device detects an intensity difference between the network signal strength 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.
可选地,当网络信号强度超过第二强度阈值时,电子设备禁止第二无线网络进行测量操作和重选操作中的至少一种,其中,第二强度阈值大于第一强度阈值。重选操作是指电子设备根据小区信号测量的结果,选择更合适的小区进行第二无线网络连接的操作。电子设备可以在网络信号强度超过第二强度阈值时,禁止第二无线网络进行测量操作和重选操作中的至少一种,即禁止modem通信模块进行小区信号测量和小区重选中的至少一种。Optionally, when the network signal strength exceeds the second strength threshold, the electronic device prohibits the second wireless network from performing at least one of a measurement operation and a reselection operation, where 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 to connect to the second wireless network according to the measurement result of the cell signal. The electronic device may prohibit the second wireless network from performing at least one of the measurement operation and the reselection operation when the network signal strength exceeds the second strength threshold, that is, prohibiting the modem communication module from performing at least one of the cell signal measurement and the cell reselection.
图5为一个实施例中网络通信处理装置的结构框图。如图5所示,该网络通信处理装置包括检测模块502、获取模块504、调整模块506,其中:5 is a structural block diagram of a network communication processing device in an embodiment. As shown in FIG. 5, the network communication processing device includes a detection module 502, an acquisition module 504, and an adjustment module 506, where:
检测模块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,用于基于网络信号强度,调整第二无线网络的测量策略。The adjustment module 506 is used to adjust the measurement strategy of the second wireless network based on the network signal strength.
本申请实施例提供的网络通信处理装置,可以用于检测检测电子设备与第一无线网络之间的连接状态,当连接状态为连接建立状态时,获取第二无线网络的网络信号强度,基于网络信号强度,调整第二无线网络的测量策略,可以更准确地对第二无线网络的测量策略进行调整,不同的测量策略所耗费的功耗不同,因此根据网络信号强度调节测量策略后,可以降低电子设备的功耗。The network communication processing apparatus provided in the embodiments of the present application may be used to detect and detect the connection state between the electronic device and the first wireless network, and when the connection state is the connection establishment state, acquire 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, it can be reduced Power consumption of electronic equipment.
在一个实施例中,调整模块506还可以用于当网络信号强度超过第一强度阈值时,调整第二无线网络的测量频率,其中,测量频率是进行小区信号测量的频率。In one embodiment, the adjustment module 506 can also be used 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 the frequency at which the cell signal is measured.
在一个实施例中,调整模块506还可以用于检测网络信号强度与第一强度阈值的强度差值;获取与强度差值相对应的频率调节系数;及根据频率调节系数对第二无线网络的测量频率进行调整。In one embodiment, the adjustment module 506 can also be used to detect the difference between the strength of the network signal strength and the first strength threshold; obtain a frequency adjustment coefficient corresponding to the strength difference; and to the second wireless network according to the frequency adjustment coefficient Adjust the measurement frequency.
在一个实施例中,调整模块506还可以用于检测第一无线网络是否处于无线通话状态;及当第一无线网络不处于无线通话状态时,调整第二无线网络的测量频率。In one embodiment, the adjustment module 506 can also be used 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, adjust the measurement frequency of the second wireless network.
在一个实施例中,调整模块506还可以用于当网络信号强度超过第二强度阈值时,禁止第二无线网络进行测量操作和重选操作中的至少一种,其中,第二强度阈值大于第一强 度阈值。In one embodiment, the adjustment module 506 may be further 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 the second strength threshold, where the second strength threshold is greater than the An intensity threshold.
在一个实施例中,获取模块504还可以用于当检测到第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取第二无线网络的网络信号强度。In one embodiment, the acquiring module 504 may be further configured to acquire 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 connection established state.
在一个实施例中,调整模块506还可以用于当检测到第一无线网络的连接状态由连接建立状态切换至连接断开状态时,将第二无线网络的测量策略调整为预设测量策略。In one embodiment, the adjustment module 506 can also be used to adjust the measurement strategy of the second wireless network to the preset measurement strategy when it is detected that the connection state of the first wireless network is switched from the connection establishment state to the disconnected state.
所述网络通信处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将网络通信处理装置按照需要划分为不同的模块,以完成所述网络通信处理装置的全部或部分功能。The division of each module in the network communication processing device is for illustration only. In other embodiments, the network communication processing device may be divided into different modules as needed to complete all or part of the functions of the network communication processing device .
图6为一个实施例中电子设备的内部结构示意图。如图6所示,该电子设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种网络通信处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。6 is a schematic diagram of an internal structure of an electronic device in an embodiment. As shown in FIG. 6, the electronic device includes a processor and a memory connected by 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 a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and computer programs. The computer program can be executed by the processor to implement a network communication processing method provided by the following embodiments. The internal memory provides a cached operating environment for the operating system computer programs 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 embodiments of the present application also provide a computer-readable storage medium. A computer program is stored thereon, which is characterized in that when the computer program is executed by a processor, the network communication processing method as described above is realized.
本申请实施例还提供了一种电子设备。如图7所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以电子设备为手机为例:An embodiment of the present application also provides an electronic device. As shown in FIG. 7, for ease of description, only parts related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computer, wearable device, etc. Taking the electronic device as a mobile phone for example :
图7为与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图7,手机包括:射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线保真(wireless fidelity,WiFi)模块770、处理器780、以及电源790等部件。本领域技术人员可以理解,图7所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。7 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. 7, the mobile phone includes: a radio frequency (Radio Frequency) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (WiFi) module 770, a processor 780 , And power supply 790 and other components. Those skilled in the art may understand that the structure of the mobile phone shown in FIG. 7 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or a different component arrangement.
其中,RF电路710可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器780处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging Service,SMS)等。Among them, the RF circuit 710 can be used for receiving and sending signals during sending and receiving information or during a call. It can receive the downlink information of the base station and process it to the processor 780; it can also send the uplink data to the base station. Generally, RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on. In addition, the RF circuit 710 can also communicate with the network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), and Code Division Multiple Access (Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Message Service (SMS), etc.
存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器720可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 720 may be used to store software programs and modules. 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, where the program storage area may store an operating system and applications required for at least one function (such as an application program for a sound playback function, an application program for an image playback function, etc.), etc .; The data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone. 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, a 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 may be used to receive input numeric 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 known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, a stylus, etc. on 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 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 touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 780, and can receive the command sent by the processor 780 and execute it. In addition, the touch panel 731 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. 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 a physical keyboard, function keys (such as volume control keys, switch keys, etc.).
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元740可包括显示面板741。在一个实施例中,可以采用液晶显示器(Liquid Crystal 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 the 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) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 731 may cover the display panel 741, and when the touch panel 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of touch event, and then the processor 780 according to 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 implemented 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 may be integrated and Realize the input and output functions of the mobile phone.
手机700还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在手机移动到耳边时,关闭显示面板741和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The mobile phone 700 may further 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 close the display panel 741 and / or when the mobile phone moves to the ear Or backlight. The motion sensor may include an acceleration sensor, which can detect the magnitude of acceleration in various directions through the acceleration sensor, and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize mobile phone gestures (such as horizontal and vertical screen switching), and vibration recognition-related functions (such as Pedometer, percussion), etc. In addition, the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor and so on.
音频电路760、扬声器761和传声器762可提供用户与手机之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710可以发送给另一手机,或者将音频数据输出至存储器720以便后续处理。The audio circuit 760, the speaker 761, and the microphone 762 may provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the received electrical signal converted to electrical signals to the speaker 761, which is converted into a sound signal output by the speaker 761; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 760 After receiving, it is converted into audio data, and then processed by the audio data output processor 780, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了WiFi模块770,但是可以理解的是,其并不属于手机700的必须构成,可以根据需要而省略。WiFi is a short-range 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. It provides users with wireless broadband Internet access. Although FIG. 7 shows the WiFi module 770, it can be understood that it is not a necessary component of the mobile phone 700, and may be omitted as needed.
处理器780是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。在一个实施例中,处理器780可包括一个或多个处理单元。在一个实施例中,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,所述调制解调处理器也可以不集成到处理器780中。The processor 780 is the control center of the mobile phone, connects various parts of the entire mobile phone with various interfaces and lines, executes or executes the software programs and / or modules stored in the memory 720, and calls the data stored in the memory 720 to execute Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. 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, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. 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 powering various components. Preferably, the power supply can be logically connected to the processor 780 through the power management system, so as to realize functions such as charging, discharging, and power management through the power management system.
在一个实施例中,手机700还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 700 may further 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 network communication processing method as described above when executing the computer program stored on 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 references to memory, storage, databases, or other media used in this application may include non-volatile and / or volatile memory. Suitable non-volatile 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 manners of the present application, and their descriptions are more specific and detailed, but they should not be construed as limiting the patent scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which all fall within the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be subject to the appended claims.

Claims (21)

  1. 一种网络通信处理方法,包括:A network communication processing method, including:
    检测电子设备与第一无线网络之间的连接状态;Detect the connection status between the electronic device and the first wireless network;
    当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is the connection establishment state, acquiring the network signal strength of the second wireless network; and
    基于所述网络信号强度,调整所述第二无线网络的测量策略。Based on the network signal strength, the measurement strategy of the second wireless network is adjusted.
  2. 根据权利要求1所述的方法,其特征在于,所述基于所述网络信号强度,调整所述第二无线网络的测量策略,包括:The method of claim 1, wherein the adjusting the measurement strategy of the second wireless network based on the network signal strength comprises:
    当所述网络信号强度超过第一强度阈值时,调整所述第二无线网络的测量频率,其中,所述测量频率是进行小区信号测量的频率。When the signal strength of the network exceeds the first strength threshold, the measurement frequency of the second wireless network is adjusted, where the measurement frequency is a frequency for cell signal measurement.
  3. 根据权利要求2所述的方法,其特征在于,所述调整所述第二无线网络的测量频率,包括:The method according to claim 2, wherein the adjusting the measurement frequency of the second wireless network comprises:
    检测所述网络信号强度与所述第一强度阈值的强度差值;Detecting an intensity difference between the network signal intensity and the first intensity threshold;
    获取与所述强度差值相对应的频率调节系数;及Obtaining a frequency adjustment factor corresponding to the intensity difference; and
    根据所述频率调节系数对所述第二无线网络的测量频率进行调整。Adjusting the measurement frequency of the second wireless network according to the frequency adjustment coefficient.
  4. 根据权利要求2所述的方法,其特征在于,所述调整所述第二无线网络的测量频率,包括:The method according to claim 2, wherein the adjusting the measurement frequency of the second wireless network comprises:
    检测所述第一无线网络是否处于无线通话状态;及Detecting whether the first wireless network is in a wireless call state; and
    当所述第一无线网络不处于无线通话状态时,调整所述第二无线网络的测量频率。When the first wireless network is not in a wireless call state, adjust the measurement frequency of the second wireless network.
  5. 根据权利要求2所述的方法,其特征在于,所述调整所述第二无线网络的测量策略,还包括:The method according to claim 2, wherein the adjusting the measurement strategy of the second wireless network further comprises:
    当所述网络信号强度超过第二强度阈值时,禁止所述第二无线网络进行测量操作和重选操作中的至少一种,其中,所述第二强度阈值大于所述第一强度阈值。When the network signal strength exceeds a second strength threshold, the second wireless network is prohibited from performing at least one of a measurement operation and a reselection operation, where the second strength threshold is greater than the first strength threshold.
  6. 根据权利要求1所述的方法,其特征在于,所述当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度,包括: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 includes:
    当检测到所述第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取所述第二无线网络的网络信号强度。When it is detected that the connection state of the first wireless network is switched from the disconnected state to the connection established state, the network signal strength of the second wireless network is acquired.
  7. 根据权利要求1所述的方法,其特征在于,还包括: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.
  8. 一个或多个包含计算机可执行指令的计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行以下操作:One or more computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to perform the following operations:
    检测电子设备与第一无线网络之间的连接状态;Detect the connection status between the electronic device and the first wireless network;
    当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is the connection establishment state, acquiring the network signal strength of the second wireless network; and
    基于所述网络信号强度,调整所述第二无线网络的测量策略。Based on the network signal strength, the measurement strategy of the second wireless network is adjusted.
  9. 根据权利要求8所述的计算机可读存储介质,其特征在于,所述处理器执行所述基于所述网络信号强度,调整所述第二无线网络的测量策略时,还执行如下操作:The computer-readable storage medium according to claim 8, wherein when the processor executes the adjustment of the measurement strategy of the second wireless network based on the network signal strength, the processor further performs the following operations:
    当所述网络信号强度超过第一强度阈值时,调整所述第二无线网络的测量频率,其中,所述测量频率是进行小区信号测量的频率。When the signal strength of the network exceeds the first strength threshold, the measurement frequency of the second wireless network is adjusted, where the measurement frequency is a frequency for cell signal measurement.
  10. 根据权利要求9所述的计算机可读存储介质,其特征在于,所述处理器执行所述调整所述第二无线网络的测量频率时,还执行如下操作:The computer-readable storage medium according to claim 9, wherein when the processor performs the adjustment of the measurement frequency of the second wireless network, it further performs the following operations:
    检测所述网络信号强度与所述第一强度阈值的强度差值;Detecting an intensity difference between the network signal intensity and the first intensity threshold;
    获取与所述强度差值相对应的频率调节系数;及Obtaining a frequency adjustment factor corresponding to the intensity difference; and
    根据所述频率调节系数对所述第二无线网络的测量频率进行调整。Adjusting the measurement frequency of the second wireless network according to the frequency adjustment coefficient.
  11. 根据权利要求9所述的计算机可读存储介质,其特征在于,所述处理器执行调整所述第二无线网络的测量频率时,还执行如下操作:The computer-readable storage medium according to claim 9, wherein the processor further performs the following operations when adjusting the measurement frequency of the second wireless network:
    检测所述第一无线网络是否处于无线通话状态;及Detecting whether the first wireless network is in a wireless call state; and
    当所述第一无线网络不处于无线通话状态时,调整所述第二无线网络的测量频率。When the first wireless network is not in a wireless call state, adjust the measurement frequency of the second wireless network.
  12. 根据权利要求9所述的计算机可读存储介质,其特征在于,所述处理器执行所述调整所述第二无线网络的测量策略时,还执行如下操作:The computer-readable storage medium according to claim 9, wherein when the processor executes the adjustment of the measurement strategy of the second wireless network, it further performs the following operations:
    当所述网络信号强度超过第二强度阈值时,禁止所述第二无线网络进行测量操作和重选操作中的至少一种,其中,所述第二强度阈值大于所述第一强度阈值。When the network signal strength exceeds a second strength threshold, the second wireless network is prohibited from performing at least one of a measurement operation and a reselection operation, where the second strength threshold is greater than the first strength threshold.
  13. 根据权利要求8所述的计算机可读存储介质,其特征在于,所述处理器执行所述当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度时,还执行如下操作:The computer-readable storage medium according to claim 8, wherein the processor executes the following operation when acquiring the network signal strength of the second wireless network when the connection state is the connection establishment state :
    当检测到所述第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取所述第二无线网络的网络信号强度。When it is detected that the connection state of the first wireless network is switched from the disconnected state to the connection established state, the network signal strength of the second wireless network is acquired.
  14. 根据权利要求8所述的计算机可读存储介质,其特征在于,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器还执行以下操作:The computer-readable storage medium according to claim 8, wherein when the computer-executable instructions are executed by one or more processors, the processor is further caused 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.
  15. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下操作:An electronic device includes a memory and a processor. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor causes the processor to perform the following operations:
    检测电子设备与第一无线网络之间的连接状态;Detect the connection status between the electronic device and the first wireless network;
    当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度;及When the connection state is the connection establishment state, acquiring the network signal strength of the second wireless network; and
    基于所述网络信号强度,调整所述第二无线网络的测量策略。Based on the network signal strength, the measurement strategy of the second wireless network is adjusted.
  16. 根据权利要求15所述的电子设备,其特征在于,所述处理器执行所述基于所述网络信号强度,调整所述第二无线网络的测量策略时,还执行如下操作:The electronic device according to claim 15, wherein when the processor executes the adjustment of the measurement strategy of the second wireless network based on the network signal strength, the processor further performs the following operations:
    当所述网络信号强度超过第一强度阈值时,调整所述第二无线网络的测量频率,其中,所述测量频率是进行小区信号测量的频率。When the signal strength of the network exceeds the first strength threshold, the measurement frequency of the second wireless network is adjusted, where the measurement frequency is a frequency for cell signal measurement.
  17. 根据权利要求16所述的电子设备,其特征在于,所述处理器执行所述调整所述第二无线网络的测量频率时,还执行如下操作:The electronic device according to claim 16, wherein when the processor performs the adjustment of the measurement frequency of the second wireless network, it further performs the following operations:
    检测所述网络信号强度与所述第一强度阈值的强度差值;Detecting an intensity difference between the network signal intensity and the first intensity threshold;
    获取与所述强度差值相对应的频率调节系数;及Obtaining a frequency adjustment factor corresponding to the intensity difference; and
    根据所述频率调节系数对所述第二无线网络的测量频率进行调整。Adjusting the measurement frequency of the second wireless network according to the frequency adjustment coefficient.
  18. 根据权利要求16所述的电子设备,其特征在于,所述处理器执行所述调整所述第二无线网络的测量频率时,还执行如下操作:The electronic device according to claim 16, wherein when the processor performs the adjustment of the measurement frequency of the second wireless network, it 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 call state, adjust the measurement frequency of the second wireless network.
  19. 根据权利要求16所述的电子设备,其特征在于,所述处理器执行所述调整所述第二无线网络的测量策略时,还执行如下操作:The electronic device according to claim 16, wherein when the processor executes the adjustment of the measurement strategy of the second wireless network, it further performs the following operations:
    当所述网络信号强度超过第二强度阈值时,禁止所述第二无线网络进行测量操作和重选操作中的至少一种,其中,所述第二强度阈值大于所述第一强度阈值。When the network signal strength exceeds a second strength threshold, the second wireless network is prohibited from performing at least one of a measurement operation and a reselection operation, where the second strength threshold is greater than the first strength threshold.
  20. 根据权利要求15所述的电子设备,其特征在于,所述处理器执行所述当所述连接状态为连接建立状态时,获取第二无线网络的网络信号强度时,还执行如下操作:The electronic device according to claim 15, wherein the processor executes the following operation when acquiring the network signal strength of the second wireless network when the connection status is the connection establishment status:
    当检测到所述第一无线网络的连接状态由连接断开状态切换至连接建立状态时,获取所述第二无线网络的网络信号强度。When it is detected that the connection state of the first wireless network is switched from the disconnected state to the connection established state, the network signal strength of the second wireless network is acquired.
  21. 根据权利要求15所述的电子设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器执行如下操作:The electronic device according to claim 15, wherein when the computer-readable instructions are executed by the processor, the processor is caused 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.
PCT/CN2018/116914 2018-11-22 2018-11-22 Network communication processing method, computer-readable storage medium and electronic device WO2020103077A1 (en)

Priority Applications (2)

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
CN201880097944.1A CN112740827B (en) 2018-11-22 2018-11-22 Network communication processing method, computer-readable storage medium, and electronic device

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 (1)

Publication Number Publication Date
WO2020103077A1 true WO2020103077A1 (en) 2020-05-28

Family

ID=70773783

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116914 WO2020103077A1 (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)

Citations (3)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820331B (en) * 2017-10-31 2021-05-11 Oppo广东移动通信有限公司 Call method, device, computer equipment and readable storage medium

Patent Citations (3)

* 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

Also Published As

Publication number Publication date
CN112740827B (en) 2023-05-12
CN112740827A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN110035447B (en) Measurement configuration method and terminal equipment
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
CN110278574B (en) Measurement method, measurement configuration method, terminal and network equipment
US10813057B2 (en) Method for processing information and terminal device
CN111770529B (en) Method for processing relaxation measurement parameter update, terminal device and storage medium
US11937111B2 (en) Measurement configuration method, device, and system
CN106604314B (en) WiFi roaming network access method and terminal equipment
WO2017076255A1 (en) Method for balancing load of wireless network, network equipment, and terminal equipment
US11076354B2 (en) Cell handover method and terminal device
RU2757574C1 (en) Method for controlling a message of a paging system, subscriber mobile communication equipment, and server
US20220248244A1 (en) Measurement processing method, indication information sending method, terminal, and network device
CN107182113B (en) Networking control method and device of multi-mode mobile terminal and mobile terminal
CN107172702B (en) Mobile terminal and WiFi transmission power adjusting method and device thereof
CN108562890B (en) Method and device for calibrating ultrasonic characteristic value and computer readable storage medium
RU2748612C1 (en) Method for determining ue capabilities, method for transmitting information about ue capabilities, mobile subscriber equipment and server
CN108471626B (en) Reporting method and detection method of UE (user equipment) capability, mobile terminal and server
JP7252259B2 (en) Access control method, message broadcasting method and related device
WO2019223684A1 (en) Measurement reporting method, measurement configuration method, terminal and network side device
CN110769440B (en) Interference reporting control method, user equipment and network side equipment
CN111641963A (en) Cell measurement method and terminal equipment
JP2022542693A (en) Communication processing method, communication processing device, terminal equipment and storage medium
CN112954755B (en) Optimized network switching method and device and computer readable storage medium
WO2021238199A1 (en) Data transmission method, electronic device, and computer readable storage medium
CN113079536A (en) Updating method and device of timing advance and mobile terminal
US20220141734A1 (en) Network switching method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18940899

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18940899

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 18940899

Country of ref document: EP

Kind code of ref document: A1