CN112486310A - Data service control method, device and terminal - Google Patents

Data service control method, device and terminal Download PDF

Info

Publication number
CN112486310A
CN112486310A CN201910862492.8A CN201910862492A CN112486310A CN 112486310 A CN112486310 A CN 112486310A CN 201910862492 A CN201910862492 A CN 201910862492A CN 112486310 A CN112486310 A CN 112486310A
Authority
CN
China
Prior art keywords
application program
frozen
application
terminal
data
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.)
Pending
Application number
CN201910862492.8A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201910862492.8A priority Critical patent/CN112486310A/en
Publication of CN112486310A publication Critical patent/CN112486310A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken

Abstract

The embodiment of the invention relates to the technical field of computers, and discloses a data service control method, a data service control device and a terminal. The data service control method comprises the steps of monitoring the freezing condition of an application program in a terminal; and when the application program is detected to be frozen, limiting the data call of the frozen application program. According to the technical scheme in the embodiment, under the condition that user experience is not influenced, data call services of the system are effectively reduced, so that the power consumption of the system is reduced, and the cruising ability is improved.

Description

Data service control method, device and terminal
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a data service management and control method, a data service management and control device and a terminal.
Background
With the continuous development of electronic technology, more and more application programs are installed in the electronic terminal; when the mobile terminal is used, many application programs are switched to a background to continue running under the condition that the application programs are not used after being opened. The processes of the application programs always occupy the memory of the mobile terminal, so that the memory of the mobile terminal is insufficient, and the front-end program runs slowly; and when the process of the application program runs, background data is continuously refreshed, a large amount of energy of the mobile terminal is consumed, the power consumption of the mobile terminal is increased, and resource waste is caused.
Disclosure of Invention
The embodiment of the invention aims to provide a data service management and control method, a device and a terminal, so that the data call service of a system is effectively reduced under the condition of not influencing the user experience, the power consumption of the system is reduced, and the cruising ability is improved.
In order to solve the above technical problem, an embodiment of the present invention provides a data service management and control method, including: monitoring the freezing condition of an application program in the terminal; and when the application program is detected to be frozen, limiting the data call of the frozen application program.
An embodiment of the present invention further provides a terminal, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data traffic management method described above.
The embodiment of the invention also provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the data service management and control method.
Compared with the prior art, the method and the device have the advantages that when the application program is frozen, the data call of the frozen application program is limited; since the frozen application itself is not in a state of being used by the user, there is no influence on the user by the restriction of its data call; namely, the technical scheme of the application can effectively reduce the data call service of the system under the condition of not influencing the user experience, thereby reducing the power consumption of the system and improving the cruising ability.
In addition, the data call includes at least a data call sent by a server to the application. After the application program is frozen, the current tailing of the terminal is serious mainly due to the data call sent from the server to the application program, so that the cruising ability is influenced; therefore, the data call sent to the application program by the server is limited, the system power consumption can be reduced to a great extent, and the cruising ability is improved.
Additionally, the restricting the data call of the frozen application includes restricting a network access right of the frozen application. The embodiment provides a limiting mode of the data call, which can reduce the processing amount of the data call service to the maximum extent, thereby reducing the current tailing to the maximum extent and improving the cruising ability.
In addition, the method further comprises: and when detecting that the application program freezing function of the terminal is started, entering a step of monitoring the freezing condition of the application program in the terminal. This embodiment provides a more reasonable trigger condition for starting monitoring.
In addition, the monitoring of the freezing condition of the application program in the terminal includes: and monitoring the freezing condition of the application program according to the freezing state list of the application program in the terminal. The embodiment provides a specific monitoring implementation mode.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a flowchart of a data traffic control method according to a first embodiment of the present application;
fig. 2 is a flowchart of a data traffic control method according to a second embodiment of the present application;
fig. 3 is a block diagram of a data traffic control apparatus according to a third embodiment of the present application;
fig. 4 is a block diagram of a terminal according to a fourth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The current smart rack architecture is generally an AP + CP architecture, where an AP (Application Processor, for short, AP) refers to an Application Processor, and a CP (Communication Processor, for short, AP) refers to a Communication Processor; the AP is responsible for application and system layer traffic and the CP is responsible for communication traffic. Currently, most application programs provide various services, such as video, web browsing, cloud data storage, server verification, and the like, more or less through a network and a cloud. Such network interaction and access is essentially the transceiving access of data call services through the CP.
The freezing technology of the application program is mainly a method for limiting the application program to occupy system resources based on a terminal, and the method mainly comprises the steps of forbidding to occupy system resources such as a CPU (central processing unit), a Sensor, a GPS (global positioning system) and the like, effectively saving power consumption and prolonging the battery endurance time. That is, the application program which is currently opened but not used is frozen, so that the application program does not occupy system resources such as a CPU \ Sensor, a GPS and the like.
The inventor finds that after an application program running on an AP is frozen, although the application program no longer occupies resources related to the AP and does not respond to the response requirement of a data call service, the data service on the CP side continues until no response is made after time out, and thus, a relatively obvious current tailing phenomenon occurs in power consumption continuation. Based on this, the inventor proposes the technical scheme of the application.
The first embodiment of the present invention relates to a data service management and control method, which can be applied to a terminal, and in particular, a network management module in the terminal can be used to execute the method. The specific flow of the method is shown in figure 1.
Step 101, monitoring the freezing condition of an application program in a terminal. When the application program is detected to be frozen, entering step 102; when it is detected that the application program is thawed, step 103 is entered.
Step 102, limiting the data call of the frozen application program.
Step 103, the restriction is released for the data call of the unfrozen application program.
The following describes implementation details of the data service management and control method of the present embodiment in detail, and the following is only provided for facilitating understanding of the implementation details, and is not necessary for implementing the present solution.
The terminal is internally preset with a freezing module which is used for freezing the application programs or unfreezing the frozen application programs according to the running conditions or the detected preset operation of each application program in the terminal. In one example, a frozen state list of the application programs can be preset in the freezing module, and the frozen application programs are recorded in the frozen state list; that is, when an application is frozen, the application is added to the frozen state list; removing the application program from the frozen state list when the application program is unfrozen; the frozen state list may indicate the application program by information such as the name of the application program.
In step 101, monitoring the freezing condition of the application program means monitoring whether the application program in the terminal is frozen or unfrozen. The network management module can monitor the freezing condition of the application program according to the freezing state list of the application program in the terminal. Specifically, the network management module may periodically analyze the frozen state list, and determine whether there is a change in the application programs in the frozen state list at the current time and the frozen state list at the previous time.
If the application program is newly added in the frozen state list at the current moment relative to the frozen state list at the previous moment, judging that the application program is frozen and the newly added application program is the monitored frozen application program; at which point step 102 is entered.
If the application programs are reduced in the frozen state list at the current moment relative to the frozen state list at the previous moment, judging that the application programs are monitored to be unfrozen, wherein the reduced application programs are the monitored unfrozen application programs; at which point step 103 is entered.
In other examples, the freezing condition of the application program may be monitored in other manners. For example, when the freezing module performs a freezing operation or a unfreezing operation on an application program, notification information is sent to the network management module, and the network management module determines whether the application program is frozen or unfrozen according to the notification information, wherein the notification information includes an operation type and an operation object, the operation type can be freezing or unfreezing, and the operation object is the application program corresponding to the operation type.
In step 102, limiting the data call of the frozen application; the restriction of the data call may be a bidirectional restriction or a unidirectional restriction. From the perspective of the application, the data call sent from the server to the application is referred to as an inward data call, and the data call sent from the application to the server is referred to as an outward data call. Simultaneously limiting the inward data calls and the outward data calls, which is called bidirectional limitation; the restriction, referred to as one-way restriction, is only applied to data calls that are inbound or only data calls that are outbound.
In this embodiment, the manner of limiting the data call may be to limit the network access permission of the frozen application program; so that all data calls to the frozen application can be suspended from processing; the network access authority can be limited by setting a firewall (such as iptables), a network blacklist, a network use authority and the like. However, the embodiment is not limited to this, and in other examples, the partial data call of the application program may be limited, and may be set according to actual needs.
After the application program in the terminal is frozen, the server does not know that the application program is frozen and sends a data call to the application program of the terminal. When the inward data call is not limited, the CP of the terminal receives the data call and sends the data call to the AP of the terminal to wait for the response of the application program; because the application program is frozen, the CP of the terminal cannot receive the response and forward the response to the server, that is, the server determines that the response is overtime when waiting for a period of time and not obtaining the response of the application program, so that the CP in the terminal is passively disconnected; that is, the CP in the terminal always receives the data call of the application program sent by the server and forwards the data call to the AP before being passively disconnected. In this embodiment, the inward data call is restricted, so that the CP of the terminal can be restricted from forwarding the data call of the application program to the AP; namely, the CP of the terminal receives the data call of the application program and then does not forward the data call of the application program to the AP of the terminal, so that the current tailing phenomenon can be significantly reduced and the cruising ability can be improved. In addition, the AP in the dormant state can be prevented from being frequently awakened as much as possible, so that the endurance is further optimized; for example, when the AP is in a sleep state, if the CP receives a data call of the application a sent by the server, the CP sends the data call of the application a to the AP, thereby waking up the AP; however, if application a has been frozen, then it will not process the data call even after the AP is woken up; in this case, the AP is woken up but has no practical significance, and power consumption is increased, affecting endurance.
Or, in the limiting of the inward data call in this embodiment, the CP of the terminal may also be directly limited from receiving the data call of the application program sent by the service end; that is, the CP of the terminal rejects receiving the data call when recognizing that the application program corresponding to the data call from the service terminal is frozen.
After the application program is frozen, generally, the AP will not actively send a data call of the application program to the server; however, in some cases, the CP may automatically reply to a data call of the application received from the server, for example, automatically reply to a message such as an Acknowledgement Character (ACK). That is, when the outward data call is not limited, the CP automatically replies ACK after receiving the data service of the application; in the embodiment, after limiting the outward data call, the CP in the terminal does not automatically reply the message such as ACK to the data call of the application program; therefore, the current tailing phenomenon can be further reduced, and the cruising ability can be improved.
In step 103, the manner in which the restriction is released for the data call corresponds to the manner in which the restriction is placed on the data call. That is, if the network access right is restricted by adding the frozen application to the network blacklist in step 102, the thawed application may be removed from the network blacklist when the restriction is released.
In this embodiment, when an application is frozen, a data call of the frozen application is restricted; since the frozen application itself is not in a state of being used by the user, there is no influence on the user by the restriction of its data call; namely, the technical scheme of the application can effectively reduce the data call service of the system under the condition of not influencing the user experience, thereby reducing the power consumption of the system and improving the cruising ability.
The second embodiment of the invention relates to a data service management and control method. The second embodiment is substantially the same as the first embodiment, and mainly differs therefrom in that: in a second embodiment of the present invention, the application freeze is monitored upon detecting that the application freeze function has been activated.
Fig. 2 is a flowchart of a data traffic control method according to a second embodiment of the present application, which is described in detail as follows.
Step 201, detecting whether an application program freezing function of a terminal is started; if yes, go to step 202; if not, the process is ended.
Step 202, the freezing condition of the application program in the terminal is monitored. When it is detected that the application program is frozen, entering step 203; when it is detected that the application program is thawed, step 204 is entered. Step 202 is similar to step 101 in the first embodiment, and is not described herein again.
Step 203, limit the data call of the frozen application program. Step 203 is similar to step 102 in the first embodiment, and is not described herein again.
At step 204, the data call of the thawed application is unrestricted. Step 204 is similar to step 103 in the first embodiment, and is not described herein again.
This embodiment adds step 201 to the first embodiment. Specifically, when the application freezing function of the terminal is started, the freezing module freezes the application or unfreezes the frozen application according to the detected running state of each application or the detected preset operation. Therefore, the network function module can monitor the freezing condition of the application program when detecting that the application program freezing function of the freezing module is started; and when the application program freezing function of the terminal is not started, the freezing condition of each application program in the terminal does not need to be monitored. This embodiment provides a more reasonable trigger condition for starting monitoring.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a data service management and control apparatus, as shown in fig. 3, including: a monitoring module 301 and a limiting module 302. The monitoring module 301 is configured to monitor a freezing condition of an application program on the terminal; the restriction module 302 is configured to restrict a data call of the frozen application when the monitoring module 301 monitors that the application is frozen.
In one example, the data call includes at least a data call sent by the server to the application.
In one example, the restriction module 302 is specifically configured to restrict network access rights of the frozen application.
In an example, the monitoring module 301 is further configured to monitor whether an application freezing function of the terminal is started, and monitor a freezing condition of an application in the terminal when it is monitored that the application freezing function of the terminal is started.
In one example, the restriction module 302 is further configured to, when the monitoring module detects that the application is thawed, un-restrict the data call of the thawed application.
In one example, the monitoring module 301 is specifically configured to monitor the freezing condition of the application program according to a freezing status list of the application program in the terminal.
In one example, the frozen state list records frozen applications; the monitoring module 301 is specifically configured to:
periodically analyzing the frozen state list, and judging whether the application programs in the frozen state list at the current moment and the frozen state list at the previous moment are changed;
if an application program is newly added in the freezing state list at the current moment, judging that the application program is monitored to be frozen, and judging that the newly added application program is the monitored frozen application program; or
And if the number of the application programs in the frozen state list at the current moment is reduced, judging that the application programs are monitored to be unfrozen, and the reduced application programs are the monitored unfrozen application programs.
It should be understood that this embodiment is an example of the apparatus corresponding to the first or second embodiment, and may be implemented in cooperation with the first or second embodiment. The related technical details mentioned in the first or second embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first or second embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
A fourth embodiment of the present invention relates to a terminal, as shown in fig. 4, including:
at least one processor 401; and the number of the first and second groups,
a memory 402 communicatively coupled to the at least one processor 401; wherein the content of the first and second substances,
the memory 402 stores instructions executable by the at least one processor 401 to enable the at least one processor 401 to perform the data traffic management method described above.
Where the memory 402 and the processor 401 are coupled by a bus, which may include any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 401 and the memory 402 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 401 may be transmitted over a wireless medium via an antenna, which may receive the data and transmit the data to the processor 401.
The processor 401 is responsible for managing the bus and general processing and may provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And memory 402 may be used to store data used by processor 401 in performing operations.
A fifth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. A data service management and control method is characterized by comprising the following steps:
monitoring the freezing condition of an application program on a terminal;
and when the application program is detected to be frozen, limiting the data call of the frozen application program.
2. The data traffic management and control method according to claim 1, wherein the data call at least includes a data call sent by a server to the application.
3. The data traffic control method according to claim 1, wherein the limiting the data call of the frozen application includes: limiting network access rights of the frozen application.
4. The data traffic management and control method according to claim 1, further comprising:
and when detecting that the application program freezing function of the terminal is started, entering a step of monitoring the freezing condition of the application program in the terminal.
5. The data traffic management and control method according to claim 1, further comprising: and when the unfreezing of the application program is monitored, the limitation on the data call of the unfrozen application program is removed.
6. The data traffic control method according to any one of claims 1 to 5, wherein the monitoring of the freezing condition of the application program in the terminal includes: and monitoring the freezing condition of the application program according to the freezing state list of the application program in the terminal.
7. The data traffic control method according to claim 6, wherein the frozen state list records frozen application programs; the monitoring the freezing condition of the application program according to the freezing state list of the application program in the terminal comprises the following steps:
periodically analyzing the frozen state list, and judging whether the application programs in the frozen state list at the current moment and the application programs in the frozen state list at the previous moment are changed;
if an application program is newly added in the frozen state list at the current moment, judging that the application program is monitored to be frozen, and the newly added application program is the monitored frozen application program; or
If the number of the application programs in the frozen state list at the current moment is reduced, it is determined that the application programs are monitored to be unfrozen, and the reduced application programs are the monitored unfrozen application programs.
8. A data traffic control apparatus, comprising:
the monitoring module is used for monitoring the freezing condition of the application program on the terminal;
and the limiting module is used for limiting the data call of the frozen application program when the monitoring module monitors that the application program is frozen.
9. A terminal, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data traffic management method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the data traffic management method according to any one of claims 1 to 7.
CN201910862492.8A 2019-09-12 2019-09-12 Data service control method, device and terminal Pending CN112486310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910862492.8A CN112486310A (en) 2019-09-12 2019-09-12 Data service control method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910862492.8A CN112486310A (en) 2019-09-12 2019-09-12 Data service control method, device and terminal

