CN106713490B - Process freezing and thawing device and method based on network application - Google Patents

Process freezing and thawing device and method based on network application Download PDF

Info

Publication number
CN106713490B
CN106713490B CN201710039480.6A CN201710039480A CN106713490B CN 106713490 B CN106713490 B CN 106713490B CN 201710039480 A CN201710039480 A CN 201710039480A CN 106713490 B CN106713490 B CN 106713490B
Authority
CN
China
Prior art keywords
freezing
unfreezing
network application
network
thawing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710039480.6A
Other languages
Chinese (zh)
Other versions
CN106713490A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710039480.6A priority Critical patent/CN106713490B/en
Publication of CN106713490A publication Critical patent/CN106713490A/en
Application granted granted Critical
Publication of CN106713490B publication Critical patent/CN106713490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/535Tracking the activity of the user
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Abstract

The invention discloses a process freezing and unfreezing device and method based on network application, relating to the technical field of mobile terminals, wherein the device comprises: the control level establishing module is used for establishing a freezing and unfreezing hierarchical control unit which comprises a plurality of levels of freezing and unfreezing control levels; the matching module is used for matching the corresponding freezing and thawing control levels to the network application according to the preset grading conditions; and the freezing and unfreezing module is used for carrying out process freezing and unfreezing operation on the network application according to the corresponding freezing and unfreezing control level, and the freezing and unfreezing efficiency of the process is improved and the user experience is improved by adopting a freezing and unfreezing strategy of hierarchical regulation and control on different network applications.

Description

Process freezing and thawing device and method based on network application
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a process freezing and unfreezing device and method based on network application.
Background
The Android mobile phone can run any Application (APK) developed based on the API, and the openness degree of freedom is large: an application can run in the background according to the wishes of its designer-to push advertisements, collect user states, etc., but these behaviors are not necessarily what the user wants, but rather occupy the CPU, increase power consumption, and affect the user experience. The process freezing is a better background application management mode. It recognizes a process that is not necessary for the user to run, suspends it, prohibits its running, and waits until the user really needs the process to unfreeze and resume running.
In the application of the process freezing technology of the terminal, the processing strategy of the network application is an important component. If the control is too loose, the effectiveness of process freezing is low because most of the applications on the market today are network-related applications; if the control is too strict, the phenomenon of centralized communication or reconnection can occur when the network application is unfrozen, and the user experience is influenced.
Disclosure of Invention
The invention mainly aims to provide a process freezing and thawing device and method based on network application, which improve the process freezing and thawing efficiency and improve the user experience by adopting a freezing and thawing strategy of hierarchical regulation and control for different network applications.
In order to achieve the above object, the present invention provides a process freezing and thawing apparatus based on network application, including:
the control level establishing module is used for establishing a freezing and unfreezing hierarchical control unit which comprises a plurality of levels of freezing and unfreezing control levels;
the matching module is used for matching the corresponding freezing and thawing control levels to the network application according to the preset grading conditions;
and the freezing and unfreezing module is used for carrying out process freezing and unfreezing operation on the network application according to the corresponding freezing and unfreezing control level.
Optionally, the multiple freeze thaw management levels include: maintaining long connections, packet identification unfreezing, unfreezing by duty cycle, and ignoring connections.
Optionally, the long connection is specifically:
and when the network application receives the freezing request, judging whether the network application has TCP connection, if so, keeping the current running state of the network application, and not executing the freezing operation.
Optionally, the packet identification unfreezing specifically includes:
when the network application receives a freezing request, performing freezing operation on the network application;
when a data packet sent by a network terminal is identified in a protocol layer, judging whether the data packet is delivered to the network application, if so, executing unfreezing operation on the network application.
Optionally, the defrosting according to a duty cycle specifically includes:
when the network application receives a freezing request, performing freezing operation on the network application;
setting a thawing window period for the network application, judging whether the moment of receiving the network message is in the thawing window period or not when the network application receives the network message sent by a network terminal, and if so, executing a thawing operation on the network application to process the network message;
and if the moment of receiving the network message is not in the unfreezing window period, delaying to the next unfreezing window period and then executing the unfreezing operation on the network application to process the network message.
Optionally, the preset classification condition includes: user self-definition, system recommended configuration and self-learning configuration.
As another aspect of the present invention, a process freezing and unfreezing method based on a network application is provided, which includes:
establishing a freezing and thawing hierarchical control unit which comprises a plurality of levels of freezing and thawing control levels;
matching a corresponding freezing and thawing control level to the network application according to a preset grading condition;
and carrying out process freezing and unfreezing operation on the network application according to the corresponding freezing and unfreezing control level.
Optionally, the multiple freeze thaw management levels include: maintaining long connections, packet identification unfreezing, unfreezing by duty cycle, and ignoring connections.
Optionally, the long connection is specifically:
when the network application receives a freezing request, judging whether the network application has TCP connection, if so, keeping the current running state of the network application, and not executing the freezing operation;
the data packet identification unfreezing specifically comprises the following steps:
when the network application receives a freezing request, performing freezing operation on the network application;
when a data packet sent by a network terminal is identified in a protocol layer, judging whether the data packet is delivered to the network application, if so, executing unfreezing operation on the network application;
the thawing according to the duty ratio is specifically as follows:
when the network application receives a freezing request, performing freezing operation on the network application;
setting a thawing window period for the network application, judging whether the moment of receiving the network message is in the thawing window period or not when the network application receives the network message sent by a network terminal, and if so, executing a thawing operation on the network application to process the network message;
and if the moment of receiving the network message is not in the unfreezing window period, delaying to the next unfreezing window period and then executing the unfreezing operation on the network application to process the network message.
Optionally, the preset classification condition includes: user self-definition, system recommended configuration and self-learning configuration.
The invention provides a process freezing and unfreezing device and method based on network application, wherein the device comprises: the control level establishing module is used for establishing a freezing and unfreezing hierarchical control unit which comprises a plurality of levels of freezing and unfreezing control levels; the matching module is used for matching the corresponding freezing and thawing control levels to the network application according to the preset grading conditions; and the freezing and unfreezing module is used for carrying out process freezing and unfreezing operation on the network application according to the corresponding freezing and unfreezing control level, and the freezing and unfreezing efficiency of the process is improved and the user experience is improved by adopting a freezing and unfreezing strategy of hierarchical regulation and control on different network applications.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a block diagram illustrating an exemplary structure of a process freezing and thawing apparatus based on a network application according to an embodiment of the present invention;
fig. 4 is a functional schematic diagram of a process freezing and thawing apparatus based on a network application according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of thawing according to a duty cycle according to a first embodiment of the present invention;
fig. 6 is a functional schematic diagram of another process freezing and thawing apparatus based on network applications according to an embodiment of the present invention;
fig. 7 is a flowchart of a process freezing and thawing method based on a network application according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic hardware configuration of a mobile terminal implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, a user input unit 130, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel. The broadcast management server may be a server that generates and transmits a broadcast signal and/or broadcast associated information or a server that receives a previously generated broadcast signal and/or broadcast associated information and transmits it to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, a data broadcast signal, and the like. Also, the broadcast signal may further include a broadcast signal combined with a TV or radio broadcast signal. The broadcast associated information may also be provided via a mobile communication network, and in this case, the broadcast associated information may be received by the mobile communication module 112. The broadcast signal may exist in various forms, for example, it may exist in the form of an Electronic Program Guide (EPG) of Digital Multimedia Broadcasting (DMB), an Electronic Service Guide (ESG) of digital video broadcasting-handheld (DVB-H), and the like. The broadcast receiving module 111 may receive a signal broadcast by using various types of broadcasting systems. In particular, the broadcast receiving module 111 may receive digital broadcasting by using a digital broadcasting system such as a data broadcasting system of multimedia broadcasting-terrestrial (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video broadcasting-handheld (DVB-H), forward link media (MediaFLO @), terrestrial digital broadcasting integrated service (ISDB-T), and the like. The broadcast receiving module 111 may be constructed to be suitable for various broadcasting systems that provide broadcast signals as well as the above-mentioned digital broadcasting systems. The broadcast signal and/or broadcast associated information received via the broadcast receiving module 111 may be stored in the memory 160 (or other type of storage medium).
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetooth (TM), Radio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbee (TM), and the like.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module is a GPS (global positioning system). According to the current technology, the GPS module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information, thereby accurately calculating three-dimensional current location information according to longitude, latitude, and altitude. Currently, a method for calculating position and time information uses three satellites and corrects an error of the calculated position and time information by using another satellite. In addition, the GPS module 115 can calculate speed information by continuously calculating current position information in real time.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display module 151 in the form of a layer, a touch screen may be formed.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner.
The output unit 150 may include an audio output module 152 and the like.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 1810 for reproducing (or playing back) multimedia data, and the multimedia module 1810 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
The mobile terminal 100 as shown in fig. 1 may be configured to operate with communication systems such as wired and wireless communication systems and satellite-based communication systems that transmit data via frames or packets.
A communication system in which a mobile terminal according to the present invention is operable will now be described with reference to fig. 2.
Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)), global system for mobile communications (GSM), and the like. By way of non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 2750.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites. The GPS module 115 as shown in fig. 1 is generally configured to cooperate with satellites 300 to obtain desired positioning information. Other techniques that can track the location of the mobile terminal may be used instead of or in addition to GPS tracking techniques. In addition, at least one GPS satellite 300 may selectively or additionally process satellite DMB transmission.
As a typical operation of the wireless communication system, the BS270 receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within the particular BS 270. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270 to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
Example one
As shown in fig. 3, in this embodiment, a process freezing and unfreezing apparatus based on a web application includes:
the management and control level establishing module 10 is used for establishing a freezing and thawing hierarchical management and control unit, and the freezing and thawing hierarchical management and control unit comprises a plurality of levels of freezing and thawing management and control levels;
the matching module 20 is configured to match a corresponding freezing and thawing management and control level to the network application according to a preset grading condition;
and the freezing and unfreezing module 30 is used for carrying out process freezing and unfreezing operation on the network application according to the corresponding freezing and unfreezing control level.
In the embodiment, the freezing and unfreezing strategies of hierarchical regulation and control are adopted for different network applications, so that the process freezing and unfreezing efficiency is improved, and the user experience is improved.
As shown in fig. 4, which is a functional schematic diagram of a process freezing and thawing apparatus based on a network application according to the present embodiment, wherein the selection criteria of the freezing and thawing management level, that is, the preset classification conditions in the matching module, include three conditions: the method comprises the following steps that (1) user-defined, system recommended configuration and self-learning configuration are carried out, the priority of the three grading conditions is reduced in sequence, and the grading condition with high priority can cover the grading condition with low priority; wherein, freeze the management and control level of unfreezing and divide into the four grades: keep long connection, data packet discernment unfreeze, unfreeze according to duty cycle and neglect the connection, the control degree of these four management and control grades is more and more strict, also keeps long connection to be the control degree most loose promptly, and data packet discernment unfreezes the number of times, and it is stricter to unfreeze than data packet discernment according to duty cycle, and neglect the connection and be the most strict management and control grade, need not unfreeze basically.
In this embodiment, the preset classification condition includes: the method comprises the following steps of user self-defining, system recommendation configuration and self-learning configuration, wherein the user self-defining priority level is the highest, and a user can independently and individually select the controlled tightness level; secondly, the configuration recommended by the system is background configuration management, the user is helped to select when the user does not make a selection, and the selection is based on the big data selected by the user and the technical analysis of whether the specific application should be kept connected or not; finally, self-learning configuration is performed, wherein the self-learning is a process of self-learning, such as the mobile terminal or the network application itself detects the usage frequency and the networking status of the network application, so as to recommend a corresponding control level, for example, the frequency of usage of a network application user is extremely low, but the frequency of network connection is high when the network application runs in the background, strict control is selected, for example, the connection control level is selected to be ignored, but if the network application with the stricter default control level is frequently used by the user within a certain period of time and the number of network connection times is large, according to the self-learning configuration, the control level of the network application needs to be adjusted a little loose, for example, the connection control level is adjusted to be unfrozen according to a duty ratio, the self-learning configuration is not mature at present, is prone to error, and the control level of the network application, therefore, the priority level is low, and the adjustment can be carried out in a mode that the system recommends configuration or even is customized by a user.
In this embodiment, the multiple freezing and thawing management levels include: maintaining long connections, packet identification unfreezing, unfreezing by duty cycle, and ignoring connections.
In this embodiment, the long connection is specifically:
when the network application receives a freezing request, judging whether the network application has TCP connection, if so, keeping the current running state of the network application, and not executing the freezing operation, wherein the mode allows the terminal to be networked and allows the network to inform the terminal by message when the TCP connection exists; and when detecting that the TCP connection does not exist in the network application, performing a freezing operation on the network application.
In this embodiment, the packet identification and unfreezing specifically includes:
when the network application receives a freezing request, performing freezing operation on the network application;
when a data packet sent by a network terminal is identified in a protocol layer, judging whether the data packet is delivered to the network application, if so, executing unfreezing operation on the network application.
In this embodiment, after being frozen, the network application cannot receive the data from the network, and only the protocol layer is used to identify the data packet sent from the network, and if the data packet is to be delivered to a specific application that has been frozen, the application is defrosted to process the network message. This approach does not prevent the application from being frozen, the application once frozen will only receive messages in one direction, there is no opportunity to send messages proactively, and network applications that require some timeliness to await receipt, such as QQ or wechat tools, are suitable.
As shown in fig. 5, in this embodiment, the defrosting according to the duty ratio specifically includes:
when the network application receives a freezing request, performing freezing operation on the network application;
setting a thawing window period for the network application, judging whether the moment of receiving the network message is in the thawing window period or not when the network application receives the network message sent by a network terminal, and if so, executing a thawing operation on the network application to process the network message;
and if the moment of receiving the network message is not in the unfreezing window period, delaying to the next unfreezing window period and then executing the unfreezing operation on the network application to process the network message.
In this embodiment, the network application unfrozen according to the duty ratio may be forum messages and the like, and the interval of the unfreezing window period may be fixedly set, or may be extended according to the standby time.
In this embodiment, ignoring a connection means that the current application is not considered to have a need to use the network (but the application must require network rights to allow the user to use the application for the purpose of pushing advertisements, etc.), or that the application is not considered to have a need to use the network in the background. When the freezing is judged, whether the freezing is influenced by networking or not is judged, and the freezing is not unfrozen due to network reasons, such as a calculator gadget and the like.
As another embodiment, the preset rating condition may be any one or a combination of any two of the three rating conditions of user-defined, system recommended configuration and self-learning configuration, for example, two conditions of user-defined and system recommended configuration may be selected, and an immature self-learning configuration is removed, where the priority level of user-defined is still higher than the priority level of configuration recommended by the system, so that the user may autonomously and individually select the controlled tightness level; for users with strong subjectivity, the operation condition of each network application can be deeply understood, and only user customization can be selected as a unique grading condition, so that the subjective initiative of the users is fully exerted, and the user experience is improved; for those who are not familiar with the mobile terminal or who do not want to spend time adjusting the operation efficiency of the mobile terminal, only the system recommended configuration may be selected as the ranking condition.
As another embodiment, the multiple freezing and unfreezing management levels may also select at least two management levels from four management levels of long connection maintenance, packet identification unfreezing, unfreezing according to a duty ratio, and connection neglecting to perform a process freezing and unfreezing operation on the network application, for example, two management levels of long connection maintenance and connection neglecting may be selected, which are either strictest or most loose, so that a high recognition degree is provided for a user, and user experience is improved.
As another embodiment, the different classification conditions and the different management and control levels may be combined together to form a plurality of technical solutions, and the combined technical solutions can all implement a freezing and thawing strategy of hierarchical regulation and control, all of which are within the protection scope of the present application, for example, two classification conditions and three management and control levels may be selected to form a functional schematic diagram of the process freezing and thawing apparatus based on network application as shown in fig. 6, where the two classification conditions are user-defined and system recommended configurations, and the three management and control levels are maintaining long connections, packet identification thawing, and ignoring connections.
Example two
As shown in fig. 7, in this embodiment, a method for freezing and unfreezing a process based on a web application includes:
s10, establishing a freezing and thawing hierarchical control unit, wherein the freezing and thawing hierarchical control unit comprises a plurality of levels of freezing and thawing control levels;
s20, matching the corresponding freezing and thawing control levels to the network application according to the preset grading conditions;
and S30, performing process freezing and unfreezing operation on the network application according to the corresponding freezing and unfreezing control level.
In the embodiment, the freezing and unfreezing strategies of hierarchical regulation and control are adopted for different network applications, so that the process freezing and unfreezing efficiency is improved, and the user experience is improved.
As shown in fig. 4, which is a functional schematic diagram of a process freezing and thawing apparatus based on a network application according to the present embodiment, wherein the selection criteria of the freezing and thawing management level, that is, the preset classification conditions in the matching module, include three conditions: the method comprises the following steps that (1) user-defined, system recommended configuration and self-learning configuration are carried out, the priority of the three grading conditions is reduced in sequence, and the grading condition with high priority can cover the grading condition with low priority; wherein, freeze the management and control level of unfreezing and divide into the four grades: keep long connection, data packet discernment unfreeze, unfreeze according to duty cycle and neglect the connection, the control degree of these four management and control grades is more and more strict, also keeps long connection to be the control degree most loose promptly, and data packet discernment unfreezes the number of times, and it is stricter to unfreeze than data packet discernment according to duty cycle, and neglect the connection and be the most strict management and control grade, need not unfreeze basically.
In this embodiment, the preset classification condition includes: the method comprises the following steps of user self-defining, system recommendation configuration and self-learning configuration, wherein the user self-defining priority level is the highest, and a user can independently and individually select the controlled tightness level; secondly, the configuration recommended by the system is background configuration management, the user is helped to select when the user does not make a selection, and the selection is based on the big data selected by the user and the technical analysis of whether the specific application should be kept connected or not; finally, self-learning configuration is performed, wherein the self-learning is a process of self-learning, such as the mobile terminal or the network application itself detects the usage frequency and the networking status of the network application, so as to recommend a corresponding control level, for example, the frequency of usage of a network application user is extremely low, but the frequency of network connection is high when the network application runs in the background, strict control is selected, for example, the connection control level is selected to be ignored, but if the network application with the stricter default control level is frequently used by the user within a certain period of time and the number of network connection times is large, according to the self-learning configuration, the control level of the network application needs to be adjusted a little loose, for example, the connection control level is adjusted to be unfrozen according to a duty ratio, the self-learning configuration is not mature at present, is prone to error, and the control level of the network application, therefore, the priority level is low, and the adjustment can be carried out in a mode that the system recommends configuration or even is customized by a user.
In this embodiment, the multiple freezing and thawing management levels include: maintaining long connections, packet identification unfreezing, unfreezing by duty cycle, and ignoring connections.
In this embodiment, the long connection is specifically:
when the network application receives a freezing request, judging whether the network application has TCP connection, if so, keeping the current running state of the network application, and not executing the freezing operation, wherein the mode allows the terminal to be networked and allows the network to inform the terminal by message when the TCP connection exists; and when detecting that the TCP connection does not exist in the network application, performing a freezing operation on the network application.
In this embodiment, the packet identification and unfreezing specifically includes:
when the network application receives a freezing request, performing freezing operation on the network application;
when a data packet sent by a network terminal is identified in a protocol layer, judging whether the data packet is delivered to the network application, if so, executing unfreezing operation on the network application.
In this embodiment, after being frozen, the network application cannot receive the data from the network, and only the protocol layer is used to identify the data packet sent from the network, and if the data packet is to be delivered to a specific application that has been frozen, the application is defrosted to process the network message. This approach does not prevent the application from being frozen, the application once frozen will only receive messages in one direction, there is no opportunity to send messages proactively, and network applications that require some timeliness to await receipt, such as QQ or wechat tools, are suitable.
As shown in fig. 5, in this embodiment, the defrosting according to the duty ratio specifically includes:
when the network application receives a freezing request, performing freezing operation on the network application;
setting a thawing window period for the network application, judging whether the moment of receiving the network message is in the thawing window period or not when the network application receives the network message sent by a network terminal, and if so, executing a thawing operation on the network application to process the network message;
and if the moment of receiving the network message is not in the unfreezing window period, delaying to the next unfreezing window period and then executing the unfreezing operation on the network application to process the network message.
In this embodiment, the network application unfrozen according to the duty ratio may be forum messages and the like, and the interval of the unfreezing window period may be fixedly set, or may be extended according to the standby time.
In this embodiment, ignoring a connection means that the current application is not considered to have a need to use the network (but the application must require network rights to allow the user to use the application for the purpose of pushing advertisements, etc.), or that the application is not considered to have a need to use the network in the background. When the freezing is judged, whether the freezing is influenced by networking or not is judged, and the freezing is not unfrozen due to network reasons, such as a calculator gadget and the like.
As another embodiment, the preset rating condition may be any one or a combination of any two of the three rating conditions of user-defined, system recommended configuration and self-learning configuration, for example, two conditions of user-defined and system recommended configuration may be selected, and an immature self-learning configuration is removed, where the priority level of user-defined is still higher than the priority level of configuration recommended by the system, so that the user may autonomously and individually select the controlled tightness level; for users with strong subjectivity, the operation condition of each network application can be deeply understood, and only user customization can be selected as a unique grading condition, so that the subjective initiative of the users is fully exerted, and the user experience is improved; for those who are not familiar with the mobile terminal or who do not want to spend time adjusting the operation efficiency of the mobile terminal, only the system recommended configuration may be selected as the ranking condition.
As another embodiment, the multiple freezing and unfreezing management levels may also select at least two management levels from four management levels of long connection maintenance, packet identification unfreezing, unfreezing according to a duty ratio, and connection neglecting to perform a process freezing and unfreezing operation on the network application, for example, two management levels of long connection maintenance and connection neglecting may be selected, which are either strictest or most loose, so that a high recognition degree is provided for a user, and user experience is improved.
As another embodiment, the different classification conditions and the different management and control levels may be combined together to form a plurality of technical solutions, and the combined technical solutions can all implement a freezing and thawing strategy of hierarchical regulation and control, all of which are within the protection scope of the present application, for example, two classification conditions and three management and control levels may be selected to form a functional schematic diagram of the process freezing and thawing apparatus based on network application as shown in fig. 6, where the two classification conditions are user-defined and system recommended configurations, and the three management and control levels are maintaining long connections, packet identification thawing, and ignoring connections.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (4)

