Method for processing application data packet, terminal and storage medium
By intercepting and caching application data packets based on priority, the solution addresses power consumption issues in long standby modes, ensuring timely delivery and reducing modem wake-ups.
Patent Information
- Application Number
- CN202411099514.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-12-03
AI Technical Summary
Current intelligent communication devices in long standby mode consume high power due to frequent modem wake-ups from keep-alive applications sending application data packets without distinguishing real-time requirements.
Intercept and parse application data packets to determine their identifiers, cache packets based on priority, and send them in batches when the modem is idle or when buffer space is sufficient, ensuring real-time requirements are met while reducing power consumption.
Reduces power consumption by minimizing modem wake-ups and ensuring timely delivery of critical data packets, preventing application abnormalities during long standby modes.
Smart Images

Figure CN119071848A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of network communication technology. More specifically, the present disclosure relates to a method, a terminal and a computer-readable storage medium for processing an application data packet. Background Art
[0002] When current intelligent communication devices are in long standby mode, keep-alive applications may still keep in touch with application servers and send some application data packets, resulting in frequent wake-up of the modem to enter the RRC connection state, which consumes relatively high power.
[0003] Although there are some technical solutions in the industry that directly limit or disable data packet sending in long standby mode, the strategies adopted by such solutions are relatively rough. They adopt a one-size-fits-all approach to application data packets and cannot distinguish whether there are real-time requirements based on application data packets. As a result, some applications cannot maintain contact with the server for a long time in long standby mode and become abnormal.
[0004] In view of this, there is an urgent need to provide a solution for processing application data packets, which can distinguish whether the application data packets have real-time requirements, so as to ensure that the application data packets with real-time requirements can be sent in time while achieving the purpose of power saving. Summary of the invention
[0005] In order to at least solve one or more of the technical problems mentioned above, the present disclosure proposes a solution for processing an application data packet in the following aspects.
[0006] In a first aspect, the present disclosure provides a method for processing an application data packet, comprising: when a modem of a terminal is in an idle state, intercepting an application data packet sent outward; parsing the application data packet to obtain an identifier of an application that sends out the application data packet; determining whether the application belongs to a buffered application list based on the identifier; and when the application belongs to the buffered application list, caching the application data packet to a corresponding buffer according to a preset caching rule.
[0007] In some embodiments, the preset caching rule is to cache application data packets according to application priority, and caching the application data packets to the corresponding buffer according to the preset caching rule includes: obtaining the priority of the application from the buffer application list; and caching the application data packets to the buffer corresponding to the priority.
[0008] In some embodiments, before intercepting outgoing application data packets when the terminal's modem is in an idle state, the method further includes: monitoring state changes of the terminal's modem; when it is monitored that the modem enters an idle state, initializing a plurality of buffers with different priorities according to the priority of each application in a buffered application list; and monitoring outgoing application data packets.
[0009] In some embodiments, after caching the application data packet into the corresponding buffer according to the preset caching rule, the method further includes: triggering a data forwarding event when monitoring that the modem enters a connected state from an idle state.
[0010] In some embodiments, after caching the application data packet to the corresponding buffer according to the preset caching rules, the method also includes: determining the number of bytes of the remaining space in the buffer; determining whether the number of bytes is less than or equal to a preset threshold; when the number of bytes is greater than the preset threshold, jumping to the interception of the outgoing application data packet to continue execution; and when the number of bytes is less than or equal to the preset threshold, triggering a data forwarding event.
[0011] In some embodiments, after the triggering of the data forwarding event, the method further includes: sending out the application data packets in the plurality of buffers in sequence according to the priority.
[0012] In some embodiments, the buffered application list is obtained by counting applications that send out application data packets during a sleep period according to a preset period; the method of obtaining the buffered application list by counting applications that send out application data packets during a sleep period according to a preset period includes: counting the package names and heartbeat keep-alive mechanisms of applications that send out application data packets during a sleep period according to a preset period to obtain a buffered application list; removing real-time applications from the buffered application list according to the real-time application list to obtain a new buffered application list; and determining the identification and priority of each application in the new buffered application list according to the package name and heartbeat keep-alive mechanism of each application.
[0013] In some embodiments, determining the identification and priority of each application in the new buffered application list based on the package name and heartbeat keep-alive mechanism of each application includes: obtaining the identification of the application based on the package name of the application; determining whether the application has a heartbeat keep-alive mechanism; when the application has a heartbeat keep-alive mechanism, determining the priority of the application to be the first priority; and when the application does not have a heartbeat keep-alive mechanism, determining the priority of the application to be the second priority.
[0014] In a second aspect, the present disclosure provides a terminal for processing application data packets, comprising: a processor; and a memory on which program instructions for processing application data packets are stored, and when the program instructions are executed by the processor, the method described in the first aspect and its multiple embodiments are implemented.
[0015] In a third aspect, the present disclosure provides a computer-readable storage medium storing program instructions for processing application data packets, which, when executed by a processor, implement the method described in the first aspect and its multiple embodiments.
[0016] By means of the solution for processing application data packets as provided above, when the terminal modem is in an idle state, the application data packets sent out can be intercepted. By parsing the application data packets, the identification of the application that sends out the application data packets can be obtained. Then, it can be determined whether the application belongs to the buffer application list based on the identification, and when the application belongs to the buffer application list, the application data packet can be cached to the corresponding buffer according to the preset cache rules. Conversely, when the application does not belong to the buffer application list, the application data packet can be sent out directly. The solution disclosed in the present invention can distinguish whether the application data packet has real-time requirements, so as to achieve the purpose of power saving while ensuring that the application data packets with real-time requirements can be sent out in time to reduce the occurrence of abnormal situations.
[0017] Further, in some embodiments, when it is detected that the modem enters the connected state from the idle state, or when the number of bytes in the remaining space of the buffer is less than a preset threshold, a data forwarding event can be triggered. Thereafter, the application data packets in the multiple buffers can be collectively sent out in sequence according to the priority. By using the scheme disclosed in the present invention, multiple application data packets dispersed in time can be collectively sent, thereby reducing the number of frequent wake-ups of the modem, allowing the modem to continue to sleep during the application data packet buffering time, thereby achieving the purpose of more power saving.
[0018] Furthermore, in some embodiments, the priority of the application can be determined based on whether the application has a heartbeat keep-alive mechanism, and multiple buffers with different priorities can be initialized. Based on this, the solution disclosed herein can cache intercepted application data packets into buffers with different priorities. Subsequently, when the start data forwarding event is triggered, the application data packets in multiple buffers can be collectively sent out in sequence according to the priority. Using the solution disclosed herein, hierarchical caching and sending can be achieved, thereby avoiding abnormalities in the application due to the inability to maintain contact with the server for a long time in a long standby state. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] By reading the detailed description below with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:
[0020] Figure 1 is an exemplary flow chart illustrating a method for processing an application data packet according to some embodiments of the present disclosure;
[0021] Figure 2 is an exemplary flow chart showing a method for processing an application data packet according to other embodiments of the present disclosure;
[0022] Figure 3 is an exemplary flow chart showing a method for processing an application data packet according to yet other embodiments of the present disclosure;
[0023] Figure 4 is an exemplary process diagram showing how to obtain a cached application list according to an embodiment of the present disclosure;
[0024] Figure 5 is a schematic diagram showing an exemplary structure of a terminal for processing an application data packet according to some embodiments of the present disclosure;
[0025] Figure 6 is a schematic diagram showing an exemplary structure of a terminal for processing application data packets according to other embodiments of the present disclosure. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0027] Figure 1 1 is an exemplary flow chart showing a method 100 for processing an application data packet according to some embodiments of the present disclosure. It is understandable that the method 100 can be executed by any appropriate terminal with data processing capabilities, such as but not limited to a smart phone, a personal computer, a laptop computer, a tablet computer, and a portable wearable device. Therefore, the embodiments of the present disclosure do not limit the specific type of the terminal. In order to achieve the purpose of real-time processing of application data packets, in actual operation, the method 100 can be executed periodically, or it can be started when it is monitored that the terminal enters a long standby state.
[0028] like Figure 1 As shown in FIG. 1 , at step S101, when the terminal modem is in the idle state RRC IDLE, the application data packet sent out is intercepted. Here, interception can be understood as blocking the terminal application from directly sending the application data packet outward (for example, to the application server) when the terminal modem is in the idle state. The application data packet may at least carry the application identifier UID, the target address and the data item.
[0029] Next, at step S102, the method 100 may parse the application data packet to obtain an identifier of the application that sends out the application data packet.
[0030] Next, at step S103, method 100 may determine whether the application belongs to the buffered application list based on the identifier. The buffered application list disclosed herein may at least include the application package name (or also referred to as the application package name), the identifier, and the priority of the application. The priority disclosed herein may be used to indicate the order in which application data packets are sent out.
[0031] Finally, at step S104, the method 100 can cache the application data packet to the corresponding buffer according to the preset cache rule when the application belongs to the cache application list. On the contrary, when the application does not belong to the cache application list, the method 100 can directly send the application data packet out. In actual operation, the BPF Maps of the eBPF framework can be used to achieve the caching of application data packets.
[0032] The preset caching rule disclosed herein can be to cache application data packets according to the priority of the application, so as to cache the application data packets of the application in the buffer corresponding to its priority. Specifically, applications with the same priority can correspond to the same buffer, and applications with different priorities can correspond to different buffers. In actual operation, when caching the application data packets in the corresponding buffer according to the preset caching rule, the priority of the application can be first obtained from the buffer application list. Then the application data packets can be cached in the buffer corresponding to the priority.
[0033] Combination of the above Figure 1A method 100 for processing application data packets is described. Through this method 100, when the modem of the terminal is in an idle state, the application data packets sent out can be intercepted. By parsing the application data packets, the identification of the application that sends out the application data packets can be obtained. Then, it can be determined whether the application belongs to the buffer application list based on the identification, and when the application belongs to the buffer application list, the application data packet can be cached to the corresponding buffer according to the preset cache rules. Conversely, when the application does not belong to the buffer application list, the application data packet can be sent directly. The scheme disclosed in this disclosure can distinguish whether the application data packet has real-time requirements, so as to achieve the purpose of power saving while ensuring that the application data packets with real-time requirements can be sent in time to reduce the occurrence of abnormal situations.
[0034] In the solution disclosed in the present invention, before intercepting the application data packet sent outward, method 100 may also perform the following steps: Figure 2 Step S105, step S106 and step S107 shown in FIG.
[0035] Specifically, at step S105, method 100 may monitor a state change of a modem of the terminal.
[0036] In the case where it is detected at step S105 that the modem enters an idle state, the method 100 may proceed to step S106 for further execution. At step S106, the method 100 may initialize a plurality of buffers with different priorities based on the priority of each application in the buffer application list and based on the eBPF framework. In one embodiment, the number of buffers is the same as the number of priorities of each application, and different buffers correspond to different priorities.
[0037] At step 107, the method 100 may start to perform the operation of monitoring the application data packets sent out by each application. When it is monitored that an application sends out an application data packet, step S101 may be performed to intercept the application data packet sent out by the application.
[0038] In the solution disclosed herein, after caching the application data packets into the corresponding buffer according to the preset caching rules, the method 100 may proceed to step S108 to continue execution when it is detected that the modem enters the connected state from the idle state. At step S108, a start data forwarding event may be triggered. Once the start data forwarding event disclosed herein is triggered, the method 100 may start to execute the operation of sending the application data packets in the buffer to the outside.
[0039] In actual operation, in addition to triggering the data forwarding start event when monitoring the modem entering the connected state from the idle state, the data forwarding start event can also be triggered when the remaining space in the buffer is insufficient. In one embodiment, the data forwarding start event can be triggered when the remaining space in any buffer of the multiple buffers is insufficient.
[0040] like Figure 3 As shown, it shows an exemplary flow chart of a method 100 for processing an application data packet provided by other embodiments of the present disclosure. Figure 3 As shown in , at step S104 , after the method 100 caches the application data packet into the corresponding buffer according to the preset cache rule, it may continue to execute steps S109 , S110 and S111 .
[0041] At step S109 , the method 100 may determine the number of bytes of the remaining space in the buffer.
[0042] Next, at step S110, the method 100 may determine whether the number of bytes is less than or equal to a preset threshold. Specifically, if the number of bytes is less than or equal to the preset threshold, the method 100 may proceed to step S108 to trigger a data forwarding event. If the number of bytes is greater than the preset threshold, the method 100 may proceed to step S101 to intercept an outgoing application data packet.
[0043] It should be noted that those skilled in the art can select a specific value or value range of the preset threshold according to actual needs. For example, the specific value of the preset threshold can be 1 kbytes, and the value range of the preset threshold can be 1 kbyte to 2 kbytes. The selection of the preset threshold does not constitute a limitation on the disclosed solution.
[0044] In the scheme disclosed herein, after triggering the start data forwarding event, the method 100 may proceed to step S111 for execution. At step S111, the method 100 may send out the application data packets in the aforementioned multiple buffers in sequence according to the priority. Specifically, the application data packets in the high-priority buffer may be sent out first, and then the application data packets in the low-priority buffer may be sent out. For multiple application data packets in the same buffer, each application data packet may be sent out according to the first-in-first-out rule. In other words, the application data packet first cached in the buffer may be sent out first, and the application data packet cached in the buffer later may be sent out later.
[0045] In the solution disclosed in the present invention, the cached application list can be obtained by counting the applications that send out application data packets during the sleep period (or also called the long standby period) according to a preset period. Figure 4 , which shows an exemplary process diagram of obtaining a buffered application list according to an embodiment of the present disclosure. Figure 4 As shown in FIG. 4 , at step S401 , method 400 may count the package names of applications that send out application data packets during a sleep period and the heartbeat keep-alive mechanism according to a preset period, and obtain a cached application list.
[0046] It should be noted that those skilled in the art can select a specific value of the preset period according to actual needs, and this disclosure does not specifically limit this. Preferably, the preset period can be one day, that is, 24 hours. Based on this, the package name and heartbeat keep-alive mechanism of the application that sends out application data packets during the sleep period can be counted once a day, so that the application data packets can be processed based on the newly obtained buffered application list every day.
[0047] In order to ensure that application data packets with real-time requirements can be sent in time and reduce the occurrence of abnormal situations, after obtaining the buffered application list, at step S402, method 100 can remove the real-time application from the buffered application list according to the real-time application list to obtain a new buffered application list. The preset list of real-time application lists disclosed herein stores the package names of real-time applications. In actual operation, the real-time application list can be determined according to actual development experience and / or the usage habits of end users.
[0048] Next, at step S403, method 100 can determine the identification and priority of each application according to the package name of each application in the new cached application list and the heartbeat keep-alive mechanism. Specifically, the identification of the application can be obtained according to the package name of the application. As those skilled in the art know, after the application is installed on the smart device, a UID is generated, and the UID of the application is stored in the metadata of the application. Based on this, method 100 can obtain the identification of the application from the metadata of the application.
[0049] In actual operation, when determining the priority of an application, you can first determine whether the application has a heartbeat keep-alive mechanism. Then, you can determine the priority of the application based on whether the application has a heartbeat keep-alive mechanism and / or the keep-alive time interval in the heartbeat keep-alive mechanism. In actual operation, if the application has a heartbeat keep-alive mechanism and the keep-alive time interval is shorter, it can be determined that the priority of the application is higher; if the application has a heartbeat keep-alive mechanism and the keep-alive time interval is longer, it can be determined that the priority of the application is lower; if the application does not have a heartbeat keep-alive mechanism, it can be determined that the priority of the application is the lowest.
[0050] In one embodiment, the priority of the application can be determined based on whether the application has a heartbeat keep-alive mechanism. Specifically, when the application has a heartbeat keep-alive mechanism, the priority of the application can be determined to be the first priority. When the application does not have a heartbeat keep-alive mechanism, the priority of the application can be determined to be the second priority. Here, the first priority is higher than the second priority. It should be noted that the first priority and the second priority here are merely exemplary or illustrative, and those skilled in the art can set more other priorities according to actual needs.
[0051] Next, combine Figure 5 The terminal 500 for processing application data packets provided by the embodiment of the present disclosure is exemplarily introduced. Figure 5 As shown, the terminal 500 of the embodiment of the present disclosure includes an interception module 501, a parsing module 502, a determination module 503 and a cache module 504. Specifically,
[0052] The interception module 501 is configured to intercept the application data packet sent out when the modem of the terminal is in an idle state. The parsing module 502 is configured to parse the application data packet to obtain the identifier of the application that sent the application data packet out. The determination module 503 is configured to determine whether the application belongs to the buffer application list based on the identifier. The cache module 504 is configured to cache the application data packet to the corresponding buffer according to the preset cache rule when the application belongs to the buffer application list.
[0053] In one embodiment, the preset caching rule is to cache application data packets according to the priority of the application, and the cache module 504 is specifically configured to obtain the priority of the application from the cache application list; and cache the application data packet to the buffer corresponding to the priority.
[0054] In one embodiment, the terminal 500 may further include a monitoring module 505 and an initialization module 506. The monitoring module 505 is configured to monitor the state change of the terminal modem and monitor the application data packets sent out. The initialization module 506 is configured to initialize a plurality of buffers with different priorities according to the priority of each application in the buffer application list when the monitoring module 505 monitors that the modem enters the idle state.
[0055] In one embodiment, the terminal 500 may further include a trigger module 507 configured to trigger a data forwarding start event when the monitoring module 505 monitors that the modem enters a connected state from an idle state.
[0056] In one embodiment, the terminal 500 may further include a remaining space determination module 508, which is configured to: determine the number of bytes of the remaining space of the buffer; determine whether the number of bytes is less than or equal to a preset threshold. When the remaining space determination module 508 determines that the number of bytes is greater than the preset threshold, the interception module 501 may continue to intercept the application data packets sent out. When the remaining space determination module 508 determines that the number of bytes is less than or equal to the preset threshold, the trigger module 507 may trigger the start of the data forwarding event.
[0057] In one embodiment, the terminal 500 may further include a buffer output module 509 configured to sequentially send application data packets in a plurality of buffers outward according to priorities.
[0058] In one embodiment, the buffered application list is obtained by counting the applications that send out application data packets during the sleep period according to a preset period. Further, the terminal 500 may also include a statistical module 510, which is configured to: count the package names and heartbeat keep-alive mechanisms of the applications that send out application data packets during the sleep period according to a preset period to obtain a buffered application list; remove real-time applications from the buffered application list according to the real-time application list to obtain a new buffered application list; and determine the identification and priority of each application according to the package name and heartbeat keep-alive mechanism of each application in the new buffered application list.
[0059] In one embodiment, the statistics module 510 can be specifically configured to: obtain an application identifier based on the application package name; determine whether the application has a heartbeat keep-alive mechanism; when the application has a heartbeat keep-alive mechanism, determine the priority of the application to be the first priority; and when the application does not have a heartbeat keep-alive mechanism, determine the priority of the application to be the second priority.
[0060] Those skilled in the art can understand that the operations performed by the modules and units included in the terminal 500 correspond one-to-one to the steps of the method for displaying desktop icons in the aforementioned embodiment, and will not be described in detail here.
[0061] Next, combine Figure 6 The terminal 600 for processing application data packets provided in some other embodiments of the present disclosure is exemplarily introduced. Figure 6 As described above, the mobile terminal 600 of the embodiment of the present disclosure includes a processor 601 , a memory 602 , and a communication bus 603 .
[0062] In the process of a specific embodiment, the processor 601 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing image processing device (DSPD), a programmable logic image processing device (PLD), a field programmable gate array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It can be understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other, and this embodiment does not specifically limit it.
[0063] In the embodiment of the present disclosure, the communication bus 603 is used to realize the connection and communication between the processor 601 and the memory 602; the memory 602 stores program instructions for processing application data packets; when the processor 601 executes the program instructions stored in the memory 602, the present disclosure is realized in combination with the attached Figures 1 to 3 A method for processing application data packets and multiple embodiments thereof are described.
[0064] Combination of the above Figure 6 A terminal for processing application data packets that can be used to perform the present disclosure is described. It should be understood that the terminal structure or architecture here is only exemplary, and the implementation method and implementation entity of the present application are not limited thereto, but can be changed without departing from the spirit of the present application.
[0065] It is understandable that the description of each embodiment in this disclosure emphasizes the differences between the embodiments, and the same or corresponding parts can be referenced to each other. For the purpose of brevity, this disclosure will not repeat them one by one.
[0066] It should be understood that when the terms "first", "second", "third" and "fourth" are used in the claims, the specification and the drawings of the present application, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present application indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0067] It should also be understood that the terms used in this disclosure are only for the purpose of describing specific embodiments and are not intended to limit the disclosure. As used in this disclosure and claims, the singular forms of "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in this disclosure and claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations.
[0068] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0069] According to the above description in combination with the accompanying drawings, those skilled in the art can also understand that the embodiments of the present application can also be implemented by a software program. Therefore, the present application also provides a computer-readable storage medium. The computer-readable storage medium stores program instructions for processing application data packets, and the program instructions can be used to implement the present application in combination with the accompanying drawings. Figure 1-Figure 3 A method for processing application data packets is described.
[0070] It should be noted that although the operations of the method of the present application are described in a specific order in the accompanying drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.
[0071] The embodiments of the present disclosure are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method and its core idea of the present disclosure. At the same time, changes or deformations made by those skilled in the art based on the ideas of the present disclosure, the specific implementation methods and the scope of application of the present disclosure, all belong to the scope of protection of the present disclosure. In summary, the content of this specification should not be understood as a limitation on the present disclosure.
Claims
1. A method for processing an application data packet, comprising: When the terminal modem is in idle state, the application data packets sent out are intercepted; Parsing the application data packet to obtain an identifier of an application that sends out the application data packet; Determining whether the application belongs to a cached application list based on the identifier; as well as When the application belongs to the buffer application list, the application data packet is cached to the corresponding buffer according to a preset cache rule.
2. The method according to claim 1, wherein: The preset caching rule is to cache application data packets according to the priority of the application, and caching the application data packets to the corresponding buffer according to the preset caching rule includes: Obtaining the priority of the application from the cached application list; and The application data packet is cached in a buffer corresponding to the priority.
3. The method according to claim 1, before intercepting the application data packet sent out when the modem of the terminal is in an idle state, the method further comprises: Monitor the terminal's modem status changes; When it is detected that the modem enters an idle state, a plurality of buffers with different priorities are initialized according to the priority of each application in the buffer application list; as well as Monitor outgoing application data packets.
4. The method according to claim 3, after caching the application data packet into the corresponding buffer according to the preset caching rule, the method further comprises: When it is monitored that the modem enters a connected state from an idle state, a data forwarding start event is triggered.
5. The method according to claim 3, after caching the application data packet into a corresponding buffer according to a preset caching rule, the method further comprises: Determine the number of bytes of remaining space in the buffer; Determining whether the number of bytes is less than or equal to a preset threshold; When the number of bytes is greater than the preset threshold, the process proceeds to the interception of the application data packet sent outward and continues to execute; as well as When the number of bytes is less than or equal to the preset threshold, a data forwarding event is triggered.
6. The method according to claim 4 or 5, after the triggering of the data forwarding event, the method further comprises: The application data packets in the plurality of buffers are sent out in sequence according to the priorities.
7. The method according to claim 1, wherein: The buffered application list is obtained by counting applications that send out application data packets during the sleep period according to a preset period; the buffered application list is obtained by counting applications that send out application data packets during the sleep period according to a preset period, including: According to a preset period, the package names of applications that send out application data packets during the sleep period and the heartbeat keep-alive mechanism are counted to obtain a cached application list; removing the real-time application from the buffer application list according to the real-time application list to obtain a new buffer application list; and According to the package name of each application in the new buffered application list and the heartbeat keep-alive mechanism, the identification and priority of each application are determined.
8. The method according to claim 7, wherein: Determining the identification and priority of each application according to the package name of each application in the new buffered application list and the heartbeat keep-alive mechanism includes: Obtaining an application identifier according to the package name of the application; Determining whether the application has a heartbeat keep-alive mechanism; When the application has a heartbeat keep-alive mechanism, determining the priority of the application to be the first priority; and When the application does not have a heartbeat keep-alive mechanism, the priority of the application is determined to be the second priority.
9. A terminal for processing an application data packet, comprising: Processor; and A memory having program instructions for processing application data packets stored thereon, wherein when the program instructions are executed by a processor, the method according to any one of claims 1-8 is implemented.
10. A computer-readable storage medium storing program instructions for processing an application data packet, wherein when the program instructions are executed by one or more processors, the method according to any one of claims 1 to 8 is implemented.
