CN104468187B - The acquisition methods and device of heart beat cycle - Google Patents

The acquisition methods and device of heart beat cycle Download PDF

Info

Publication number
CN104468187B
CN104468187B CN201410584696.7A CN201410584696A CN104468187B CN 104468187 B CN104468187 B CN 104468187B CN 201410584696 A CN201410584696 A CN 201410584696A CN 104468187 B CN104468187 B CN 104468187B
Authority
CN
China
Prior art keywords
terminal
intended application
application
service condition
heart beat
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410584696.7A
Other languages
Chinese (zh)
Other versions
CN104468187A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201410584696.7A priority Critical patent/CN104468187B/en
Publication of CN104468187A publication Critical patent/CN104468187A/en
Application granted granted Critical
Publication of CN104468187B publication Critical patent/CN104468187B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of acquisition methods and device of heart beat cycle.The embodiment of the present invention by obtaining the arrange parameter of the heart beat cycle of intended application, the arrange parameter include in following parameters at least one of:The service condition of terminal where the intended application;The current business information of the intended application;The service condition of other application related to the intended application in terminal where the intended application;And ageing resource, and then according to the arrange parameter, the target heart beat cycle of the intended application is set, intended application is enabled to send heartbeat message according to target heart beat cycle, pass through at least one in the situation used in connection with according to intended application and some ageing resources, the heart beat cycle of intended application is rationally set, it can avoid in the prior art the electric quantity consumption of the terminal caused by unnecessary frequent transmission heartbeat message the problem of, it is achieved thereby that reducing the purpose of the electric quantity consumption of terminal.

Description

