CN113630851A - Communication mode state switching method and device, computer equipment and storage medium - Google Patents

Communication mode state switching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113630851A
CN113630851A CN202010377865.5A CN202010377865A CN113630851A CN 113630851 A CN113630851 A CN 113630851A CN 202010377865 A CN202010377865 A CN 202010377865A CN 113630851 A CN113630851 A CN 113630851A
Authority
CN
China
Prior art keywords
state
application program
communication mode
switching
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010377865.5A
Other languages
Chinese (zh)
Other versions
CN113630851B (en
Inventor
刘韦宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oneplus Technology Shenzhen Co Ltd
Original Assignee
Oneplus Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oneplus Technology Shenzhen Co Ltd filed Critical Oneplus Technology Shenzhen Co Ltd
Priority to CN202010377865.5A priority Critical patent/CN113630851B/en
Priority to PCT/CN2021/091638 priority patent/WO2021223687A1/en
Publication of CN113630851A publication Critical patent/CN113630851A/en
Application granted granted Critical
Publication of CN113630851B publication Critical patent/CN113630851B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • 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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/27Transitions between radio resource control [RRC] states
    • 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

Abstract

The application relates to a communication mode state switching method and device, computer equipment and a storage medium. The method comprises the following steps: when entering a power saving mode, switching the communication mode state from a second state to a first state, wherein the first state is a power consumption saving state; monitoring the state of the application program, switching the state of the communication mode from a first state to a second state when the state of the application program meets a preset condition, and executing an application program task corresponding to the state of the application program through the second state; when the execution of the application task is completed, the communication mode state is switched from the second state to the first state. By adopting the method, the power consumption can be saved.

Description

Communication mode state switching method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for switching a communication mode state, a computer device, and a storage medium.
Background
With the development of communication technology, 5G NR (5th generation mobile networks New Radio, a global fifth generation mobile communication technology standard based on a brand New air interface design of OFDM (orthogonal frequency division multiplexing)) technology has emerged, and network transmission of large data volume can be satisfied by using 5G NR.
However, the power consumption of the current 5G NR technology is much larger than that of 4G LTE (4th generation mobile network Long Term Evolution), and the conventional method is to turn off the 5G NR only when the power of the device is lower than a certain value, so as to save the power consumption. However, when the 5G NR is turned off, data transfer efficiency of the device application when executing a task is low, so that it takes longer time to perform data transfer, and power consumption of the device is increased instead.
Disclosure of Invention
In view of the above, it is necessary to provide a communication mode state switching method, apparatus, computer device, and storage medium capable of further saving power consumption in view of the above technical problems.
A method of communication mode state switching, the method comprising:
when entering a power saving mode, switching the communication mode state from a second state to a first state, wherein the first state is a power consumption saving state;
monitoring the state of the application program, switching the state of the communication mode from a first state to a second state when the state of the application program meets a preset condition, and executing an application program task corresponding to the state of the application program through the second state;
when the execution of the application task is completed, the communication mode state is switched from the second state to the first state.
In one embodiment, monitoring an application program state, switching a communication mode state from a first state to a second state when the application program state meets a preset condition, and executing an application program task corresponding to the application program state through the second state includes:
when the application program state is a data flow increasing state, acquiring a flow information storage file, analyzing the flow information storage file, and obtaining the data flow usage amount of the application program in unit time;
calculating the data flow increasing amplitude of the application program in unit time according to the data flow usage of the application program in unit time;
and when the data traffic increase amplitude exceeds a preset threshold, switching the communication mode state from the first state to the second state, and executing a data traffic transmission task corresponding to the data traffic increase state through the second state.
In one embodiment, monitoring an application program state, switching a communication mode state from a first state to a second state when the application program state meets a preset condition, and executing an application program task corresponding to the application program state through the second state includes:
when the application program state is a data downloading request state, acquiring data downloading request response information, wherein the data downloading request response information comprises data downloading quantity;
and when the data downloading amount exceeds a preset downloading threshold value, switching the communication mode state from the first state to the second state, and executing a data downloading task corresponding to the data downloading request state through the second state.
In one embodiment, monitoring an application program state, switching a communication mode state from a first state to a second state when the application program state meets a preset condition, and executing an application program task corresponding to the application program state through the second state includes:
when the application program state is the application program starting state, acquiring an application program starting identifier;
and when the starting application program identifier is the target application program identifier, switching the communication mode state from the first state to the second state, and running the application program corresponding to the starting application program identifier through the second state.
In one embodiment, switching the communication mode state from the first state to the second state when the start-up application identifier is the target application identifier comprises:
and searching the identification of the starting application program in a preset white list, and switching the state of the communication mode from the first state to the second state when the identification of the starting application program can be searched.
In one embodiment, switching the communication mode state from the first state to the second state when the start-up application identifier is the target application identifier comprises:
and when the application program corresponding to the application program starting identifier is in the transverse screen and a preset operation behavior to the application program exists, switching the communication mode state from the first state to the second state.
In one embodiment, after switching the communication mode state from the second state to the first state when entering the power saving mode, the first state being a power saving state, the method further includes:
detecting the signal intensity of a first state, and switching the communication mode state from the first state to a second state when the signal intensity of the first state does not exceed the preset signal intensity;
and when the signal intensity of the first state exceeds the preset signal intensity, switching the communication mode state from the second state to the first state.
A communication mode state switching apparatus, the apparatus comprising:
the communication device comprises a state switching module, a power saving module and a communication module, wherein the state switching module is used for switching a communication mode state from a second state to a first state when entering a power saving mode, and the first state is a power consumption saving state;
the monitoring module is used for monitoring the state of an application program, switching the state of the communication mode from the first state to a second state when the state of the application program meets a preset condition, and executing an application program task corresponding to the state of the application program through the second state;
and the task completion module is used for switching the communication mode state from the second state to the first state when the execution of the application program task is completed.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when entering a power saving mode, switching the communication mode state from a second state to a first state, wherein the first state is a power consumption saving state;
monitoring the state of the application program, switching the state of the communication mode from a first state to a second state when the state of the application program meets a preset condition, and executing an application program task corresponding to the state of the application program through the second state;
when the execution of the application task is completed, the communication mode state is switched from the second state to the first state.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when entering a power saving mode, switching the communication mode state from a second state to a first state, wherein the first state is a power consumption saving state;
monitoring the state of the application program, switching the state of the communication mode from a first state to a second state when the state of the application program meets a preset condition, and executing an application program task corresponding to the state of the application program through the second state;
when the execution of the application task is completed, the communication mode state is switched from the second state to the first state.
According to the communication mode state switching method, the communication mode state switching device, the computer equipment and the storage medium, the application program state is monitored in the communication mode state of the power consumption saving state, when the application program state meets the preset condition, the communication mode state is switched from the first state to the second state, and the application program task corresponding to the application program state is executed in the second state, so that the application program task corresponding to the application program state can be quickly executed and completed in the second state. And the execution of the application program task is carried out through the second state, so that the data transmission efficiency is ensured, and the application program task completion efficiency is improved. And then when the execution of the application program task is finished, the communication mode state is switched from the second state to the first state, so that the balance between power consumption saving and data transmission efficiency is maintained, and the power consumption is further saved.
Drawings
FIG. 1 is a diagram illustrating an exemplary embodiment of a communication mode state switching method;
FIG. 2 is a flow chart illustrating a method for switching communication mode states according to an embodiment;
FIG. 3 is a flow diagram illustrating data traffic monitoring according to one embodiment;
FIG. 4 is a flowchart illustrating data download monitoring according to an embodiment;
FIG. 5 is a flow diagram that illustrates the launching of an application in one embodiment;
FIG. 6 is a schematic diagram of a signal strength detection process according to an embodiment;
FIG. 7 is a schematic diagram of a communication mode state switching method according to an embodiment;
FIG. 8 is a block diagram showing the structure of a communication mode state switching device according to an embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The application environment method provided by the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 is connected to the 5G base station 106 through the 5G network. The terminal 102 receives a power saving mode entering instruction, and switches the 5G communication mode state from the second state to the first state according to the power saving state entering instruction, wherein the first state of the power saving state is the power saving state; monitoring the application program state, switching the 5G communication mode state of the power saving state from the first state of the power saving state to the second state when the application program state of the power saving state meets the preset condition, and executing an application program task corresponding to the application program state of the power saving state through the second state of the power saving state; when the execution of the power saving state application task is completed, the power saving state 5G communication mode state is switched from the power saving state second state to the power saving state first state. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In one embodiment, as shown in fig. 2, a method for switching communication mode state is provided, which is described by taking the method as an example applied to the terminal in fig. 1, and includes the following steps:
s202, when entering the power saving mode, switching the communication mode state from the second state to the first state, where the first state is a power saving state.
Here, the communication mode state refers to a state of RRC (Radio Resource Control) of the 5G NR. The system comprises three states, namely an RRC IDLE (IDLE) state, an RRC INACTIVE (inactive) state and an RRC CONNECTED (CONNECTED) state. Terminal power saving can be achieved when the terminal's 5G NR is in RRC INACTIVE and RRC IDLE states. The terminal's 5G NR is in RRC INACTIVE state, which saves power than in RRC CONNECTED state, but the terminal is in RRC IDLE state, which saves more power than in RRC INACTIVE state. RRC INACTIVE state and RRC CONNECTED state are both CONNECTED states, and when the terminal is in RRC INACTIVE state, the terminal can more quickly transition to the RRC CONNECTED state than when the terminal is in the RRC IDLE state. Therefore, the terminal in the state RRC INACTIVE can reduce the time delay of sending data and meet the requirements of different services. The network requirements are higher for the terminal in the RRC INACTIVE state than in the RRC IDLE state, since the network needs to maintain the access stratum context of the terminal and maintain the radio access network side to core network (CN-NR RAN) control plane and user plane connections for the terminal. The first state means that the RRC state of the 5G NR is in RRC INACTIVE state, and the RRC INACTIVE state allows the terminal to achieve power saving. The second state means that the RRC state of the 5G NR is in an RRC CONNECTED state.
Specifically, the terminal receives a power saving mode entering instruction, for example, a user actively selects to start the power saving mode on an operation interface of the terminal, so that the terminal receives the power saving mode entering instruction. The terminal can also autonomously detect the remaining power, such as 40% power, to remind the user, and then the user selects to enable the terminal to receive a power saving mode entering instruction. The terminal may also autonomously detect the remaining power, for example, below 20% power, and automatically enter the power saving mode without user selection. And the terminal switches the communication mode state from the second state to the first state according to the power saving mode entering instruction, wherein the first state is a power consumption saving state.
And S204, monitoring the state of the application program, switching the state of the communication mode from the first state to the second state when the state of the application program meets the preset condition, and executing the application program task corresponding to the state of the application program through the second state.
The application state is a state in which the application uses traffic, and is used to determine whether to perform RRC state switching of 5G NR. The application program refers to an app (application) installed in the terminal, and may include a system application program, a desktop application program, a driver application program, a network application program, a mobile phone application program, an internet of things application program, and the like. The application task refers to a task that the application needs data traffic to execute, such as a data download task, an application running task, and the like, and different application tasks use different traffic. The preset condition refers to a preset application program state condition needing state switching, and includes at least one of the data flow increasing amplitude exceeding a preset threshold, the data downloading amount exceeding a preset downloading threshold, and the application program starting identifier being a target application program identifier.
Specifically, the terminal monitors the application state corresponding to each installed application. And when the application program state meets the preset condition, the terminal switches the communication mode state from the first state to the second state and executes the application program task corresponding to the application program state through the second state. For example, when the application state in the terminal is that the application needs to use the traffic exceeding the preset threshold, the terminal may switch the communication mode state from the first state to the second state, specifically, the RRC state of the terminal 5G NR may be switched from the RRC INACTIVE state to the RRC CONNECTED state.
And S206, when the execution of the application program task is completed, switching the communication mode state from the second state to the first state.
The application task execution completion refers to the completion of the application task corresponding to the application state. Such as the data download being completed, the application being stopped, etc.
Specifically, when the application task execution is completed, the terminal switches the 5G communication mode state from the second state to the first state. The terminal switching the communication mode state from the second state to the first state may specifically be that the RRC state of the terminal 5G NR switches from the RRC CONNECTED state to the RRC INACTIVE state.
In the communication mode state switching, the application program state is monitored when the communication mode state of the power consumption saving state is in the communication mode state, when the application program state meets the preset condition, the communication mode state is switched from the first state to the second state, and the application program task corresponding to the application program state is executed through the second state, so that the application program task corresponding to the application program state can be quickly executed and completed through the second state. And the execution of the application program task is carried out through the second state, so that the data transmission efficiency is ensured, and the application program task completion efficiency is improved. And then when the execution of the application program task is finished, the communication mode state is switched from the second state to the first state, so that the balance between power consumption saving and data transmission efficiency is maintained, and the power consumption is further saved.
In one embodiment, monitoring the application program state, switching the communication mode state from the first state to the second state when the application program state meets the preset condition, and executing the application program task corresponding to the application program state through the second state, includes the steps shown in fig. 3:
and S302, when the application program state is the data flow increasing state, acquiring a flow information storage file, analyzing the flow information storage file, and obtaining the data flow usage amount of the application program in unit time.
The data traffic increase state refers to that the terminal monitors that the data traffic used by the application program is more and more in demand, for example, the terminal linearly multiplies the data traffic. The flow information storage file is used for storing data flow information, and the data flow information comprises application program identification and corresponding unit time data flow usage. The traffic information storage file may be a terminal system file proc/net/xt _ qtaguid/stats.
Specifically, when the application program state is the data flow increasing state, the terminal acquires the flow information storage file, analyzes the flow information storage file, and obtains each application program identifier (UID) and the corresponding unit time data flow usage amount. For example, the data traffic used by each application in each unit time of 1 second is acquired.
And S304, calculating the data flow increase amplitude of the application program in unit time according to the data flow usage of the application program in unit time.
The data traffic increase amplitude refers to an increase amplitude of the data traffic per unit time. For example, an application increases traffic by 40MB per second.
Specifically, the data flow increase amplitude of the application program in unit time is calculated according to the data flow usage of a single application in unit time.
S306, when the data flow increasing amplitude exceeds a preset threshold value, the communication mode state is switched from the first state to the second state, and a data flow transmission task corresponding to the data flow increasing state is executed through the second state.
Specifically, the preset threshold is a preset threshold for determining the data traffic increase state. And when the terminal judges that the data traffic increase amplitude exceeds the preset threshold, switching the communication mode state from the first state to the second state, and executing a data traffic transmission task corresponding to the data traffic increase state through the second state. Namely, the 5G network is adopted for data traffic transmission. At this time, after the execution of the data traffic transfer task of the application program is completed, the communication mode state is switched from the second state back to the first state. And when the terminal judges that the data flow increasing amplitude does not exceed the preset threshold, the communication mode state is kept to be the first state, even if the terminal is in a power consumption saving state.
In the above embodiment, when the increase of the data traffic used by the application exceeds the preset threshold, the communication mode state is switched from the first state to the second state, and the execution of the data traffic task is performed quickly through the 5G network, so that the power consumption lost due to the low data transmission efficiency of the 4G network is saved.
In an embodiment, monitoring the application program state, switching the communication mode state from the first state to the second state when the application program state meets the preset condition, and executing the application program task corresponding to the application program state through the second state, includes the steps shown in fig. 4:
s402, when the application program state is the data downloading request state, acquiring data downloading request response information, wherein the data downloading request response information comprises data downloading quantity.
Specifically, the data download request state refers to that the terminal monitors that there is a download behavior, such as video download, document download, and the like, in an Http request sent based on an Http (HyperText Transfer Protocol) Protocol. For example, an http document download request may be issued based on the http protocol via the http connection class. The data download request response information is response information to the Http download request returned by the data storage server, and the response information includes the size of the data download amount. The terminal may obtain the data download request response information. For example, when the terminal monitors that there is downloading behavior and a document is about to be downloaded, the header "Content-Length" of the downloaded document is obtained through the response of the http request. The size of the desired next week document is obtained from the header.
S404, when the data downloading amount exceeds the preset downloading threshold, the communication mode state is switched from the first state to the second state, and the data downloading task corresponding to the data downloading request state is executed through the second state.
Specifically, the preset download threshold is a preset threshold of the size of the downloaded data, and is used for determining whether to switch the communication mode state from the first state to the second state when downloading the data. And when the data downloading amount exceeds a preset downloading threshold value, switching the communication mode state from the first state to the second state, and executing a data downloading task corresponding to the data downloading request state through the second state. And when the data downloading amount exceeds a non-preset downloading threshold value, directly executing a data downloading task corresponding to the data downloading request state through the first state.
For example, when the document to be downloaded is greater than 1GB, the RRC state of the 5G NR is adjusted from the RRC INACTIVE state to the RRC CONNECTED state. The document is then downloaded over the 5G network, and when the document download is complete, the terminal adjusts the RRC state of the 5G NR from the RRC CONNECTED state to the RRC INACTIVE state. When the document to be downloaded is not greater than 1GB, the RRC state of the 5G NR is maintained as the RRC INACTIVE state. In the RRC state RRC INACTIVE of 5G NR, the terminal may download the document using a network that is more power-saving, such as a 4G network or a 3G network.
In the above embodiment, in the power saving state, when the terminal needs to download data, it is determined whether the data download amount exceeds a preset download threshold, and when the data download amount exceeds the preset download threshold, the communication mode state is switched from the first state to the second state, and a data download task corresponding to the data download request state is executed through the second state, so that power consumption for downloading data using the first state can be saved, data download efficiency is improved, and user experience is improved.
In an embodiment, monitoring the application program state, switching the communication mode state from the first state to the second state when the application program state meets the preset condition, and executing the application program task corresponding to the application program state through the second state, includes the steps shown in fig. 5:
s502, when the application program state is the application program starting state, the application program starting identifier is obtained.
S504, when the starting application program identification is the target application program identification, the communication mode state is switched from the first state to the second state, and the application program corresponding to the starting application program identification is operated through the second state.
The application program starting state means that an application program is started in the terminal. The start application identification is used for uniquely identifying the application started in the terminal. The target application identification is used to uniquely identify the cloud service application. The cloud server application program is an application program which is connected with a cloud server and needs real-time response. For example, cloud gaming applications require real-time response and low latency.
Specifically, when the terminal detects that the application needs to be started, the application state is a starting application state. And acquiring the identifier of the started application program. When the started application program identification is the target application program identification, the target application program identification is used and low delay is required. If the target application program corresponding to the target application program identifier is operated in the first state, the use condition of the target application program is not met, and the user experience is reduced. At the moment, the communication mode state is switched from the first state to the second state, and the application program corresponding to the application program identification is started through the second state operation. And when the target application program corresponding to the target application program identification finishes running, switching the communication mode state from the second state to the first state.
For example: when the terminal needs to operate the cloud game APP, the RRC state of the 5G NR is switched from the RRC INACTIVE state to the RRC CONNECTED state, the 5G network is used for starting and operating the cloud game APP, the cloud game APP can be operated in real time and low in delay, and user experience is improved. When the running of the cloud game APP is finished, the RRC state of the readjusted 5G NR returns to the RRC INACTIVE state from the RRC connected state.
In one embodiment, the step S504 of switching the communication mode state from the first state to the second state when the start-up application identifier is the target application identifier includes the steps of:
and searching the identification of the starting application program in a preset white list, and switching the state of the communication mode from the first state to the second state when the identification of the starting application program can be searched.
Specifically, the preset white list refers to a list of preset cloud server application program identifiers. The preset white list may be set by the user through the terminal and stored in the local memory of the terminal. The server searches the starting application program identifier in a preset white list, when the starting application program identifier can be found, the starting application program is indicated to be the cloud service application program, at the moment, the communication mode state is switched from the first state to the second state, and the cloud service application program is operated through the second state. And when the running of the cloud service application program is finished, switching the state of the communication mode from the second state to the first state. When the starting application program identifier is not searched, the starting application program identifier is not the cloud service application program identifier, and at the moment, the communication mode state is kept to be the first state.
In one embodiment, the step S504 of switching the communication mode state from the first state to the second state when the start-up application identifier is the target application identifier includes the steps of:
and when the application program corresponding to the application program starting identifier is in the transverse screen and a preset operation behavior to the application program exists, switching the communication mode state from the first state to the second state.
Specifically, the landscape screen means that the display state of the application program in the terminal is a landscape screen display state. The preset operation behavior refers to the frequent occurrence of touch behaviors of the left end and the right end of an application program in the terminal through a touch screen. When the application program corresponding to the application program starting identifier is in a horizontal screen and a preset operation behavior for the application program exists during starting, the application program starting identifier is indicated as a target application program identifier, namely the cloud service application program is used, at the moment, the communication mode state is switched from the first state to the second state, and the cloud service application program is operated by using the second state. When the application program corresponding to the starting application program identifier is in the vertical screen and the preset operation behavior of the application program does not exist, the starting application program identifier is not the target application program identifier, and at the moment, the communication mode state is kept to be the first state.
For example: when the cloud game APP is in a horizontal screen and preset operation behaviors of an application program exist, the RRC state of the 5G NR is adjusted from the RRC INACTIVE state to the RRC CONNECTED state, the cloud game APP is operated by the 5G network, and when the cloud game APP is operated, the RRC state of the 5G NR is adjusted from the RRC CONNECTED state to the RRC INACTIVE state, so that balance between data transmission efficiency and power consumption saving can be maintained.
In one embodiment, after switching the communication mode state from the second state to the first state when entering the power saving mode, the first state being a power saving state, the method further includes the steps as shown in fig. 6:
s602, detecting the signal intensity of the first state, and switching the communication mode state from the first state to the second state when the signal intensity of the first state does not exceed the preset signal intensity;
s604, when the signal intensity of the first state exceeds the preset signal intensity, the communication mode state is switched from the second state to the first state.
Specifically, the preset signal strength refers to a preset threshold of the network signal strength in the first state, for example, if the network in the first state is a 4G network, the signal strength of the 4G network is preset. The terminal detects the signal intensity of the first state, and when the signal intensity of the first state does not exceed the preset signal intensity, the communication mode state is switched from the first state to the second state. That is, when the 4G network signal is weak, the RRC state of the 5G NR is adjusted from the RRC INACTIVE state to the RRC IDLE state, and the signal is received through the 5G network. And when the signal strength of the first state exceeds the preset signal strength, switching the communication mode state from the second state to the first state, namely, when the 4G network signal is recovered, adjusting the RRC state of the 5G NR from the RRC INDL state to the RRC INACTIVE state.
In one embodiment, the terminal may further detect a network congestion condition in the first state, and switch the communication mode state from the first state to the second state when the network congestion condition in the first state occurs. The network congestion refers to a situation that when the number of packets transmitted in the packet-switched network is too large, the network transmission performance is reduced due to limited resources of the store-and-forward node. When the network in the first state is recovered, the communication mode state is switched from the second state to the first state.
In a specific embodiment, the principle of performing the communication mode state switching is as shown in fig. 7, wherein in the power saving mode, when the terminal needs at least one of big data transmission, cloud game operation, network signal weakness in the power saving mode, or network congestion in the power saving mode, the terminal sends a control instruction to an endbercontroller (a controller for monitoring and controlling the 5G communication module), the endbercontroller receives the control instruction, the endbercontroller sends a 5G NR adjustment request to a Modem (5G communication module) through a RIL (Radio Interface Layer) or a QMI (functional Interface for multiprocessor inter-process communication) according to the control instruction, the Modem receives the 5G NR adjustment request, and switches the RRC state of the 5G NR to the RRC CONNECTED state according to the 5G NR adjustment request to perform big data transmission, cloud game operation, or network signal maintenance in the power saving mode, or to keep the network in power save mode uncongested. When data transmission or cloud game operation is finished or a network signal in a power saving mode is strengthened or network congestion in the power saving mode is finished, a control instruction is sent to an EndBearController, the EndBearController sends a 5G NR (Radio Interface Layer) adjustment request to a Modem (5G communication module) through RIL (Radio Interface Layer) or QMI (function Interface of multiprocessor inter-process communication) according to the control instruction, the Modem receives the 5G NR adjustment request, and the RRC state of the 5G NR is adjusted from the RRC IDLE state to RRC INACTIVE according to the 5G NR adjustment request.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, there is provided a communication mode state switching apparatus 800, including: a state switching module 802, a monitoring module 804, and a task completing module 806, wherein:
a state switching module 802, configured to switch a communication mode state from a second state to a first state when entering a power saving mode, where the first state is a power saving state;
the monitoring module 804 is configured to monitor an application program state, switch the communication mode state from a first state to a second state when the application program state meets a preset condition, and execute an application program task corresponding to the application program state through the second state;
a task completion module 806 configured to switch the communication mode state from the second state to the first state when execution of the application task is completed.
In one embodiment, the monitoring module 804 includes:
the file acquisition module is used for acquiring a flow information storage file and analyzing the flow information storage file to obtain the data flow usage of the application program in unit time when the application program state is a data flow increasing state;
the data flow calculation module is used for calculating the data flow increase amplitude of the application program in unit time according to the data flow usage of the application program in unit time;
and the data flow judging module is used for switching the communication mode state from the first state to the second state when the data flow increasing amplitude exceeds a preset threshold value, and executing a data flow transmission task corresponding to the data flow increasing state through the second state.
In one embodiment, the monitoring module 804 includes:
the information acquisition module is used for acquiring data downloading request response information when the application program state is a data downloading request state, wherein the data downloading request response information comprises data downloading quantity;
and the data download amount judging module is used for switching the communication mode state from the first state to the second state when the data download amount exceeds a preset download threshold value, and executing a data download task corresponding to the data download request state through the second state.
In one embodiment, the monitoring module 804 includes:
the identification acquisition module is used for acquiring the identification of the application program when the application program state is the application program starting state;
and the identification judging module is used for switching the communication mode state from the first state to the second state when the starting application program identification is the target application program identification, and running the application program corresponding to the starting application program identification through the second state.
In an embodiment, the identifier determining module is further configured to search for the identifier of the application program to be started in a preset white list, and switch the communication mode state from the first state to the second state when the identifier of the application program to be started can be found.
In one embodiment, the identifier determining module is further configured to switch the communication mode state from the first state to the second state when the application program corresponding to the application program identifier is started and is on the landscape screen and there is a preset operation behavior for the application program.
In one embodiment, the communication mode state switching apparatus 800 further includes:
the signal intensity detection module is used for detecting the signal intensity of the first state, and switching the communication mode state from the first state to the second state when the signal intensity of the first state does not exceed the preset signal intensity;
and the signal strength judging module is used for switching the communication mode state from the second state to the first state when the signal strength of the first state exceeds the preset signal strength.
For the specific limitation of the communication mode state switching device, reference may be made to the above limitation on the communication mode state switching method, which is not described herein again. The modules in the communication mode state switching device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a communication mode state switching method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the text matching method described above. Here, the steps of the text matching method may be steps in the communication mode state switching of the above-described respective embodiments.
In one embodiment, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by a processor, causes the processor to perform the steps of the above-described text matching method. Here, the steps of the text matching method may be steps in the communication mode state switching of the above-described respective embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for communication mode state switching, the method comprising:
when entering a power saving mode, switching a communication mode state from a second state to a first state, wherein the first state is a power consumption saving state;
monitoring the state of an application program, switching the state of the communication mode from the first state to a second state when the state of the application program meets a preset condition, and executing an application program task corresponding to the state of the application program through the second state;
when the execution of the application task is completed, switching the communication mode state from the second state to the first state.
2. The method according to claim 1, wherein the monitoring an application program state, switching the communication mode state from the first state to a second state when the application program state meets a preset condition, and executing an application task corresponding to the application program state through the second state comprises:
when the application program state is a data flow increasing state, acquiring a flow information storage file, analyzing the flow information storage file, and obtaining the data flow usage amount of the application program in unit time;
calculating the data flow increasing amplitude of the application program in unit time according to the data flow usage of the application program in unit time;
and when the data traffic increase amplitude exceeds a preset threshold value, switching the communication mode state from the first state to the second state, and executing a data traffic transmission task corresponding to the data traffic increase state through the second state.
3. The method according to claim 1, wherein the monitoring an application program state, switching the communication mode state from the first state to a second state when the application program state meets a preset condition, and executing an application task corresponding to the application program state through the second state comprises:
when the application program state is a data downloading request state, acquiring data downloading request response information, wherein the data downloading request response information comprises data downloading quantity;
and when the data downloading quantity exceeds a preset downloading threshold value, switching the communication mode state from the first state to the second state, and executing a data downloading task corresponding to the data downloading request state through the second state.
4. The method according to claim 1, wherein the monitoring an application program state, switching the communication mode state from the first state to a second state when the application program state meets a preset condition, and executing an application task corresponding to the application program state through the second state comprises:
when the application program state is the application program starting state, acquiring an application program starting identifier;
and when the starting application program identifier is the target application program identifier, switching the communication mode state from the first state to the second state, and running the application program corresponding to the starting application program identifier through the second state.
5. The method of claim 4, wherein switching the communication mode state from the first state to the second state when the initiating application identity is a target application identity comprises:
and searching the identification of the application program to be started in a preset white list, and switching the communication mode state from the first state to the second state when the identification of the application program to be started can be searched.
6. The method of claim 4, wherein switching the communication mode state from the first state to the second state when the initiating application identity is a target application identity comprises:
and when the application program corresponding to the application program starting identifier is in a horizontal screen and a preset operation behavior for the application program exists, switching the communication mode state from the first state to the second state.
7. The method of claim 1, wherein after the switching the communication mode state from the second state to the first state when entering the power saving mode, the first state being a power saving state, further comprising:
detecting the signal intensity of the first state, and switching the communication mode state from the first state to the second state when the signal intensity of the first state does not exceed a preset signal intensity;
and when the signal intensity of the first state exceeds a preset signal intensity, switching the communication mode state from the second state to the first state.
8. A communication mode state switching apparatus, characterized in that the apparatus comprises:
the communication device comprises a state switching module, a power saving module and a communication module, wherein the state switching module is used for switching a communication mode state from a second state to a first state when entering a power saving mode, and the first state is a power consumption saving state;
the monitoring module is used for monitoring the state of an application program, switching the state of the communication mode from the first state to a second state when the state of the application program meets a preset condition, and executing an application program task corresponding to the state of the application program through the second state;
and the task completion module is used for switching the communication mode state from the second state to the first state when the execution of the application program task is completed.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010377865.5A 2020-05-07 2020-05-07 Communication mode state switching method and device, computer equipment and storage medium Active CN113630851B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010377865.5A CN113630851B (en) 2020-05-07 2020-05-07 Communication mode state switching method and device, computer equipment and storage medium
PCT/CN2021/091638 WO2021223687A1 (en) 2020-05-07 2021-04-30 Communication mode state switching method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010377865.5A CN113630851B (en) 2020-05-07 2020-05-07 Communication mode state switching method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113630851A true CN113630851A (en) 2021-11-09
CN113630851B CN113630851B (en) 2022-12-09

Family

ID=78376863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010377865.5A Active CN113630851B (en) 2020-05-07 2020-05-07 Communication mode state switching method and device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113630851B (en)
WO (1) WO2021223687A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662024B (en) * 2022-12-30 2023-11-07 荣耀终端有限公司 Inter-process communication monitoring method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106354242A (en) * 2016-08-22 2017-01-25 北京小米移动软件有限公司 Mode switching method and device
CN106793170A (en) * 2016-09-29 2017-05-31 展讯通信(上海)有限公司 The transmission method of user terminal and data
WO2018012713A1 (en) * 2016-07-11 2018-01-18 주식회사 한국리서치 Server and operational method thereof for application-related survey
CN110493858A (en) * 2019-09-10 2019-11-22 深圳市万普拉斯科技有限公司 Reduce the method, device and mobile terminal of power consumption
CN110505709A (en) * 2019-09-10 2019-11-26 深圳市万普拉斯科技有限公司 The quick anti-activating method of mobile network, device and mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9361091B2 (en) * 2014-05-27 2016-06-07 Nintendo Co., Ltd. Information processing apparatus, information processing system, information processing method, and non-transitory computer-readable storage medium having stored therein an information processing program
CN105323362A (en) * 2014-06-27 2016-02-10 中兴通讯股份有限公司 Terminal working mode adjustment method and device
CN105282796B (en) * 2014-07-01 2019-12-20 中兴通讯股份有限公司 Network mode switching method, device and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018012713A1 (en) * 2016-07-11 2018-01-18 주식회사 한국리서치 Server and operational method thereof for application-related survey
CN106354242A (en) * 2016-08-22 2017-01-25 北京小米移动软件有限公司 Mode switching method and device
CN106793170A (en) * 2016-09-29 2017-05-31 展讯通信(上海)有限公司 The transmission method of user terminal and data
CN110493858A (en) * 2019-09-10 2019-11-22 深圳市万普拉斯科技有限公司 Reduce the method, device and mobile terminal of power consumption
CN110505709A (en) * 2019-09-10 2019-11-26 深圳市万普拉斯科技有限公司 The quick anti-activating method of mobile network, device and mobile terminal

Also Published As

Publication number Publication date
CN113630851B (en) 2022-12-09
WO2021223687A1 (en) 2021-11-11

Similar Documents

Publication Publication Date Title
CN114930945A (en) Information reporting method, device, equipment and storage medium
CN112217679A (en) Application program acceleration method and device, computer equipment and storage medium
Tong et al. Application-aware traffic scheduling for workload offloading in mobile clouds
CN110018901B (en) Memory recovery method and device, computer equipment and computer readable storage medium
CN110032266B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
US11096177B2 (en) Operation mode switching method and user equipment
CN111866976B (en) Network switching method and device
CN110032321B (en) Application processing method and device, electronic equipment and computer readable storage medium
CN112492564A (en) System switching method and device, electronic equipment and readable storage medium
CN109992425B (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN113630851B (en) Communication mode state switching method and device, computer equipment and storage medium
CN114172892A (en) File uploading method and device
CN110018886B (en) Application state switching method and device, electronic equipment and readable storage medium
CN110392417B (en) Power consumption management method, terminal, computer device, and storage medium
CN112929482B (en) Sensor operation control method and device, computer equipment and storage medium
CN114173291B (en) Data processing method and device
CN109992363B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN110046033B (en) Application program processing method and device, electronic equipment and computer readable storage medium
CN108112052B (en) Terminal network sharing method and device, air conditioner and storage medium
CN111372240B (en) Picture uploading method and device, computer equipment and storage medium
CN113840313B (en) Network mode control method and device of mobile terminal and computer equipment
CN114040378A (en) Application arranging method and device, computer equipment and storage medium
CN110187854B (en) Method, terminal, computer device and storage medium for sharing content
CN111432304B (en) Earphone control method, earphone control device, electronic equipment, earphone control system and storage medium
CN113901873A (en) Power transmission line early warning method, device and system

Legal Events

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