1. A process freezing and unfreezing device based on network application is characterized by comprising:
the control level establishing module is used for establishing a freezing and unfreezing hierarchical control unit, the freezing and unfreezing hierarchical control unit comprises a plurality of levels of freezing and unfreezing control levels, and the plurality of levels of freezing and unfreezing control levels comprise: maintaining long connection, identifying and unfreezing data packets, unfreezing according to duty ratio and neglecting connection;
the matching module is used for matching the corresponding freezing and thawing control levels to the network application according to the preset grading conditions;
the freezing and unfreezing module is used for carrying out process freezing and unfreezing operation on the network application according to the corresponding freezing and unfreezing control level;
wherein the keep-alive connection is: when the network application receives a freezing request, judging whether the network application has TCP connection, if so, keeping the current running state of the network application, and not executing the freezing operation;
the data packet identification unfreezing is as follows: when the network application receives a freezing request, performing freezing operation on the network application; when a data packet sent by a network terminal is identified in a protocol layer, judging whether the data packet is delivered to the network application, if so, executing unfreezing operation on the network application;
the thawing according to the duty ratio is as follows: when the network application receives a freezing request, performing freezing operation on the network application; setting a thawing window period for the network application, judging whether the moment of receiving the network message is in the thawing window period or not when the network application receives the network message sent by a network terminal, and if so, executing a thawing operation on the network application to process the network message; if the moment of receiving the network message is not in the unfreezing window period, delaying to the next unfreezing window period and then executing the unfreezing operation on the network application to process the network message;
the ignore connection is: the current application is not considered to have the necessity to use the network, or the application is not considered to have the necessity to use the network in the background;
the control degree of the four control levels is more and more strict by keeping long connection, identifying and unfreezing data packets, unfreezing according to duty ratio and neglecting connection.
2. The process freezing and unfreezing device based on the network application as claimed in claim 1, wherein the preset classification condition comprises: user self-definition, system recommended configuration and self-learning configuration.
3. A process freezing and unfreezing method based on network application is characterized by comprising the following steps:
establishing a freezing and thawing hierarchical management and control unit, wherein the freezing and thawing hierarchical management and control unit comprises a plurality of freezing and thawing management and control levels, and the plurality of freezing and thawing management and control levels comprise: maintaining long connection, identifying and unfreezing data packets, unfreezing according to duty ratio and neglecting connection;
matching a corresponding freezing and thawing control level to the network application according to a preset grading condition;
carrying out process freezing and thawing operation on the network application according to the corresponding freezing and thawing control level;
wherein the keep-alive connection is: when the network application receives a freezing request, judging whether the network application has TCP connection, if so, keeping the current running state of the network application, and not executing the freezing operation;
the data packet identification unfreezing is as follows: when the network application receives a freezing request, performing freezing operation on the network application; when a data packet sent by a network terminal is identified in a protocol layer, judging whether the data packet is delivered to the network application, if so, executing unfreezing operation on the network application;
the thawing according to the duty ratio is as follows: when the network application receives a freezing request, performing freezing operation on the network application; setting a thawing window period for the network application, judging whether the moment of receiving the network message is in the thawing window period or not when the network application receives the network message sent by a network terminal, and if so, executing a thawing operation on the network application to process the network message; if the moment of receiving the network message is not in the unfreezing window period, delaying to the next unfreezing window period and then executing the unfreezing operation on the network application to process the network message;
the ignore connection is: the current application is not considered to have the necessity to use the network, or the application is not considered to have the necessity to use the network in the background;
the control degree of the four control levels is more and more strict by keeping long connection, identifying and unfreezing data packets, unfreezing according to duty ratio and neglecting connection.
4. The process freezing and unfreezing method based on the network application as claimed in claim 3, wherein the preset classification condition comprises: user self-definition, system recommended configuration and self-learning configuration.
CN201710039480.6A 2017-01-19 2017-01-19 Process freezing and thawing device and method based on network application Active CN106713490B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710039480.6A CN106713490B (en) 2017-01-19 2017-01-19 Process freezing and thawing device and method based on network application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710039480.6A CN106713490B (en) 2017-01-19 2017-01-19 Process freezing and thawing device and method based on network application

Publications (2)

Publication Number Publication Date
CN106713490A CN106713490A (en) 2017-05-24
CN106713490B true CN106713490B (en) 2021-06-15

Family

ID=58908526

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710039480.6A Active CN106713490B (en) 2017-01-19 2017-01-19 Process freezing and thawing device and method based on network application

Country Status (1)

Country Link
CN (1) CN106713490B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018905B (en) * 2018-01-10 2023-05-05 Oppo广东移动通信有限公司 Information processing method, information processing apparatus, computer device, and computer-readable storage medium
CN110046033B (en) * 2018-01-12 2021-08-17 Oppo广东移动通信有限公司 Application program processing method and device, electronic equipment and computer readable storage medium
CN110045812B (en) * 2018-01-12 2021-01-15 Oppo广东移动通信有限公司 Information processing method, information processing device, computer equipment and computer readable storage medium
CN110045809A (en) * 2018-01-12 2019-07-23 广东欧珀移动通信有限公司 Information processing method, device, computer equipment and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317608A (en) * 2014-09-30 2015-01-28 北京金山安全软件有限公司 Management method and device for pre-installed application program in mobile terminal and client
CN106201683A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of manage the method for application, device and terminal
CN106295275A (en) * 2016-07-29 2017-01-04 宇龙计算机通信科技(深圳)有限公司 Method, device and the terminal of management is freezed in a kind of application

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9536082B2 (en) * 2015-03-17 2017-01-03 International Business Machines Corporation Isolated program execution environment
CN106022150A (en) * 2016-05-30 2016-10-12 宇龙计算机通信科技(深圳)有限公司 Freezing application method and device
CN106125882B (en) * 2016-06-15 2019-04-26 深圳市万普拉斯科技有限公司 A kind of management method and electronic equipment of application program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317608A (en) * 2014-09-30 2015-01-28 北京金山安全软件有限公司 Management method and device for pre-installed application program in mobile terminal and client
CN106201683A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of manage the method for application, device and terminal
CN106295275A (en) * 2016-07-29 2017-01-04 宇龙计算机通信科技(深圳)有限公司 Method, device and the terminal of management is freezed in a kind of application

Also Published As

Publication number Publication date
CN106713490A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN107066320B (en) Android process freezing and unfreezing device and method
CN105848253B (en) Intelligent network searching method and device and mobile terminal
CN106844029B (en) Self-management Android process freezing and unfreezing device and method
CN105188098B (en) Network switching device and network switching method of mobile terminal
CN106304037B (en) Virtual SIM card management method and device
CN106713490B (en) Process freezing and thawing device and method based on network application
CN106302651B (en) Social picture sharing method and terminal with social picture sharing system
CN107066290B (en) Method and device for starting application according to associated policy
CN106249989B (en) Method for arranging social application program icons during content sharing and mobile terminal
CN104932697B (en) Gesture unlocking method and device
CN107135546B (en) Method and device for selecting wireless network operation channel
CN106686687B (en) Access control method and device
CN106686672B (en) Network connection method and terminal
CN107132967B (en) Application starting method and device, storage medium and terminal
CN106507418B (en) Cell reselection method and device based on signal strength and mobile terminal
CN105657733B (en) Network stability control device and method
CN106792539B (en) Alarm method and device
CN106455009B (en) Network searching device and method
CN105791541B (en) Screenshot method and mobile terminal
CN106028286B (en) Wireless local area network access device and method
CN106161790B (en) Mobile terminal and control method thereof
CN105722246B (en) Network speed superposition device and method
CN106856617B (en) Terminal and cell reselection method
CN106792878B (en) Data traffic monitoring method and device
CN106791567B (en) Switching method and terminal

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