The acquisition methods and device of heart beat cycle
【Technical field】
The present invention relates to the acquisition methods and device of the communication technology, more particularly to a kind of heart beat cycle.
【Background technology】
With the development of the communication technology, increasing application is integrated with terminal, such as:Search (Search) application, Instant messaging (Instant Messenger, IM) etc. is applied.These application in the process of running, no data transfer when Between in the range of, using can periodically to service server send heartbeat (Heart Beat, HB) message, to be informed to service server The presence of oneself.In the prior art, heart beat cycle can be set according to the exploitation demand of application, for example, the heart of certain application Hop cycle is arranged to 10 seconds (s), using then can sending heartbeat message according to set heart beat cycle.
However, because heartbeat message may need frequently to send, terminal power consumption can be had a strong impact on, therefore, how rationally to be set The heart beat cycle of application is put, is a urgent problem to be solved to reduce the electric quantity consumption of terminal.
【The content of the invention】
The many aspects of the present invention provide a kind of acquisition methods and device of heart beat cycle, disappear to reduce the electricity of terminal Consumption.
An aspect of of the present present invention, there is provided a kind of acquisition methods of heart beat cycle, including:
The arrange parameter of the heart beat cycle of intended application is obtained, the arrange parameter includes at least one in following parameters :
The service condition of terminal where the intended application;
The current business information of the intended application;
The service condition of other application related to the intended application in terminal where the intended application;And
Ageing resource;
According to the arrange parameter, the target heart beat cycle of the intended application is set.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the acquisition mesh The arrange parameter of the heart beat cycle of application is marked, including:
The service condition for the terminal that data acquisition device is sent is received, the service condition of the terminal is the target Obtained using according to the historical operating data of the terminal;Or
The historical operating data for the terminal that data acquisition device is sent is received, according to the historical operation number of the terminal According to obtaining the service condition of the terminal.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the acquisition mesh The arrange parameter of the heart beat cycle of application is marked, including:
The current service identification information that data acquisition device is sent is received, according to the current service identification information, Obtain the current business information.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, the acquisition mesh The arrange parameter of the heart beat cycle of application is marked, including:
The service condition for the other application that data acquisition device is sent is received, the service condition of the other application is The intended application obtains according to the historical operating data of the other application;Or
The historical operating data for the other application that data acquisition device is sent is received, according to going through for the other application History operation data, obtain the service condition of the other application.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described according to institute Arrange parameter is stated, the target heart beat cycle of the intended application is set, including:
At least one in following operation is performed, to obtain the first reference cardiac cycle, the second reference cardiac cycle, the 3rd At least one of in reference cardiac cycle and the 4th reference cardiac cycle:
According to the service condition of the terminal, the terminal is obtained in current time and/or the terminal in current location Service condition, according to the terminal in the service condition of current time and/or the terminal in current location, obtain the first ginseng Examine heart beat cycle;
According to the current business information of the intended application, the traffic performance of the current business of the intended application is obtained, According to the traffic performance, the second reference cardiac cycle is obtained;
According to the service condition of the other application, the 3rd reference cardiac cycle is obtained;And
According to ageing resource, the 4th reference cardiac cycle is obtained;
According to first reference cardiac cycle, second reference cardiac cycle, the 3rd reference cardiac cycle and At least one of in 4th reference cardiac cycle, obtain the target heart beat cycle.
Another aspect of the present invention, there is provided a kind of acquisition device of heart beat cycle, including:
Obtaining unit, the arrange parameter of the heart beat cycle for obtaining intended application, the arrange parameter include following ginseng At least one of in number:
The service condition of terminal where the intended application;
The current business information of the intended application;
The service condition of other application related to the intended application in terminal where the intended application;And
Ageing resource;
Setting unit, for according to the arrange parameter, setting the target heart beat cycle of the intended application.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described to obtain list Member, it is specifically used for
The service condition for the terminal that data acquisition device is sent is received, the service condition of the terminal is the target Obtained using according to the historical operating data of the terminal;Or
The historical operating data for the terminal that data acquisition device is sent is received, according to the historical operation number of the terminal According to obtaining the service condition of the terminal.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described to obtain list Member, it is specifically used for
The current service identification information that data acquisition device is sent is received, according to the current service identification information, Obtain the current business information.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described to obtain list Member, it is specifically used for
The service condition for the other application that data acquisition device is sent is received, the service condition of the other application is The intended application obtains according to the historical operating data of the other application;Or
The historical operating data for the other application that data acquisition device is sent is received, according to going through for the other application History operation data, obtain the service condition of the other application.
Aspect as described above and any possible implementation, it is further provided a kind of implementation, it is described that list is set Member, it is specifically used for
At least one in following operation is performed, to obtain the first reference cardiac cycle, the second reference cardiac cycle, the 3rd At least one of in reference cardiac cycle and the 4th reference cardiac cycle:
According to the service condition of the terminal, the terminal is obtained in current time and/or the terminal in current location Service condition, according to the terminal in the service condition of current time and/or the terminal in current location, obtain the first ginseng Examine heart beat cycle;
According to the current business information of the intended application, the traffic performance of the current business of the intended application is obtained, According to the traffic performance, the second reference cardiac cycle is obtained;
According to the service condition of the other application, the 3rd reference cardiac cycle is obtained;And
According to ageing resource, the 4th reference cardiac cycle is obtained;
According to first reference cardiac cycle, second reference cardiac cycle, the 3rd reference cardiac cycle and At least one of in 4th reference cardiac cycle, obtain the target heart beat cycle.
As shown from the above technical solution, the embodiment of the present invention is by obtaining the arrange parameter of the heart beat cycle of intended application, The arrange parameter includes at least one in following parameters:The service condition of terminal where the intended application;The target Using current business information;The use feelings of other application related to the intended application in terminal where the intended application Condition;And ageing resource, and then according to the arrange parameter, the target heart beat cycle of the intended application is set so that mesh Mark application can according to target heart beat cycle send heartbeat message, by the situation used in connection with according to intended application and some when At least one of in effect property resource, the heart beat cycle of intended application is rationally set, can be avoided in the prior art due to unnecessary Frequent transmission heartbeat message caused by terminal electric quantity consumption the problem of, it is achieved thereby that reducing the electric quantity consumption of terminal Purpose.
In addition, using technical scheme provided by the invention, by the situation used in connection with according to intended application and some when At least one of in effect property resource, the heart beat cycle of intended application is rationally set, can be avoided in the prior art due to unnecessary Frequent transmission heartbeat message caused by the flow of terminal the problem of wasting, the flow of terminal can be effectively saved.
In addition, using technical scheme provided by the invention, by the situation used in connection with according to intended application and some when At least one of in effect property resource, the reasonable heart beat cycle that intended application is set so that the business service corresponding to intended application User's current operation is substantially met at the time of PUSH message of the device according to transmitted by heartbeat message to be intended to and/or current society Form, can avoid in the prior art the terminal caused by the heartbeat message frequently sent frequently receive user's current root Originally be not concerned with or without time concern pushed information the problem of, the processing load of terminal can be effectively reduced.
【Brief description of the drawings】
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be the present invention some realities Example is applied, for those of ordinary skill in the art, without having to pay creative labor, can also be attached according to these Figure obtains other accompanying drawings.
Fig. 1 is the schematic flow sheet of the acquisition methods for the heart beat cycle that one embodiment of the invention provides;
Fig. 2 is the structural representation of the acquisition device for the heart beat cycle that another embodiment of the present invention provides.
【Embodiment】
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The whole other embodiments obtained under the premise of creative work is not made, belong to the scope of protection of the invention.
It should be noted that terminal involved in the embodiment of the present invention can include but is not limited to mobile phone, individual digital Assistant (Personal Digital Assistant, PDA), radio hand-held equipment, tablet personal computer (Tablet Computer), PC (Personal Computer, PC), MP3 player, MP4 players etc..
In addition, the terms "and/or", only a kind of incidence relation for describing affiliated partner, represents there may be Three kinds of relations, for example, A and/or B, can be represented:Individualism A, while A and B be present, these three situations of individualism B.Separately Outside, character "/" herein, it is a kind of relation of "or" to typically represent forward-backward correlation object.
Fig. 1 is the schematic flow sheet of the acquisition methods for the heart beat cycle that one embodiment of the invention provides, as shown in Figure 1.
101st, the arrange parameter of the heart beat cycle of intended application is obtained, the arrange parameter is included in following parameters at least One:
The service condition of terminal where the intended application;
The current business information of the intended application;
The service condition of other application related to the intended application in terminal where the intended application;And
Ageing resource.
102nd, according to the arrange parameter, the target heart beat cycle of the intended application is set.
After in the target heart beat cycle of the intended application, setting completed, set target heart beat cycle is led to respectively Know to intended application, to cause intended application that according to target heart beat cycle, the heart is sent to service server corresponding to intended application Jump message.
It is understood that set target heart beat cycle can be directly notified to intended application, or can be with Notified to intended application, or can also notified respectively to intended application and target by service server corresponding to intended application Using corresponding service server, the present embodiment is to this without being particularly limited to.
It should be noted that 101 and 102 executive agent can be the application being located locally in terminal, or can be with For plug-in unit or SDK (Software Development Kit, SDK) for being located locally in the application of terminal etc. Functional unit can also be either the setting device in the server of network side or can also be positioned at network side Distributed system, the present embodiment is to this without being particularly limited to.
It is understood that the application can be mounted in the local program (nativeApp) in terminal, or may be used also To be a web page program (webApp) of browser in terminal, the present embodiment is to this without limiting.
So, included by the arrange parameter for the heart beat cycle for obtaining intended application, the arrange parameter in following parameters At least one of:The service condition of terminal where the intended application;The current business information of the intended application;The target Using the service condition of other application related to the intended application in the terminal of place;And ageing resource, and then according to The arrange parameter, the target heart beat cycle of the intended application is set so that intended application can be according to target heart beat cycle Send heartbeat message, by the situation used in connection with according to intended application and some ageing resources at least one of, rationally The heart beat cycle of intended application is set, can be avoided in the prior art caused by unnecessary frequent transmission heartbeat message The problem of electric quantity consumption of terminal, it is achieved thereby that reducing the purpose of the electric quantity consumption of terminal.
Alternatively, in a possible implementation of the present embodiment, in 101, terminal where intended application is obtained Service condition, various ways can be used, the present embodiment is to this without being particularly limited to.
Wherein, the service condition of terminal where intended application, to indicate the intended application of statistics place terminal by user Used situation, the usage time information of intended application place terminal can be included but is not limited to and using in positional information At least one of.For example, terminal where intended application is morning 8 using rush hour:00 and at night 18:00-22:00;Or For another example terminal where intended application is family and family on the road of company using high peak position.
For example, the service condition of the terminal of data acquisition device transmission, the service condition of the terminal can be received Obtained for the intended application according to the historical operating data of the terminal.
Or for another example the historical operating data of the terminal of data acquisition device transmission can be received, according to described The historical operating data of terminal, obtain the service condition of the terminal.
The historical operating data of the terminal can be the data such as the lighting time of the screen of terminal, turned-on position, according to These data, the usage time information of the terminal can be obtained and using at least one in positional information.
Alternatively, in a possible implementation of the present embodiment, in 101, the current industry of intended application is obtained Business information, can use various ways, the present embodiment is to this without being particularly limited to.
Wherein, the current business information of the intended application, currently it is being used by a user indicating intended application Business.For example, novel business etc. in Baidu APP.
For example, the current service identification information of data acquisition device transmission can be received, according to the current business Identification information, obtain the current business information.Wherein, current service identification information, can include but is not limited to apply It is at least one in mark and service identification.For example, in Baidu APP application identities and Baidu APP novel business business mark Know.
Alternatively, in a possible implementation of the present embodiment, in 101, terminal where intended application is obtained The service condition of the upper other application related to the intended application, can use various ways, the present embodiment to this without It is particularly limited to.
Wherein, the service condition of other application related to the intended application in terminal where the intended application, use Situation about being used by a user with other application related to the intended application in terminal where the intended application of instruction statistics. For example, can there are Alipay APP, Unionpay APP etc. to my related other application of wallet business in Baidu APP.
For example, the service condition of the other application of data acquisition device transmission can be received, the other application Service condition is that the intended application obtains according to the historical operating data of the other application.
Or for another example can receive data acquisition device transmission the other application historical operating data, according to The historical operating data of the other application, obtain the service condition of the other application.
The historical operating data of the other application can be the data such as the open frequency of the other application, can obtain The frequency of use information of the other application.
It should be noted that data acquisition device involved in above-mentioned embodiment, can be to be located locally in terminal Application, or can also be the plug-in unit or SDK being located locally in the application i.e. intended application of terminal Functional units such as (Software Development Kit, SDK), the present embodiment is to this without being particularly limited to.
It is understood that the application can be mounted in the local program (nativeApp) in terminal, or may be used also To be a web page program (webApp) of browser in terminal, the present embodiment is to this without limiting.
Alternatively, in a possible implementation of the present embodiment, in 101, ageing resource is obtained, can be adopted With various ways, the present embodiment is to this without being particularly limited to.
Wherein, ageing resource can include but is not limited to emergency information, focus incident information, application version more At least one published in instalments in information of fresh information and novel, the present embodiment is to this without being particularly limited to.Ageing resource goes out Place can include being not limited to the contents such as daily news, forum, video, blog, novel, download, classification information.
For example, the electric business such as valuable resource requirement, Baidu are increased newly for ageing money in order to meet user to internet Source, which has, quickly includes mechanism.In general, ageing resource is to be directed to news report, the information of the focus incident hair of accident The contents such as cloth, the renewal of application version, serial story, its study carefully look as far as the eye can be the sudden of its, the near-end time occur, reported Publish in road.In addition, ageing resource is to be directed to newest resource, rather than replicates and pastes, and puppet is original etc..This kind of ageing resource Engine fast positioning can be searched, then occurs including in a few minutes soon.Therefore, information can be included using above-mentioned, obtains timeliness Property resource.
Alternatively, in a possible implementation of the present embodiment, in following operation can be specifically performed in 102 At least one of, to obtain the first reference cardiac cycle, the second reference cardiac cycle, the 3rd reference cardiac cycle and the 4th reference At least one of in heart beat cycle:
According to the service condition of the terminal, the terminal is obtained in current time and/or the terminal in current location Service condition, according to the terminal in the service condition of current time and/or the terminal in current location, obtain the first ginseng Examine heart beat cycle;
According to the current business information of the intended application, the traffic performance of the current business of the intended application is obtained, According to the traffic performance, the second reference cardiac cycle is obtained;
According to the service condition of the other application, the 3rd reference cardiac cycle is obtained;And
According to ageing resource, the 4th reference cardiac cycle is obtained.
If for example, the terminal frequently uses in current time and/or the terminal in current location, smaller take is set First reference cardiac cycle of value, so, service server can then be sent out according to the heartbeat message frequently received to intended application Send the PUSH message of matching;If the terminal is in current time and/or the terminal in current location substantially without using setting First reference cardiac cycle of larger value, so, service server then can according to the heartbeat message less frequently received, to Intended application sends the PUSH message of matching.
Or if for another example the traffic performance of the current business of the intended application is non-emergent property, larger take is set Second reference cardiac cycle of value, so, service server then can be according to the heartbeat message less frequently received, should to target With the PUSH message for sending matching;If the traffic performance of the current business of the intended application is emergency, smaller take is set Second reference cardiac cycle of value, so, service server can then be sent out according to the heartbeat message frequently received to intended application Send the PUSH message of matching.
Or if for another example the other application frequently uses, the 3rd reference cardiac cycle of smaller value is set, So, service server according to the heartbeat message frequently received, can then send the PUSH message of matching to intended application;If institute Other application is stated substantially without using then setting the 3rd reference cardiac cycle of larger value, so, service server then can root According to the heartbeat message less frequently received, the PUSH message matched is sent to intended application.
Or if for another example the ageing resource obtained is current focus time such as world cup, smaller take is set 4th reference cardiac cycle of value, so, service server can then be sent out according to the heartbeat message frequently received to intended application Send the PUSH message of matching.
Then, then can be according to first reference cardiac cycle, second reference cardiac cycle, the 3rd reference At least one of in heart beat cycle and the 4th reference cardiac cycle, obtain the target heart beat cycle.
For example, first reference cardiac cycle, second reference cardiac cycle, the described 3rd can be utilized to refer to the heart At least one of in hop cycle and the 4th reference cardiac cycle, its arithmetic mean of instantaneous value is calculated, to be used as the target heartbeat Cycle.
Or first reference cardiac cycle, second reference cardiac cycle, the 3rd reference can also be utilized At least one of in heart beat cycle and the 4th reference cardiac cycle, and each self-corresponding weighted value, it is flat to calculate its weighting Average, to be used as the target heart beat cycle.
So so that at the time of PUSH message according to transmitted by heartbeat message of service server corresponding to intended application The current operation intention of user and/or current social form are substantially met, can be avoided in the prior art due to frequently sending Heartbeat message caused by terminal frequently receive user and be currently not concerned with all or the pushed information without time concern Problem, the processing load of terminal can be effectively reduced.
It should be noted that heart beat cycle relies on the configuring condition for the network that heartbeat message is passed through, heart beat cycle is too small, Terminal power consumption can be had a strong impact on, increases network traffics, influences each network element of network and systematic function;, can but heart beat cycle is excessive It can exceed the no data transmission detection time-out time that some network elements are set in network, such as:The fire wall disposed in network or Session retention time of person's network address translation (Network Address Translation, NAT) equipment etc., more than now Between if session always no data transmission if session information can be forced to discharge, so behind all message will all be dropped. Therefore, the maximum of the target heart beat cycle set by execution 101 and 102 is set countless no more than some network elements in network Time-out time is detected according to transmission.
In the present embodiment, the arrange parameter of the heart beat cycle by obtaining intended application, the arrange parameter includes following At least one of in parameter:The service condition of terminal where the intended application;The current business information of the intended application;Institute The service condition of other application related to the intended application in terminal where stating intended application;And ageing resource, enter And according to the arrange parameter, the target heart beat cycle of the intended application is set so that intended application can be according to the target heart Hop cycle sends heartbeat message, passes through at least one in the situation used in connection with according to intended application and some ageing resources , the heart beat cycle of intended application is rationally set, can be avoided in the prior art due to unnecessary frequent transmission heartbeat message The problem of electric quantity consumption of caused terminal, it is achieved thereby that reducing the purpose of the electric quantity consumption of terminal.
In addition, using technical scheme provided by the invention, by the situation used in connection with according to intended application and some when At least one of in effect property resource, the heart beat cycle of intended application is rationally set, can be avoided in the prior art due to unnecessary Frequent transmission heartbeat message caused by the flow of terminal the problem of wasting, the flow of terminal can be effectively saved.
In addition, using technical scheme provided by the invention, by the situation used in connection with according to intended application and some when At least one of in effect property resource, the reasonable heart beat cycle that intended application is set so that the business service corresponding to intended application User's current operation is substantially met at the time of PUSH message of the device according to transmitted by heartbeat message to be intended to and/or current society Form, can avoid in the prior art the terminal caused by the heartbeat message frequently sent frequently receive user's current root Originally be not concerned with or without time concern pushed information the problem of, the processing load of terminal can be effectively reduced.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
Fig. 2 is the structural representation of the acquisition device for the heart beat cycle that another embodiment of the present invention provides, as shown in Figure 2. The acquisition device of the heart beat cycle of the present embodiment can include obtaining unit 21 and setting unit 22.Wherein, obtaining unit 21, use In the arrange parameter for the heart beat cycle for obtaining intended application, the arrange parameter includes at least one in following parameters:It is described The service condition of terminal where intended application;The current business information of the intended application;Where the intended application in terminal The service condition of the other application related to the intended application;And ageing resource;Setting unit 22, for according to Arrange parameter, the target heart beat cycle of the intended application is set.
After in the target heart beat cycle of the intended application, setting completed, set target heart beat cycle is led to respectively Know to intended application, to cause intended application that according to target heart beat cycle, the heart is sent to service server corresponding to intended application Jump message.
It is understood that set target heart beat cycle can be directly notified to intended application, or can be with Notified to intended application, or can also notified respectively to intended application and target by service server corresponding to intended application Using corresponding service server, the present embodiment is to this without being particularly limited to.
It should be noted that the acquisition device for the heart beat cycle that the present embodiment is provided can be to be located locally in terminal Using, or can also be the plug-in unit being located locally in the application of terminal or SDK (Software Development Kit, SDK) etc. functional unit, or can also be setting device in the server of network side, or Person can also be the distributed system positioned at network side, and the present embodiment is to this without being particularly limited to.
It is understood that the application can be mounted in the local program (nativeApp) in terminal, or may be used also To be a web page program (webApp) of browser in terminal, the present embodiment is to this without limiting.
Alternatively, in a possible implementation of the present embodiment, the obtaining unit 21, specifically can be used for connecing The service condition for the terminal that data acquisition device is sent is received, the service condition of the terminal is the intended application according to institute The historical operating data for stating terminal obtains.
Alternatively, in a possible implementation of the present embodiment, the obtaining unit 21, specifically can be used for connecing The historical operating data for the terminal that data acquisition device is sent is received, according to the historical operating data of the terminal, obtains institute State the service condition of terminal.
Alternatively, in a possible implementation of the present embodiment, the obtaining unit 21, specifically can be used for connecing The current service identification information that data acquisition device is sent is received, according to the current service identification information, obtains described work as Preceding business information.
Alternatively, in a possible implementation of the present embodiment, the obtaining unit 21, specifically can be used for connecing The service condition for the other application that data acquisition device is sent is received, the service condition of the other application should for the target Obtained with according to the historical operating data of the other application.
Alternatively, in a possible implementation of the present embodiment, the obtaining unit 21, specifically can be used for connecing The historical operating data for the other application that data acquisition device is sent is received, according to the historical operation number of the other application According to obtaining the service condition of the other application.
Alternatively, in a possible implementation of the present embodiment, the setting unit 22, specifically can be used for holding At least one of in the following operation of row, to obtain the first reference cardiac cycle, the second reference cardiac cycle, the 3rd with reference to heartbeat week At least one of in phase and the 4th reference cardiac cycle:
According to the service condition of the terminal, the terminal is obtained in current time and/or the terminal in current location Service condition, according to the terminal in the service condition of current time and/or the terminal in current location, obtain the first ginseng Examine heart beat cycle;According to the current business information of the intended application, the business for obtaining the current business of the intended application is special Property, according to the traffic performance, obtain the second reference cardiac cycle;According to the service condition of the other application, the 3rd is obtained Reference cardiac cycle;And according to ageing resource, obtain the 4th reference cardiac cycle;According to described first with reference to heartbeat week At least one in phase, second reference cardiac cycle, the 3rd reference cardiac cycle and the 4th reference cardiac cycle , obtain the target heart beat cycle.
It should be noted that method in embodiment corresponding to Fig. 1, the acquisition for the heart beat cycle that can be provided by the present embodiment Device is realized.The related content that may refer in embodiment corresponding to Fig. 1 is described in detail, here is omitted.
In the present embodiment, the arrange parameter of the heart beat cycle of intended application, the arrange parameter are obtained by obtaining unit Including at least one in following parameters:The service condition of terminal where the intended application;The current industry of the intended application Business information;The service condition of other application related to the intended application in terminal where the intended application;And timeliness Property resource, and then by setting unit according to the arrange parameter, the target heart beat cycle of the intended application is set so that target Using heartbeat message can be sent according to target heart beat cycle, pass through the situation used in connection with according to intended application and some timeliness Property resource at least one of, rationally set intended application heart beat cycle, can avoid in the prior art due to unnecessary The problem of frequently sending the electric quantity consumption of the terminal caused by heartbeat message, it is achieved thereby that reducing the mesh of the electric quantity consumption of terminal 's.
In addition, using technical scheme provided by the invention, by the situation used in connection with according to intended application and some when At least one of in effect property resource, the heart beat cycle of intended application is rationally set, can be avoided in the prior art due to unnecessary Frequent transmission heartbeat message caused by the flow of terminal the problem of wasting, the flow of terminal can be effectively saved.
In addition, using technical scheme provided by the invention, by the situation used in connection with according to intended application and some when At least one of in effect property resource, the reasonable heart beat cycle that intended application is set so that the business service corresponding to intended application User's current operation is substantially met at the time of PUSH message of the device according to transmitted by heartbeat message to be intended to and/or current society Form, can avoid in the prior art the terminal caused by the heartbeat message frequently sent frequently receive user's current root Originally be not concerned with or without time concern pushed information the problem of, the processing load of terminal can be effectively reduced.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are causing a computer It is each that equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention The part steps of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various Can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used To be modified to the technical scheme described in foregoing embodiments, or equivalent substitution is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (8)

  1. A kind of 1. acquisition methods of heart beat cycle, it is characterised in that including:
    The arrange parameter of the heart beat cycle of intended application is obtained, the arrange parameter includes at least one in following parameters:
    The service condition of terminal where the intended application;The service condition of terminal where the intended application, including the mesh Mark applies the usage time information of place terminal and using at least one in positional information;
    The current business information of the intended application;
    The service condition of other application related to the intended application in terminal where the intended application;And
    Ageing resource;The ageing resource includes emergency information, focus incident information, the fresh information of application version With at least one published in instalments in information of novel;
    According to the arrange parameter, the target heart beat cycle of the intended application is set;Wherein,
    It is described that the target heart beat cycle of the intended application is set according to the arrange parameter, including:
    At least one in following operation is performed, to obtain the first reference cardiac cycle, the second reference cardiac cycle, the 3rd reference At least one of in heart beat cycle and the 4th reference cardiac cycle:
    According to the service condition of the terminal, obtain the terminal makes in current time and/or the terminal in current location With situation, obtain first in current time and/or the terminal according to the terminal and refer to the heart in the service condition of current location Hop cycle;
    According to the current business information of the intended application, the traffic performance of the current business of the intended application is obtained, according to The traffic performance, obtain the second reference cardiac cycle;
    According to the service condition of the other application, the 3rd reference cardiac cycle is obtained;And
    According to the ageing resource, the 4th reference cardiac cycle is obtained;
    According to first reference cardiac cycle, second reference cardiac cycle, the 3rd reference cardiac cycle and described At least one of in 4th reference cardiac cycle, obtain the target heart beat cycle.
  2. 2. according to the method for claim 1, it is characterised in that the setting ginseng of the heart beat cycle for obtaining intended application Number, including:
    The service condition for the terminal that data acquisition device is sent is received, the service condition of the terminal is the intended application Obtained according to the historical operating data of the terminal;Or
    The historical operating data for the terminal that data acquisition device is sent is received, according to the historical operating data of the terminal, Obtain the service condition of the terminal.
  3. 3. according to the method for claim 1, it is characterised in that the setting ginseng of the heart beat cycle for obtaining intended application Number, including:
    The current service identification information that data acquisition device is sent is received, according to the current service identification information, is obtained The current business information.
  4. 4. according to the method for claim 1, it is characterised in that the setting ginseng of the heart beat cycle for obtaining intended application Number, including:
    The service condition for the other application that data acquisition device is sent is received, the service condition of the other application is described Intended application obtains according to the historical operating data of the other application;Or
    The historical operating data for the other application that data acquisition device is sent is received, is grasped according to the history of the other application Make data, obtain the service condition of the other application.
  5. A kind of 5. acquisition device of heart beat cycle, it is characterised in that including:
    Obtaining unit, the arrange parameter of the heart beat cycle for obtaining intended application, the arrange parameter are included in following parameters At least one of:
    The service condition of terminal where the intended application;The service condition of terminal where the intended application, including the mesh Mark applies the usage time information of place terminal and using at least one in positional information;
    The current business information of the intended application;
    The service condition of other application related to the intended application in terminal where the intended application;And
    Ageing resource;The ageing resource includes emergency information, focus incident information, the fresh information of application version With at least one published in instalments in information of novel;
    Setting unit, for according to the arrange parameter, setting the target heart beat cycle of the intended application;Wherein,
    The setting unit, is specifically used for
    At least one in following operation is performed, to obtain the first reference cardiac cycle, the second reference cardiac cycle, the 3rd reference At least one of in heart beat cycle and the 4th reference cardiac cycle:
    According to the service condition of the terminal, obtain the terminal makes in current time and/or the terminal in current location With situation, obtain first in current time and/or the terminal according to the terminal and refer to the heart in the service condition of current location Hop cycle;
    According to the current business information of the intended application, the traffic performance of the current business of the intended application is obtained, according to The traffic performance, obtain the second reference cardiac cycle;
    According to the service condition of the other application, the 3rd reference cardiac cycle is obtained;And
    According to the ageing resource, the 4th reference cardiac cycle is obtained;
    According to first reference cardiac cycle, second reference cardiac cycle, the 3rd reference cardiac cycle and described At least one of in 4th reference cardiac cycle, obtain the target heart beat cycle.
  6. 6. device according to claim 5, it is characterised in that the obtaining unit, be specifically used for
    The service condition for the terminal that data acquisition device is sent is received, the service condition of the terminal is the intended application Obtained according to the historical operating data of the terminal;Or
    The historical operating data for the terminal that data acquisition device is sent is received, according to the historical operating data of the terminal, Obtain the service condition of the terminal.
  7. 7. device according to claim 5, it is characterised in that the obtaining unit, be specifically used for
    The current service identification information that data acquisition device is sent is received, according to the current service identification information, is obtained The current business information.
  8. 8. device according to claim 5, it is characterised in that the obtaining unit, be specifically used for
    The service condition for the other application that data acquisition device is sent is received, the service condition of the other application is described Intended application obtains according to the historical operating data of the other application;Or
    The historical operating data for the other application that data acquisition device is sent is received, is grasped according to the history of the other application Make data, obtain the service condition of the other application.
CN201410584696.7A 2014-10-27 2014-10-27 The acquisition methods and device of heart beat cycle Active CN104468187B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410584696.7A CN104468187B (en) 2014-10-27 2014-10-27 The acquisition methods and device of heart beat cycle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410584696.7A CN104468187B (en) 2014-10-27 2014-10-27 The acquisition methods and device of heart beat cycle

Publications (2)

Publication Number Publication Date
CN104468187A CN104468187A (en) 2015-03-25
CN104468187B true CN104468187B (en) 2018-03-06

Family

ID=52913598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410584696.7A Active CN104468187B (en) 2014-10-27 2014-10-27 The acquisition methods and device of heart beat cycle

Country Status (1)

Country Link
CN (1) CN104468187B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897813A (en) * 2015-06-10 2016-08-24 乐视致新电子科技(天津)有限公司 Heartbeat message sending method, heartbeat message receiving method, heartbeat message sending device and heartbeat message receiving device
CN106803833A (en) * 2015-11-26 2017-06-06 北京百度网讯科技有限公司 Processing method, the apparatus and system of heartbeat in connection long
CN107517136B (en) * 2016-06-16 2022-08-16 中兴通讯股份有限公司 Method, device and system for realizing heartbeat keep-alive
CN113840361A (en) * 2017-08-07 2021-12-24 杭州青奇科技有限公司 Heartbeat control system for sharing bicycles
CN115884208A (en) * 2021-09-28 2023-03-31 华为技术有限公司 Communication method and communication device
CN114390453B (en) * 2022-02-09 2023-09-08 福建天泉教育科技有限公司 Message pushing optimization method and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209089A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method for obtaining heart beat period, terminal and server
CN103518342A (en) * 2013-04-26 2014-01-15 华为技术有限公司 Transmitting control method and device for heartbeat signal
CN103905257A (en) * 2012-12-24 2014-07-02 中国电信股份有限公司 Method and device for always-online application to adaptively set heartbeat time, and mobile phone terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080165796A1 (en) * 2007-01-05 2008-07-10 International Business Machines Corporation Method for a heartbeat algorithm for a dynamically changing network environment
US8525664B2 (en) * 2009-08-03 2013-09-03 Tyco Safety Products Canada Ltd System and method for minimizing the amount of data being sent on a network for supervised security systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103209089A (en) * 2012-01-17 2013-07-17 华为技术有限公司 Method for obtaining heart beat period, terminal and server
CN103905257A (en) * 2012-12-24 2014-07-02 中国电信股份有限公司 Method and device for always-online application to adaptively set heartbeat time, and mobile phone terminal
CN103518342A (en) * 2013-04-26 2014-01-15 华为技术有限公司 Transmitting control method and device for heartbeat signal

