CN111432399B - Data traffic management method and device, storage medium and terminal - Google Patents

Data traffic management method and device, storage medium and terminal Download PDF

Info

Publication number
CN111432399B
CN111432399B CN202010210898.0A CN202010210898A CN111432399B CN 111432399 B CN111432399 B CN 111432399B CN 202010210898 A CN202010210898 A CN 202010210898A CN 111432399 B CN111432399 B CN 111432399B
Authority
CN
China
Prior art keywords
data traffic
data
installation package
downloading
application installation
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
CN202010210898.0A
Other languages
Chinese (zh)
Other versions
CN111432399A (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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo 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 TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN202010210898.0A priority Critical patent/CN111432399B/en
Publication of CN111432399A publication Critical patent/CN111432399A/en
Application granted granted Critical
Publication of CN111432399B publication Critical patent/CN111432399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a method and a device for managing data traffic, a storage medium and a terminal. The data flow management method comprises the following steps: in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package; determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which is additionally consumed when a user downloads the application installation package; and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request. According to the scheme, after the user downloads the application installation package through misoperation, the limit change request of the data flow is sent to the operator, the data flow consumed by the misoperation of the user is avoided, and the terminal data flow can be effectively saved.

Description

Data traffic management method and device, storage medium and terminal
Technical Field
The present application relates to the field of mobile terminal applications, and in particular, to a method and an apparatus for managing data traffic, a storage medium, and a terminal.
Background
With the popularization of 4G (the 4Generation mobile communication technology, fourth Generation mobile communication technology) and the rise of 5G (5th Generation mobile communication technology) networks, the hardware processing capability of smart phone terminals is becoming more and more powerful. The functions of the application programs are more and more abundant, and the installation files are also more and more large. Common software is generally above or below 100MB (1 KB-1024 bytes, 1 MB-1024 KB, 1 GB-1024 MB), and game software is closer to 1 GB.
The experienced download rate in the 5G network is too fast (500Mbps, about 65MB/s) compared to the experienced download rate of a personal smartphone in the 4G network (30Mbps, about 4 MB/s). In the related art, the upper limit of 100MB is set to help the user select WLAN and 4G network downloading, so that package flow is saved. However, this method has the disadvantage that when the user inadvertently clicks on an application program with a size of 99MB, the application program is downloaded at a high speed of 65MB/s in the 5G network for 2 seconds, and the user has no time to respond to the stop of the downloading, resulting in wasted traffic.
Disclosure of Invention
The embodiment of the application provides a method and a device for managing data traffic, a storage medium and a terminal, which can effectively save the data traffic of the terminal.
The embodiment of the application provides a method for managing data traffic, which comprises the following steps:
in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package;
determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which is additionally consumed when a user downloads the application installation package;
and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request.
Correspondingly, an embodiment of the present application further provides a device for managing data traffic, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first data flow used in the process of downloading an application installation package when detecting that a user cancels the downloading of the application installation package in the process of downloading the application installation package;
a determining unit, configured to determine a second data traffic corresponding to the first data traffic, where the second data traffic is data traffic that needs to be additionally consumed by a user when downloading the application installation package;
and the sending unit is used for sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so as to enable the operator server to update the usable data traffic of the terminal based on the amount updating request.
Correspondingly, an embodiment of the present application further provides a storage medium, where the storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to perform the steps in the method for managing data traffic as described above.
Correspondingly, an embodiment of the present application further provides a terminal, which includes a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the method for managing data traffic as described above.
According to the scheme, after the user misoperation downloads the application installation package, the limit change request of the data flow is sent to the operator, the data flow consumed by the user misoperation is avoided, and the terminal data flow can be effectively saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first data traffic management method according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a second data traffic management method according to an embodiment of the present application.
Fig. 3 is a block diagram of a first data traffic management apparatus according to an embodiment of the present application.
Fig. 4 is a block diagram of a second data traffic management apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Based on the above problems, embodiments of the present application provide a method and an apparatus for managing a first data traffic, a storage medium, and a terminal, which can effectively save a terminal data traffic. The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for managing data traffic according to an embodiment of the present disclosure. The management method of data traffic may be applied to mobile terminals such as terminals, tablet computers, notebook computers, palmtop computers, Portable Media Players (PMPs), and fixed terminals such as desktop computers. The specific flow of the data traffic management method may be as follows:
101. in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package.
Specifically, downloading the application installation package may be triggered by user operation, and there may be multiple ways to download the application installation package, for example, the user may enter a third-party application installed on the terminal, and the third-party application may download the application installation package, or the user may obtain the application installation package from the server terminal through a browser to download the application installation package, and the like.
And when receiving a user downloading instruction, starting to download the application installation package selected by the user according to the user downloading instruction. In the downloading process of the original package, whether the user cancels the downloading of the application installation package can be detected. When it is detected that the user cancels downloading of the application installation package, the first data traffic can be acquired. The first data traffic may be data traffic used by the user when downloading the application installation package.
For example, the total data traffic required to download the application installation package may be 80M (megabyte), and when the download progress reaches 50%, and it is detected that the user cancels the download, the data traffic actually used to acquire the downloaded application program may be 40M, that is, the first data traffic is 40M.
In some embodiments, before the step of "obtaining the first data traffic used in downloading the application installation package", the following steps may be further included:
if the fact that the user cancels downloading of the application installation package is not detected in the process of downloading the application installation package, judging whether the user deletes the application program corresponding to the application installation package or not within a preset time period after the application installation package is downloaded;
and if so, executing the step to acquire a first data flow used in the process of downloading the application installation package.
Specifically, in the process of downloading the application installation package, if it is not detected that the user cancels downloading, that is, before the application installation package is downloaded, it is not detected that the user cancels downloading the application installation package. Then, it may be detected whether the user deletes the application program corresponding to the application installation package within a preset time period after the download is completed. The preset time period may be set to be a fixed time, or may be set according to a user definition, for example, the preset time period may be 10 seconds.
After the application installation package is downloaded, when it is detected that the user deletes the application program corresponding to the application installation package within a preset time period, the step may be executed to acquire the first data traffic.
For example, the total data traffic required to download the application installation package may be 80M (megabytes), and the preset time period may be 10 seconds. When the downloading process reaches 100%, and it is detected that the user deletes the application program within 5 seconds after the downloading is completed, the data traffic actually used by the downloaded application program may be 80M, that is, the first data traffic is 80M.
102. And determining a second data flow corresponding to the first data flow, wherein the second data flow is the data flow which is additionally consumed when the user downloads the application installation package.
Specifically, after the first data traffic is obtained, the second data traffic may be determined according to the first data traffic. The second data traffic may be a part of data traffic that needs to be additionally used after the user downloads the application installation package, in addition to the first data traffic that is actually used. By using the second data flow, when the user cancels downloading the application installation package or downloads the application program, the flow guarantee mechanism can be triggered, and the loss of the data flow is reduced.
In some embodiments, the step of "determining a second data traffic corresponding to the first data traffic" may include the following process:
processing the first data flow according to a preset rule to obtain a processing result;
and obtaining the second data flow according to the processing result.
Specifically, the first data traffic is processed according to a preset rule, that is, a part of the first data traffic is obtained as the second data traffic. The preset rule may be a calculation method, for example, the calculation method may be that 1% of the first data traffic is taken as the second data traffic.
For example, the first data traffic may be 80M, and if the result of processing the first data traffic in a calculation manner may be 0.8M, the second data traffic may be 0.8M.
103. And sending an amount updating request of the data traffic to the operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request.
Specifically, after the first data traffic and the second data traffic are obtained, a traffic updating request of the data traffic can be sent to the operator server according to the first data traffic and the second data traffic, and the currently available data traffic can be updated through the traffic updating request, so that the waste of the data traffic caused by the fact that a user downloads an unnecessary application installation package by misoperation is avoided.
In some embodiments, the step of sending an credit update request of the data traffic to the operator server based on the first data traffic and the second data traffic may include the following procedures:
acquiring the total flow of currently available data;
processing the second data flow and the total data flow to obtain the remaining total data flow;
acquiring a sum of the first data traffic and the current remaining data traffic as updated data traffic;
and sending the quota updating request to the operator server based on the updated data traffic.
Specifically, the total data traffic that can be currently used is obtained, where the total data traffic may be all data traffic that can be used by the terminal after the application installation package is downloaded, and for example, the total data traffic may be 500M.
Specifically, the second data traffic and the total data traffic are processed to obtain a remaining total data traffic, which may be data traffic that can be used by the terminal after the second data traffic is consumed. For example, the total data flow may be 500M, the second data flow may be 0.8M, and the total data flow may be subtracted by the second data flow to obtain a remaining total data flow of 499.2M.
Specifically, after determining the total remaining data traffic, a sum of the first data traffic and the total remaining data traffic may be obtained, and the sum may be used as the updated data traffic.
For example, the first data traffic may be 80M, the remaining data traffic may be 499.2M, the sum of the first data traffic and the total remaining data traffic may be 579.2M, and the updated data traffic may be 579.2M.
Specifically, after determining the updated data traffic, the quota update request may be sent to the operator server based on the updated data traffic. For example, when the application installation package is downloaded, the operator corresponding to the used data traffic may be operator a, and then an amount update request of the data traffic may be sent to operator a, so that the total currently available data traffic may be updated to the updated data traffic. For example, total data traffic 500M currently available is updated to updated data traffic 579.2M.
In some embodiments, when the second data traffic is of a larger amount, the user may be prompted whether to cancel downloading the application installation package or delete the application using the second data traffic. Then, before the step "sending an quota update request of data traffic to an operator server based on the first data traffic and the second data traffic", the following process may be further included:
comparing the second data flow with a preset flow threshold;
if the second data flow is larger than the preset flow threshold, prompting a user whether to send the limit updating request to the operator server;
and if the second data flow is less than or equal to the preset flow threshold, executing a step of sending a quota updating request of the data flow to an operator server based on the first data flow and the second data flow.
Specifically, the second data traffic is compared with a preset traffic threshold, the preset traffic threshold can be the maximum additionally consumed data traffic that can be accepted by the user, and the preset traffic threshold can be set by the user.
For example, the preset flow threshold may be 50M, the second data flow may be 100M, the second data flow is compared with the preset flow threshold, and if the second data flow is greater than the preset flow threshold, the user may be prompted, and if the second data flow is greater than the preset flow threshold, the user needs to send a request for updating the quota of the data flow to the operator server.
For another example, the preset traffic threshold may be 50M, the second data traffic may be 10M, the second data traffic is compared with the preset traffic threshold, and the second data traffic is smaller than the preset traffic threshold, then the step "sending the credit update request of the data traffic to the operator server based on the first data traffic and the second data traffic" may be directly performed.
In some embodiments, the step of prompting the user whether to send the credit update request to the operator server may include the following steps:
generating a prompt interface based on the second data flow, wherein the prompt interface prompts a user that the second data flow is larger than a preset flow threshold;
and judging whether to send the limit updating request to the operator server according to the operation of the user on the prompt interface.
Specifically, a flow prompting interface is generated based on the second data flow, and the flow prompting interface may include contents such as the second flow data, and may be used to prompt the user that the second flow data exceeds the preset flow threshold.
For example, after the prompt interface is generated, the prompt interface may be displayed on the current display screen in a pop-up manner, where the content of the prompt interface may be "the second data traffic exceeds the preset traffic threshold, whether to send an quota update request of the data traffic", and so on.
Specifically, whether to send the quota updating request to the operator server is judged according to the operation of the user on the prompt interface. The prompt interface may further include a button control for a user to select an operation. For example, the button controls may include "confirm", "cancel", etc., with different button controls corresponding to different functions.
For example, when it is detected that the user operation may be clicking a "ok" button, it may be determined to send an quota update request to the operator server, and when it is detected that the user operation may be clicking a "cancel" button, it may be determined that the data traffic update request is sent to the operator server without using the second data traffic, and the user may continue downloading the original package, etc. By setting the preset flow threshold, the user can close the limit updating application when the consumption of the second data flow is large, and the consumption of more data flows is avoided.
The embodiment of the application discloses a data traffic management method, which comprises the following steps: in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package; determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which is additionally consumed when a user downloads the application installation package; and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request. According to the scheme, after the user misoperation downloads the application installation package, the limit change request of the data flow is sent to the operator, the data flow consumed by the user misoperation is avoided, and the terminal data flow can be effectively saved.
Referring to fig. 2, fig. 2 is a schematic flowchart of a second data traffic management method according to an embodiment of the present application. The specific scene application of the management method for the data traffic can be as follows:
201. and the terminal receives a user downloading instruction and starts to download the application program according to the downloading instruction.
Specifically, before the terminal downloads the application program, a switch for starting a flow false triggering guarantee mechanism may be added to the setting module, and the flow false triggering guarantee mechanism may send a data flow limit updating request to the operator to update the remaining data flow after detecting that the user cancels the downloading in the downloading process of the application program, so as to avoid flow loss. The terminal receives a user downloading instruction, and the user can select the application program by entering an application program downloading interface so as to trigger the downloading instruction.
After the terminal receives a downloading instruction triggered by a user, the application program selected by the user can be determined to start downloading operation according to the downloading instruction of the user.
For example, when a user enters an application download interface, the name of an application to be downloaded can be input, then related application programs searched by the user can be displayed on the current display interface, and the related application programs can include application 1, application 2, application 3 and the like, and when the user clicks on application 1, the terminal starts to download application 1.
202. Before the downloading of the application program is completed, the terminal detects the user operation and judges whether the downloading of the application program is cancelled.
Specifically, a download behavior monitoring and triggering process can be added to a download management module of the terminal, and in the process of downloading the application 1 by the terminal, user operation can be detected to judge whether the user needs to cancel downloading the application 1.
For example, in the downloading process of the application 1, when it is detected that the user clicks the "cancel" button, it may be determined that the user needs to cancel downloading the application 1, and step 205 may be performed.
For another example, in the downloading process of the application 1, if it is not detected that the user clicks the "cancel" button, it may be determined that the user does not need to cancel downloading the application 1, and step 204 may be executed.
203. And the terminal judges whether the user deletes the application program or not within a preset time period after the application program is downloaded.
Specifically, in the downloading process of the application 1, it is not detected that the user cancels downloading of the application 1, and the user operation may be detected again within a preset time period after the downloading of the application 1 is completed, so as to determine whether the user needs to delete the application 1.
For example, the preset time period may be 10 seconds, and 8 seconds after the application 1 is downloaded, if it is detected that the user deletes the application 1, step 205 may be executed.
For another example, the preset time period may be 10 seconds, and within 10 seconds after the application 1 is downloaded, if it is not detected that the user deletes the application 1, step 204 may be executed.
204. And the terminal finishes the operation.
Specifically, when the user does not cancel downloading the application 1 and does not delete the application 1, it may be determined that the application 1 is an application program that the user needs to download, and after the downloading of the application 1 is completed, the terminal may operate the application 1 according to a user instruction.
205. The terminal obtains the data traffic used for downloading the application program.
Specifically, the terminal obtains a data traffic used for downloading the application program. For example, the total data flow required by the application 1 may be 100M, and when it is detected that the user cancels downloading in the downloading process, the downloading process may be 10%, and the data flow used by the terminal to download the application 1 may be 10M; for another example, if the terminal completes downloading the application 1 and detects that the user deletes the application 1 after the downloading is completed, the data traffic used by the terminal to download the application 1 may be 100M.
206. The terminal determines the extra consumption flow according to the used data flow.
Specifically, after the data traffic used by the downloaded application is obtained, the extra consumption traffic may be determined according to the data traffic, and the extra consumption traffic may indicate that the terminal sends a traffic update application to the operator by using the extra consumption traffic when the user cancels downloading after the application is downloaded, so as to update the current remaining data traffic.
Specifically, the extra consumption traffic may be calculated according to the used data traffic, for example, the extra consumption traffic may be calculated based on a percentage of the used data traffic, and may be 1% of the used data traffic, and if the used data traffic is 100M, it may be determined that the extra consumption traffic may be 1M.
207. The terminal sends a traffic quota update request to the operator server based on the used data traffic.
Specifically, the terminal sends a request for updating the traffic quota to the operator server based on the used data traffic, which may refer to the foregoing embodiment and is not described herein in detail.
The embodiment of the application discloses a data traffic management method, which comprises the following steps: in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package; determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which is additionally consumed when a user downloads the application installation package; and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request. According to the scheme, after the user misoperation downloads the application installation package, the limit change request of the data flow is sent to the operator, the data flow consumed by the user misoperation is avoided, and the terminal data flow can be effectively saved.
In order to better implement the method for managing data traffic provided in the embodiments of the present application, an embodiment of the present application further provides a device based on the method for managing data traffic. The terms are the same as those in the above-mentioned method for managing data traffic, and details of implementation may refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a first data traffic management apparatus according to an embodiment of the present application, where the data traffic management apparatus can be applied to a mobile terminal such as a terminal, a tablet computer, a notebook computer, a palm computer, a Portable Media Player (PMP), and a fixed terminal such as a desktop computer, and the apparatus includes:
an obtaining unit 301, configured to, in a process of downloading an application installation package, obtain a first data traffic used in the process of downloading the application installation package when it is detected that a user cancels downloading of the application installation package;
a determining unit 302, configured to determine a second data traffic corresponding to the first data traffic, where the second data traffic is data traffic that needs to be additionally consumed when the user downloads the application installation package;
a sending unit 303, configured to send an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic, so that the operator server updates the available data traffic of the terminal based on the amount updating request.
In some embodiments, referring to fig. 4, fig. 4 is a block diagram of a second data traffic management apparatus according to an embodiment of the present application, where the sending unit 303 may include:
a first obtaining subunit 3031, configured to obtain a total flow of currently available data;
a processing subunit 3032, configured to process the second data traffic and the total data traffic to obtain a remaining total data traffic;
a second obtaining subunit 3033, configured to obtain a sum of the first data traffic and the current remaining data traffic as an updated data traffic;
a sending subunit 3034, configured to send the quota updating request to the operator server based on the updated data traffic.
In some embodiments, the determining unit 302 may include:
the second processing subunit is used for processing the first data traffic according to a preset rule to obtain a processing result;
and the determining subunit is used for obtaining the second data flow according to the processing result.
In some embodiments, the device for managing data traffic may further include:
the judging unit is used for judging whether the user deletes the application program corresponding to the application installation package within a preset time period after the application installation package is downloaded if the situation that the user cancels the downloading of the application installation package is not detected in the process of downloading the application installation package;
and the execution unit is used for executing the step to acquire a first data flow used in the process of downloading the application installation package if the application installation package is downloaded.
In some embodiments, the management apparatus of data traffic may further include:
the comparison unit is used for comparing the second data flow with a preset flow threshold;
the first operation unit is used for prompting a user whether to send the limit updating request to the operator server or not if the second data flow is larger than the preset flow threshold;
and the second operation unit is used for executing the step of sending a quota update request of data traffic to an operator server based on the first data traffic and the second data traffic if the second data traffic is less than or equal to the preset traffic threshold.
In some embodiments, the first operating unit may include:
the generating subunit is configured to generate a prompt interface based on the second data traffic, where the prompt interface prompts a user that the second data traffic is greater than a preset traffic threshold;
and the prompting subunit is used for judging whether to send the limit updating request to the operator server according to the operation of the user on the prompting interface.
The embodiment of the application discloses a management device of data traffic, which comprises: in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package; determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which is additionally consumed when a user downloads the application installation package; and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request. According to the scheme, after the user misoperation downloads the application installation package, the limit change request of the data flow is sent to the operator, the data flow consumed by the user misoperation is avoided, and the terminal data flow can be effectively saved.
The embodiment of the application also provides a terminal. As shown in fig. 5, the terminal may include a Radio Frequency (RF) circuit 601, a memory 602 including one or more storage media, an input unit 603, a display unit 604, a sensor 605, an audio circuit 606, a Wireless Fidelity (WiFi) module 607, a processor 608 including one or more processing cores, and a power supply 609. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 601 may be used for receiving and transmitting signals during the process of transmitting and receiving information, and in particular, for processing the received downlink information of the base station by one or more processors 608; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 601 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 601 may also communicate with networks and other devices via wireless communications.
The memory 602 may be used to store software programs and modules, and the processor 608 executes various functional applications and data processing by operating the software programs and modules stored in the memory 602. The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. Further, the memory 602 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 608 and the input unit 603 access to the memory 602.
The input unit 603 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, input unit 603 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. The input unit 603 may include other input devices in addition to a touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 604 may be used to display information input by or provided to the user and various graphical user interfaces of the server, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 604 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 608 to determine the type of touch event, and the processor 608 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 5 the touch-sensitive surface and the display panel are two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The terminal may also include at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that turns off the display panel and the backlight when the server moves to the ear.
Audio circuitry 606, speakers, and microphones may provide an audio interface between the user and the server. The audio circuit 606 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 606 and converted into audio data, which is then output to the processor 608, where it is processed and then sent to, for example, a terminal via the RF circuit 601, or the audio data is output to the memory 602 for further processing. Audio circuitry 606 may also include an earbud jack to provide communication of peripheral headphones with the server.
WiFi belongs to short-distance wireless transmission technology, and the terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 607, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 607, it is understood that it does not belong to the essential constitution of the terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 608 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and modules stored in the memory 602 and calling data stored in the memory 602, thereby performing overall monitoring of the terminal. Optionally, processor 608 may include one or more processing cores; preferably, the processor 608 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 608.
The terminal also includes a power supply 609 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 608 via a power management system that may be used to manage charging, discharging, and power consumption. The power supply 609 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Specifically, in this embodiment, the processor 608 in the terminal loads the executable file corresponding to the process of one or more application programs into the memory 602 according to the following instructions, and the processor 608 runs the application programs stored in the memory 602, thereby implementing various functions:
in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package;
determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which is additionally consumed when a user downloads the application installation package;
and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request.
The embodiment of the application discloses a method and a device for managing data traffic, a storage medium and a terminal. The data traffic management method comprises the following steps: in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package; determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which is additionally consumed when a user downloads the application installation package; and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request. According to the scheme, after the user misoperation downloads the application installation package, the limit change request of the data flow is sent to the operator, the data flow consumed by the user misoperation is avoided, and the terminal data flow can be effectively saved.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, which may be stored in a storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, where the instructions can be loaded by a processor to execute the steps in any one of the methods for managing data traffic provided by the embodiments of the present application. For example, the instructions may perform the steps of:
in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package; determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which is additionally consumed when a user downloads the application installation package; and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server updates the usable data traffic of the terminal based on the amount updating request.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any data traffic management method provided in the embodiments of the present application, beneficial effects that can be achieved by any data traffic management method provided in the embodiments of the present application may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing describes in detail a method, an apparatus, a storage medium, and a terminal for managing data traffic provided in an embodiment of the present application, and a specific example is applied in the present application to explain principles and implementations of the present application, and the description of the foregoing embodiment is only used to help understand a method and a core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A management method of data flow is applied to a terminal, and is characterized by comprising the following steps:
in the process of downloading the application installation package, when detecting that a user cancels the downloading of the application installation package, acquiring a first data flow used in the process of downloading the application installation package;
determining a second data traffic corresponding to the first data traffic, wherein the second data traffic is data traffic which needs to be additionally consumed when the user downloads the application installation package, and the second data traffic is used for deducting through an operator server when the user cancels the application installation package so that the operator server returns the first data traffic to the terminal;
and sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so that the operator server deducts the second data traffic based on the amount updating request, and returns the first data traffic to the terminal so as to update the usable data traffic of the terminal.
2. The method of claim 1, wherein sending a request for credit update of data traffic to a carrier server based on the first data traffic and the second data traffic comprises:
acquiring the total flow of currently available data;
processing the second data flow and the total data flow to obtain the remaining total data flow;
acquiring a sum of the first data flow and the total residual data flow as an updated data flow;
and sending the quota updating request to the operator server based on the updated data traffic.
3. The method of claim 1, wherein the determining a second data traffic corresponding to the first data traffic comprises:
processing the first data flow according to a preset rule to obtain a processing result;
and obtaining the second data flow according to the processing result.
4. The method of claim 1, further comprising, prior to obtaining the first data traffic used in downloading the application installation package:
if the fact that the user cancels downloading of the application installation package is not detected in the process of downloading the application installation package, judging whether the user deletes the application program corresponding to the application installation package or not within a preset time period after the application installation package is downloaded;
and if so, acquiring a first data flow used in the process of downloading the application installation package.
5. The method of claim 1, further comprising, prior to sending a request for credit update of data traffic to an operator server based on the first data traffic and the second data traffic:
comparing the second data flow with a preset flow threshold;
if the second data flow is larger than the preset flow threshold, prompting a user whether to send the limit updating request to the operator server;
and if the second data flow is less than or equal to the preset flow threshold, sending a quota updating request of the data flow to an operator server based on the first data flow and the second data flow.
6. The method of claim 5, wherein the prompting the user whether to send the credit update request to the operator server comprises:
generating a prompt interface based on the second data flow, wherein the prompt interface prompts a user that the second data flow is larger than a preset flow threshold;
and judging whether to send the limit updating request to the operator server according to the operation of the user on the prompt interface.
7. An apparatus for managing data traffic, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first data flow used in the process of downloading an application installation package when detecting that a user cancels the downloading of the application installation package in the process of downloading the application installation package;
a determining unit, configured to determine a second data traffic corresponding to the first data traffic, where the second data traffic is data traffic that needs to be additionally consumed by a user when downloading the application installation package, and the second data traffic is used for deducting, by an operator server, when the user cancels the application installation package, so that the operator server returns the first data traffic to a terminal;
and the sending unit is used for sending an amount updating request of data traffic to an operator server based on the first data traffic and the second data traffic so as to enable the operator server to deduct the second data traffic based on the amount updating request and return the first data traffic to the terminal so as to update the usable data traffic of the terminal.
8. The apparatus of claim 7, wherein the sending unit comprises:
the first obtaining subunit is used for obtaining the total flow of the currently available data;
the first processing subunit is configured to process the second data traffic and the total data traffic to obtain a remaining total data traffic;
a second obtaining subunit, configured to obtain a sum of the first data traffic and the total remaining data traffic as an updated data traffic;
and the sending subunit is used for sending the limit updating request to the operator server based on the updated data traffic.
9. A storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the method for managing data traffic according to any one of claims 1 to 6.
10. A terminal comprising a processor and a memory, said memory storing a plurality of instructions, said processor loading said instructions to perform the steps of the method of managing data traffic according to any one of claims 1 to 6.
CN202010210898.0A 2020-03-24 2020-03-24 Data traffic management method and device, storage medium and terminal Active CN111432399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010210898.0A CN111432399B (en) 2020-03-24 2020-03-24 Data traffic management method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010210898.0A CN111432399B (en) 2020-03-24 2020-03-24 Data traffic management method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN111432399A CN111432399A (en) 2020-07-17
CN111432399B true CN111432399B (en) 2022-08-09

Family

ID=71549034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010210898.0A Active CN111432399B (en) 2020-03-24 2020-03-24 Data traffic management method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN111432399B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783816A (en) * 2010-03-22 2010-07-21 杭州华三通信技术有限公司 Download traffic control method and device
CN105824677A (en) * 2016-04-18 2016-08-03 徐亚萍 Method for deleting installation packages based on user operation data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140379891A1 (en) * 2013-06-20 2014-12-25 Telefonaktiebolaget L M Ericsson (Publ) Methods and Apparatuses to Identify User Dissatisfaction from Early Cancelation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101783816A (en) * 2010-03-22 2010-07-21 杭州华三通信技术有限公司 Download traffic control method and device
CN105824677A (en) * 2016-04-18 2016-08-03 徐亚萍 Method for deleting installation packages based on user operation data

Also Published As

Publication number Publication date
CN111432399A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US10635449B2 (en) Method and apparatus for running game client
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN107800651B (en) Application program closing method and device, storage medium and electronic equipment
CN111343682B (en) Network switching method, device, storage medium and terminal
CN106775833B (en) Device driver loading method, terminal and system
CN106254910B (en) Method and device for recording image
CN106775827B (en) Application program updating method and device and computer equipment
CN106713608B (en) Application function state modification method and device and terminal
CN110780940A (en) Application program loading method, electronic device and storage medium
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN110688051B (en) Screen recording operation method and device, computer readable storage medium and terminal
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
CN106095423B (en) Method, terminal and server for providing browsing service
CN106919458B (en) Method and device for Hook target kernel function
CN111104180A (en) Application program optimization method and device, storage medium and electronic equipment
CN110312995B (en) Application program accelerated starting method and device and terminal
CN106454953B (en) Flow control method, device and terminal
CN110636526A (en) NFC communication detection method and device, computer readable storage medium and terminal
CN111142900A (en) Program updating method and device and terminal equipment
CN111432399B (en) Data traffic management method and device, storage medium and terminal
CN112542867B (en) Mobile terminal power supply control method and device, terminal equipment and storage medium
CN110471622B (en) SD card data writing method and device, storage medium and terminal
CN112492554A (en) Data transmission method, device, storage medium and terminal
CN106681845B (en) Method and device for managing communication messages

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