CN106102141B - A kind of processing method and processing device based on packet - Google Patents
A kind of processing method and processing device based on packet Download PDFInfo
- Publication number
- CN106102141B CN106102141B CN201610379854.4A CN201610379854A CN106102141B CN 106102141 B CN106102141 B CN 106102141B CN 201610379854 A CN201610379854 A CN 201610379854A CN 106102141 B CN106102141 B CN 106102141B
- Authority
- CN
- China
- Prior art keywords
- packet
- application process
- intended application
- terminal system
- wakes
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiments of the invention provide a kind of processing method and processing device based on packet, the processing method uses the packet that the reception server is sent by network, obtain the wakeup frequency for waking up terminal system by the packet in preset time period, and judge whether the wakeup frequency is more than predetermined threshold value, if so, then no thoroughfare, the packet wakes up the terminal system;The program can monitor the wakeup frequency that terminal system is waken up by packet, and when the wakeup frequency is more than predetermined threshold value, no thoroughfare, and the packet wakes up the terminal system, saves system resource, is especially the reduction of the electric quantity consumption of terminal.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of processing method and processing device based on packet.
Background technology
With the fast development of mobile terminal, numerous third-party application manufacturers and independent third party application developer open
The application program for being largely used to mobile terminal is sent out.The meeting not timing of these application programs wakes up mobile terminal, to access server
Or receive the data issued from server.
Application program on mobile terminal with server when being communicated, in order to guarantee to receive business datum in time
A kind of (for example, pushed information, notification message etc.), the scheme used at present is IP push (push) technology, i.e., in mobile terminal
One long connection is kept between application server with providing business datum for application program, should due to the presence that the length is connected
The application program transmission service data that just can in real time into mobile terminal with server.In order to ensure length connection is in can
With state, a kind of mode generally used is to send a packet (heartbeat data packets) from server timing to mobile terminal,
Subsequent mobile terminal sends a packet (reply data bag) to server, can use with the link for showing length connection.
But, in this implementation, due to being necessary to ensure that length connection is in answering on upstate, mobile terminal
Even if business datum need not be received from server, it is also desirable to ceaselessly wake up mobile terminal with to server for a long time with program
The packet (heartbeat data packets) of transmission carries out response, causes mobile terminal to be awakened as frequently as those utilized in conventional solutions, so as to the resource of mobile terminal
Consumption is larger, particularly larger to the electric quantity consumption of mobile terminal.
The content of the invention
The embodiment of the present invention provides a kind of processing method and processing device based on packet, can solve to apply in the prior art
Program is larger to the resource consumption of mobile terminal, particularly the larger technical problem of the electric quantity consumption to mobile terminal.
The embodiment of the present invention provides a kind of processing method based on packet, including:
The packet that the reception server is sent by network, the packet is used to maintain the net between the server
Network is connected;
Obtain the wakeup frequency for waking up terminal system by the packet in preset time period;
Judge whether the wakeup frequency is more than predetermined threshold value;
If so, then no thoroughfare, the packet wakes up the terminal system.
It is further, described that no thoroughfare specifically includes the step of the packet wakes up the terminal system:
Determine the corresponding intended application process of the packet;
The intended application process is closed, the packet wakes up the terminal system so that no thoroughfare.
Further, it is described to specifically include the step of determine the packet corresponding intended application process:
Corresponding user's mark is obtained according to the packet;
The process identification (PID) for obtaining corresponding intended application process is identified according to the user;
Corresponding intended application process is determined according to the process identification (PID).
Further, the step of closing intended application process is specifically included:
Judge to whether there is and the intended application process identical application process in default application process set;
If so, then closing the intended application process, so that no thoroughfare, the packet wakes up the terminal system.
It is further, described that no thoroughfare specifically includes the step of the packet wakes up the terminal system:
Determine the corresponding intended application process of the packet;
The intended application process connection network is prevented, the packet wakes up the terminal system so that no thoroughfare.
Correspondingly, the embodiment of the present invention also provides a kind of processing unit based on packet, including:
Receiving module, the packet sent for the reception server by network, the packet be used for maintain with it is described
Network connection between server;
Acquisition module, the wakeup frequency of terminal system is waken up for obtaining in preset time period by the packet;
Judge module, for judging whether the wakeup frequency is more than predetermined threshold value;
Processing module, for when the judge module is judged as YES, no thoroughfare, the packet wakes up the terminal
System.
Further, the processing module is specifically included:
First determination sub-module, for determining the corresponding intended application process of the packet;
First processing submodule, for closing the intended application process, so that no thoroughfare, the packet wakes up described
Terminal system.
Further, first determination sub-module specifically for:
Corresponding user's mark is obtained according to the packet;
The process identification (PID) for obtaining corresponding intended application process is identified according to the user;
Corresponding intended application process is determined according to the process identification (PID).
Further, it is described first processing submodule specifically for:
Judge to whether there is and the intended application process identical application process in default application process set;
If so, then closing the intended application process, so that no thoroughfare, the packet wakes up the terminal system.
Further, the processing module is specifically included:
Second determination sub-module, for determining the corresponding intended application process of the packet;
Second processing submodule, for preventing the intended application process connection network, the packet so that no thoroughfare
Wake up the terminal system.
The embodiment of the present invention provides a kind of processing method based on packet, is sent using the reception server by network
Packet, obtains the wakeup frequency for waking up terminal system by the packet in preset time period, and judge the wakeup frequency
Whether predetermined threshold value is more than, the technical scheme for the terminal system that the packet wakes up if so, then no thoroughfare;The program can be supervised
The wakeup frequency that terminal system is waken up by packet is controlled, when the wakeup frequency is more than predetermined threshold value, the data that no thoroughfare
Bag wakes up the terminal system, in terms of existing technologies, is frequently called out if receiving the packet that server sent by network
Awake terminal system, then forbid waking up terminal system again by the packet so that terminal system need not be awakened as frequently as those utilized in conventional solutions, from
And system resource is saved, especially it is the reduction of the electric quantity consumption of terminal.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those skilled in the art, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached
Figure.
Fig. 1 is the schematic flow sheet for the processing method based on packet that the embodiment of the present invention one is provided;
Fig. 2 is the schematic flow sheet for the processing method based on packet that the embodiment of the present invention two is provided;
Fig. 3 a are the structural representations for the first processing unit based on packet that the embodiment of the present invention three is provided;
Fig. 3 b are the structural representations for second of processing unit based on packet that the embodiment of the present invention three is provided;
Fig. 3 c are the structural representations for the third processing unit based on packet that the embodiment of the present invention three is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other implementation that those skilled in the art are obtained under the premise of creative work is not made
Example, belongs to the scope of protection of the invention.
The embodiment of the present invention provides a kind of processing method and processing device based on packet.It will carry out respectively specifically below
It is bright.
Embodiment one
The present embodiment will be described from the angle of the processing unit based on packet, and the processing unit specifically can be with integrated
In the terminal, the terminal can be the equipment such as smart mobile phone.
A kind of processing method based on packet, including:The packet that the reception server is sent by network, the packet
For maintaining to wake up terminal system by the packet in preset time period the network connection between the server, acquisition
Wakeup frequency, and judge whether the wakeup frequency is more than predetermined threshold value, if so, then no thoroughfare, the packet wakes up the terminal system
System.
As shown in figure 1, being somebody's turn to do the processing method based on packet, idiographic flow can be as follows:
S101, the packet that the reception server is sent by network, packet is used to maintain between the server
Network connection.
In concrete application, operational network application program (application program that can be communicated with server) in terminal
When, it is necessary to set up network connection between the application program and server to carry out data exchange.Generally, application program
The network connection set up between server has short connection and long two kinds of connection, and short connection refers between application program and server
Set up communication link and complete to disconnect immediately after data exchange, long connection refers to set up logical between application program and server
Letter link simultaneously completes to continue to keep connection status after data exchange.After long connection is set up between application program and server, it is
Ensure that the link of length connection is constantly in upstate, server can timing pass through network (such as Wireless Fidelity WI-FI)
Packet (heartbeat data packets) is sent to the application program, for example, sending the application in a packet, terminal at interval of 0.5s
Program receives the packet and handled.
S102, obtains the wakeup frequency for waking up terminal system by the packet in preset time period.
In concrete application, terminal need not carry out data processing, such as data to reduce electric quantity consumption in terminal system
Analysis, data calculate when, terminal system can enter resting state, when have data arrive need to be handled when, terminal system from
Resting state wakes up and the data is handled.
In the embodiment of the present invention, the application program in terminal is received after the packet of server transmission, wakes up terminal system
System is analyzed and processed to the packet, to generate reply data, and subsequent application program is by network (long connection) by answer number
According to being sent to server.The number of times that terminal-pair wakes up terminal system by the packet is counted, and is obtained in preset time
The wakeup frequency that is waken up of terminal system in section, for example, the preset time period is 10s, then terminal every 10s according to statistics number
Obtain the wakeup frequency that terminal system is waken up.
In practical application, multiple web applications, the plurality of web application point may be run in terminal simultaneously
Communication link, i.e. terminal are not set up between multiple servers and is connected while maintain multiple length between multiple servers, often
Individual application program all regularly can receive packet (heartbeat data packets) from server, so that terminal the reception server passes through network
The packet of transmission may have a variety of.In order to obtain respectively by every kind of packet in a variety of packets in preset time period
The interior frequency for waking up terminal system, characteristic information of the terminal in every kind of packet is (for example, network that packet includes
Location and/or port information) every kind of packet is counted respectively, so as to obtain by each in a variety of packets
Plant the frequency for waking up terminal system.
S103, judges whether the wakeup frequency is more than predetermined threshold value.
Specifically, the predetermined threshold value can be that terminal is stored in terminal respective memory regions (built-in memory block when dispatching from the factory
Domain or external storage region) in a numerical value or user be arranged and stored in one of terminal respective memory regions
Numerical value, such as 2Hz.Judge the wakeup frequency whether be more than predetermined threshold value mode have a variety of, for example, obtain the wakeup frequency
Afterwards, the predetermined threshold value is called from the respective memory regions of terminal, the difference between the wakeup frequency and the predetermined threshold value is calculated,
When the difference is more than zero, it is judged as that the wakeup frequency is more than the predetermined threshold value, is otherwise judged as that the wakeup frequency is not more than this
Predetermined threshold value.
S104, no thoroughfare, and the packet wakes up the terminal system.
When being judged as that the wakeup frequency is more than the predetermined threshold value in step S103, no thoroughfare, and the packet wakes up the end
End system.Now, if terminal system in a dormant state, even if the application program in terminal receive server transmission data
Bag, can not also pass through the packet and wake up terminal system so that terminal system need not be waken up with to the packet
Reason, so as to save system resource, terminal system keeps the power that resting state can keep relatively low, so as to save end
The electric quantity consumption at end.
In concrete application, when multiple application programs in terminal keep long be connected between multiple servers simultaneously, if
It is judged as that the wakeup frequency is more than the predetermined threshold value, then it needs to be determined that the packet is specifically in which application program and server
Between carry out data exchange, then the application process is handled, therefore, " no thoroughfare, and the packet wakes up the terminal system
System " may particularly include following steps:
Determine the corresponding intended application process of the packet;
The intended application process is closed, the packet wakes up the terminal system so that no thoroughfare.
Specifically, characteristic information that can be in packet is (for example, the network address and/or end that packet includes
Message ceases) determine the corresponding intended application process of the packet.
In specific implementation, characteristic information in packet determines that the corresponding intended application process of the packet can be with
Comprise the following steps:
Corresponding user's mark is obtained according to the packet;
The process identification (PID) for obtaining corresponding intended application process is identified according to the user;
Corresponding intended application process is determined according to the process identification (PID).
Specifically, the packet that the reception server is sent by network includes the network address (IP address) of server end
With the port information (port numbers) of end side, terminal obtains the user of packet sensing according to the network address and port information
Identify (UID, User identification), and the target for obtaining user mark sensing is further identified according to the user
The process identification (PID) (PID, Process identification) of application process.Due in process identification (PID) (PID) and terminal system
The process of operation has unique corresponding relation, therefore can determine corresponding intended application process according to the process identification (PID) (PID).
In actual applications, when it is determined that after intended application process, the intended application process may necessarily be in running status,
I.e. the application program is important application program for a user, even if the application program wakes up terminal system by packet
The wakeup frequency of system is more than predetermined threshold value, and user is also not intended to the application program and is closed, therefore, " closes the intended application to enter
Journey, so that no thoroughfare, the packet wakes up the terminal system " following steps can be specifically included:
Judge to whether there is and the intended application process identical application process in default application process set;
If so, then closing the intended application process, so that no thoroughfare, the packet wakes up the terminal system.
Specifically, presetting application process set, can be that terminal is stored in terminal respective memory regions when dispatching from the factory (built-in
Storage region or external storage region) in multiple application processes set or user set multiple application processes
Set, user can add application process into the default application process set by the setting interface of terminal, can also be from
Some or certain several application processes are deleted in the default application process set, when it is determined that after intended application process, if this it is default should
With in process collection be not present with the intended application process identical application process, can also prompt the user whether to need the mesh
Mark application process is added to the default application process set.Certainly, the default application process set can also be for sky, i.e. user still
Any application process is not added with to the default application process set.
Judge have in default application process set with the presence or absence of the method with the intended application process identical application process
It is a variety of, for example, it is determined that after intended application process, by the process identification (PID) (PID) of the intended application process with this it is default apply into
The process identification (PID) (PID) of all application processes in Cheng Jihe is contrasted one by one, when process identification (PID) and this of intended application process are pre-
If the process identification (PID) of some application process in application process set is identical, then judge exist in default application process set
With the intended application process identical application process.
Preferably, in yet another embodiment of the present invention, judge to whether there is and this in default application process set
After intended application process identical application process, the intended application process can also be just closed, when judged result is no to prohibit
The terminal system is only waken up by the packet.
Preferably, determine after the corresponding intended application process of the packet, can receive user sets whether enable closing
The function of the intended application process.
Preferably, in yet another embodiment of the present invention, determine after the corresponding intended application process of the packet, can
To prevent the intended application process from connecting network, so that no thoroughfare, the packet wakes up the terminal system.
From the foregoing, it will be observed that the processing method provided in an embodiment of the present invention based on packet, net is passed through using the reception server
The packet that network is sent, obtains the wakeup frequency for waking up terminal system by the packet in preset time period, and judges to be somebody's turn to do
Whether wakeup frequency is more than predetermined threshold value, the technical scheme for the terminal system that the packet wakes up if so, then no thoroughfare;The party
Case can monitor the wakeup frequency that terminal system is waken up by packet, when the wakeup frequency is more than predetermined threshold value, forbid leading to
Cross the packet and wake up the terminal system, in terms of existing technologies, if receiving the data that server is sent by network
Bag frequently wakes up terminal system, then forbids waking up terminal system again by the packet so that terminal system need not be by frequency
It is numerous to wake up, so as to save system resource, especially it is the reduction of the electric quantity consumption of terminal.
Embodiment two
Citing, is described in further detail by the processing method according to described by embodiment one below.
In the present embodiment, it will be specifically integrated in the processing unit based on packet in smart mobile phone, with smart mobile phone
The processing method based on packet exemplified by be described in detail.
As shown in Fig. 2 the processing method, idiographic flow can be as follows:
S201, the packet that smart mobile phone the reception server is sent by network, packet is used to maintain the intelligent hand
Network connection between machine and the server.
In concrete application, when running application program on smart mobile phone, such as wechat, it is necessary to application program and server it
Between network connection is set up to carry out data exchange, such as wechat receives pushed information from wechat server.In order to ensure the application
Program can receive the information of server transmission immediately, must keep growing connection between the application program and server, and in order to
Ensure that the link of length connection is constantly in upstate, server regularly can send packet (heartbeat to the application program
Bag), the application program receives the packet and handled.
S202, smart mobile phone obtains the wake-up frequency for waking up intelligent mobile phone system by the packet in preset time period
Rate.
Specifically, on smart mobile phone application program (for example, wechat) receives the packet (heartbeat of server transmission
Bag) after, wake up intelligent mobile phone system and the packet is handled, for example, the packet is analyzed and generate reply data
The reply data (response bag) is sent to the server by (response bag), subsequent application program, with what is sent to the server
Packet (heartbeat packet) carries out response.
Smart mobile phone is counted to the number of times that intelligent mobile phone system is waken up by the packet, and obtains preset time period
The wakeup frequency that interior intelligent mobile phone system is waken up.For example, the preset time period is 10s, intelligent mobile phone system passes through in 10s
Packet has been waken up 20 times, then the wakeup frequency that intelligent mobile phone system is waken up in 10s is 2Hz.
S203, smart mobile phone judges whether the wakeup frequency is more than predetermined threshold value.
In concrete application, the predetermined threshold value can be one that user is arranged and stored in storage region built in smart mobile phone
Individual numerical value, such as 1Hz.Smart mobile phone is got after the wakeup frequency, and the predetermined threshold value is called from built-in storage region, is calculated
Difference between the wakeup frequency and the predetermined threshold value, to judge whether the wakeup frequency is more than the predetermined threshold value.For example, this is called out
Frequency of waking up is 2Hz, and the difference between the wakeup frequency and the predetermined threshold value is 1Hz, then is judged as that the wakeup frequency is more than this pre-
If threshold value.
S204, smart mobile phone obtains corresponding user according to the packet and identified.
Specifically, the packet that smart mobile phone the reception server is sent by network includes the network address of server end
The port information (port numbers) of (IP address) and smart mobile phone side, for example, smart mobile phone receives the number of wechat server transmission
Include the corresponding port numbers of wechat in the IP address and smart mobile phone of wechat server according to bag, smart mobile phone is according to the packet
In IP address and port numbers obtain the packet sensing user mark (UID, User Identification).
S205, smart mobile phone identifies the process identification (PID) for obtaining corresponding intended application process according to the user.
Specifically, smart mobile phone is got after user's mark (UID) of packet sensing, is further marked according to the user
Know process identification (PID) (PID, Process that (UID) obtains the intended application process that user mark is pointed to
Identification)。
S206, smart mobile phone determines corresponding intended application process according to the process identification (PID).
Specifically, because the process run in process identification (PID) (PID) and intelligent mobile phone system has unique corresponding relation, because
This can determine corresponding intended application process according to the process identification (PID) (PID).For example, the wechat run in intelligent mobile phone system
The corresponding intended application process of process identification (PID) be wechat.
S207, smart mobile phone judges to whether there is and the intended application process identical application in default application process set
Process.
In concrete application, the default application process set can be the set for multiple application processes that user is set, for example,
User can set the application process set to include wechat, microblogging, day cat and Baidu map.It is determined that intended application process
Afterwards, by all application processes in the process identification (PID) of the intended application process (for example, wechat) and the default application process set
Process identification (PID) contrast one by one, when the default application process set of process identification (PID) and this of the intended application process (for example, wechat)
In application process (wechat) process identification (PID) it is identical, then judge exist and the intended application process in default application process set
Identical application process.
S208, smart mobile phone closes the intended application process, and so that no thoroughfare, the packet wakes up the intelligent mobile phone system.
Specifically, when smart mobile phone judges exist in default application process set with the intended application process (for example, micro-
Letter) identical application process when, close the intended application process, with forbid the intended application process by the packet wake up should
Intelligent mobile phone system.
From the foregoing, it will be observed that the processing method provided in an embodiment of the present invention based on packet, is received using smart mobile phone and serviced
The packet that device is sent by network, obtains the wake-up frequency for waking up intelligent mobile phone system by the packet in preset time period
Rate, and judge whether the wakeup frequency is more than predetermined threshold value, when being judged as YES, smart mobile phone obtains corresponding according to the packet
User's mark, and the process identification (PID) for obtaining corresponding intended application process is identified according to the user, and further enter according to this
Journey mark determines corresponding intended application process, and whether there is in the default application process set of smart mobile phone judgement should with the target
With process identical application process, if so, then closing the intended application process, so that no thoroughfare, the packet wakes up the intelligent hand
The technical scheme of machine system;Smart mobile phone can monitor the wake-up frequency that intelligent mobile phone system is waken up by packet in the program
Rate, when the wakeup frequency is more than predetermined threshold value, determines intended application process, and judge default application process according to the packet
Whether there is in set with the intended application process identical application process, if so, then close the intended application process, relative to
For prior art, if smart mobile phone receives the packet that server sent by network and frequently wakes up intelligent mobile phone system,
And there is the intended application process identical application process with determination in default application process set, then close the intended application
Process so that intelligent terminal system can not be waken up again by the packet, and can avoid the need for keeping long with server
The application process of connection is accidentally shut down, and can save system resource while ensureing that smart mobile phone is normally used, particularly
Reduce the electric quantity consumption of smart mobile phone.
Embodiment three
In order to preferably implement above method, the embodiment of the present invention also provides a kind of processing unit based on packet, should
Processing unit can with it is integrated in the terminal, the terminal can be the equipment such as smart mobile phone.
As shown in Figure 3 a, being somebody's turn to do the processing unit based on packet can include:Receiving module 301, acquisition module 302, sentence
Disconnected module 303, processing module 304, are described in detail below:
Receiving module 301, the packet sent for the reception server by network, packet is used to maintain and the clothes
Network connection between business device;
Acquisition module 302, the wakeup frequency of terminal system is waken up for obtaining in preset time period by the packet;
Judge module 303, for judging whether the wakeup frequency is more than predetermined threshold value;
Processing module 304, for when the judge module is judged as YES, no thoroughfare, and the packet to wake up the terminal system
System.
Preferably, as shown in Figure 3 b, the processing module 304 is specifically included:First determination sub-module 3041, first processing
Module 3043, it is specific as follows:
First determination sub-module 3041, for determining the corresponding intended application process of the packet;
The first processing submodule 3043, for closing the intended application process, so that no thoroughfare, packet wake-up should
Terminal system.
Preferably, first determination sub-module 3041 specifically for:
Corresponding user's mark is obtained according to the packet;
The process identification (PID) for obtaining corresponding intended application process is identified according to the user;
Corresponding intended application process is determined according to the process identification (PID).
Preferably, this first processing submodule 3043 specifically for:
Judge to whether there is and the intended application process identical application process in default application process set;
If so, then closing the intended application process, so that no thoroughfare, the packet wakes up the terminal system.
Preferably, as shown in Figure 3 c, the processing module 304 is specifically included:Second determination sub-module 3042, second processing
Module 3044, it is specific as follows:
Second determination sub-module 3042, for determining the corresponding intended application process of the packet;
Second processing submodule 3044, for preventing the intended application process from connecting network, with no thoroughfare the packet
Wake up the terminal system.
From the foregoing, it will be observed that the embodiments of the invention provide a kind of processing unit based on packet, being connect by receiving module 301
The packet that server is sent by network is received, acquisition module 302 obtains whole by packet wake-up in preset time period
The wakeup frequency of end system, judge module 303 judges whether the wakeup frequency is more than predetermined threshold value, when being judged as YES, processing
No thoroughfare that the packet wakes up the terminal system for module 304;The program can be monitored wakes up terminal system by packet
Wakeup frequency, when the wakeup frequency is more than predetermined threshold value, no thoroughfare, and the packet wakes up the terminal system, relative to existing
For technology, if receiving the packet that server sent by network frequently wakes up terminal system, forbid again by this
Packet wakes up terminal system so that terminal system need not be awakened as frequently as those utilized in conventional solutions, so as to save system resource, particularly be reduced
The electric quantity consumption of terminal.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can
To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage
Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
A kind of processing method and processing device based on packet provided above the embodiment of the present invention has carried out detailed Jie
Continue, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example is only
It is the method and its core concept for being used to help understand the present invention;Simultaneously for those skilled in the art, according to the present invention's
Thought, be will change in embodiment and range of applications, in summary, and this specification content should not be managed
Solve as limitation of the present invention.
Claims (5)
1. a kind of processing method based on packet, it is characterised in that including:
The packet that the reception server is sent by network, the packet is used to maintain the network between the server to connect
Connect;
Obtain the wakeup frequency for waking up terminal system by the packet in preset time period;
Judge whether the wakeup frequency is more than predetermined threshold value;
If so, then obtaining the network address carried in the packet and port information;
User's mark that the packet is pointed to is determined according to the network address and the port information;
The process identification (PID) for obtaining corresponding intended application process is identified according to the user;
Corresponding intended application process is determined according to the process identification (PID);
The intended application process is closed, the packet wakes up the terminal system so that no thoroughfare.
2. processing method according to claim 1, it is characterised in that have the step of the closing intended application process
Body includes:
Judge to whether there is and the intended application process identical application process in default application process set;
If so, then closing the intended application process, so that no thoroughfare, the packet wakes up the terminal system.
3. a kind of processing unit based on packet, it is characterised in that including:
Receiving module, the packet sent for the reception server by network, the packet is used to maintain and the service
Network connection between device;
Acquisition module, the wakeup frequency of terminal system is waken up for obtaining in preset time period by the packet;
Judge module, for judging whether the wakeup frequency is more than predetermined threshold value;
Processing module, for when the judge module is judged as YES, obtaining the network address and end carried in the packet
Message ceases;
User's mark that the packet is pointed to is determined according to the network address and the port information;
The process identification (PID) for obtaining corresponding intended application process is identified according to the user;
Corresponding intended application process is determined according to the process identification (PID);
The intended application process is closed, the packet wakes up the terminal system so that no thoroughfare.
4. processing unit according to claim 3, it is characterised in that the intended application process is closed, so that no thoroughfare
When the packet wakes up the terminal system, the processing module specifically for:
Judge to whether there is and the intended application process identical application process in default application process set;
If so, then closing the intended application process, so that no thoroughfare, the packet wakes up the terminal system.
5. a kind of storage medium, it is characterised in that be stored with computer program in the storage medium, when the computer program
When running on computers so that the processing method based on packet described in the computer perform claim requirement 1 or 2.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379854.4A CN106102141B (en) | 2016-05-31 | 2016-05-31 | A kind of processing method and processing device based on packet |
PCT/CN2017/086472 WO2017206875A1 (en) | 2016-05-31 | 2017-05-29 | Data packet-based processing method and apparatus, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379854.4A CN106102141B (en) | 2016-05-31 | 2016-05-31 | A kind of processing method and processing device based on packet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106102141A CN106102141A (en) | 2016-11-09 |
CN106102141B true CN106102141B (en) | 2017-10-17 |
Family
ID=57230589
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610379854.4A Expired - Fee Related CN106102141B (en) | 2016-05-31 | 2016-05-31 | A kind of processing method and processing device based on packet |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106102141B (en) |
WO (1) | WO2017206875A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106102142B (en) * | 2016-05-31 | 2017-11-17 | 广东欧珀移动通信有限公司 | terminal data processing method and device |
CN106102141B (en) * | 2016-05-31 | 2017-10-17 | 广东欧珀移动通信有限公司 | A kind of processing method and processing device based on packet |
CN106686633A (en) * | 2017-02-20 | 2017-05-17 | 苏州蜗牛数字科技股份有限公司 | Method for preventing WIFI malicious frequent awakening |
CN106937258B (en) | 2017-03-10 | 2019-07-12 | Oppo广东移动通信有限公司 | A kind of control method of broadcast, device and mobile terminal |
CN107027141B (en) * | 2017-05-08 | 2019-02-12 | Oppo广东移动通信有限公司 | Information processing method, device and mobile terminal |
CN109461238A (en) * | 2018-10-30 | 2019-03-12 | 北京摩拜科技有限公司 | Control method for vehicle, server, vehicle and Vehicular system |
CN109901697A (en) * | 2019-03-04 | 2019-06-18 | 上海卓易科技股份有限公司 | A kind of method, apparatus, equipment and medium reducing system power dissipation |
CN110687998A (en) * | 2019-09-18 | 2020-01-14 | 华为技术有限公司 | Application management method and device |
CN112187733A (en) * | 2020-09-09 | 2021-01-05 | 青岛海信移动通信技术股份有限公司 | Network side equipment, terminal and talkback method |
CN112084494A (en) * | 2020-09-21 | 2020-12-15 | 百度在线网络技术(北京)有限公司 | Sensitive information detection method, device, equipment and storage medium |
CN117135730A (en) * | 2023-02-07 | 2023-11-28 | 荣耀终端有限公司 | Interrupt processing method and electronic equipment |
CN117389733B (en) * | 2023-10-25 | 2024-04-26 | 无锡众星微系统技术有限公司 | SAS I/O scheduling method and device for reducing switch chain overhead |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7589629B2 (en) * | 2007-02-28 | 2009-09-15 | Apple Inc. | Event recorder for portable media device |
CN103118188A (en) * | 2013-01-25 | 2013-05-22 | 华为终端有限公司 | Application heartbeat cycle adjusting method and device, and terminal |
CN103312766A (en) * | 2011-11-15 | 2013-09-18 | 华为技术有限公司 | Method, system and device for supporting permanent online of application client |
CN103970255A (en) * | 2014-04-01 | 2014-08-06 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20140032542A (en) * | 2012-08-30 | 2014-03-17 | 삼성전자주식회사 | A method and apparatus for determining heartbeat period of push service in wireless network |
WO2015070428A1 (en) * | 2013-11-15 | 2015-05-21 | 华为终端有限公司 | Method for waking up terminal system and terminal |
CN103971050A (en) * | 2014-05-21 | 2014-08-06 | 深圳市中兴移动通信有限公司 | Mobile terminal awakening control method and device and mobile terminal |
CN106102142B (en) * | 2016-05-31 | 2017-11-17 | 广东欧珀移动通信有限公司 | terminal data processing method and device |
CN106102141B (en) * | 2016-05-31 | 2017-10-17 | 广东欧珀移动通信有限公司 | A kind of processing method and processing device based on packet |
-
2016
- 2016-05-31 CN CN201610379854.4A patent/CN106102141B/en not_active Expired - Fee Related
-
2017
- 2017-05-29 WO PCT/CN2017/086472 patent/WO2017206875A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7589629B2 (en) * | 2007-02-28 | 2009-09-15 | Apple Inc. | Event recorder for portable media device |
CN103312766A (en) * | 2011-11-15 | 2013-09-18 | 华为技术有限公司 | Method, system and device for supporting permanent online of application client |
CN103118188A (en) * | 2013-01-25 | 2013-05-22 | 华为终端有限公司 | Application heartbeat cycle adjusting method and device, and terminal |
CN103970255A (en) * | 2014-04-01 | 2014-08-06 | 联想(北京)有限公司 | Information processing method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2017206875A1 (en) | 2017-12-07 |
CN106102141A (en) | 2016-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106102141B (en) | A kind of processing method and processing device based on packet | |
EP3268842B1 (en) | Methods and systems for coordination of operating states amongst multiple socs within a computing device | |
CN106102142B (en) | terminal data processing method and device | |
CN106020415B (en) | Application control method and device under smart machine standby mode | |
CN105260004B (en) | The screen rotation method and system of Android system terminal | |
CN108616653B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
CN106055077A (en) | Wake-up lock-based processing method and device | |
CN105700663A (en) | Background program cleaning method and system for mobile terminal | |
CN106550438B (en) | Method and system for limiting regular awakening and mobile device | |
CN108541013B (en) | Information processing method, device, mobile terminal and computer readable storage medium | |
WO2014004552A2 (en) | Systems and methods for managing message delivery based on message priority | |
CN104244378A (en) | Wireless communication system with enhanced power management | |
CN104950318A (en) | Power-saving method for GPS (global position system) positioning module and mobile device | |
CN106055074A (en) | Method and device for processing application program | |
CN103780447A (en) | Flow control method and device | |
CN105704758A (en) | Method and device of closing social applications based on flow monitoring | |
CN107608724A (en) | A kind of method, terminal and computer-readable recording medium for managing application program | |
CN109600765A (en) | A kind of suspend mode, wake-up control method, device, DU, CU and storage medium | |
EP3962180A1 (en) | Network-based control method for power consumption of applications, terminal and storage medium | |
CN106020426B (en) | A kind of method for releasing and device waking up lock | |
CN101115217B (en) | Method, system and device of paging access terminal | |
CN108924750B (en) | Mobile terminal energy-saving positioning system based on Internet of things | |
CN104350476B (en) | A kind of version detection period control method and device | |
CN105357387A (en) | Method, apparatus and system for wakening terminal | |
CN104836920B (en) | A method and system carrying out intersect waking between mobile terminal applications according to a server terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20171017 |