CN105959997A - Heartbeat message transmitting method, heartbeat transmitting device and terminal - Google Patents
Heartbeat message transmitting method, heartbeat transmitting device and terminal Download PDFInfo
- Publication number
- CN105959997A CN105959997A CN201610245391.2A CN201610245391A CN105959997A CN 105959997 A CN105959997 A CN 105959997A CN 201610245391 A CN201610245391 A CN 201610245391A CN 105959997 A CN105959997 A CN 105959997A
- Authority
- CN
- China
- Prior art keywords
- application program
- signal
- detected
- timer time
- heartbeat 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0212—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
- H04W52/0216—Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave using a pre-established activity schedule, e.g. traffic indication frame
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Abstract
The invention provides a heartbeat message transmitting method, a heartbeat transmitting device and a terminal. The heartbeat message transmitting method comprises the steps of detecting a preset indicating signal which has periodicity; in a time segment in which the preset indicating signal is not detected, stopping heartbeat message transmission by a first application, wherein the first application is an already started partial or total application; and when the preset indicating signal is detected, making the first application transmit the heartbeat message. The heartbeat message transmitting method, the heartbeat transmitting device and the terminal have advantages of preventing frequent waking-up of the terminal, reducing electric energy consumption of the terminal and prolonging standby time of the terminal.
Description
Technical field
It relates to computer software technical field, particularly to a kind of heartbeat message sending method,
Device and terminal.
Background technology
At present, the client application major part installed in terminal has message push function, and message pushes away
Send finger service end, with active mode, message is delivered to client.In order to maintain, there is message push function
Connection between client and corresponding service end, above-mentioned client needs periodically to the clothes of its correspondence
Business end sends heartbeat message, to keep the TCP session connection between corresponding service end.Due to difference
The developer of client application or service provider may be different, the most different client applications
The cycle sending heartbeat message may be set different values.
In the related, each have message push function client application at transmission heartbeat message
Time, it is required for the modem modem waking up up in terminal, therefore, multiple different clients in terminal
End application program can wake up modem up in the different moment so that modem is awakened as frequently as those utilized in conventional solutions, and causes end
The consumption of end electricity is accelerated, and shortens the stand-by time of terminal.
Summary of the invention
In order to solve the problems referred to above in correlation technique, the disclosure provide a kind of heartbeat message sending method,
Device and terminal.
First aspect according to disclosure embodiment, it is provided that the sending method of a kind of heartbeat message, including:
Detecting predetermined indication signal, described predetermined indication signal has periodically;
Within the time period being not detected by described predetermined indication signal, the first application program is stoped to send the heart
Jumping message, described first application program is the part or all of application program having turned on;
When described predetermined indication signal being detected, control described first application program and send heartbeat message.
Optionally, described predetermined indication signal includes: the heart beating thread pair of the second predetermined application program
The timer time arriving signal answered, wherein, described second application program with described first application program is
Different application programs.
Optionally, described prevention the first application program sends heartbeat message, including:
When timer time arriving signal being detected, it is judged that the described timer time detected arrives letter
It number it is whether the timer time arriving signal that the heart beating thread of the first application program is corresponding;
If the timer time arriving signal that the heart beating thread of the first application program is corresponding, stop to described
First application program sends triggering command, and described triggering command triggers described first application program and sends heart beating
Message.
Optionally, whether the described timer time arriving signal that described judgement detects is the first application journey
The timer time arriving signal that the heart beating thread of sequence is corresponding, including:
Extract the fisrt feature information of intervalometer corresponding to the described timer time arriving signal detected;
Search the feature letter whether existed in the second feature information prestored with described fisrt feature information matches
Breath;If there is the characteristic information mated with described first timer characteristic information, then detect is described fixed
Time device time arriving signal be the timer time arriving signal that the heart beating thread of the first application program is corresponding.
Optionally, described method also includes:
Obtain the characteristic information of intervalometer corresponding to the heart beating thread of mounted first application program, as
Second feature information;
Store described second feature information.
Optionally, described first application program of described control sends heartbeat message, including:
Sending triggering command to described first application program, described triggering command triggers described first application journey
Sequence sends heartbeat message.
Second aspect according to disclosure embodiment, it is provided that the device of a kind of switch contents, including:
Detection module, is configured to detect predetermined indication signal, and described predetermined indication signal has week
Phase property;
Stop module, be configured to when described detection module is not detected by described predetermined indication signal
Between in section, stop the first application program to send heartbeat message, described first application program is the portion having turned on
Divide or whole application program;
Control module, is configured as described detection module when described predetermined indication signal being detected, control
Make described first application program and send heartbeat message.
Optionally, described predetermined indication signal includes: the heart beating thread pair of the second predetermined application program
The timer time arriving signal answered, wherein, described second application program with described first application program is
Different application programs.
Optionally, described prevention module includes:
Judge submodule, be configured to when timer time arriving signal being detected, it is judged that detect
Whether described timer time arriving signal is the timer time that the heart beating thread of the first application program is corresponding
Arriving signal;
Stop submodule, be configured to determine, at described judgement submodule, the described timer time detected
When arriving signal is timer time arriving signal corresponding to the heart beating thread of the first application program, stop to
Described first application program sends triggering command, and described triggering command triggers described first application program and sends
Heartbeat message.
Optionally, described judgement submodule includes:
Extract submodule, be configured to extract described corresponding the determining of timer time arriving signal detected
Time device fisrt feature information;
Search submodule, be configured to search in the second feature information prestored and whether exist and described extraction
The characteristic information of the fisrt feature information matches that submodule extracts;If existing special with described first timer
Levy the characteristic information of information matches, then the described timer time arriving signal detected is the first application journey
The timer time arriving signal that the heart beating thread of sequence is corresponding.
Optionally, described device also includes:
Acquisition module, is configured to obtain the timing that the heart beating thread of mounted first application program is corresponding
The characteristic information of device, as second feature information;
Memory module, is configured to store described second feature information.
Optionally, described control module includes:
Sending submodule, be configured to send triggering command to described first application program, described triggering refers to
Order triggers described first application program and sends heartbeat message.
The third aspect according to disclosure embodiment, it is provided that a kind of terminal, including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detecting predetermined indication signal, described predetermined indication signal has periodically;
Within the time period being not detected by described predetermined indication signal, the first application program is stoped to send the heart
Jumping message, described first application program is the part or all of application program having turned on;
When described predetermined indication signal being detected, control described first application program and send heartbeat message.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect:
The sending method of the heartbeat message that above-described embodiment of the disclosure provides, by presetting a tool
There is periodic indication signal, and using this indication signal as reference signal, this indication signal detected
Moment, control the part or all of application program that has turned on and send heartbeat message, and be not detected by this
In the time period of indication signal, stop the first application program to send heartbeat message, make all of first application
Program sends heartbeat message with the identical cycle simultaneously.Thus effectively avoid the modem of terminal by frequency
Numerous problem waken up up, decreases the electric quantity consumption of terminal, extends the stand-by time of terminal.
The sending method of the heartbeat message that above-described embodiment of the disclosure provides, by presetting a tool
There is periodic indication signal, and using this indication signal as reference signal, this indication signal detected
Moment, control the part or all of application program that has turned on and send heartbeat message, and be not detected by this
In the time period of indication signal, detection timer time arriving signal, is detecting the first application further
During timer time arriving signal corresponding to the heart beating thread of program, the first application program is stoped to send heart beating
Message.Make all of first application program send heartbeat message with the identical cycle simultaneously.Thus further
Effectively avoid the problem that the modem of terminal is awakened as frequently as those utilized in conventional solutions, decrease the electric quantity consumption of terminal, prolong
Grow the stand-by time of terminal.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe
, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet these public affairs
The embodiment opened, and for explaining the principle of the disclosure together with description.
Fig. 1 is the disclosure stream according to the sending method of a kind of heartbeat message shown in an exemplary embodiment
Cheng Tu;
Fig. 2 is the disclosure sending method according to the another kind of heartbeat message shown in an exemplary embodiment
Flow chart;
Fig. 3 is the disclosure frame according to the dispensing device of a kind of heartbeat message shown in an exemplary embodiment
Figure;
Fig. 4 is the disclosure dispensing device according to the another kind of heartbeat message shown in an exemplary embodiment
Block diagram;
Fig. 5 is the disclosure dispensing device according to the another kind of heartbeat message shown in an exemplary embodiment
Block diagram;
Fig. 6 is the disclosure dispensing device according to the another kind of heartbeat message shown in an exemplary embodiment
Block diagram;
Fig. 7 is the disclosure dispensing device according to the another kind of heartbeat message shown in an exemplary embodiment
Block diagram;
Fig. 8 is the disclosure according to the one of the dispensing device of a kind of heartbeat message shown in an exemplary embodiment
Structural representation.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following
When description relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous
Key element.Embodiment described in following exemplary embodiment does not represent the institute consistent with the disclosure
There is embodiment.On the contrary, they only with as appended claims describes in detail, the one of the disclosure
The example of the apparatus and method that a little aspects are consistent.
The term used in the disclosure is only merely for describing the purpose of specific embodiment, and is not intended to be limiting
The disclosure." a kind of ", " described " of singulative used in disclosure and the accompanying claims book
" it is somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.It is also understood that
Term "and/or" used herein refers to and comprises any of one or more project of listing being associated
Or likely combine.
Although should be appreciated that may use term first, second, third, etc. various to describe in the disclosure
Information, but these information should not necessarily be limited by these terms.These terms only be used for by same type of information that
This distinguishes.Such as, without departing from the scope of this disclosure, the first information can also be referred to as
Two information, similarly, the second information can also be referred to as the first information.Depend on linguistic context, as in this institute
The word that uses " if " can be construed to " ... time " or " when ... " or " in response to determining ".
As it is shown in figure 1, Fig. 1 is the sender according to a kind of heartbeat message shown in an exemplary embodiment
The flow chart of method, the method can apply in terminal.In the present embodiment, in order to make it easy to understand, tie
Conjunction can the terminal unit of set up applications illustrate.It will be understood by those skilled in the art that this
Terminal unit can include but not limited to the mobile terminal device of such as smart mobile phone, Intelligent wearable equipment,
Panel computer, personal digital assistant etc..The method comprises the following steps:
In a step 101, detecting predetermined indication signal, this predetermined indication signal has periodically.
In general, the different application with message push function installed in terminal is to its correspondence
Service end sends the cycle of heartbeat message and may be set different values, but, each have message and push away
The reasonable value sending the cycle of the application program transmission heartbeat message of function can fall within the specific limits.Therefore,
The cycle of application program transmission heartbeat message can take the arbitrary value in this zone of reasonableness, the most each application
The cycle of program transmission heartbeat message is not a fixed value.Therefore, in the present embodiment, for often
Individual application program can preset a unified heartbeat message and send the cycle so that open in terminal
Partly or entirely application program sends heartbeat message simultaneously.
In the present embodiment, can will have periodically in advance, and cycle suitable signal is set as instruction
Signal.This predetermined indication signal is for indicating the application program transmission heartbeat message in terminal, therefore,
The cycle of this predetermined indication signal should be suitable with the cycle sending heartbeat message.As a rule, different
The transmission cycle of the heartbeat message of application program may be different, but all in certain scope, such as, the heart
The transmission cycle jumping message can take the arbitrary value in 2-8 minute interval.Therefore, predetermined indication signal
Cycle can take the arbitrary value in 2-8 minute interval.It is appreciated that the disclosure is to predetermined instruction letter
Number the concrete value aspect in cycle do not limit.
In a kind of implementation of the present embodiment, can choose an application program in advance should as second
By program, this second application program is sent the cycle of heartbeat message as the transmission heart beating of other application program
The benchmark in the cycle of message.Therefore, it can intervalometer corresponding for the heart beating thread of this second application program
Time arriving signal, is set as predetermined indication signal, uses this predetermined indication signal to control in terminal
The part or all of application program having turned on sends heartbeat message.
In the another kind of implementation of the present embodiment, it is also possible to choose or generate other in advance and send the heart
(such as, the cycle is the signal of 3 minutes, or the cycle is 5 minutes to jump the cycle suitable signal of message
Signal etc.) as predetermined indication signal.It is appreciated that predetermined indication signal can also be for other
The signal that cycle is suitable, the disclosure is to not limiting.
In a step 102, within the time period being not detected by predetermined indication signal, stop the first application
Program sends heartbeat message.
In general, the application program installed in terminal some may have message push function, and some is then
Not there is message push function, and, the application program with message push function will
Can periodically send heartbeat message.In the present embodiment, the part or all of application program having turned on is made
It it is the first application program.Wherein, the first application program and the second application program are different application programs.
In a kind of implementation of the present embodiment, if using the heart beating thread correspondence of the second application program
Timer time arriving signal as predetermined indication signal, then in terminal except the second application program with
Outward, other part or all of application program having turned on can be as the first application program.Such as, terminal
In the application program that has turned on all there is push function, then in addition to the second application program, have turned on
Whole application programs can be all as the first application program.The most such as, the application having turned in terminal
Program only part has push function, then, in addition to the second application program, this part having turned on should
Can be as the first application program by program.
In the another kind of implementation of the present embodiment, if using the heart beating thread except the second application program
Corresponding other cyclical signal beyond timer time arriving signal is as predetermined indication signal, then
The part or all of application program having turned in terminal can be as the first application program.Such as, in terminal
The application program having turned on all has push function, then the whole application programs having turned on can be all to make
It it is the first application program.The most such as, the application program having turned in terminal only part has push function,
This certain applications program then having turned on can be as the first application program.
In the present embodiment, in order to make all of first application program send heart beating with the identical cycle simultaneously
Message, within the time period being not detected by predetermined indication signal, needs at the first application program according to former
There is the cycle to send the moment of heartbeat message, stop the first application program to send heartbeat message.
In step 103, when above-mentioned predetermined indication signal being detected, control the first application program and send out
Send heartbeat message.
In the present embodiment, when above-mentioned predetermined indication signal being detected, to all first application programs
Sending triggering command, this triggering command triggers the first application program and sends heartbeat message.
The sending method of the heartbeat message that above-described embodiment of the disclosure provides, by presetting a tool
There is periodic indication signal, and using this indication signal as reference signal, this indication signal detected
Moment, control the part or all of application program that has turned on and send heartbeat message, and be not detected by this
In the time period of indication signal, stop the first application program to send heartbeat message, make all of first application
Program sends heartbeat message with the identical cycle simultaneously.Thus effectively avoid the modem of terminal by frequency
Numerous problem waken up up, decreases the electric quantity consumption of terminal, extends the stand-by time of terminal.
As in figure 2 it is shown, Fig. 2 is according to the sender of the another kind of heartbeat message shown in an exemplary embodiment
The flow chart of method, this embodiment describe in detail stop first application program send heartbeat message process,
The method can apply to, in terminal, comprise the following steps:
In step 201, when timer time arriving signal being detected, it is judged that the intervalometer detected
Whether time arriving signal is the timer time arriving signal that the heart beating thread of the first application program is corresponding.
In general, after application program is opened, one or more alarm intervalometer can be created, each
Intervalometer provides timing services for a mission thread.If this application program has message push function, then
Wherein have the heart beating thread that an intervalometer is this application program and timing services is provided.In the related,
Whenever the timer time arriving signal that heart beating thread application program being detected is corresponding, will be triggered this
Application program sends heartbeat message.
In the present embodiment, first, detection timer time arriving signal.When timer time being detected
During arriving signal, this signal detected is probably the intervalometer that the heart beating thread of the first application program is corresponding
Time arriving signal, it is also possible to the timer time that other mission thread of the first application program is corresponding arrives
Reach signal, it is also possible to any mission thread of other application program in addition to the first application program is corresponding
Timer time arriving signal.Therefore, it is necessary first to judge that whether this signal of detecting is first should
With timer time arriving signal corresponding to the heart beating thread of program.Specifically, first extraction detects
The fisrt feature information of the intervalometer that timer time arriving signal is corresponding.Then, second prestored is searched
Whether characteristic information exists and the characteristic information of fisrt feature information matches.If existing and first timer
The characteristic information of characteristic information coupling, then illustrate that the timer time arriving signal detected is the first application
The timer time arriving signal that the heart beating thread of program is corresponding.Wherein, second feature information be first should
Characteristic information with intervalometer corresponding to the heart beating thread of program.
In general, different alarm intervalometers takes on a different character.In the present embodiment, this spy
Levy and different intervalometers can be distinguished, this feature can be referred to as the mark of intervalometer.Intervalometer
Characteristic information can be the name information of intervalometer, it is also possible to be other character string information etc., these public affairs
The concrete form aspect opening the characteristic information to intervalometer does not limits.
In the present embodiment, the heart beating thread that can store the first application program the most in the terminal is corresponding
The characteristic information of intervalometer, as second feature information.In one implementation, server can obtain
Take the characteristic information of intervalometer corresponding to the heart beating thread of the first application program, then by this feature information with
The storage that the first corresponding application program is associated.When this first application program of terminal downloads, together with
Time get the characteristic information of intervalometer corresponding to the heart beating thread of this first application program.Install this first
Application program, and store features described above information.
In step 202., if timer time corresponding to the heart beating thread of the first application program arrives letter
Number, stop and send triggering command to the first application program.
In the present embodiment, above-mentioned triggering command triggers the first application program and sends heartbeat message.Concrete next
Say, if to be other mission thread of the first application program corresponding for the timer time arriving signal detected
Timer time arriving signal, or any of other application program in addition to the first application program
The timer time arriving signal that business thread is corresponding, then need not intervene it.If this signal is
The timer time arriving signal that the heart beating thread of one application program is corresponding, then explanation current time be this
One application program sends the moment of heartbeat message according to the original cycle.If it not being intervened, this signal
The system that can trigger sends triggering command to above-mentioned first application program, to control the first application program transmission heart
Jump message.In the present embodiment, in order to make all of first application program send with the identical cycle simultaneously
Heartbeat message, needs the timer time the heart beating thread the first application program being detected is corresponding to arrive letter
Number time, stop to first application program send above-mentioned triggering command.
The sending method of the heartbeat message that above-described embodiment of the disclosure provides, by presetting a tool
There is periodic indication signal, and using this indication signal as reference signal, this indication signal detected
Moment, control the part or all of application program that has turned on and send heartbeat message, and be not detected by this
In the time period of indication signal, detection timer time arriving signal, is detecting the first application further
During timer time arriving signal corresponding to the heart beating thread of program, the first application program is stoped to send heart beating
Message.Make all of first application program send heartbeat message with the identical cycle simultaneously.Thus further
Effectively avoid the problem that the modem of terminal is awakened as frequently as those utilized in conventional solutions, decrease the electric quantity consumption of terminal, prolong
Grow the stand-by time of terminal.
Although it should be noted that, describe the operation of the inventive method in the accompanying drawings with particular order, but,
This does not requires that or implies and must according to this particular order to perform these operations, or have to carry out complete
Operation shown in portion could realize desired result.On the contrary, the step described in flow chart can change to be held
Row order.Additionally or alternatively, it is convenient to omit some step, multiple steps are merged into a step
Perform, and/or a step is decomposed into the execution of multiple step.
Corresponding with the sending method embodiment of aforementioned heartbeat message, the disclosure additionally provides heartbeat message
Dispensing device and the embodiment of terminal applied thereof.
As it is shown on figure 3, Fig. 3 is that the disclosure is according to a kind of heartbeat message shown in an exemplary embodiment
Dispensing device block diagram, this device includes: detection module 301, stops module 302 and control module 303.
Wherein, detection module 301, it is configured to detect predetermined indication signal, this predetermined instruction letter
Number have periodically.
Stop module 302, be configured to be not detected by above-mentioned predetermined indication signal at detection module 301
Time period in, stop first application program send heartbeat message, this first application program is have turned on
Partly or entirely application program.
Control module 303, is configured as detection module 301 when above-mentioned predetermined indication signal being detected,
Control the first application program and send heartbeat message.
In some optional embodiments, predetermined indication signal may include that the second predetermined application journey
The timer time arriving signal that the heart beating thread of sequence is corresponding, wherein, described second application program is with described
First application program is different application program.
As shown in Figure 4, Fig. 4 is that the disclosure is according to the another kind of heartbeat message shown in an exemplary embodiment
Dispensing device block diagram, this embodiment on the basis of aforementioned embodiment illustrated in fig. 3, stop module 302
May include that and judge submodule 401 and stop submodule 402.
Wherein, it is judged that submodule 401, it is configured to, when timer time arriving signal being detected, sentence
Whether the disconnected above-mentioned timer time arriving signal detected is that the heart beating thread of the first application program is corresponding
Timer time arriving signal.
Stop submodule 402, be configured to judging that submodule 401 determines the above-mentioned intervalometer detected
When time arriving signal is timer time arriving signal corresponding to the heart beating thread of the first application program, resistance
Only sending triggering command to the first application program, this triggering command triggers the first application program and sends heart beating report
Literary composition.
As it is shown in figure 5, Fig. 5 is that the disclosure is according to the another kind of heartbeat message shown in an exemplary embodiment
Dispensing device block diagram, this embodiment is on the basis of aforementioned embodiment illustrated in fig. 4, it is judged that submodule 401
May include that extraction submodule 501 and search submodule 502.
Wherein, extract submodule 501, be configured to extract the above-mentioned timer time detected and arrive letter
The fisrt feature information of number corresponding intervalometer.
Search submodule 502, be configured to search in the second feature information prestored whether exist with extract
The characteristic information of the fisrt feature information matches that submodule 501 extracts, if existing and above-mentioned first timing
The characteristic information of device characteristic information coupling, then the timer time arriving signal detected is the first application journey
The timer time arriving signal that the heart beating thread of sequence is corresponding.Wherein, above-mentioned second feature information is first
The characteristic information of the intervalometer that the heart beating thread of application program is corresponding.
As shown in Figure 6, Fig. 6 is that the disclosure is according to the another kind of heartbeat message shown in an exemplary embodiment
Dispensing device block diagram, this embodiment is on the basis of aforementioned embodiment illustrated in fig. 3, and this device is all right
Farther include: acquisition module 304 and memory module 305.
Wherein, acquisition module 304, it is configured to obtain the heart beating thread of mounted first application program
The characteristic information of corresponding intervalometer, as second feature information.
Memory module 305, is configured to store above-mentioned second feature information.
As it is shown in fig. 7, Fig. 7 is that the disclosure is according to the another kind of heartbeat message shown in an exemplary embodiment
Dispensing device block diagram, this embodiment on the basis of aforementioned embodiment illustrated in fig. 3, control module 303
May include that transmission submodule 701.Wherein, send submodule 701, be configured to the first application journey
Sequence sends triggering command, and this triggering command triggers the first application program and sends heartbeat message.
Should be appreciated that said apparatus can pre-set in the terminal, it is also possible to by modes such as downloads
It is loaded in terminal.Corresponding units in said apparatus can cooperate to realize with the unit in terminal
The scheme of switch contents.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part ginseng
See that the part of embodiment of the method illustrates.Device embodiment described above is only schematically,
The wherein said unit illustrated as separating component can be or may not be physically separate, makees
The parts shown for unit can be or may not be physical location, i.e. may be located at a place,
Or can also be distributed on multiple NE.Can select according to the actual needs part therein or
The whole module of person realizes the purpose of disclosure scheme.Those of ordinary skill in the art are not paying creativeness
In the case of work, i.e. it is appreciated that and implements.
Accordingly, the disclosure also provides for a kind of terminal, and this terminal includes processor;For storing process
The memorizer of device executable instruction;Wherein, this processor is configured to:
Detecting predetermined indication signal, described predetermined indication signal has periodically;
Within the time period being not detected by described predetermined indication signal, the first application program is stoped to send the heart
Jumping message, described first application program is the part or all of application program having turned on;
When described predetermined indication signal being detected, control described first application program and send heartbeat message.
Fig. 8 is a knot of the dispensing device 800 according to a kind of heartbeat message shown in an exemplary embodiment
Structure schematic diagram.Such as, device 800 can be mobile phone, computer, digital broadcast terminal, message
Transceiver, game console, tablet device, armarium, body-building equipment, personal digital assistant etc..
With reference to Fig. 8, device 800 can include following one or more assembly: processes assembly 802, storage
Device 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, input/output (I/O)
Interface 812, sensor cluster 814, and communications component 816.
Process assembly 802 and generally control the integrated operation of device 800, such as with display, call,
The operation that data communication, camera operation and record operation are associated.Treatment element 802 can include one
Or multiple processor 820 performs instruction, to complete all or part of step of above-mentioned method.Additionally,
Process assembly 802 and can include one or more module, it is simple to process between assembly 802 and other assemblies
Mutual.Such as, process assembly 802 and can include multi-media module, to facilitate multimedia groupware 808
And process between assembly 802 mutual.
Memorizer 804 is configured to store various types of data to support the operation at device 800.This
The example of a little data includes any application program for operation on device 800 or the instruction of method, connection
It is personal data, telephone book data, message, picture, video etc..Memorizer 804 can be by any type
Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM
(SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is read-only
Memorizer (EPROM), programmable read only memory (PROM), read only memory (ROM),
Magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 806 is device 800 provide electric power.Power supply module 806 can include
Power-supply management system, one or more power supplys, and other with generate for device 800, manage and distribute electricity
The assembly that power is associated.
One output interface of offer that multimedia groupware 808 is included between described device 800 and user
Screen.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).
If screen includes that touch panel, screen may be implemented as touch screen, to receive the input from user
Signal.Touch panel includes that one or more touch sensor touches with sensing, slides and on touch panel
Gesture.Described touch sensor can not only sense touch or the border of sliding action, but also detects
The persistent period relevant to described touch or slide and pressure.In certain embodiments, multimedia group
Part 808 includes a front-facing camera and/or post-positioned pick-up head.When device 800 is in operator scheme, as
When screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive the multimedia of outside
Data.Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have
Focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.Such as, audio-frequency assembly 810 wraps
Include a mike (MIC), when device 800 is in operator scheme, such as call model, logging mode
During with speech recognition mode, mike is configured to receive external audio signal.The audio signal received
Can be further stored at memorizer 804 or send via communications component 816.In certain embodiments,
Audio-frequency assembly 810 also includes a speaker, is used for exporting audio signal.
I/O interface 812 provides interface, above-mentioned periphery for processing between assembly 802 and peripheral interface module
Interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: homepage is pressed
Button, volume button, start button and locking press button.
Sensor cluster 814 includes one or more sensor, for providing various aspects for device 800
State estimation.Such as, what sensor cluster 814 can detect device 800 opens/closed mode,
The relative localization of assembly, the most described assembly is display and the keypad of device 800, sensor cluster
814 position changes that can also detect device 800 or 800 1 assemblies of device, user and device 800
The presence or absence of contact, device 800 orientation or acceleration/deceleration and the variations in temperature of device 800.Pass
Sensor assembly 814 can include proximity transducer, is configured to when not having any physical contact examine
The existence of object near surveying.Sensor cluster 814 can also include optical sensor, such as CMOS or CCD
Imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814
Can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer, microwave passes
Sensor or temperature sensor.
Communications component 816 is configured to facilitate wired or wireless mode between device 800 and other equipment
Communication.Device 800 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or
Combinations thereof.In one exemplary embodiment, communications component 816 via broadcast channel receive from
The broadcast singal of external broadcasting management system or broadcast related information.In one exemplary embodiment, institute
State communications component 816 and also include near-field communication (NFC) module, to promote junction service.Such as, exist
NFC module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, super
Broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 800 can be by one or more application specific integrated circuits
(ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), can compile
Journey logical device (PLD), field programmable gate array (FPGA), controller, microcontroller, micro-
Processor or other electronic components realize, and are used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage including instruction is additionally provided
Medium, such as, include the memorizer 804 of instruction, and above-mentioned instruction can be held by the processor 820 of device 800
Row is to complete said method.Such as, described non-transitory computer-readable recording medium can be ROM,
Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to this
Other embodiment disclosed.The application is intended to any modification, purposes or the adaptability of the disclosure
Change, these modification, purposes or adaptations are followed the general principle of the disclosure and include these public affairs
Open undocumented common knowledge in the art or conventional techniques means.Description and embodiments only by
Being considered as exemplary, the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure be not limited to described above and illustrated in the accompanying drawings accurately
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by institute
Attached claim limits.
Claims (11)
1. the sending method of a heartbeat message, it is characterised in that described method includes:
Detecting predetermined indication signal, described predetermined indication signal has periodically;
Within the time period being not detected by described predetermined indication signal, the first application program is stoped to send the heart
Jumping message, described first application program is the part or all of application program having turned on;
When described predetermined indication signal being detected, control described first application program and send heartbeat message.
Method the most according to claim 1, it is characterised in that described predetermined indication signal includes:
The timer time arriving signal that the heart beating thread of the second predetermined application program is corresponding, wherein, described
Two application programs are different application programs from described first application program.
Method the most according to claim 1, it is characterised in that described prevention the first application program is sent out
Send heartbeat message, including:
When timer time arriving signal being detected, it is judged that the described timer time detected arrives letter
It number it is whether the timer time arriving signal that the heart beating thread of the first application program is corresponding;
If the timer time arriving signal that the heart beating thread of the first application program is corresponding, stop to described
First application program sends triggering command, and described triggering command triggers described first application program and sends heart beating
Message.
Method the most according to claim 3, it is characterised in that it is described fixed that described judgement detects
Time device time arriving signal be whether that the timer time that the heart beating thread of the first application program is corresponding arrives letter
Number, including:
Extract the fisrt feature information of intervalometer corresponding to the described timer time arriving signal detected;
Search the feature letter whether existed in the second feature information prestored with described fisrt feature information matches
Breath;If there is the characteristic information mated with described first timer characteristic information, then detect is described fixed
Time device time arriving signal be the timer time arriving signal that the heart beating thread of the first application program is corresponding.
Method the most according to claim 4, it is characterised in that described method also includes:
Obtain the characteristic information of intervalometer corresponding to the heart beating thread of mounted first application program, as
Second feature information;
Store described second feature information.
6. the dispensing device of a heartbeat message, it is characterised in that described device includes:
Detection module, is configured to detect predetermined indication signal, and described predetermined indication signal has week
Phase property;
Stop module, be configured to when described detection module is not detected by described predetermined indication signal
Between in section, stop the first application program to send heartbeat message, described first application program is the portion having turned on
Divide or whole application program;
Control module, is configured as described detection module when described predetermined indication signal being detected, control
Make described first application program and send heartbeat message.
Device the most according to claim 6, it is characterised in that described predetermined indication signal includes:
The timer time arriving signal that the heart beating thread of the second predetermined application program is corresponding, wherein, described
Two application programs are different application programs from described first application program.
Device the most according to claim 6, it is characterised in that described prevention module includes:
Judge submodule, be configured to when timer time arriving signal being detected, it is judged that detect
Whether described timer time arriving signal is the timer time that the heart beating thread of the first application program is corresponding
Arriving signal;
Stop submodule, be configured to determine, at described judgement submodule, the described timer time detected
When arriving signal is timer time arriving signal corresponding to the heart beating thread of the first application program, stop to
Described first application program sends triggering command, and described triggering command triggers described first application program and sends
Heartbeat message.
Device the most according to claim 8, it is characterised in that described judgement submodule includes:
Extract submodule, be configured to extract described corresponding the determining of timer time arriving signal detected
Time device fisrt feature information;
Search submodule, be configured to search in the second feature information prestored and whether exist and described extraction
The characteristic information of the fisrt feature information matches that submodule extracts;If existing special with described first timer
Levy the characteristic information of information matches, then the described timer time arriving signal detected is the first application journey
The timer time arriving signal that the heart beating thread of sequence is corresponding.
Device the most according to claim 9, it is characterised in that described device also includes:
Acquisition module, is configured to obtain the timing that the heart beating thread of mounted first application program is corresponding
The characteristic information of device, as second feature information;
Memory module, is configured to store described second feature information.
11. 1 kinds of terminals, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Detecting predetermined indication signal, described predetermined indication signal has periodically;
Within the time period being not detected by described predetermined indication signal, the first application program is stoped to send the heart
Jumping message, described first application program is the part or all of application program having turned on;
When described predetermined indication signal being detected, control described first application program and send heartbeat message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610245391.2A CN105959997B (en) | 2016-04-19 | 2016-04-19 | Sending method, device and the terminal of heartbeat message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610245391.2A CN105959997B (en) | 2016-04-19 | 2016-04-19 | Sending method, device and the terminal of heartbeat message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105959997A true CN105959997A (en) | 2016-09-21 |
CN105959997B CN105959997B (en) | 2019-06-18 |
Family
ID=56917947
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610245391.2A Active CN105959997B (en) | 2016-04-19 | 2016-04-19 | Sending method, device and the terminal of heartbeat message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105959997B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115087087A (en) * | 2021-03-15 | 2022-09-20 | 中国电信股份有限公司 | Service synchronization method, dual-card terminal and non-transitory computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102523178A (en) * | 2011-12-20 | 2012-06-27 | 华为技术有限公司 | Push-based heartbeat message sending method and terminal |
US20120188928A1 (en) * | 2009-09-29 | 2012-07-26 | Lenovo (Beijing) Co., Ltd. | Method for maintaining connection between terminal and network server, terminal and network server |
CN102685768A (en) * | 2011-03-08 | 2012-09-19 | 华为技术有限公司 | Processing method of heartbeat message, acquisition method of heartbeat period and access network equipment |
EP2621145A1 (en) * | 2012-01-26 | 2013-07-31 | Samsung Electronics Co., Ltd | Packet transmission method and apparatus of mobile terminal |
CN104412649A (en) * | 2014-06-18 | 2015-03-11 | 华为技术有限公司 | Heartbeat adjusting method, device and terminal |
-
2016
- 2016-04-19 CN CN201610245391.2A patent/CN105959997B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120188928A1 (en) * | 2009-09-29 | 2012-07-26 | Lenovo (Beijing) Co., Ltd. | Method for maintaining connection between terminal and network server, terminal and network server |
CN102685768A (en) * | 2011-03-08 | 2012-09-19 | 华为技术有限公司 | Processing method of heartbeat message, acquisition method of heartbeat period and access network equipment |
CN102523178A (en) * | 2011-12-20 | 2012-06-27 | 华为技术有限公司 | Push-based heartbeat message sending method and terminal |
EP2621145A1 (en) * | 2012-01-26 | 2013-07-31 | Samsung Electronics Co., Ltd | Packet transmission method and apparatus of mobile terminal |
CN104412649A (en) * | 2014-06-18 | 2015-03-11 | 华为技术有限公司 | Heartbeat adjusting method, device and terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115087087A (en) * | 2021-03-15 | 2022-09-20 | 中国电信股份有限公司 | Service synchronization method, dual-card terminal and non-transitory computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105959997B (en) | 2019-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104239094B (en) | Control method, device and the terminal device of background application | |
CN104657057A (en) | Terminal waking method and device | |
CN104391635A (en) | Device and method for unlocking screen | |
CN105549849A (en) | Method and device for processing misoperation instruction | |
CN106488335A (en) | Live-broadcast control method and device | |
CN106598393A (en) | Split-screen display method and device | |
CN104378441A (en) | Schedule creating method and device | |
CN105404382A (en) | Power saving mode setting method and apparatus | |
CN105607834A (en) | Screen control method and apparatus as well as terminal | |
CN104933170A (en) | Information exhibition method and device | |
CN104298547A (en) | Terminal setting method and device | |
CN105975301A (en) | Memory cleaning method and device, and electronic equipment | |
CN105979088A (en) | Message pushing method and device | |
CN105807894A (en) | Processing method and device of lock holding of application | |
CN105912204A (en) | Method and device for starting up application interface | |
CN106231072A (en) | The control method of prompting message, device and terminal unit | |
CN104461358A (en) | Method and device for lightening screen | |
CN106210258A (en) | Web access method and device | |
CN105159434A (en) | Time display method, device and terminal | |
CN105204712A (en) | Method and device for displaying icons of folder | |
CN105607979A (en) | Network interconnection control method and device | |
CN105426065A (en) | Browsing position marking method and device | |
CN107371222A (en) | Virtual card prohibited method and device | |
CN107885308A (en) | Electricity saving method and device | |
CN105959997A (en) | Heartbeat message transmitting method, heartbeat transmitting device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |