CN102523178A - Push-based heartbeat message sending method and terminal - Google Patents

Push-based heartbeat message sending method and terminal Download PDF

Info

Publication number
CN102523178A
CN102523178A CN2011104301659A CN201110430165A CN102523178A CN 102523178 A CN102523178 A CN 102523178A CN 2011104301659 A CN2011104301659 A CN 2011104301659A CN 201110430165 A CN201110430165 A CN 201110430165A CN 102523178 A CN102523178 A CN 102523178A
Authority
CN
China
Prior art keywords
heartbeat message
terminal
time
push
message
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
Application number
CN2011104301659A
Other languages
Chinese (zh)
Other versions
CN102523178B (en
Inventor
关真珍
周佐华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201110430165.9A priority Critical patent/CN102523178B/en
Publication of CN102523178A publication Critical patent/CN102523178A/en
Application granted granted Critical
Publication of CN102523178B publication Critical patent/CN102523178B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a push-based heartbeat message sending method and a terminal. The method comprises: push application monitors a network data flow in a terminal; when the push application monitors that a network data flow is generated in the terminal, a current time is obtained; and a time when the application push sends a heartbeat message the last time is used as an initial time and it is determined whether a time interval between the current time and an occurrence time when a heartbeat message should be sent at the next time after a preset heartbeat period of the push application has passed is less than a preset threshold; if so, the heartbeat message of the next time is sent at the current time; and the current time is used as an initial time and a time for sending a follow-up heartbeat message is redetermined according to the preset heartbeat period. According to the method provided in the invention, electric quantity loss caused by heartbeat message sending by push application can be reduced; and service life of a radio frequency module can be improved.

Description

A kind of based on the heartbeat message sending method and the terminal that push
Technical field
The present invention relates to communication technical field, relate in particular to a kind of based on the heartbeat message sending method and the terminal that push.
Background technology
Push technology is a kind of mode of operation based on client/server, is initiatively sent a message to the technology of client by server.Push technology is usually used in the message informing system, as stock market's present quotation, weather forecast, Email, QQ good friend reach the standard grade the notice etc.With the QQ communication is example; The user is after having offered push function on the terminal; Even this user does not login the QQ client; When this user's QQ good friend sent message for this user, the QQ server can send PUSH message to the propelling movement client corresponding with it, so that have the QQ good friend to send message to it by this user of this propelling movement Client-Prompt.When the user receives this PUSH message in the terminal after, just can login QQ client and bring in and check message content.
To push being connected between client and the application server in order keeping, to push application need and regularly send heartbeat message to pushing proxy gateway.So-called " heartbeat message " be meant that some message of transmission of terminal periodic property keep and server between the TCP session connection.The TCP timeout duration of session that is disposed on the cycle of push to use sending heartbeat message and fire compartment wall or the NAT device is relevant; Exceed this timeout duration of session if push the cycle of using to pushing proxy gateway transmission heartbeat message; The TCP session that pushes between application and the application server will be interrupted, and application server can not push the client transmission PUSH message of using to this through pushing proxy gateway.Because developer that different propelling movements is used or service provider may be different; Therefore different propelling movements is used and can not be shared same TCP session connection; That is to say; Pairing timeout duration of session is used in different propelling movements maybe be inequality, thereby it is also inequality to cause different propelling movements to use the cycle of sending heartbeat message.
Generally speaking; A plurality of propelling movements can be installed in one station terminal simultaneously uses; And the cycle possibility difference of sending heartbeat message is used in different propelling movements; Each push to be used and all can send heartbeat message with its specific cycle, all need start the radio-frequency module in the terminal and send heartbeat message at every turn, so just causes the radio-frequency module can be by frequent unlatching.Because each radio-frequency module of opening all need expend more electric weight; Therefore; The mode of sending heartbeat message is used in existing propelling movement can expend more terminal power; Especially for the terminal of using battery, frequent startup radio-frequency module will expend more battery electric quantity, reduces the standby time at terminal.In addition, frequent unlatching radio-frequency module also will inevitably reduce the useful life of radio-frequency module.
Summary of the invention
In view of this, it is a kind of based on the heartbeat message sending method and the terminal that push that the present invention provides, and is used to solve frequent unlatching of radio-frequency module that prior art exists and the problem that power consumption increases and the life-span reduces that causes.
For overcoming the above problems, the invention provides a kind of heartbeat message sending method based on propelling movement, comprising:
Push to use the network traffic data in the terminal is monitored;
Monitoring when producing network traffic data in the terminal when push using, obtaining current time;
Using the last moment of sending heartbeat message with this propelling movement is the initial moment; Judge institute should carry out behind the preset heart beat cycle of using through this propellings movement generation moment of next time sending heartbeat message apart from time interval of said current time whether less than pre-set threshold; If; Then said heartbeat message is next time sent at current time; And with said current time as the initial moment, according to said preset heart beat cycle, confirm the delivery time of subsequent heartbeats message again.
On the other hand, the invention provides a kind of terminal, comprising: monitoring means, time acquisition unit, first sends definite unit, and transmitting element and heartbeat message reset cell push application through above-mentioned each one of unit operation;
Monitoring means is used for the network traffic data at terminal is monitored;
Time acquisition unit is used for when said monitoring means monitors terminal generation network traffic data, obtaining current time;
First sends determining unit; Being used for using the last moment of sending heartbeat message with said propelling movement is the initial moment; Judge institute should carry out behind the preset heart beat cycle of using through this propellings movement generation moment of next time sending heartbeat message apart from time interval of said current time whether less than pre-set threshold; If then said heartbeat message is next time sent at current time;
Transmitting element is used for sending heartbeat message to pushing proxy gateway;
The heartbeat message reset cell; Being used for confirming the unit when said first transmission determines said heartbeat message next time when current time sends; Said current time as the initial moment, according to said preset heart beat cycle, is confirmed the delivery time of subsequent heartbeats message again.
Can find out from above-mentioned technical scheme; The embodiment of the invention discloses a kind of based on the heartbeat message sending method and the terminal that push; This method monitors when producing network traffic data in the terminal when push using; If using the last moment of sending heartbeat message with this propelling movement is the initial moment; Behind the preset heart beat cycle of using through this propellings movement the generation moment of next time sending heartbeat message that should carry out apart from time interval of current time less than pre-set threshold, then with this next time heartbeat message send at current time, and should the current moment as the initial moment; According to preset heart beat cycle, confirm the delivery time of subsequent heartbeats message again.Owing to monitor when producing network traffic data in the terminal; Explain that the radio-frequency module in the terminal opens; This moment with this next time heartbeat message send at current time; Then need not restart radio-frequency module, thereby reduce the unlatching number of times of radio-frequency module and then reduced the terminal transmission electric quantity consumption that heartbeat message brought, prolong the useful life of radio-frequency module.In addition; The embodiment of the invention also judgement time at interval whether less than pre-set threshold; If, sending heartbeat message next time, can alleviate like this when not adding determining step because the problem that the frequent power consumption of sending (will send when data traffic is arranged) heartbeat message and producing increases.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do simple the introduction to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet based on the heartbeat message sending method that pushes shown in the one embodiment of the invention;
Fig. 2 is a kind of schematic flow sheet based on the heartbeat message sending method that pushes shown in the another embodiment of the present invention;
Fig. 3 is that two in the terminal push the moment sketch map of using employing prior art transmission heartbeat message;
Fig. 4 is that two in the terminal push the application employing moment sketch map that sends heartbeat message based on the heartbeat message sending method that pushes of the present invention;
Fig. 5 is a kind of Signalling exchange sketch map based on the heartbeat message sending method that pushes of the present invention;
Fig. 6 is the structural representation at a kind of terminal shown in the one embodiment of the invention;
Fig. 7 is the structural representation at a kind of terminal shown in the another embodiment of the present invention;
Fig. 8 is the structural representation at a kind of terminal shown in another embodiment of the present invention;
Fig. 9 is that the hardware at a kind of terminal of the present invention is formed structural representation.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention discloses a kind of based on the heartbeat message sending method and the terminal that push; Push and use through the network traffic data in the terminal is monitored; When in monitoring the terminal, producing network traffic data; And judge moment of next time sending heartbeat message of determining by preset heart beat cycle apart from time interval of current time less than pre-set threshold, then with this next time heartbeat message in current transmission, and with said current time as the initial moment; According to said preset heart beat cycle, confirm the delivery time of subsequent heartbeats message again.Because when monitoring terminal generation network traffic data; Show the radio-frequency module unlatching, therefore heartbeat message sends by the radio-frequency module of having opened next time, can reduce the unlatching number of times of radio-frequency module; And then reduce terminal power consumption, also prolonged the useful life of radio-frequency module.
Referring to Fig. 1, show the schematic flow sheet of an a kind of embodiment based on the heartbeat message sending method that pushes of the present invention, this method comprises:
Step 101: push to use the network traffic data in the terminal is monitored.
Wherein, network traffic data is meant that the terminal passes through the network traffics that produced when networks such as wireless network or the Internet send data.Owing to when data are outwards sent in the terminal, all need start the radio-frequency module in the terminal, so the network traffic data in the monitoring terminal can confirm whether radio-frequency module is unlocked.
Terminal among the present invention is meant the client that this propelling movement application is depended on, and this terminal can be portable terminal, like mobile phone, PDF etc.This terminal still can be computer, notebook computer etc.
It is multiple that the monitoring network data traffic confirms that mode that whether radio-frequency module is opened has, and can monitor other and push to use whether send heartbeat message.In pushing the terminal of using the place other promote to use when sending heartbeat message, and radio-frequency module is unlocked.Specifically, can resolve this network packet through catching the network packet that outwards send at the terminal, to obtain this packet corresponding IP address and port parameter,, determined whether that other push application and send heartbeat message based on this IP address and port parameter.
Certainly, whether the mode of monitoring network data traffic can also comprise, monitor other service application clients and start.Push using for one can corresponding a plurality of service application; The service application that pushes application based on difference is also different; As, establishing has first to push the application and the second propelling movement application in the terminal, wherein; Push the service application of using based on first and can comprise QQ, quotations on the stock market etc., the service application of using based on second promotion can comprise SNS etc.Herein, whether whether monitoring service application client starts can start for monitoring the pairing service customer end of this propelling movement application, also can be that whether the pairing service customer end of other propelling movement application starts in this terminal of monitoring.The service application client can be arranged on instant messaging service application in this terminal etc. for some, like QQ, SNS etc.For example, when the user logins QQ, just need to send authentication information etc. through the QQ client to the QQ server, the radio-frequency module in the terminal will be opened at this moment, can in the terminal, produce network traffic data too.
Further, the monitoring network data traffic can also comprise that whether the service application client in the monitoring terminal sends message, outwards sends message like the user through the QQ client.The mode of other monitoring network data traffics can also be arranged certainly, do not enumerate one by one at this.
Step 102: monitoring when producing network traffic data in the terminal when push using, obtaining current time.
Use the radio-frequency module unlatching that monitors in the terminal when pushing, when data are outwards sent in the terminal, will produce network traffic data in the terminal, the network traffic data in the terminal will be greater than zero in other words.In determining the terminal, produce in the network traffic data, obtain the current moment.
Step 103: using the last moment of sending heartbeat message with this propelling movement is the initial moment; Judge behind the preset heart beat cycle of using through this propellings movement the generation moment of next time sending heartbeat message that should carry out apart from time interval of current time whether less than pre-set threshold; If, then with this next time heartbeat message send at current time.
Use pairing TCP timeout duration of session based on propelling movement, a heart beat cycle can be set in advance, wherein, heart beat cycle just is meant the time interval that pushes adjacent twice transmission heartbeat message preset in the application.
Should can serve as reasons an artificial fixed cycle of setting by preset heart beat cycle less than the pairing TCP timeout duration of session of this propelling movement application.Certainly; Should also can use the TCP timeout duration of session that is disposed in corresponding fire compartment wall or the NAT device with this propelling movement by preset heart beat cycle by the terminal foundation; And according to intelligent heartbeat algorithm in the prior art; The optimum heart beat cycle that calculates, and this optimum heart beat cycle that calculates used preset heart beat cycle as this propelling movement.
When not producing network traffic data in the terminal, this pushes uses and can arrive the preset moment of sending heartbeat message according to presetting heart beat cycle, pushes the corresponding propelling movement proxy gateway of application to this and sends heartbeat message.That is to say; In the terminal, do not produce network traffic data; When radio-frequency module was not used because of other propelling movements or service application transmission data are unlocked, this pushed the application meeting with this preset heart beat cycle, comes periodically to trigger to this propelling movement proxy gateway (Push GW) transmission heartbeat message.
Monitoring when producing network traffic data in the terminal when push using, pushing that use can be along with the unlatching of this radio-frequency module, and send heartbeat message one time.
But in practical application, push and use when sending heartbeat message, open radio-frequency module and can expend more electric weight, and the process of utilizing radio-frequency module to send heartbeat message also need expend certain electric weight.Application transmission heartbeat message is too frequent for fear of pushing owing to this; And cause the electric quantity consumption in the terminal more; Need it be the initial moment with the moment that the last time is sent heartbeat message; Calculate the delivery time of heartbeat message next time according to preset heart beat cycle, when the moment that in monitoring the terminal, produces network traffic data, the time interval between the delivery time of heartbeat message was less than pre-set threshold apart from this, this heartbeat is next time sent at current time next time.Also we can say, the moment distance of sending heartbeat message when the last time monitor generation network traffic data in the terminal interval greater than preset threshold value the time, then should propelling movement application with this next time heartbeat message send at current time.
Through judge that current time uses the preset time interval of sending heartbeat message and send this heartbeat message next time after less than pre-set threshold apart from this propellings movement next time, can make the transmission of this propellings movement application heartbeat message can too frequently not produce more power consumption.
For example, it is 15 minutes that preset heart beat cycle is used in a certain propelling movement, and the threshold value of this propelling movement application settings is 5 minutes.When this during at 7:00 this propelling movement use and sent heartbeat message one time, and the moment of next time sending heartbeat message of should propellings movement application presetting is the moment point of 7:15.Suppose that all detecting the terminal in 7:02,7:08 and 7:12 this propelling movement application has constantly produced network traffic data, radio-frequency module is opened in above several moment point.
If this promotion is used time interval between the delivery time of not judging current time and the heartbeat message of presetting next time whether less than the operation of preset threshold; Then this propelling movement application need all sends heartbeat message on the moment point of 7:02,7:08 and 7:12, and the transmission of heartbeat message is too frequent.Though this sends heartbeat message several times, this propelling movement is used not to be needed to open radio-frequency module separately, and the process of utilizing radio-frequency module to send heartbeat message also need expend certain electric weight, and therefore frequent transmission heartbeat message also must increase consumption of electric.
If this propelling movement is used time interval between the delivery time that has increased the heartbeat message next time of judging current time and presetting whether less than the operation of preset threshold; Then at 7:02 constantly the time; This propelling movement use the time interval of judging current time and the delivery time (7:15) of preset heartbeat message next time be 13 minutes greater than preset threshold value 5 minutes; Then this propelling movement is applied in this moment and does not carry out the transmission of heartbeat message, and this propelling movement is used the moment of next time sending heartbeat message and still is the moment of 7:15.Equally, in the 7:08 moment point, this propelling movement is used can not send heartbeat message yet, and it still is the 7:15 moment point that the moment of next time sending heartbeat message is used in this propelling movement.And in the moment point of 7:12; This propelling movement applying detection has produced network traffic data (showing the radio-frequency module unlatching) in the terminal; And this propelling movement is used and is judged time interval in the moment (7:15) that current time (7:12) distance sends heartbeat message next time less than preset threshold value 5 minutes; Then this propelling movement use with its next time heartbeat message send at current time, and readjust its timer, the moment of next time sending heartbeat message is set at 7:27.
By above visible; Use the operation that does not have judgement if push, then in 7:00 arrived the time period of 7:15, this pushed application need and sends heartbeat message in 7:00,7:02,7:08,7:12 moment point; This propelling movement is used and has been sent heartbeat message 4 times in 15 minutes; And after having increased the operation of judging, 7:00 is applied in to interior this propelling movement of the time period of 7:15 and has only sent heartbeat message in the moment point of 7:00 and 7:12, has both guaranteed the connection of TCP session; Can avoid again frequently sending heartbeat message, and then reduce the power consumption that increases owing to frequent transmission heartbeat message.
Need to prove that the time span that this pre-set threshold can set up on their own also can be used the time span that pairing TCP timeout duration of session is set according to this propelling movement.Preferably, this pre-set threshold can for: the specified multiple of preset heart beat cycle during this push to be used, this specified multiple is less than 1.Can be 1/3 etc. of this preset heart beat cycle of push using like this pre-set threshold.
It is thus clear that, be applied in current time and monitor and produce network traffic data in the terminal when pushing among the present invention, determine radio-frequency module and open; And the moment of the preset transmission heartbeat next time that should push use is with the time interval of current time during less than preset threshold; With this heartbeat message transmission next time, and need not restart radio-frequency module, reduce the unlatching number of times of radio-frequency module; And then reduce the terminal and send the electric quantity consumption that heartbeat message brought, prolong the useful life of radio-frequency module.
During for transmission network traffic data in monitoring the terminal; After heartbeat message sends next time with this; This propelling movement is used and still can be guaranteed normal heartbeat transmit mechanism; Referring to Fig. 2, be the schematic flow sheet of a kind of another embodiment based on the heartbeat message sending method that pushes of the present invention, the method for present embodiment comprises:
Step 201: push to use the network traffic data in the terminal is monitored.
Step 202: judging whether current time monitors produces network traffic data in the terminal, if get into step 202; If, do not get into step 205.
Because the terminal may not have network traffic data to produce for a long time; As, in the terminal, only have when previous propelling movement and use, do not have other to push and use; And other service application in the terminal etc. are not carried out data interaction yet and are produced network traffic data; Then the terminal might not produce network traffic data in for a long time, and radio-frequency module is not unlocked yet.
In the terminal did not have the time of network traffic data, this propelling movement was used and still need be kept normal TCP session connection, and therefore need whether produce network traffic data based on current time carries out different heartbeat message send modes.
Step 203: using the last moment of sending heartbeat message with this propelling movement is the initial moment; Judge behind the preset heart beat cycle of using through this propellings movement the generation moment of next time sending heartbeat message that should carry out apart from time interval of current time whether less than pre-set threshold; If, then with this next time heartbeat message send at current time.
Wherein, step 201,203 with a last embodiment in step 101,102,103 operation similar, repeat no more at this.
Step 204: current time as the initial moment, according to presetting heart beat cycle, is determined the delivery time of subsequent heartbeats message again.
Push and use and according to the TCP timeout duration of session heart beat cycle to be set in advance, confirm the moment of preset transmission heartbeat message according to this heart beat cycle.Concrete; Can realize through the heartbeat transmission timer; This heartbeat transmission timer is a timer of confirming the heartbeat message delivery time; After configuration should be preset heart beat cycle in the heartbeat transmission timer, the heartbeat transmission timer triggered to push and uses the transmission heartbeat message when arriving the delivery time of heartbeat message.
When in step 203, heartbeat message also need be with current time as the initial moment when current time sends next time with this, and according to preset heart beat cycle, confirms each follow-up preset moment of sending heartbeat message again.Concrete; Can be with this heartbeat transmission timer zero clearing; With the initial moment of current time as the heartbeat message transmission timer, and according to this preset heart beat cycle of push using, replacement heartbeat message transmission timer; So that this heartbeat message transmission timer in the current time timing of starting from scratch, is confirmed the moment of follow-up preset transmission heartbeat message again.
For example, pushing the preset heart beat cycle of using is 15 minutes, and pre-set threshold is 1/3 of preset heart beat cycle.When at 7:00, this propelling movement is used and has been sent heartbeat message one time, then pushes to use the moment of next time sending heartbeat message and should be 7:15; Divide and to monitor the terminal and produce network traffic data if this promotion is applied in 7:12, the moment that then can confirm next time to send heartbeat message apart from time interval of current time less than 1/3 of this heart beat cycle, promptly the time interval of 7:15 and 7:12 is 3 minutes; And preset threshold value is 5 minutes, then should push and use, then can be with dividing the heartbeat message that sends to change at current time (promptly at 7:15; 7:12) send; Because when 7:12, the radio-frequency module in this terminal is opened, when this propelling movement is applied in 7:12 transmission heartbeat message; Need not restart this radio-frequency module, and then reduce owing to start the electric quantity consumption that radio-frequency module brings.Should promote simultaneously to use replacement heartbeat message transmission timer, as the initial timing time of this heartbeat transmission timer, then after 7:12 divided, the moment that send heartbeat message preset next time should be 7:27 with 7:12.
Step 205: judge whether current time arrives the moment of preset transmission heartbeat message, if then send heartbeat message.
When the terminal did not monitor network traffic data, for fear of the TCP conversational terminal, the moment that then need judge whether to arrive preset transmission heartbeat message was used in this propelling movement, and sent heartbeat message in the moment of preset transmission heartbeat message.
For the ease of understanding; With a concrete application scenarios heartbeat message sending method of describing in the foregoing description based on pushing is described in detail below; So that being installed in the terminal, two propelling movements are applied as example; Referring to Fig. 3 and Fig. 4, show in the prior art two respectively and push and use among the moment sketch map that sends heartbeat message and the present invention two and push the moment sketch mapes of using the transmission heartbeat message.In the drawings, the moment point of mark circle is the moment point that radio-frequency module is opened; Indicate moment point that arrow and arrow be marked with numeral " 1 " and represent that first pushes and use the moment point of sending heartbeat message; Indicate arrow and arrow and fan the moment point that the moment point that indicates numeral " 2 " representes that heartbeat message is sent in the second propelling movement application.For convenience, in the hypothesis terminal, only have these two propelling movements to use the transmission heartbeat message and produce network traffic data, it is identical to suppose that simultaneously the moment of sending heartbeat message the first time is used in two propelling movements.Because the developer that first propelling movement is used and second propelling movement is used is different with service provider; First push to use and second pushes that to use each self-corresponding TCP timeout duration of session also inequality, and then first pushes and use with second to push the heart beat cycle that application presets also inequality.If the preset heart beat cycle that first propelling movement is used is T1, T1=15 minute, the preset heart beat cycle that second propelling movement is used was T2, T2=10 minute.
In Fig. 3; First propelling movement is used and second propelling movement is used respectively with its fixing heart beat cycle transmission heartbeat message; Promptly first push the transmission that the moment point that was applied in 0 minute is carried out the heartbeat message first time; This first push to be used and whenever to send a heartbeat message at a distance from 15 minutes afterwards, in Fig. 3, has in sign that sign has numeral " 1 " moment point on arrow and the arrow; This first propelling movement is used and is carried out the transmission of heartbeat message, promptly at 0 minute, 15 minutes, 30 minutes, 45 minutes ... send heartbeat message on ..120 minute the time point.And second propelling movement is applied in the transmission of carrying out the heartbeat message first time in 0 minute; This second propelling movement is afterwards used and was whenever sent a heartbeat message at a distance from 10 minutes; In Fig. 3; Have on arrow and the arrow in sign and to indicate the moment point that numeral " 2 " are arranged; This second propelling movement is used and is carried out the transmission of heartbeat message; Promptly at 0 minute, 10 minutes, 20 minutes, 30 minutes ... therefore ..120 minute time point has sent heartbeat message, this terminal need start radio-frequency module on 0 minute, 10 minutes, 15 minutes, 20 minutes, 30 minutes, 40 minutes, 45 minutes, 50 minutes, 60 minutes, 70 minutes, 75 minutes, 80 minutes, 90 minutes, 100 minutes, 105 minutes, 110 minutes, 120 minutes time point, is the moment point that radio-frequency module is opened as indicating the moment point that circle is arranged among Fig. 3; The moment point that this radio-frequency module is opened to carry out the heartbeat message transmission in this process has 17, that is to say that the number of times that this terminal radio frequency module is unlocked in 120 minutes is 17 times.
In Fig. 4, used of the present inventionly, suppose that preset threshold value is 2/5 of the preset heart beat cycle that pushes application based on the heartbeat message sending method that pushes.Therefore, the preset threshold value that first propelling movement is used is 6 minutes, and the preset threshold value that second propelling movement is used is 4 minutes.
When pushing to use, the first propelling movement application and second on 0 minute time point all sends the heartbeat message first time; The terminal does not produce network traffic data in 0-10 minute; Then when the time to 10 minutes time point; Arrive second and push the moment of using preset transmission heartbeat message, second pushes on the time point that is applied in 10 minutes, sends PUSH message.When second pushes application transmission heartbeat message; The radio-frequency module that will inevitably produce in network traffic data and the terminal also will inevitably be unlocked; At this moment, first pushes that application can monitor in the terminal owing to first push to use and send heartbeat message and produce network traffic data, and first to push the moment of next time sending heartbeat message of presetting in using be 15 minutes time point; And 10 minutes time difference of 15 minutes moment distance is to push less than first in 5 minutes to use preset threshold value (6 minutes); Therefore, first propelling movement is used and can when second pushes application transmission heartbeat message, also be sent heartbeat message; Two moment that push application transmission heartbeat are identical, and radio-frequency module only need start once.
When first propelling movement is applied in 10 minutes time point transmission heartbeat message; First pushes application need replacement heartbeat transmission timer; With 10 minutes time points as initial timing time point; Then after this 10 minutes time points, first to push the moment of using of next time sending heartbeat message be 25 minutes time point.
Because in 10 minutes to 20 minutes time, the terminal still can not produce network traffic data, therefore, second pushes application still can be with its preset heart beat cycle, the time point at 20 minutes, and the radio-frequency module that starts the terminal sends heartbeat message.First pushes the network traffic data that application then can monitor at 20 minutes time point to produce in the terminal because heartbeat message is sent in the first propelling movement application.Simultaneously on this time point of 20 minutes; This first push to use judge the preset moment of next time sending heartbeat message (promptly 25 minutes time point places) apart from time interval of current time (20 minutes time points) be 5 minutes also less than 6 minutes; Therefore, first push to use also and can push on the time point that is applied in 20 minutes and send heartbeat message along with second.And reset the heartbeat transmission timer.And the like; First push to use and second pushes that use all can be at 0 minute, 10 minutes, 20 minutes ... send radio-frequency module on .120 minute the time point, as among Fig. 4 in the moment point that indicates arrow, first pushes and uses and second push application and all carries out the heartbeat message transmission; In other words; This terminal also only needs at 0 minute, 10 minutes, 20 minutes ... start radio-frequency module on ..120 minute the time point, in 120 minutes, the number of times that radio-frequency module is activated is 13 times like this.It is thus clear that, compare with the mode of existing transmission heartbeat message among Fig. 3, adopt method of the present invention to carry out the transmission of heartbeat message, the number of starts of this radio-frequency module has reduced in 120 minutes 4 times.
Scene comparison through Fig. 3 and transmission heartbeat message shown in Figure 4; It is thus clear that; The heartbeat of adopting the present invention to push application is sent; Can reduce the number of starts of radio-frequency module in the terminal, all expend the more electric weight in terminal, so the present invention can reduce owing to sending the electric quantity consumption that heartbeat message brings and start radio-frequency module at every turn.For the terminal of using battery, the present invention can prolong the stand-by time at terminal.
Fig. 3 and Fig. 4 produce network traffic data only to push application transmission heartbeat message by the first propelling movement application and second in this terminal; And then open the description that radio-frequency module carries out; But in practical application; In described above 120 minutes, also can there be other promotion application or service application transmission message to produce network traffic data, have opened radio-frequency module simultaneously, send QQ message etc. like QQ application program in the terminal; To be described in the detailed process that this first propelling movement is used and heartbeat message is sent in the second propelling movement application under this kind situation in order knowing, to describe with the Another Application scene below.Referring to Fig. 5, still establishing first the preset heart beat cycle that push to use in the figure is T1, and T1=15 minute, second to push the preset heart beat cycle of using be T2, T2=10 minute, and the hypothesis preset threshold value is for pushing 2/5 of the preset heart beat cycle used.Then the preset threshold value of the first propelling movement application is 6 minutes, and the preset threshold value that second propelling movement is used is 4 minutes.Simultaneously, suppose this moment point of 98 minutes, have other service application outwards to send message generation network traffic data in this terminal, in other words, the moment point at 98 minutes, the radio-frequency module in the terminal is owing to other service application transmission message are unlocked.
This first propelling movement is used and the second propelling movement application is all sent heartbeat message 0 minute moment point; And the terminal does not produce network traffic data in this 0-10 minute; Then when the time to 10 minutes time point; Just second push the moment of using the preset transmission heartbeat message of arrival, second pushes on the time point that is applied in 10 minutes, sends PUSH message.When second pushes application transmission heartbeat message; The radio-frequency module that will inevitably produce in network traffic data and the terminal also will inevitably be unlocked; At this moment, first pushes that application can monitor in the terminal owing to first push to use and send heartbeat message and produce network traffic data, and first to push the moment of next time sending heartbeat message of presetting in using be 15 minutes time point; And 10 minutes time difference of 15 minutes moment distance is to push less than first in 5 minutes to use preset threshold value (6 minutes); Therefore, first propelling movement is used and can when second pushes application transmission heartbeat message, also be sent heartbeat message; Two moment that push application transmission heartbeat are identical, and radio-frequency module only need start once.Afterwards from 10 minutes moment point until in the time of 90 minutes moment point, this first pushes and uses with second to push the process of using the transmission heartbeat message also identical with the process of Fig. 4.That is to say; In 0 minute moment point to 90 minute moment point, this first pushes and uses and second push application and all on 0 minute, 10 minutes, 20 minutes, 30 minutes, 40 minutes, 50 minutes, 60 minutes, 70 minutes, 80 minutes, 90 minutes moment point, sends heartbeat message.
When first push to use with second push send heartbeat message on the moment point that is applied in 90 minutes after, push according to first and to use preset heart beat cycle, this first pushes application and sends that the moment of heartbeat message should be on 105 minutes moment point next time; Push to use preset heart beat cycle according to second, this second pushes to use and sends that the moment of heartbeat message should be 100 minutes moment point next time.But because on 98 minutes moment point (indicate in like Fig. 5 to have and indicate the moment point that numeral " 3 " are arranged on arrow and the arrow); Other service application in the terminal (or pushing application) are sent message and have been produced network traffic data; Opened radio-frequency module, this first promotion is used and the second propelling movement application will monitor network traffic data.
On this moment point of 98 minutes; This first propelling movement is used and is judged that whether the current time and the time interval (i.e. 7 minutes the time interval) in its preset moment of next time sending heartbeat message (i.e. 105 minutes moment point) are less than its preset threshold value; And owing to should use preset threshold value (6 minutes) interval greater than this first propelling movement; Then first push to use not can with its next time heartbeat message send at current time, and still send heartbeat message with the moment of its preset heartbeat message next time.And on this moment point of 98 minutes; This second push to use time interval (being spaced apart 2 minutes) of judging between current time and its preset moment of next time sending heartbeat message (i.e. 100 minutes moment point) less than its preset threshold value (promptly 4 minutes), and then this second propelling movement application is sent its heartbeat next time in this moment point of 98 minutes.This second push to use replacement heartbeat transmission timer simultaneously, and as initial timing time point, then after this 98 minutes moment point, second pushed that to use the preset moment of next time sending heartbeat message be 108 minutes moment point with 98 minutes time points.
In 98 minutes to 105 minutes time period; Do not produce network traffic data in this terminal; And be that this first pushes the moment of using preset transmission heartbeat message 105 minutes moment point, and this first pushes and is applied in this and opens radio-frequency module constantly, carries out the transmission of heartbeat message; And after this moment of 105 minutes, the moment that heartbeat message is sent in this first propelling movement application next time is 120 minutes a moment point.Simultaneously; On this moment point of 105 minutes; Second pushes application can detect owing to the network traffic data that the transmission heartbeat message produces is used in first propelling movement; Then this second push application can judge it and send the moment of heartbeat message next time (i.e. 108 minutes moment point) apart from time interval of current time whether less than its preset threshold value (promptly 4 minutes), it is thus clear that this moment point of 108 minutes is 3 minutes apart from the time interval of current time (i.e. 105 minutes moment point); Used preset threshold value promptly 4 minutes less than this second propelling movement, then this second propelling movement is used its heartbeat message that sent at 108 minutes of presetting is sent at current time.The replacement timer is used in this second propelling movement simultaneously, and as initial timing time point, then after this moment point of 105 minutes, the second preset moment of next time sending heartbeat message of propelling movement application was 115 minutes a moment point with this time point of 105 minutes.
In 105 minutes to 115 minutes time; This terminal does not have network traffic data to produce, and when then reaching this moment point of 115 minutes, just arrives the moment point that preset transmission heartbeat message is used in this second propelling movement; This second propelling movement is used and is opened radio-frequency module, sends heartbeat message.Simultaneously; This first propelling movement is used and is monitored owing to the network traffic data that the transmission heartbeat message produces is used in second propelling movement on this moment point of 115 minutes; This first push to use judge current time (115 minutes moment point) apart from time interval in its preset moment of next time sending heartbeat message (i.e. 120 minutes moment point) whether less than its preset threshold value (promptly 6 minutes); It is thus clear that; Current time apart from this first push to use the moment (i.e. 120 minutes moment point) of next time sending heartbeat message the time interval be 5 minutes less than its preset threshold value 6 minutes, then this first pushes and uses the heartbeat message moment point transmission in 120 minutes that will preset and send at current time.
Visible by above process; In 120 minutes of Fig. 5; The total degree that this radio-frequency module is opened is 13 times (like each moment point of mark circle among Fig. 5), and wherein 98 minutes moment point, the unlatching of radio-frequency module is because other service application are sent message; Therefore, in these 120 minutes, open the total degree of radio-frequency module and be merely 12 times owing to push to use sending heartbeat message.It is thus clear that, compare with Fig. 3 prior heartbeat message method, in 120 minutes, the number of times of opening radio-frequency module owing to the transmission heartbeat message has reduced 5 times.
In practical application; Propelling movement application need in the terminal is through after the authentication that pushes proxy gateway; This propelling movement proxy gateway just can be transmitted to the PUSH message that server sends this propelling movement and use the terminal that belongs to, and keeps the TCP session connection by pushing to use to pushing proxy gateway (be also referred to as and push proxy gateway) transmission heartbeat message.Therefore in the above-described embodiments before the propelling movement application is monitored the network traffic data in the terminal; Also need comprise: push to use and send login request message to using corresponding propelling movement proxy gateway with this propelling movement; And respond this and send the login request message of accepting that proxy gateway returns, accomplish verification process.
Further; After pushing application completion authentication; This propelling movement is used through the agency of the propelling movement in the terminal can get access to the TCP timeout duration of session that disposes in fire compartment wall or the NAT device in the network of place, and this propellings movement is used can adopt the intelligent heartbeat algorithm in this area, calculates the heart beat cycle of optimum; And can be with this optimum heart beat cycle that calculates as preset heart beat cycle, so that carry out the transmission of follow-up heartbeat message.
Referring to Fig. 6, show a kind of Signalling exchange sketch map based on the heartbeat message sending method that pushes, comprising:
Step 601: carry out authentication between application server and the propelling movement proxy gateway.
Step 602: push agent client and send authentication request to pushing proxy gateway.
Wherein, push proxy gateway and also abbreviate the propelling movement gateway as.This application server also is the promoter who promotes message in the present embodiment.Push agent client and be the client that this propelling movement application is set
This pushes proxy gateway can corresponding a plurality of service application service devices, in Fig. 5, are that example is described with one only.Simultaneously use can corresponding a plurality of service application because one pushes, and promoting to use as one can corresponding QQ and a plurality of service application such as mail, therefore, the PUSH message promoter of a plurality of service application service devices as this propelling movement agent client can be arranged also.
Step 603: after the propelling movement proxy gateway was accepted this authentication request, this pushed agent client and pushes proxy gateway transmission register requirement to this, and this propelling movement proxy gateway is accepted this register requirement, accomplishes and registers.
After the propelling movement proxy gateway receives the authentication request that pushes the agent client transmission; Information such as the IP address of this propelling movement agent client, authentication password are verified; Pass through like checking; Then allow this propelling movement agent client to register, and respond the register requirement that this propelling movement agent client sends.
Step 604: this propelling movement agent client is confirmed its optimum heartbeat transmission cycle according to the TCP timeout duration of session that disposes in fire compartment wall or the NAT device, and the heartbeat of the determining cycle of sending is sent the cycle as preset heartbeat.
In the middle of pushing the residing network of proxy gateway, generally all be provided with fire compartment wall or network address translation (NAT; Network Address Translation) equipment; In fire compartment wall or NAT device, dispose the TCP timeout duration of session; Surpass this TCP timeout duration of session if push agent client to the time interval that this pushes the heartbeat message of proxy gateway transmission; Then push agent client and be connected and will interrupt with the TCP that pushes between the proxy gateway, this propelling movement agent client can not receive the promotion message that application server sends yet.TCP timeout duration of session set in the fire compartment wall of certainly, different operators or the NAT device maybe be different.Promote agent client and determine self optimum heartbeat transmission cycle, and the heartbeat of the determining cycle of sending is sent the cycle as preset heartbeat through intelligence inquire mechanism.
Step 605: push agent client the network traffic data in the terminal is monitored.
Step 606: do not produce network traffic data in the terminal if this propelling movement agent client detects,, send heartbeat message to pushing proxy gateway then at preset heartbeat message delivery time.
Step 607: produce network traffic data if this propelling movement agent client detects in its terminal, place; Whether the time interval between the moment of next time sending heartbeat message of judging current time and presetting is less than preset time threshold; If, then send heartbeat message to pushing proxy gateway, and with current time as the initial moment; According to preset heart beat cycle, confirm the moment of follow-up preset transmission heartbeat message again.
Step 608: push the operation of agent client repeating step 605 to 607, this propelling movement proxy gateway receives the PUSH message that this service application service device sends.
Step 609: push proxy gateway this PUSH message is sent to this propelling movement agent client, this pushes agent client output information.
Wherein, What need explanation is; The PUSH message operation that pushes the transmission of proxy gateway reception service server can be that propelling movement proxy gateway and application server are accomplished authentication any time generation afterwards; And, receive PUSH message as long as push proxy gateway as long as after pushing agent client completion registration, just can this PUSH message be sent to this propelling movement agent client.Present embodiment only is for convenience, and the service application service device is sent PUSH message to pushing proxy gateway, and the operation that this PUSH message is sent to the propelling movement agent client of this propelling movement gateway is placed in the step 608 and 609 and describes.
Corresponding method of the present invention; Referring to Fig. 7; Show the structural representation of an embodiment at a kind of terminal of the present invention; The terminal of present embodiment comprises: monitoring means 701, time acquisition unit 702, first are sent and are confirmed unit 703 and transmitting element 704 and heartbeat message reset cell 705, push through above-mentioned each one of unit operation and use.
Monitoring means 701 is used for the network traffic data at terminal is monitored.
Wherein, network traffic data is meant that the terminal passes through the network traffics that produced when networks such as wireless network or the Internet send data.Owing to when data are outwards sent in the terminal, all need start the radio-frequency module in the terminal, so the network traffic data in the monitoring terminal can confirm whether radio-frequency module is unlocked.
Time acquisition unit 702 is used for when said monitoring means monitors terminal generation network traffic data, obtaining current time.
First sends determining unit 703; Being used for to push the moment of using the last transmission heartbeat message is the initial moment; Judge institute should carry out behind the preset heart beat cycle of using through this propellings movement generation moment of next time sending heartbeat message apart from time interval of said current time whether less than pre-set threshold; If, then with this next time heartbeat message send at current time.
Wherein, this preset heart beat cycle is based on push to use that pairing TCP timeout duration of session sets, and concrete heart beat cycle just is meant and pushes the preset adjacent time interval of sending heartbeat message twice in using.In order to keep the TCP session connection that pushes client and server, this pushes application and pushes the TCP timeout duration of session of using correspondence to pushing the proxy gateway transmission heartbeat message cycle less than this.
Pre-set threshold can be come setting-up time length as required; In order to avoid pushing the too frequent transmission heartbeat message of application; Cause in the process of sending heartbeat message and expend more electric weight; This pre-set threshold can be the specified multiple of this preset heart beat cycle, and this specified multiple is less than 1.Can be 1/3 of preset heart beat cycle like pre-set threshold.
Transmitting element 704 is used for sending heartbeat message to pushing proxy gateway.
Wherein, this transmitting element can be the radio-frequency module in the terminal.
Heartbeat message reset cell 705 is used for current time as the initial moment, according to the preset heart beat cycle of this propelling movement application, the delivery time of definite subsequent heartbeats message again.
Concrete; Can be in monitoring the terminal, produce network traffic data and with this next time heartbeat message when current time sends; Also need this heartbeat transmission timer zero clearing; Current time as initial moment of heartbeat transmission timer just in the initial moment, and should be pushed the preset heart beat cycle of using, replacement heartbeat message transmission timer according to this heartbeat; So that this heartbeat message transmission timer restarts timing at current time, confirm the delivery time of subsequent heartbeats message again.
The mode of monitoring network data traffic can have multiple way of realization, and corresponding monitoring means 701 can comprise: heartbeat message monitoring means, application start monitoring means and/or application message monitoring means.
Wherein, the heartbeat message monitoring means, whether be used for monitoring terminal has other to push application transmission heartbeat message.When other pushed application transmission heartbeat message in this terminal, the radio-frequency module in the terminal will be unlocked, and also can produce network traffic data in the terminal simultaneously.
Whether the application start monitoring means, being used for monitoring terminal has the service application client terminal start-up.
The application message monitoring means, whether the service application client that is used for monitoring terminal sends message.
Wherein, service application is meant that each pushes the pairing business of using in the terminal, and is professional like some instant messagings, like QQ, MSN, SNS etc.The service application client then is meant the instant messaging service application that is arranged in this terminal.For example, when the user logins QQ, just need to send authentication information etc. through the QQ client to the QQ server, the radio-frequency module in the terminal will be opened at this moment, can in the terminal, produce network traffic data too.
The heartbeat message monitoring means can be through catching network packet, and then determined whether that other push to use and send heartbeat message.Concrete, this heartbeat message monitoring means comprises: the unit is confirmed in data analysis unit and heartbeat.
Wherein, data analysis unit is used to catch the network packet that outwards send at the terminal, resolves this network packet, to obtain this packet corresponding IP address and port parameter.
The unit is confirmed in heartbeat, is used for according to this IP address and port parameter, has determined whether that other push application and send heartbeat message.
During for transmission network traffic data in monitoring the terminal, after heartbeat message sent next time with this, this propelling movement was used and still can be guaranteed normal heartbeat transmit mechanism; Or under the situation that does not have network traffic data to produce in the terminal, push application and still can guarantee normal heartbeat transmit mechanism, the invention also discloses a kind of terminal of another embodiment.Referring to Fig. 8, the terminal of present embodiment comprises: monitoring means 701, time acquisition unit 702, first are sent and are confirmed that unit 703, heartbeat message reset cell 705, second send and confirm unit 706 and transmitting element 704.
The difference of a present embodiment and a last embodiment is also to comprise in this terminal:
Second sends determining unit 706, is used for not monitoring the terminal when having network traffic data to produce when monitoring means, then according to should preset heart beat cycle, arrives the preset moment of sending heartbeat message, the transmission heartbeat message.
When monitoring means does not monitor in this terminal when producing network traffic data, and judge that according to preset heart beat cycle whether current time is the moment of the transmission heartbeat message preset, if then send heartbeat message by second transmitting element.
Wherein, monitoring means 701, time acquisition unit 702, first transmission confirm that the effect of unit 703, transmitting element 704, heartbeat reset cell 705 is similar with the described effect of a last embodiment, repeat no more at this.
In practical application; Propelling movement application need in the terminal is after through the authentication that pushes proxy gateway; This propelling movement proxy gateway just can be transmitted to the PUSH message that server sends the terminal at this propelling movement application place, and keeps the TCP session connection by pushing to use to pushing proxy gateway transmission heartbeat message.Therefore, also comprise in the terminal of the present invention: registering unit is used to send login request message to said propelling movement proxy gateway, and responds the login request message of accepting that said propelling movement proxy gateway returns.
Referring to Fig. 9, be terminal inner hardware configuration sketch map of the present invention, this terminal mainly comprises antenna, rf processing circuitry, process chip, memory and some peripheral hardwares.
Wherein, antenna is used for the transmitting-receiving of wireless signal, and rf processing circuitry is used for the radiofrequency signal of transmitting-receiving is handled; Process chip generally comprises baseband processing circuitry and CPU, also might wait other functional modules by integrated image treatment circuit (GPU, Graphic Processing Unit); Wherein, Baseband processing circuitry is used for baseband signal is handled, and CPU accomplishes the various processing capacities of signal, and other functional modules are accomplished the function (being used to carry out image operation like GPU) that these modules are possessed self; The concrete selection of these hardware circuits and be embodied as technology known in those skilled in the art is repeated no more here.
Each function logic module (like monitoring means, time acquisition unit etc.) in the embodiment of the invention can realize based on above-mentioned hardware circuit; Concrete; Can programme accordingly to process chip, make process chip to carry out the function that the above-mentioned functions module can be accomplished through software code.As realizing such scheme through writing a propelling movement application software.Those skilled in the art can put down in writing according to the foregoing description and accomplish writing of application software, and detailed process repeats no more here.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part is partly explained referring to method and is got final product.
The professional can also further recognize; The unit and the algorithm steps of each example of describing in conjunction with embodiment disclosed herein; Can realize with electronic hardware, computer software or the combination of the two; For the interchangeability of hardware and software clearly is described, the composition and the step of each example described prevailingly according to function in above-mentioned explanation.These functions still are that software mode is carried out with hardware actually, depend on the application-specific and the design constraint of technical scheme.The professional and technical personnel can use distinct methods to realize described function to each certain applications, but this realization should not thought and exceeds scope of the present invention.
The method of describing in conjunction with embodiment disclosed herein or the step of algorithm can be directly with the software modules of hardware, processor execution, and perhaps the combination of the two is implemented.Software module can place the storage medium of any other form known in random asccess memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or the technical field.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments among this paper.Therefore, the present invention will can not be restricted to these embodiment shown in this paper, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.

Claims (11)

1. the heartbeat message sending method based on propelling movement is characterized in that, comprising:
Push to use the network traffic data in the terminal is monitored;
Monitoring when producing network traffic data in the terminal when push using, obtaining current time;
Using the last moment of sending heartbeat message with this propelling movement is the initial moment; Judge the generation of next time sending heartbeat message that should carry out through institute behind the preset heart beat cycle constantly apart from time interval of said current time whether less than pre-set threshold; If, then said heartbeat message is next time sent at current time, and with said current time as the initial moment; According to said preset heart beat cycle, confirm the delivery time of subsequent heartbeats message again;
Wherein, through sending next time that heartbeat message is used to make that the transmission of said heartbeat message can too frequently not produce more power consumption after less than pre-set threshold judging the time interval.
2. based on the described method of claim 1, it is characterized in that, also comprise: when not having network traffic data to produce in the terminal,,, send heartbeat message arriving the preset moment of sending heartbeat message then according to said preset heart beat cycle.
3. method according to claim 1 is characterized in that, the network traffic data in the said monitoring terminal comprises following one or more modes:
Whether there are other to push in the monitoring terminal and use the transmission heartbeat message;
Whether the service application client terminal start-up is arranged in the monitoring terminal;
Whether the service application client in the monitoring terminal sends message.
4. whether method according to claim 3 is characterized in that, have other to push client in the said monitoring terminal and send heartbeat message, comprising:
Catch the network packet that outwards send at the terminal, resolve said network packet, to obtain this packet corresponding IP address and port parameter;
According to said IP address and port parameter, determined whether that other push application and send heartbeat message.
5. method according to claim 1 is characterized in that, said pre-set threshold comprises:
The specified multiple of said preset heart beat cycle, said specified multiple is less than 1.
6. method according to claim 1 is characterized in that, before the network traffic data in monitoring terminal, also comprises:
Send login request message to pushing proxy gateway, and respond the login request message of accepting that said propelling movement proxy gateway returns.
7. a terminal is characterized in that, comprising: monitoring means, and time acquisition unit, first sends definite unit, and transmitting element and heartbeat message reset cell push application through above-mentioned each one of unit operation;
Said monitoring means is used for the network traffic data at terminal is monitored;
Said time acquisition unit is used for when said monitoring means monitors terminal generation network traffic data, obtaining current time;
It is the initial moment that the said first transmission determining unit is used for using the last moment of sending heartbeat message with said propelling movement; Judge institute should carry out behind the preset heart beat cycle of using through this propellings movement generation moment of next time sending heartbeat message apart from time interval of said current time whether less than pre-set threshold; If then said heartbeat message is next time sent at current time;
Said transmitting element is used for sending heartbeat message to pushing proxy gateway;
Said heartbeat message reset cell is used for confirming the unit when said first transmission and determines said heartbeat message next time when current time sends; With said current time as the initial moment; According to said preset heart beat cycle, confirm the delivery time of subsequent heartbeats message again.
8. terminal according to claim 7; It is characterized in that; Also comprise: second send to confirm the unit, is used for not monitoring the terminal when having network traffic data to produce when said monitoring means, then the said preset heart beat cycle of foundation; Arriving the preset moment of sending heartbeat message, send heartbeat message.
9. terminal according to claim 7 is characterized in that, said monitoring means, comprise following one or more:
The heartbeat message monitoring means, whether be used for monitoring terminal has other to push application transmission heartbeat message;
The application start monitoring means, whether be used for monitoring terminal has the service application client terminal start-up;
The application message monitoring means, whether the service application client that is used for monitoring terminal sends message.
10. terminal according to claim 9 is characterized in that, said heartbeat message monitoring means comprises:
Data analysis unit is used to catch the network packet that outwards send at the terminal, resolves said network packet, to obtain this packet corresponding IP address and port parameter;
The unit is confirmed in heartbeat, is used for according to said IP address and port parameter, has determined whether that other push application and send heartbeat message.
11. terminal according to claim 7 is characterized in that, also comprises:
Registering unit is used to send login request message to said propelling movement proxy gateway, and responds the login request message of accepting that said propelling movement proxy gateway returns.
CN201110430165.9A 2011-12-20 2011-12-20 Push-based heartbeat message sending method and terminal Active CN102523178B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110430165.9A CN102523178B (en) 2011-12-20 2011-12-20 Push-based heartbeat message sending method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110430165.9A CN102523178B (en) 2011-12-20 2011-12-20 Push-based heartbeat message sending method and terminal

Publications (2)

Publication Number Publication Date
CN102523178A true CN102523178A (en) 2012-06-27
CN102523178B CN102523178B (en) 2014-12-03

Family

ID=46293977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110430165.9A Active CN102523178B (en) 2011-12-20 2011-12-20 Push-based heartbeat message sending method and terminal

Country Status (1)

Country Link
CN (1) CN102523178B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932757A (en) * 2012-09-25 2013-02-13 百度在线网络技术(北京)有限公司 Heartbeat message sending method of mobile terminal, mobile terminal and information pushing system
CN103518342A (en) * 2013-04-26 2014-01-15 华为技术有限公司 Transmitting control method and device for heartbeat signal
CN103906033A (en) * 2012-12-28 2014-07-02 中国电信股份有限公司 Method and device for sending network communication request signaling on user terminal
CN104093123A (en) * 2013-06-09 2014-10-08 腾讯科技(深圳)有限公司 Application program information pushing method, device and system and mobile terminal
CN104135460A (en) * 2013-05-03 2014-11-05 华为软件技术有限公司 Method for keeping push channel active and push server
WO2015061957A1 (en) * 2013-10-29 2015-05-07 华为终端有限公司 Service agent method, modem, and terminal
WO2015077961A1 (en) * 2013-11-28 2015-06-04 华为终端有限公司 Method for sending heartbeat message and mobile terminal
CN105338195A (en) * 2015-12-14 2016-02-17 魅族科技(中国)有限公司 Terminal power saving method and terminal
CN105450743A (en) * 2015-11-17 2016-03-30 上海斐讯数据通信技术有限公司 Realization method of regularly pushing advertisement data, system and wireless access point
CN105959997A (en) * 2016-04-19 2016-09-21 北京小米移动软件有限公司 Heartbeat message transmitting method, heartbeat transmitting device and terminal
CN106028428A (en) * 2016-04-27 2016-10-12 努比亚技术有限公司 Information processing method and mobile terminal
WO2017193795A1 (en) * 2016-05-10 2017-11-16 北京奇虎科技有限公司 Data transmission method and device for mobile terminal
CN107612789A (en) * 2017-11-09 2018-01-19 北京奇艺世纪科技有限公司 The heartbeat interval adjusting method and device of a kind of client
CN109068980A (en) * 2016-04-22 2018-12-21 诺基亚技术有限公司 Control the measurement of one or more vital signs of living body main body
US10462245B2 (en) 2013-12-09 2019-10-29 Tencent Technology (Shenzhen) Company Limited Method, terminal, and system for pushing information
CN110544834A (en) * 2018-05-28 2019-12-06 华硕电脑股份有限公司 Antenna system and restarting method thereof
CN115087087A (en) * 2021-03-15 2022-09-20 中国电信股份有限公司 Service synchronization method, dual-card terminal and non-transitory computer readable storage medium
CN115134404A (en) * 2021-03-22 2022-09-30 花瓣云科技有限公司 Method for managing push connection and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707796A (en) * 2009-06-30 2010-05-12 重庆重邮信科通信技术有限公司 Power saving method for mobile communication terminal in idle mode

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707796A (en) * 2009-06-30 2010-05-12 重庆重邮信科通信技术有限公司 Power saving method for mobile communication terminal in idle mode

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932757A (en) * 2012-09-25 2013-02-13 百度在线网络技术(北京)有限公司 Heartbeat message sending method of mobile terminal, mobile terminal and information pushing system
CN103906033A (en) * 2012-12-28 2014-07-02 中国电信股份有限公司 Method and device for sending network communication request signaling on user terminal
CN103518342B (en) * 2013-04-26 2016-09-28 华为技术有限公司 The sending control method of a kind of heartbeat signal and device
CN103518342A (en) * 2013-04-26 2014-01-15 华为技术有限公司 Transmitting control method and device for heartbeat signal
WO2014172893A1 (en) * 2013-04-26 2014-10-30 华为技术有限公司 Method and apparatus for controlling sending of heartbeat signal
US9753794B2 (en) 2013-04-26 2017-09-05 Huawei Technologies Co., Ltd. Method and apparatus for controlling sending of heartbeat signal
CN104135460A (en) * 2013-05-03 2014-11-05 华为软件技术有限公司 Method for keeping push channel active and push server
CN104135460B (en) * 2013-05-03 2017-11-24 华为软件技术有限公司 A kind of push channel keepalive method and push server
CN104093123A (en) * 2013-06-09 2014-10-08 腾讯科技(深圳)有限公司 Application program information pushing method, device and system and mobile terminal
CN104093123B (en) * 2013-06-09 2016-06-22 腾讯科技(深圳)有限公司 The information-pushing method of application program, device and system, mobile terminal
WO2015061957A1 (en) * 2013-10-29 2015-05-07 华为终端有限公司 Service agent method, modem, and terminal
US9568989B2 (en) 2013-10-29 2017-02-14 Huawei Device Co., Ltd. Method for acting as service agent, modem, and terminal by establishing a heartbeat connection with an application server
WO2015077961A1 (en) * 2013-11-28 2015-06-04 华为终端有限公司 Method for sending heartbeat message and mobile terminal
KR101840245B1 (en) * 2013-11-28 2018-03-20 후아웨이 디바이스 (둥관) 컴퍼니 리미티드 A method for transmitting a heartbeat message and a mobile terminal
CN104904309B (en) * 2013-11-28 2019-04-05 华为终端(东莞)有限公司 A kind of method and mobile terminal sending heartbeat message
US10154106B2 (en) 2013-11-28 2018-12-11 Huawei Device (Dongguan) Co., Ltd. Method for sending heartbeat message and mobile terminal
US10462245B2 (en) 2013-12-09 2019-10-29 Tencent Technology (Shenzhen) Company Limited Method, terminal, and system for pushing information
CN105450743B (en) * 2015-11-17 2018-06-19 上海斐讯数据通信技术有限公司 A kind of implementation method, system and the wireless access point of regular advertisement data
CN105450743A (en) * 2015-11-17 2016-03-30 上海斐讯数据通信技术有限公司 Realization method of regularly pushing advertisement data, system and wireless access point
CN105338195A (en) * 2015-12-14 2016-02-17 魅族科技(中国)有限公司 Terminal power saving method and terminal
CN105959997A (en) * 2016-04-19 2016-09-21 北京小米移动软件有限公司 Heartbeat message transmitting method, heartbeat transmitting device and terminal
CN105959997B (en) * 2016-04-19 2019-06-18 北京小米移动软件有限公司 Sending method, device and the terminal of heartbeat message
CN109068980A (en) * 2016-04-22 2018-12-21 诺基亚技术有限公司 Control the measurement of one or more vital signs of living body main body
CN106028428A (en) * 2016-04-27 2016-10-12 努比亚技术有限公司 Information processing method and mobile terminal
WO2017193795A1 (en) * 2016-05-10 2017-11-16 北京奇虎科技有限公司 Data transmission method and device for mobile terminal
CN107612789A (en) * 2017-11-09 2018-01-19 北京奇艺世纪科技有限公司 The heartbeat interval adjusting method and device of a kind of client
CN107612789B (en) * 2017-11-09 2020-08-28 北京奇艺世纪科技有限公司 Heartbeat interval adjusting method and device for client
CN110544834A (en) * 2018-05-28 2019-12-06 华硕电脑股份有限公司 Antenna system and restarting method thereof
CN115087087A (en) * 2021-03-15 2022-09-20 中国电信股份有限公司 Service synchronization method, dual-card terminal and non-transitory computer readable storage medium
CN115134404A (en) * 2021-03-22 2022-09-30 花瓣云科技有限公司 Method for managing push connection and electronic equipment
CN115134404B (en) * 2021-03-22 2024-01-30 花瓣云科技有限公司 Method for managing push connection and electronic equipment

Also Published As

Publication number Publication date
CN102523178B (en) 2014-12-03

Similar Documents

Publication Publication Date Title
CN102523178B (en) Push-based heartbeat message sending method and terminal
CN100508489C (en) System and method for dynamic interface management
US20130124618A1 (en) Method, system and device for supporting application client being always online
EP2876946B1 (en) Cloud-enabled low power wi-fi sensor
US11711748B2 (en) Method and apparatus of communication between terminal and base station, and network access method and apparatus of a terminal
EP3013114B1 (en) Method for sending heartbeat message and mobile terminal
CN102647314A (en) Client side on-line state judgment method and system
CN101931982A (en) Network failure positioning method and device
EP3226481A1 (en) Method for heartbeat packet processing by using proxy, apparatus, and communications system
US9055099B2 (en) Method of preventing TCP-based denial-of-service attacks on mobile devices
CN101677301A (en) Intermediate server for instant messaging and instant messaging realizing method thereof
CN103501305A (en) Internet service realization method, application server and calling proxy server
CN105392214A (en) Apparatus and method for controlling TCP connections in a wireless communication system
CN105281919A (en) Remote wakening method, server and client terminal
CN102984814A (en) Large-scale GPRS (general packet radio service) terminal device networking method
CN104486443A (en) Message pushing system and method
CN107251593B (en) Data packet processing method and related equipment
EP2888914B1 (en) Integrated paging technique
EP2854430B1 (en) Method and device for processing abnormality of application proxy client terminal
Arvan et al. Secured location-aware mobility-enabled RPL
CN111434100B (en) Apparatus, method, and computer-readable storage medium for data transceiving with IoT devices
Kumberg et al. Improving the performance of the cross-layer wake-up routing protocol T-ROME
US20110116417A1 (en) Method and apparatus for determining ping interval of activesync service in wireless communication terminal
WO2008152597A1 (en) A distributed beaconing protocol for wireless networks
CN105163335A (en) Network access management method, network access server, mobile terminal and network access management system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant