CN106102141A - 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
- CN106102141A CN106102141A CN201610379854.4A CN201610379854A CN106102141A CN 106102141 A CN106102141 A CN 106102141A CN 201610379854 A CN201610379854 A CN 201610379854A CN 106102141 A CN106102141 A CN 106102141A
- Authority
- CN
- China
- Prior art keywords
- packet
- application process
- intended application
- thoroughfare
- terminal system
- 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.)
- Granted
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
- H04W52/0209—Power saving arrangements in terminal devices
-
- 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
-
- 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
Embodiments provide a kind of processing method and processing device based on packet, this processing method uses and receives the packet that server is sent by network, obtain the wakeup frequency being waken up up terminal system in preset time period by this packet, and judge that whether this wakeup frequency is more than predetermined threshold value, the most then no thoroughfare, and this packet wakes up this terminal system up;The program can monitor the wakeup frequency being waken up up terminal system by packet, and when this wakeup frequency is more than predetermined threshold value, no thoroughfare, and this packet wakes up this terminal system up, saves system resource, particularly decreases the electric quantity consumption of terminal.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of processing method and processing device based on packet.
Background technology
Along with the fast development of mobile terminal, numerous third-party application manufacturers and independent third party application developer open
Send out the application program being largely used to mobile terminal.These application programs variable interval can wake up mobile terminal up, to access server
Or receive the data issued from server.
Application program on mobile terminal is when communicating with server, in order to guarantee to receive in time business datum
(such as, pushed information, notification message etc.), a kind of scheme used at present is IP push (propelling movement) technology, i.e. at mobile terminal
It is connected with between the application server providing business datum for application program, holding one is long, due to this long existence connected, should
Just can these application program transmission service data in mobile terminal in real time with server.Being in order to ensure this long connection can
By state, a kind of mode generally used is to be sent a packet (heartbeat data packets) by server timing to mobile terminal,
Mobile terminal sends a packet (reply data bag) to server subsequently, to show that the link that this length connects can be used.
But, in this implementation, owing to being necessary to ensure that this long connection is in upstate, answering on mobile terminal
Even if need not for a long time by program receive business datum from server, it is also desirable to ceaselessly wake up mobile terminal up with to server
The packet (heartbeat data packets) sent carries out response, causes mobile terminal to be awakened as frequently as those utilized in conventional solutions, thus the resource to mobile terminal
Consume relatively big, particularly bigger to the electric quantity consumption of mobile terminal.
Summary 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 prior art
Program is relatively big to the resource consumption of mobile terminal, particularly bigger to the electric quantity consumption of mobile terminal technical problem.
The embodiment of the present invention provides a kind of processing method based on packet, including:
Receiving the packet that server is sent by network, described packet is for maintaining the net between described server
Network connects;
Obtain the wakeup frequency being waken up up terminal system in preset time period by described packet;
Judge that whether described wakeup frequency is more than predetermined threshold value;
The most then no thoroughfare, and described packet wakes up described terminal system up.
Further, the step of described no thoroughfare described packet wakes up up described terminal system specifically includes:
Determine the intended application process that described packet is corresponding;
Closing described intended application process, so that no thoroughfare, described packet wakes up described terminal system up.
Further, the described step determining intended application process that described packet is corresponding specifically includes:
Corresponding ID is obtained according to described packet;
The process identification (PID) of corresponding intended application process is obtained according to described ID;
Corresponding intended application process is determined according to described process identification (PID).
Further, the step of described closedown described intended application process specifically includes:
Judge to preset in application process set whether there is the application process identical with described intended application process;
The most then closing described intended application process, so that no thoroughfare, described packet wakes up described terminal system up.
Further, the step of described no thoroughfare described packet wakes up up described terminal system specifically includes:
Determine the intended application process that described packet is corresponding;
Stoping described intended application process to connect network, so that no thoroughfare, described packet wakes up described terminal system up.
Correspondingly, the embodiment of the present invention also provides for a kind of processing means based on packet, including:
Receiver module, for receiving the packet that server is sent by network, described packet is for maintaining with described
Network between server connects;
Acquisition module, for obtaining the wakeup frequency being waken up up terminal system in preset time period by described packet;
Judge module, is used for judging that whether described wakeup frequency is more than predetermined threshold value;
Processing module, for when described judge module is judged as YES, no thoroughfare, and described packet wakes up described terminal up
System.
Further, described processing module specifically includes:
First determines submodule, for determining the intended application process that described packet is corresponding;
First processes submodule, is used for closing described intended application process, and so that no thoroughfare, described packet wakes up up described
Terminal system.
Further, described first determine submodule specifically for:
Corresponding ID is obtained according to described packet;
The process identification (PID) of corresponding intended application process is obtained according to described ID;
Corresponding intended application process is determined according to described process identification (PID).
Further, described first process submodule specifically for:
Judge to preset in application process set whether there is the application process identical with described intended application process;
The most then closing described intended application process, so that no thoroughfare, described packet wakes up described terminal system up.
Further, described processing module specifically includes:
Second determines submodule, for determining the intended application process that described packet is corresponding;
Second processes submodule, is used for stoping described intended application process to connect network, the described packet so that no thoroughfare
Wake up described terminal system up.
The embodiment of the present invention provides a kind of processing method based on packet, uses and receives what server was sent by network
Packet, is obtained the wakeup frequency being waken up up terminal system in preset time period by this packet, and judges this wakeup frequency
Whether more than predetermined threshold value, the most then the technical scheme of this packet wakes up up this terminal system that no thoroughfare;The program can be supervised
Control wakes up the wakeup frequency of terminal system up by packet, when this wakeup frequency is more than predetermined threshold value, and these data that no thoroughfare
Bag wakes up this terminal system up, in terms of existing technologies, frequently calls out if receiving the packet that server sent by network
Awake terminal system, then forbid waking up terminal system up again by this packet so that terminal system need not be awakened as frequently as those utilized in conventional solutions, from
And save system resource, particularly decrease the electric quantity consumption of terminal.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make
Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for
From the point of view of those skilled in the art, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings
Figure.
Fig. 1 is the schematic flow sheet of the processing method based on packet that the embodiment of the present invention one provides;
Fig. 2 is the schematic flow sheet of the processing method based on packet that the embodiment of the present invention two provides;
Fig. 3 a is the structural representation of the first processing means based on packet that the embodiment of the present invention three provides;
Fig. 3 b is the structural representation of the second processing means based on packet that the embodiment of the present invention three provides;
Fig. 3 c is the structural representation of the third processing means based on packet that the embodiment of the present invention three provides.
Detailed description of the invention
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
Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on
Embodiment in the present invention, the every other enforcement that those skilled in the art are obtained under not making creative work premise
Example, broadly falls into 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.To carry out specifically respectively below
Bright.
Embodiment one
The present embodiment will be described from the angle of processing means based on packet, and this processing means specifically can be integrated
In the terminal, this terminal can be the equipment such as smart mobile phone.
A kind of processing method based on packet, including: receive the packet that server is sent, this packet by network
It is connected with the network between this server for maintaining, obtains and wake up terminal system up by this packet in preset time period
Wakeup frequency, and judge whether this wakeup frequency is more than predetermined threshold value, the most then no thoroughfare, and this packet wakes up this terminal system up
System.
As it is shown in figure 1, be somebody's turn to do processing method based on packet, idiographic flow can be such that
S101, receives the packet that server is sent by network, and this packet is for maintaining between this server
Network connects.
In concrete application, operational network application program (application program that i.e. can communicate with server) in terminal
Time, need between this application program with server, set up network and be connected to carry out data exchange.Generally, application program
Being connected with the network set up between server and have short connection and long connection two kinds, short connection refers between application program and server
Disconnecting immediately after setting up communication link and completing data exchange, long connection refers to set up between application program and server lead to
Letter link also completes to continue to keep connection status after data exchange.After setting up long connection between application program with server, for
Guarantee that the link that this length connects is constantly in upstate, server can timing by network (such as Wireless Fidelity WI-FI)
Send packet (heartbeat data packets) to this application program, such as, send a packet, the application in terminal at interval of 0.5s
Program receives this packet and processes.
S102, obtains the wakeup frequency being waken up up terminal system in preset time period by this packet.
In concrete application, terminal, in order to reduce electric quantity consumption, is made without data in terminal system and processes, such as data
Analyze, data calculate time, terminal system can enter resting state, when there being data arrival needs to process, terminal system from
Resting state wakes up up and processes these data.
In the embodiment of the present invention, after the application program in terminal receives the packet that server sends, wake up terminal system up
This packet is analyzed processing by system, and to generate reply data, application program passes through network (long connection) by answer number subsequently
According to being sent to server.The number of times being waken up up terminal system by this packet is added up by terminal, and obtains at Preset Time
The wakeup frequency that is waken up of terminal system in section, such as, this preset time period is 10s, then terminal every 10s according to statistics number
Obtain the wakeup frequency that terminal system is waken up.
In actual application, terminal may be run multiple web application simultaneously, the plurality of web application divides
Set up communication link between other and multiple server, i.e. terminal simultaneously with maintain multiple long be connected, often between multiple servers
Individual application program all timing can receive packet (heartbeat data packets) from server, thus terminal receives server and passes through network
The packet sent may have multiple.In order to obtain respectively by every kind of packet in this multiple packet in preset time period
Inside waking up the frequency of terminal system up, terminal is according to characteristic information (the network ground that such as, packet includes in every kind of packet
Location and/or port information) every kind of packet is added up respectively, such that it is able to obtain by this multiple packet is each
Plant the frequency waking up terminal system up.
S103, it is judged that whether this wakeup frequency is more than predetermined threshold value.
Specifically, this predetermined threshold value can be that terminal is stored in terminal respective memory regions (built-in memory block when dispatching from the factory
Territory or external memory area) in a numerical value, it is also possible to be user setup and be stored in of terminal respective memory regions
Numerical value, such as 2Hz.Judge whether this wakeup frequency has multiple more than the mode of predetermined threshold value, such as, obtaining this wakeup frequency
After, from the respective memory regions of terminal, call this predetermined threshold value, calculate the difference between this wakeup frequency and this predetermined threshold value,
When this difference is more than zero, it is judged that for this wakeup frequency more than this predetermined threshold value, otherwise it is judged as that this wakeup frequency is not more than and is somebody's turn to do
Predetermined threshold value.
S104, no thoroughfare, and this packet wakes up this terminal system up.
When being judged as this wakeup frequency in step S103 more than this predetermined threshold value, no thoroughfare, and this packet wakes up this end up
End system.Now, if terminal system is in a dormant state, even if the application program in terminal receives the data that server sends
Bag, also cannot wake up terminal system up by this packet so that terminal system need not to be waken up with to this packet
Reason, thus save system resource, terminal system keeps the power that resting state can keep relatively low, thus saves end
The electric quantity consumption of end.
In concrete application, when the multiple application programs in terminal simultaneously with when keeping long connection between multiple servers, if
It is judged as that this wakeup frequency is more than this predetermined threshold value, then it needs to be determined that this packet is specifically at which application program and server
Between carry out data exchange, subsequently this application process is processed, therefore, " no thoroughfare, and this packet wakes up this terminal system up
System " may particularly include following steps:
Determine the intended application process that this packet is corresponding;
Closing this intended application process, so that no thoroughfare, this packet wakes up this terminal system up.
Specifically, can be according to characteristic information (network address that such as, packet includes and/or the end in packet
Message ceases) determine the intended application process that this packet is corresponding.
In being embodied as, determine that the intended application process that this packet is corresponding is permissible according to the characteristic information in packet
Comprise the following steps:
Corresponding ID is obtained according to this packet;
The process identification (PID) of corresponding intended application process is obtained according to this ID;
Corresponding intended application process is determined according to this process identification (PID).
Specifically, receive server and included the network address (IP address) of server end by the packet that network sends
With the port information (port numbers) of end side, terminal obtains, according to this network address and port information, the user that this packet points to
Mark (UID, User identification), and obtain, according to this ID, the target that this ID is pointed to further
The process identification (PID) (PID, Process identification) of application process.Due in process identification (PID) (PID) and terminal system
The process run has unique corresponding relation, therefore can determine corresponding intended application process according to this process identification (PID) (PID).
In actual applications, after determining intended application process, this intended application process may necessarily be in running status,
This application program i.e. is important application program for a user, even if this application program wakes up terminal system up by packet
The wakeup frequency of system is more than predetermined threshold value, and user is also not intended to this application program and is closed, and therefore, " closes this intended application to enter
Journey, so that no thoroughfare, this packet wakes up this terminal system up " can specifically include following steps:
Judge to preset in application process set whether there is the application process identical with this intended application process;
The most then closing this intended application process, so that no thoroughfare, this packet wakes up this terminal system up.
Specifically, presetting application process set, can be that terminal is stored in terminal respective memory regions when dispatching from the factory (built-in
Memory area or external memory area) in the set of multiple application processes, it is also possible to be multiple application processes of user setup
Set, user can add application process in this default application process set by the interface that arranges of terminal, it is also possible to from
This default application process set is deleted certain or certain several application processes, after determining intended application process, if preset should for this
With process collection does not exist the application process identical with this intended application process, it is also possible to prompt the user whether to need this mesh
Mark application process adds this default application process set to.Certainly, this default application process set can also be empty, and i.e. user is still
It is not added with any application process to this default application process set.
Judge that the method that whether there is the application process identical with this intended application process in default application process set has
Multiple, such as, after determining intended application process, by the process identification (PID) (PID) of this intended application process with this preset apply into
The process identification (PID) (PID) of all application processes in Cheng Jihe contrasts one by one, when the process identification (PID) of intended application process is pre-with this
If the process identification (PID) of some application process in application process set is identical, then judge to preset in application process set to exist
The application process identical with this intended application process.
Preferably, in yet another embodiment of the present invention, it is judged that preset and whether application process set exists and is somebody's turn to do
After the application process that intended application process is identical, it is also possible to when judged result is no, just close this intended application process, to prohibit
Stop-pass is crossed this packet and is waken up this terminal system up.
Preferably, after determining the intended application process that this packet is corresponding, can receive whether user setup enables closedown
The function of this intended application process.
Preferably, in yet another embodiment of the present invention, after determining the intended application process that this packet is corresponding, can
To stop this intended application process to connect network, so that no thoroughfare, this packet wakes up this terminal system up.
From the foregoing, it will be observed that the processing method based on packet that the embodiment of the present invention provides, reception server is used to pass through net
The packet that network sends, is obtained the wakeup frequency being waken up up terminal system in preset time period by this packet, and judges to be somebody's turn to do
Wakeup frequency whether more than predetermined threshold value, the most then the technical scheme of this packet wakes up up this terminal system that no thoroughfare;The party
Case can monitor the wakeup frequency being waken up up terminal system by packet, when this wakeup frequency is more than predetermined threshold value, forbids leading to
Cross this packet and wake up this terminal system up, in terms of existing technologies, if receiving the data that server is sent by network
Bag frequently wakes up terminal system up, then forbid waking up terminal system up again by this packet so that terminal system need not by frequency
Numerous wake up up, thus save system resource, particularly decrease the electric quantity consumption of terminal.
Embodiment two
According to the processing method described by embodiment one, below citing is described in further detail.
In the present embodiment, specifically will be integrated in smart mobile phone with processing means based on packet, with smart mobile phone
Processing method based on packet as a example by be described in detail.
As in figure 2 it is shown, this processing method, idiographic flow can be such that
S201, smart mobile phone receives the packet that server is sent by network, and this packet is used for maintaining this intelligence hands
Network between machine with this server is connected.
In concrete application, when smart mobile phone runs application program, such as wechat, need application program and server it
Between set up network connect with carry out data exchange, such as wechat from wechat server receive pushed information.In order to ensure this application
Program can receive the information that server sends immediately, must keep long and be connected between this application program with server, and in order to
Guaranteeing that the link that this length connects is constantly in upstate, server timing can send packet (heart beating to this application program
Bag), this application program receives this packet and processes.
S202, smart mobile phone obtains and wakes up waking up up frequently of intelligent mobile phone system up by this packet in preset time period
Rate.
Specifically, the application program on smart mobile phone (such as, wechat) receives the packet (heart beating that server sends
Bag) after, wake up intelligent mobile phone system up and this packet is processed, such as, this packet be analyzed and generate reply data
(response bag), this reply data (response bag) is sent to this server, with send this server by this application program subsequently
Packet (heartbeat packet) carries out response.
The number of times being waken up up intelligent mobile phone system by this packet is added up by smart mobile phone, and obtains preset time period
The wakeup frequency that interior intelligent mobile phone system is waken up.Such as, this preset time period is 10s, and in 10s, intelligent mobile phone system passes through
Packet has been waken up 20 times, then the wakeup frequency that in 10s, intelligent mobile phone system is waken up is 2Hz.
S203, smart mobile phone judges that whether this wakeup frequency is more than predetermined threshold value.
In concrete application, this predetermined threshold value can be user setup and be stored in the built-in memory area of smart mobile phone
Individual numerical value, such as 1Hz.After smart mobile phone gets this wakeup frequency, from built-in memory area, call this predetermined threshold value, calculate
Difference between this wakeup frequency and this predetermined threshold value, judges that whether this wakeup frequency is more than this predetermined threshold value.Such as, this is called out
Awake frequency is 2Hz, and the difference between this wakeup frequency and this predetermined threshold value is 1Hz, then be judged as that this wakeup frequency is pre-more than this
If threshold value.
S204, smart mobile phone obtains corresponding ID according to this packet.
Specifically, smart mobile phone reception server includes the network address of server end by the packet that network sends
The port information (port numbers) of (IP address) and smart mobile phone side, such as, smart mobile phone receives the number that wechat server sends
According to the port numbers that the IP address including wechat server is corresponding with wechat on smart mobile phone, smart mobile phone is according to this packet
In IP address and port numbers obtain this packet point to ID (UID, User Identification).
S205, smart mobile phone obtains the process identification (PID) of corresponding intended application process according to this ID.
Specifically, after smart mobile phone gets the ID (UID) that this packet points to, mark according to this user further
Know (UID) and obtain process identification (PID) (PID, the Process of the intended application process that this ID is pointed to
Identification)。
S206, smart mobile phone determines corresponding intended application process according to this process identification (PID).
Specifically, owing to process identification (PID) (PID) has unique corresponding relation with the process of operation in intelligent mobile phone system, because of
This can determine corresponding intended application process according to this process identification (PID) (PID).Such as, the wechat run in intelligent mobile phone system
Intended application process corresponding to process identification (PID) be wechat.
S207, smart mobile phone judges to preset in application process set whether there is the application identical with this intended application process
Process.
In concrete application, this default application process set can be the set of multiple application processes of user setup, such as,
User can arrange this application process set and include wechat, microblogging, sky cat and Baidu's map.Determining intended application process
After, by the process identification (PID) of this intended application process (such as, wechat) and all application processes in this default application process set
Process identification (PID) contrast one by one, when process identification (PID) and this default application process set of this intended application process (such as, wechat)
In the process identification (PID) of application process (wechat) identical, then judge to preset in application process set to exist and this intended application process
Identical application process.
S208, smart mobile phone closes this intended application process, and so that no thoroughfare, this packet wakes up this intelligent mobile phone system up.
Specifically, exist in smart mobile phone judges default application process set and this intended application process is (such as, micro-
Letter) identical application process time, close this intended application process, to forbid that this intended application process wakes up this up by this packet
Intelligent mobile phone system.
From the foregoing, it will be observed that the processing method based on packet that the embodiment of the present invention provides, smart mobile phone is used to receive service
The packet that device is sent by network, obtains and wakes up waking up up frequently of intelligent mobile phone system up by this packet in preset time period
Rate, and judge whether this wakeup frequency is more than predetermined threshold value, when being judged as YES, smart mobile phone obtains corresponding according to this packet
ID, and obtain the process identification (PID) of corresponding intended application process according to this ID, and enter according to this further
Journey mark determines corresponding intended application process, and whether smart mobile phone judges to preset in application process set to exist answers with this target
By the identical application process of process, the most then closing this intended application process, so that no thoroughfare, this packet wakes up this intelligence hands up
The technical scheme of machine system;In the program, smart mobile phone can monitor and wake up waking up up frequently of intelligent mobile phone system up by packet
Rate, when this wakeup frequency is more than predetermined threshold value, determines intended application process according to this packet, and judges to preset application process
Whether set exists the application process identical with this intended application process, the most then closes this 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 up,
And default application process set exists the application process identical with the intended application process determined, then closes this intended application
Process so that can not again wake up intelligent terminal system up by this packet, and it can be avoided that need to keep long with server
The application process connected is accidentally shut down, it is possible to save system resource while guarantee smart mobile phone normally uses, particularly
Decrease 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 for a kind of processing means based on packet, should
Processing means can integrated in the terminal, this terminal can be the equipment such as smart mobile phone.
As shown in Figure 3 a, processing means based on packet should may include that receiver module 301, acquisition module 302, sentence
Disconnected module 303, processing module 304, be described in detail below:
Receiver module 301, for receiving the packet that server is sent by network, this packet is for maintaining and these clothes
Network between business device connects;
Acquisition module 302, for obtaining the wakeup frequency being waken up up terminal system in preset time period by this packet;
Judge module 303, is used for judging that whether this wakeup frequency is more than predetermined threshold value;
Processing module 304, for when this judge module is judged as YES, no thoroughfare, and this packet wakes up this terminal system up
System.
Preferably, as shown in Figure 3 b, this processing module 304 specifically includes: first determines that submodule 3041, first processes son
Module 3043, specific as follows:
This first determines submodule 3041, for determining the intended application process that this packet is corresponding;
This first process submodule 3043, is used for closing this intended application process, and so that no thoroughfare, this packet wakes up this up
Terminal system.
Preferably, this first determine submodule 3041 specifically for:
Corresponding ID is obtained according to this packet;
The process identification (PID) of corresponding intended application process is obtained according to this ID;
Corresponding intended application process is determined according to this process identification (PID).
Preferably, this first process submodule 3043 specifically for:
Judge to preset in application process set whether there is the application process identical with this intended application process;
The most then closing this intended application process, so that no thoroughfare, this packet wakes up this terminal system up.
Preferably, as shown in Figure 3 c, this processing module 304 specifically includes: second determines that submodule 3042, second processes son
Module 3044, specific as follows:
Second determines submodule 3042, for determining the intended application process that this packet is corresponding;
Second processes submodule 3044, is used for stoping this intended application process to connect network, with no thoroughfare this packet
Wake up this terminal system up.
From the foregoing, it will be observed that embodiments provide a kind of processing means based on packet, connect by receiver module 301
Receiving the packet that server is sent by network, acquisition module 302 obtains and wakes up end up by this packet in preset time period
The wakeup frequency of end system, it is judged that module 303 judges that this wakeup frequency, whether more than predetermined threshold value, when being judged as YES, processes
No thoroughfare that this packet wakes up this terminal system up for module 304;The program can monitor and wake up terminal system up by packet
Wakeup frequency, when this wakeup frequency is more than predetermined threshold value, no thoroughfare, and this packet wakes up this terminal system up, relative to existing
For technology, if receiving server frequently wake up terminal system up by the packet that network sends, then forbid again by this
Packet wakes up terminal system up so that terminal system need not be awakened as frequently as those utilized in conventional solutions, thus saves system resource, particularly reduces
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
Completing instructing relevant hardware by program, this program can be stored in a computer-readable recording medium, storage
Medium may include that read only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
A kind of based on packet the processing method and processing device provided the embodiment of the present invention above has carried out detailed Jie
Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only
It is the method and core concept thereof being adapted to assist in and understanding the present invention;Simultaneously for those skilled in the art, according to the present invention's
Thought, all will change in detailed description of the invention and range of applications, and in sum, this specification content should not be managed
Solve as limitation of the present invention.
Claims (10)
1. a processing method based on packet, it is characterised in that including:
Receiving the packet that server is sent by network, described packet is for maintaining the network between described server even
Connect;
Obtain the wakeup frequency being waken up up terminal system in preset time period by described packet;
Judge that whether described wakeup frequency is more than predetermined threshold value;
The most then no thoroughfare, and described packet wakes up described terminal system up.
Processing method the most according to claim 1, it is characterised in that described no thoroughfare that described packet wakes up described end up
The step of end system specifically includes:
Determine the intended application process that described packet is corresponding;
Closing described intended application process, so that no thoroughfare, described packet wakes up described terminal system up.
Processing method the most according to claim 2, it is characterised in that the described intended application determining that described packet is corresponding
The step of process specifically includes:
Corresponding ID is obtained according to described packet;
The process identification (PID) of corresponding intended application process is obtained according to described ID;
Corresponding intended application process is determined according to described process identification (PID).
Processing method the most according to claim 2, it is characterised in that the step tool of described closedown described intended application process
Body includes:
Judge to preset in application process set whether there is the application process identical with described intended application process;
The most then closing described intended application process, so that no thoroughfare, described packet wakes up described terminal system up.
Processing method the most according to claim 1, it is characterised in that described no thoroughfare that described packet wakes up described end up
The step of end system specifically includes:
Determine the intended application process that described packet is corresponding;
Stoping described intended application process to connect network, so that no thoroughfare, described packet wakes up described terminal system up.
6. a processing means based on packet, it is characterised in that including:
Receiver module, for receiving the packet that server is sent by network, described packet is for maintaining and described service
Network between device connects;
Acquisition module, for obtaining the wakeup frequency being waken up up terminal system in preset time period by described packet;
Judge module, is used for judging that whether described wakeup frequency is more than predetermined threshold value;
Processing module, for when described judge module is judged as YES, no thoroughfare, and described packet wakes up described terminal system up.
Processing means the most according to claim 6, it is characterised in that described processing module specifically includes:
First determines submodule, for determining the intended application process that described packet is corresponding;
First processes submodule, is used for closing described intended application process, and so that no thoroughfare, described packet wakes up described terminal up
System.
Processing means the most according to claim 7, it is characterised in that described first determine submodule specifically for:
Corresponding ID is obtained according to described packet;
The process identification (PID) of corresponding intended application process is obtained according to described ID;
Corresponding intended application process is determined according to described process identification (PID).
Processing means the most according to claim 7, it is characterised in that described first process submodule specifically for:
Judge to preset in application process set whether there is the application process identical with described intended application process;
The most then closing described intended application process, so that no thoroughfare, described packet wakes up described terminal system up.
Processing means the most according to claim 6, it is characterised in that described processing module specifically includes:
Second determines submodule, for determining the intended application process that described packet is corresponding;
Second processes submodule, is used for stoping described intended application process to connect network, and so that no thoroughfare, described packet wakes up up
Described terminal system.
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 true CN106102141A (en) | 2016-11-09 |
CN106102141B 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) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106686633A (en) * | 2017-02-20 | 2017-05-17 | 苏州蜗牛数字科技股份有限公司 | Method for preventing WIFI malicious frequent awakening |
CN107027141A (en) * | 2017-05-08 | 2017-08-08 | 广东欧珀移动通信有限公司 | Information processing method, device and mobile terminal |
WO2017206875A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Data packet-based processing method and apparatus, storage medium, and electronic device |
WO2017206880A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Terminal data processing method and apparatus, storage medium, and electronic device |
WO2018161576A1 (en) * | 2017-03-10 | 2018-09-13 | 广东欧珀移动通信有限公司 | Broadcast control method, device, storage medium 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 |
CN112084494A (en) * | 2020-09-21 | 2020-12-15 | 百度在线网络技术(北京)有限公司 | Sensitive information detection method, device, equipment and storage medium |
CN112187733A (en) * | 2020-09-09 | 2021-01-05 | 青岛海信移动通信技术股份有限公司 | Network side equipment, terminal and talkback method |
CN117135730A (en) * | 2023-02-07 | 2023-11-28 | 荣耀终端有限公司 | Interrupt processing method and electronic equipment |
CN117389733A (en) * | 2023-10-25 | 2024-01-12 | 无锡众星微系统技术有限公司 | SAS I/O scheduling method and device for reducing switch chain overhead |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117135729B (en) * | 2023-01-20 | 2024-05-24 | 荣耀终端有限公司 | Multi-device cooperation method, system and terminal device |
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 |
CN104221445B (en) * | 2013-11-15 | 2019-01-11 | 华为终端(东莞)有限公司 | A kind of method and terminal waking up terminal system |
CN103971050A (en) * | 2014-05-21 | 2014-08-06 | 深圳市中兴移动通信有限公司 | Mobile terminal awakening control method and device and mobile terminal |
CN106102141B (en) * | 2016-05-31 | 2017-10-17 | 广东欧珀移动通信有限公司 | A kind of processing method and processing device based on packet |
CN106102142B (en) * | 2016-05-31 | 2017-11-17 | 广东欧珀移动通信有限公司 | terminal data processing method and device |
-
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 |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017206875A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Data packet-based processing method and apparatus, storage medium, and electronic device |
WO2017206880A1 (en) * | 2016-05-31 | 2017-12-07 | 广东欧珀移动通信有限公司 | Terminal data processing method and apparatus, storage medium, and electronic device |
CN106686633A (en) * | 2017-02-20 | 2017-05-17 | 苏州蜗牛数字科技股份有限公司 | Method for preventing WIFI malicious frequent awakening |
US11086697B2 (en) | 2017-03-10 | 2021-08-10 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Broadcast-controlling method in operating system and mobile terminal |
WO2018161576A1 (en) * | 2017-03-10 | 2018-09-13 | 广东欧珀移动通信有限公司 | Broadcast control method, device, storage medium and mobile terminal |
CN107027141A (en) * | 2017-05-08 | 2017-08-08 | 广东欧珀移动通信有限公司 | Information processing method, 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 |
CN117389733A (en) * | 2023-10-25 | 2024-01-12 | 无锡众星微系统技术有限公司 | SAS I/O scheduling method and device for reducing switch chain overhead |
CN117389733B (en) * | 2023-10-25 | 2024-04-26 | 无锡众星微系统技术有限公司 | SAS I/O scheduling method and device for reducing switch chain overhead |
Also Published As
Publication number | Publication date |
---|---|
WO2017206875A1 (en) | 2017-12-07 |
CN106102141B (en) | 2017-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106102141B (en) | A kind of processing method and processing device based on packet | |
CN106020415B (en) | Application control method and device under smart machine standby mode | |
CN104219377A (en) | Mobile terminal and antenna control method thereof | |
CN106774786A (en) | A kind of power consumption control method and device | |
CN106102142B (en) | terminal data processing method and device | |
CN105260004B (en) | The screen rotation method and system of Android system terminal | |
CN105700663A (en) | Background program cleaning method and system for mobile terminal | |
CN106060909A (en) | Network access method and mobile terminal | |
CN105704758A (en) | Method and device of closing social applications based on flow monitoring | |
US10200905B2 (en) | Method and apparatus for modification of a reporting interval via a network | |
CN103002163B (en) | A kind of mobile terminal background program control method and mobile terminal | |
CN105573461A (en) | Intelligent power-saving method and device and terminal | |
CN105323837A (en) | Intermittent networking method and system | |
CN110493855A (en) | Communication mode control method, device, storage medium and terminal | |
CN106550438B (en) | Method and system for limiting regular awakening and mobile device | |
CN103780447A (en) | Flow control method and device | |
CN105874773A (en) | Task processing device, intelligent apparatus, task processing method and baseband processor | |
CN105262890A (en) | Information update control system and method for applications on portable electronic device | |
CN106200866B (en) | A kind of application freezing method and mobile terminal | |
CN109600765A (en) | A kind of suspend mode, wake-up control method, device, DU, CU and storage medium | |
WO2015154399A1 (en) | Blacklist processing method and device | |
CN104243683A (en) | Data processing method, terminal, user identification card and data processing system | |
CN104837187A (en) | Energy-saving method and device of wireless access equipment | |
WO2020037903A1 (en) | Method and apparatus for controlling controller, and device and storage medium | |
US11943127B2 (en) | Network-based control method for power consumption of applications, terminal and storage medium |
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 |