Also Published As

Publication number Publication date
CN104468187A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104468187B (en) The acquisition methods and device of heart beat cycle
CN104283765B (en) A kind of message display method, device and terminal device
CN105786993B (en) functional plug-in recommendation method and device for application program
CN108471376A (en) Data processing method, apparatus and system
CN109656980A (en) Data processing method, electronic equipment, device and readable storage medium storing program for executing
CN108712485A (en) A kind of resource subscription method and apparatus of internet of things equipment
CN104182488A (en) Search method, server and client
CN110225104A (en) Data capture method, device and terminal device
CN104123686A (en) Method, equipment and system for handling business
CN106296135A (en) Event-prompting method, device and terminal
CN103905482B (en) Method, push server and the system of pushed information
CN106060113A (en) Account push method and device
CN106302730A (en) The localization method of anti-loss device and system
CN105045114B (en) A kind of information processing method, cloud service platform and information processing system
CN109075995A (en) The device that performance measurement data for NFV performance management is subscribed to
CN104881788B (en) The data processing method and system of Electricity customers, customer service management platform
Gupta et al. Indian cloud computing research: A scientometric assessment of publications output during 2004-13
CN104243272B (en) A kind of media information method for pushing and device
US20140026066A1 (en) User interaction-based website optimization
CN201985891U (en) System for preventing harassment of strangers in social network
CN105959306A (en) IP address identification method and device
CN104581902A (en) Method and device for accessing wearable equipment to Internet
CN103152382B (en) Towards the multifile concurrent transmission control method of multi-host network
CN106775268A (en) A kind of message display method and equipment
CN103326892B (en) The operating method and device of web interface

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant