A kind of wake up client and the method applying it up
Technical field
The invention belongs to Internet technical field, wake up client and the method applying it up in particular to a kind of.
Background technology
Alarm clock as a kind of waking device in the life of people more and more important.Along with the development of science and technology, such as intelligence
The client that wakes up up of the concrete intelligence alarm clock function such as mobile phone, iPad increasingly becomes the Rouser of necessity in people's life.And
Current wakes up what client was usually fixed by the time point (being typically set to 24h) of reception return data up, and is presetting
The time point receiving return data wake up client up and upload data to service end, and because of some factor (the such as network bandwidth etc.)
When cannot upload data, described in wake up the behavior of client upload data up be exactly idle work, and wake up client up described in causing
The loss of power.Meanwhile, existing client operation pattern (generally comprise intelligence awakening mode, non intelligent awakening mode) is waken up up
The response time of switching be usually point the most at a fixed time.
Summary of the invention
For solving the technological deficiency of the existing response time length waking up client power supply power consumption height, switching working mode up, this
Invent and improve response by whether receiving return data realization its mode of operation of automatic switchover in judging Preset Time cut
The time of the pattern that changes jobs, and reduce by the way of to the heartbeat data packets under intelligence awakening mode and upload data and make because sending
The purpose of the power supply power consumption become.
The invention provides one and wake up client up, including
Passback module is set, for upload wake up instruction up after be received back to pass data time point, the quantity of described time is extremely
Being 1 less, described return data includes turn around time;
Handover module, is used for described in judging waking up uploading of instruction up the most successful, is not process, otherwise calls out described
The present mode of client of waking up switches to intelligence awakening mode;
Very first time adjusting module, for arranging described in module setting according to described passback under described intelligence awakening mode
The time of client is waken up up described in the described return data adjustment that time point receives.
Further, described handover module includes
Wake up up and module is set, wake up the wakeup time of instruction up for arranging execution under described intelligence awakening mode;
Heart beating judge module, is used for judging to wake up whether client heart beating opens up described under described intelligence awakening mode, is
Then according to described heartbeat module time interval perform wake up instruction up, otherwise according to described wake up up arrange module arrange described in call out
The time of waking up performs to wake up instruction up.
Further, described handover module also includes
Connection judgment submodule, for sending heartbeat data packets, the heart returned by described service end to described service end
Jump packet judge described in wake up the connection of client and described service end up and whether disconnect, be then to set up and the leading to of described service end
Letter connects, and otherwise judges that waking up instruction up uploads the most successful.
Further, described handover module includes
First exits module, for judging that described passback arranges whether the quantity of time point that module arranges reaches to preset door
Limit, is to exit described intelligence awakening mode
Second judges submodule, wakes up client up in judging preset time period T described in described intelligence awakening mode
Whether receive return data;
Second exits submodule, if waking up client up described in described intelligence awakening mode in preset time period T
Do not receive return data, then exit intelligence awakening mode.
Further, described time regulating module also includes
GPS locating module, for obtaining the location data in the geographical position waking up client described in location up, described location number
According to including gps time;
Signals collecting submodule, for gathering default fault-signal;
Reset time module, be used for judging whether described signal acquisition module has collected described fault-signal, be then root
According to the time waking up client described in the location data point reuse that described GPS locating module obtains up.
Present invention also offers a kind of application and wake up the intelligent awakening method of client up, comprise the steps:
The time point being received back to pass data after client upload wakes up instruction up, the quantity of described time point is waken up up described in arranging
At least 1, described return data includes turn around time;
Wake up instruction described in judgement up and upload the most successful, be not process, otherwise wake up the current of client up by described
Pattern switches to intelligence awakening mode;
The described return data received according to described time point under described intelligence awakening mode wakes up client up described in adjusting
The time of end.
Further, it is judged that described in wake up instruction up upload whether success, be not process, otherwise wake up client up by described
The present mode of end switches to intelligence awakening mode also to include
Judge to wake up whether client have received return data up described in preset time T under described intelligence awakening mode;
If waking up client described in preset time T up not receive return data, then exit intelligence awakening mode.
Further, it is judged that described in wake up instruction up upload whether success, be not process, otherwise wake up client up by described
The present mode of end switches to intelligence awakening mode also to include
Judge to wake up whether client have received return data up described in preset time T under described intelligence awakening mode;
If waking up client described in preset time T up not receive return data, then exit intelligence awakening mode.
Further, the described return data received according to described time point under described intelligence awakening mode is called out described in adjusting
The time of client of waking up also includes
Gather the fault-signal preset;
Judge whether described signal acquisition module has collected described fault-signal, be, obtain and wake up client up described in location
The location data in the geographical position of end, described location data include gps time, wake up visitor up according to the data point reuse of described location
The time of family end.
Further, it is judged that described in wake up instruction up and upload whether success, be not process, otherwise wake up client up by described
Present mode switch to intelligence awakening mode also include
Judge whether the quantity of the time point receiving return data arranged reaches pre-determined threshold, be to exit described intelligence
Awakening mode.
Further, wake up client described in up and include smart mobile phone, iPad or intelligent meter.
To sum up, the present invention returns one in 24 hours relative to fixing point, can wake up client network bandwidth up in fact described in basis
Border situation selects optimal turn around time point;It is greatly improved response speed by user-defined return data time point;And it is real
Show the purpose realizing receiving according to the time point performing to wake up up instruction return data according to user's request.
Accompanying drawing explanation
Fig. 1 is the structure of block diagram schematic diagram waking up client up of the present invention;
Fig. 2 is the schematic flow sheet of the awakening method waking up client described in application of the present invention up.
Detailed description of the invention
Below by specific embodiment and combine accompanying drawing the present invention is described in further detail.
Receive passback data time interval length to solve the existing client that wakes up up, be unfavorable for improving response switch operating mould
The time of formula, and the technological deficiency that power supply power consumption that data cause is big is uninterruptedly uploaded when not receiving return data, this
The bright one that provides wakes up client up.
Wake up client up include as it is shown in figure 1, the invention provides one
Passback module 10 is set, for upload wake up instruction up after be received back to pass data time point, the number of described time point
Amount at least 1, described return data includes turn around time.
Traditional time interval being received back to pass data after client upload wakes up instruction up that wakes up up is generally 24h, namely
Say, traditional wake up up client send wake up instruction up after 24h just can receive return data.The present invention is arranged by described passback
The setting of module has provided a user with a kind of time point needing to arrange reception return data according to user, shortens to upload waking up finger up
It is received back to after order pass data time.The present invention is found by many experiments data verification, is received back to pass after transmission wakes up up instruction
The time point of data was set to after 4h as the optimal time, without improving response and wake up up time of data, improves and updates
The described purpose waking up client time degree of accuracy up, can also farthest reduce simultaneously described in wake up the power supply merit of client up
Consumption.
Handover module 20, is used for described in judging waking up uploading of instruction up the most successful, is not process, otherwise by described
The present mode waking up client up switches to intelligence awakening mode.
Traditional client switching working mode that wakes up up needs the return data according to receiving to switch over, and generally
Realizing switching working mode after receiving return data after 24h, this wakes up client operation pattern up by reducing described in switching
Response time.In order to solve this defect, the present invention wakes up client upload up by arranging of handover module described in automatic decision
The instruction that wakes up up the most successfully realize the purpose of intelligence switching intelligence awakening mode, thus improve the response of switching working mode
Time.
Very first time adjusting module 30, for arranging, according to described passback under described intelligence awakening mode, the institute that module is arranged
State the time waking up client described in the described return data adjustment that time point receives up.
Further, described handover module also includes
Wake up up and module is set, wake up the wakeup time of instruction up for arranging execution under described intelligence awakening mode;
Heart beating judge module, is used for judging to wake up whether client heart beating opens up described under described intelligence awakening mode, is
Then according to described heartbeat module time interval perform wake up instruction up, otherwise according to described wake up up arrange module arrange described in call out
The time of waking up performs to wake up instruction up.
Further, described handover module also includes
Connection judgment submodule, for sending heartbeat data packets, the heart returned by described service end to described service end
Jump packet judge described in wake up the connection of client and described service end up and whether disconnect, be then to set up and the leading to of described service end
Letter connects, and otherwise judges that waking up instruction up uploads the most successful.The Rule of judgment of described handover module switching intelligence awakening mode is
Described wake up instruction up upload whether success, be not process, otherwise switching intelligence awakening mode, the premise bar of this judgement
Part wakes up client and service end communication connection up described in being, when the described client that wakes up up is not connected with described service end, then described
Wake up instruction up and can not be uploaded to described service end.
Further,
First exits module, for judging that described passback arranges whether the quantity of time point that module arranges reaches to preset door
Limit, is to exit described intelligence awakening mode.
Compare more traditional client that wakes up up, the present invention by described heartbeat module arrange described in wake up up client send the heart
The time interval jumping packet performs to wake up instruction up, otherwise performs to wake up instruction up according to the time point of described reception return data.
The client that wakes up up of the present invention performs to wake up instruction up by different mode of operations, it is therefore intended that by waking up wake instruction up
User.Heartbeat signal refers to send a packet the least to the opposing party interconnected at set intervals, is replied by the other side
Situation judges the method that the bipartite communication link of interconnection is the most already off.The present invention is by arranging described heartbeat module
The time interval of the transmission heartbeat data packets arranged performs to wake up instruction up, it is achieved according to the mesh waking up user up of heartbeat time interval
's.When being embodied as, the time interval of described heart beating is optionally set to any value in 30-480 minute, is to represent the closedown heart when 0
Jump function.The present invention is found by many experiments checking, when the time interval of described heart beating is set to no more than 30min, and energy
The response speed of client is waken up up described in being enough greatly improved.Meanwhile, if do not open (will be between the time of heart beating for described heartbeat module
In time being set to 0), the time that the present invention then arranges module setting according to described passback performs to wake up instruction up, when being embodied as, optional
This time is set to 4h, i.e. 4h performs once to wake up instruction up, and is waken up up instruction and upload the corresponding return data of acquisition.Pass
The time point receiving return data of system is 1, generally 24h, and the present invention arranges module by passback and optionally arranges
Multiple (including 1,2 or more than 2).Described passback arranges the interpolation of module and achieves multiple spot of the present invention passback point
Setting, it is achieved that receive the purpose of return data according to the time point of user setup.It is an object of the invention to improve
The described response efficiency waking up client up, can reduce again described in wake up the purpose of client power supply power consumption up, compare more traditional consolidating
Passback point (receiving the time of return data, generally upload 24h after the waking up instruction up) present invention is set surely and improves response efficiency,
Compare the power consumption for power supply simultaneously and affect little.The present invention is found by lot of experiment validation, receives the time point of return data
Be set to upload that to wake up 4h after instruction up be Best Times, improve response time, make again described in wake up the power supply power consumption of client up
Minimum.
Further, described handover module includes
First exits module, for judging that described passback arranges whether the quantity of time point that module arranges reaches to preset door
Limit, is to exit described intelligence awakening mode;
Second judges submodule, wakes up client up in judging preset time period T described in described intelligence awakening mode
Whether receive return data;
Second exits submodule, if waking up client up described in described intelligence awakening mode in preset time period T
Do not receive return data, then exit intelligence awakening mode.
Traditional time point receiving return data is 1, generally 24h, and the present invention arranges module by passback
Multiple (including 1,2 or more than 2) is optionally set.Described passback arranges the interpolation of module and achieves of the present invention
The setting of multiple spot passback point, it is achieved that receive the purpose of return data according to the time point of user setup.The present invention is provided with two
Plant intelligence awakening mode escape mechanism: 1, the quantity by judging the time point receiving return data of user setup judges;2、
Whether return data is received in judging preset time T.The described client that wakes up up, under intelligence wakes up mode of operation up, performs in real time
Wake up instruction up, and will wake up up and judge whether to be able to receive that corresponding return data after instruction is uploaded.Traditional intelligence is called out
Wake up pattern switching need carry out according to corresponding return data, the present invention by judge preset time T (when being embodied as, can
Choosing be set to 72h) in whether receive return data as release intelligence awakening mode trigger condition, it is achieved intelligence wakes up mould up
The automatic switchover of formula, wakes up the response time of client different working modes described in raising up.When being embodied as, described in wake up client up
End first communication connection judges that submodule judges whether it is connected with described service end, is, judges to wake up whether instruction uploads into up
Merit, if unsuccessful, switches to intelligence awakening mode.The described client that wakes up up is under intelligence awakening mode, if in preset time T
Do not receive return data in (being optionally set to 72h) and then exit intelligence awakening mode, continue through and send to described service end
Whether heartbeat data packets wakes up the communication connection of client and described service end up and disconnects described in being judged as.
Further, wake up client described in up also to include
GPS locating module, for obtaining the location data in the geographical position waking up client described in location up, described location number
According to including gps time;
Signals collecting submodule, for gathering default fault-signal;
Reset time module, be used for judging whether described signal acquisition module has collected described fault-signal, be then root
According to the time waking up client described in the location data point reuse that described GPS locating module obtains up.
When being embodied as, described default fault-signal optionally includes power-off restarting signal, tears the signals such as machine warning open.This
By the second time regulating module, invention judges whether described signal acquisition module has collected described fault-signal, be then basis
Wake up the time of client described in the data point reuse of described GPS location up, do not process.
Present invention also offers and a kind of apply the described intelligent awakening method waking up client up.
As in figure 2 it is shown, described method comprises the steps:
S101, arrange described in wake up up be received back to after client upload wakes up instruction up pass data time point, described time point
Quantity be at least 1, described return data includes turn around time;
S102, judge described in wake up instruction up and upload whether success, be not process, otherwise by the described client that wakes up up
Present mode switches to intelligence awakening mode.
S103, according to the described return data that receives of described time point under described intelligence awakening mode adjust described in wake up up
The time of client.
S102 also includes
The wakeup time performing to wake up up instruction under described intelligence awakening mode is set;
Judge described intelligence awakening mode under, described in wake up whether client heart beating opens up, be then according to described heart beating
Time interval performs to wake up instruction up, otherwise performs to wake up instruction up according to the described wakeup time arranged.
Of the present invention wake up up client enter intelligence awakening mode after, according to described intelligence awakening mode call out
Wake up, both optionally woke up up according to the time interval of the described heart beating waking up client end up, the most optional according to user setup
Receive return data time point wake up up.
Further, S102 also includes
Judge to wake up whether client have received return data up described in preset time T under described intelligence awakening mode;
If waking up client described in preset time T up not receive return data, then exit intelligence awakening mode.
When being embodied as, T is optionally set to 72h by the present invention, and the client entrance intelligence that wakes up up of the present invention wakes up up
Wake up up according to eartbeat interval after pattern or described time point wakes up up.Described wake up up after instruction uploads, if institute in 72h
State and wake up client up and fail to receive return data, then automatically exit from intelligence awakening mode, thus realize between different mode
Switching.
Further, it is judged that described intelligence awakening mode under, described in wake up whether client opens heart beating up, be then according to described
The time interval of heart beating performs to wake up instruction up, otherwise performs to wake up instruction up according to the described time point arranged.
The heretofore described client that wakes up up optionally includes smart mobile phone, iPad, intelligent meter smart machine.
Further, described method also includes
Gather the fault-signal preset;
Judge whether described signal acquisition module has collected described fault-signal, be, obtain and wake up client up described in location
The location data in the geographical position of end, described location data include gps time, wake up visitor up according to the data point reuse of described location
The time of family end.
When being embodied as, the fault-signal that the most optional Real-time Collection of the present invention is preset, the signal such as including power-off restarting, if
Having, utilize GPS location technology to obtain speed and search the location data in the geographical position waking up client up, described location data include GPS
Time, adjust the time of described client according to described gps time, to reach to receive the most in time the purpose of return data.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, that is made any repaiies
Change, equivalent, improvement etc., should be included within the scope of the present invention.