Publications (1)

Publication Number Publication Date
CN112486310A true CN112486310A (en) 2021-03-12

Family

ID=74920615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910862492.8A Pending CN112486310A (en) 2019-09-12 2019-09-12 Data service control method, device and terminal

Country Status (1)

Country Link
CN (1) CN112486310A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868643A (en) * 2021-09-22 2021-12-31 苏州浪潮智能科技有限公司 Security detection method and device for running resources, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113868643A (en) * 2021-09-22 2021-12-31 苏州浪潮智能科技有限公司 Security detection method and device for running resources, electronic equipment and storage medium
CN113868643B (en) * 2021-09-22 2023-11-03 苏州浪潮智能科技有限公司 Security detection method and device for running resources, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
EP2122929B1 (en) Network oriented control system for self-configuration and self-optimization measurements
CN109429373B (en) Communication mode switching method, network side equipment and terminal equipment
US20100315203A1 (en) Asset tag power optimization
US11516771B2 (en) User equipment, network node and radio communication method
EP3574707B1 (en) Connection release assistance information
EP3025554B1 (en) Method of management of a wireless interface of a device and corresponding wireless device
EP3418892B1 (en) Method and device for managing and controlling broadcast, and terminal
CN108551668B (en) Information transmission method, device, equipment and storage medium
US20210235376A1 (en) Power saving host-modem interaction in a communication device
WO2014063487A1 (en) Traffic control method and device
CN109475011B (en) UE RRC state determination method and device
US20230185613A1 (en) Electronic device for securing usable dynamic memory and operating method thereof
CN105704794A (en) Telematics control system and method
CN110557810A (en) PDCCH blind detection method, terminal and network side equipment
CN112486310A (en) Data service control method, device and terminal
US11943127B2 (en) Network-based control method for power consumption of applications, terminal and storage medium
US20230224693A1 (en) Communication method and device, and electronic device and computer-readable storage medium
US9503981B2 (en) Apparatus and method for operational state synchronization in a wireless communication system
WO2022000216A1 (en) Communication method and device, electronic device, and computer-readable storage medium
CN114710546A (en) State transition method, network equipment and storage medium
EP3459303B1 (en) Methods and vehicle, network node and user equipment for enabling efficient paging
CN111049629B (en) Search space detection method, terminal and network side device
CN113853032B (en) RRC state transition method, device and storage medium
US20220191058A1 (en) On-board system, on-board system control method, and non-transitory recording medium
US20220269328A1 (en) Application program freezing control method and apparatus, terminal, and readable storage medium

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