CN104917581B - Bearing calibration, device, terminal and the router of system time - Google Patents
Bearing calibration, device, terminal and the router of system time Download PDFInfo
- Publication number
- CN104917581B CN104917581B CN201510368069.4A CN201510368069A CN104917581B CN 104917581 B CN104917581 B CN 104917581B CN 201510368069 A CN201510368069 A CN 201510368069A CN 104917581 B CN104917581 B CN 104917581B
- Authority
- CN
- China
- Prior art keywords
- time
- information
- resting state
- temporal information
- current
- 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
Links
Landscapes
- Electric Clocks (AREA)
Abstract
The disclosure is directed to the bearing calibration of system time, device, terminal and router, this method includes:When being waken up from resting state, current time information is obtained by way of reading beyond system time;Present system time is corrected based on the current time information.Using the embodiment of the present disclosure, terminal or router can obtain current time information, and the correction present system time of the temporal information based on acquisition when being waken up from resting state.Because in the dormant state, system clock is stopped, when being waken up from resting state, the inaccurate time can cause occur mistake in control logic.Thus terminal or router from resting state wake up when, it is necessary to first current time, and update the system time be obtained in a manner of reading beyond system time, to ensure the accuracy in the accuracy of system time, and control logic.
Description
Technical field
This disclosure relates to network communication technology field, more particularly to a kind of bearing calibration of system time, device, terminal and
Router.
Background technology
In order to reduce the power consumption of system, currently used way be make equipment MCU (Microcontroller Unit,
Micro-control unit) when no business needs processing enter resting state, when there is business to need to handle again from resting state
Wake up.
In correlation technique, the time of many embedded systems all relies on system systick (heartbeat timer), i.e. system
Elapsed time clock.But when MCU enters resting state, CPU (Central Processing Unit, CPU) and
The clock of peripheral control unit can all stop, that is to say, that heartbeat timer can also be stopped, then when MCU is from resting state
When waking up, clock mistake at this moment, so as to which the mistake in some control logics can be caused.
The content of the invention
Present disclose provides a kind of bearing calibration of system time, device, terminal and router, to solve in correlation technique
When equipment enters dormancy, system clock can stop, equipment from resting state wake up after system time inaccuracy bring
Problem.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of bearing calibration of system time, including:
When being waken up from resting state, current time information is obtained by way of reading beyond system time;
Present system time is corrected based on the current time information.
Optionally, it is described waken up from resting state before, methods described also includes:
The temporal information of resting state will be entered by obtaining;
The starting counter value of real-time clock is set based on the temporal information that enter resting state;
When entering resting state, the real-time clock is started counting up based on the starting counter value.
Optionally, it is described to obtain current time information by way of reading beyond system time, including:
Read the current count value that the real-time clock starts counting up to obtain based on the starting counter value;
Current time information is worth to according to the current count.
Optionally, described to enter before resting state, methods described also includes:
The temporal information of resting state will be entered by obtaining;
The dormancy time length of the resting state will be entered by obtaining;
To enter the temporal information of resting state and the dormancy time length described in corresponding storage.
Optionally, it is described to obtain current time information by way of reading beyond system time, including:
The temporal information of resting state and the dormancy time length will be entered by reading the described of storage;
To show that current time is believed into the temporal information of resting state and the dormancy time length computation based on described
Breath.
Optionally, the acquisition will include into the temporal information of resting state:
Read temporal information of system time when entering resting state as resting state to be entered.
Optionally, the acquisition will enter the temporal information of resting state, including:
In resting state to be entered, time acquisition request is sent to the equipment by network connection;
Receive the temporal information that enter resting state that the equipment obtains request return based on the time.
Optionally, the acquisition will enter the temporal information of resting state, including:
In resting state to be entered, time request information is sent to satellite;
The time service information returned based on the satellite, obtains the temporal information of resting state to be entered.
Optionally, it is described to obtain current time information by way of reading beyond system time, including:
Time acquisition request is sent to the equipment by network connection;
Receive the current time information that the equipment obtains request return based on the time.
Optionally, it is described to obtain current time information by way of reading beyond system time, including:
Time request information is sent to satellite;
The time service information returned based on the satellite, obtains current time information.
Optionally, it is described based on current time information correction present system time, including:
The present system time is revised as the current time information.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of means for correcting of system time, including:
Current time information acquisition module, during for being waken up from resting state, by way of reading beyond system time
Obtain current time information;
System time correction module, for correcting present system time based on the current time information.
Optionally, described device also includes:
First dormancy time acquisition module, the temporal information of resting state is entered for obtaining;
Setup module, for setting the initial count of real-time clock based on the temporal information that enter resting state
Value;
Counting module, for when entering resting state, the real-time clock to be started counting up based on the starting counter value.
Optionally, the current time information acquisition module includes:
First reading submodule, worked as reading the real-time clock based on what the starting counter value started counting up to obtain
Preceding count value;
Very first time information obtains submodule, for being worth to current time information according to the current count.
Optionally, described device also includes:
Second dormancy time acquisition module, the temporal information of resting state is entered for obtaining;
Dormancy time length acquisition module, the dormancy time length of the resting state is entered for obtaining;
Memory module, for enter the temporal information and dormancy time length of resting state described in corresponding storage
Degree.
Optionally, the current time information acquisition module includes:
Second reading submodule, when entering the temporal information of resting state and the dormancy described in storage for reading
Between length;
Calculating sub module, for enter the temporal information of resting state and the dormancy time length computation based on described
Draw current time information.
Optionally, the dormancy time acquisition module includes:
System time reading submodule, system time conduct when entering resting state for reading will enter dormancy shape
The temporal information of state.
Optionally, the dormancy time acquisition module includes:
The very first time obtains request-to-send submodule, in resting state to be entered, to setting by network connection
Preparation send the time to obtain request;
Very first time information receiving submodule, entering for request return is obtained based on the time for receiving the equipment
Enter the temporal information of resting state.
Optionally, the dormancy time acquisition module includes:
Very first time solicited message sending submodule, in resting state to be entered, time request to be sent to satellite
Information;
Second temporal information obtains submodule, for the time service information returned based on the satellite, obtains dormancy to be entered
The temporal information of state.
Optionally, the current time information acquisition module includes:
Second time obtained request-to-send submodule, for sending time acquisition request to the equipment by network connection;
Second temporal information receiving submodule, the current of request return is obtained based on the time for receiving the equipment
Temporal information.
Optionally, the current time information acquisition module includes:
Second time request information sending submodule, for sending time request information to satellite;
3rd temporal information obtains submodule, for the time service information returned based on the satellite, obtains current time letter
Breath.
Optionally, the system time correction module includes:
Submodule is changed, for the present system time to be revised as into the current time information.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of terminal, including:Processor;Can for storing processor
The memory of execute instruction;Wherein, the processor is configured as:
When being waken up from resting state, current time information is obtained by way of reading beyond system time;
Present system time is corrected based on the current time information.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of router, including:Processor;For storing processor
The memory of executable instruction;Wherein, the processor is configured as:
When being waken up from resting state, current time information is obtained by way of reading beyond system time;
Present system time is corrected based on the current time information.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Terminal or router can obtain current time information when being waken up from resting state in the disclosure, and based on acquisition
Temporal information correction present system time.Because in the dormant state, system clock is stopped, waken up when from resting state
When, the inaccurate time can cause occur mistake in control logic.Thus terminal or router from resting state wake up when, it is necessary to
Current time, and update the system time first are obtained in a manner of reading beyond system time, to ensure the accurate of system time
Property, and the accuracy in control logic.
Terminal or router can obtain the time letter that enter resting state before resting state is entered in the disclosure
Cease, then the starting counter value using the temporal information as real-time clock.Because real-time clock only needs extremely low delivery just
It can remain on, power consumption is extremely low, and the operation of real-time clock is not interfered with after terminal or router enter resting state yet,
And real-time clock can provide very reliable gate time, therefore, it is possible to wake up it by real-time clock to obtain dormancy
Correct time afterwards.
Terminal or router can be stopped based on into time during resting state and dormancy time length in the disclosure
Dormancy calculates current time information after waking up, so as to be based only upon simple operation, external equipment can realizes system without since
The accurate correction of system time.
In the disclosure, terminal or router can obtain precise time information to satellite, make before resting state is entered
For the temporal information of resting state to be entered.Terminal or router can obtain accurate after resting state is entered to satellite
Temporal information, as the accurate time information waken up from resting state, system time is corrected with this.
Terminal or router can obtain current time information to by the equipment of network connection in the disclosure, such as service
Device, such as other-end, it is achieved in the correction to system time.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure
Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of bearing calibration flow chart of system time of the disclosure according to an exemplary embodiment.
Fig. 2 is a kind of correct application schematic diagram of a scenario of system time of the disclosure according to an exemplary embodiment.
Fig. 3 is a kind of means for correcting block diagram of system time of the disclosure according to an exemplary embodiment.
Fig. 4 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Fig. 5 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Fig. 6 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Fig. 7 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Fig. 8 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Fig. 9 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Figure 10 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Figure 11 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Figure 12 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Figure 13 is the means for correcting block diagram of another system time of the disclosure according to an exemplary embodiment.
Figure 14 is an a kind of knot of means for correcting for system time of the disclosure according to an exemplary embodiment
Structure schematic diagram.
Figure 15 is the one of the means for correcting that another kind of the disclosure according to an exemplary embodiment is used for system time
Structural representation.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended
The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
It is only merely for the purpose of description specific embodiment in the term that the disclosure uses, and is not intended to be limiting the disclosure.
" one kind " of singulative used in disclosure and the accompanying claims book, " described " and "the" are also intended to including majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wrapped
Containing the associated list items purpose of one or more, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the disclosure
A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, do not departing from
In the case of disclosure scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on linguistic context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determining ".
As shown in figure 1, Fig. 1 is a kind of time-correcting method flow chart according to an exemplary embodiment, this method
It can be used in terminal can be used in router, comprise the following steps:
Step 101, from resting state wake up when, obtain current time information by way of reading beyond system time.
As a kind of smart routing devices, it not only has traditional routing function for router in the disclosure, can be with
Further comprise SOS and disk, the storage size of the disk can flexibly be set as needed, for example, setting
It is set to 1T;Terminal in the disclosure can be any intelligent terminal with function of surfing the Net, for example, can be specially mobile phone, flat
Plate computer, PDA (Personal Digital Assistant, personal digital assistant) etc..Wherein, terminal can pass through wireless office
Domain net couple in router, and pass through the server on router access public network.
In the disclosure, terminal or router are in order to reduce power consumption,, can be with based on setting when no business needs processing
Into resting state.But due to its in a dormant state when, CPU clock can stop, that is to say, that heartbeat timer can stop
Only work, thus from resting state wake up when, system time is likely to be inaccurate, thus terminal or router need weight
Newly obtain accurate current time information.
In disclosure step, the accuracy of system clock can be ensured by real-time clock.
Wherein, RTC (Real-Time Clock, real-time clock) is entered by recurrent pulses caused by external crystal-controlled oscillation
The clock of row timing, real-time clock only need extremely low delivery just to remain on, and power consumption is extremely low, and can be provided for system can
The timing time leaned on.Real-time clock can be the clock built in the MCU of terminal or router, or with outside MCU pin
The real time clock circuit connect.
In this fashion, before the MCU of terminal or router enters resting state, current time letter can first be obtained
Breath, that is, to enter the temporal information of resting state.
In the disclosure, the temporal information that resting state will be entered by obtaining have various ways, such as when entering resting state,
System time is 12 points, then the temporal information that enter resting state is just 12 points.Before terminal or router enter dormancy,
In normal operating conditions, system heart-throb timer is normal work, and present system time at this time may be considered standard
The true time.
When terminal or router can network, this can also be obtained at other equipment will enter the time of resting state
Information.For example, can be to server or the other equipment such as the other-end that passes through network connection sends the time and obtains request, then
The temporal information that other equipment returns is received, subsequently into dormancy, the temporal information that the other equipment returns seeks to enter not
The temporal information of dormancy state.
In addition, terminal and router can also send time request information, including GPS (Global to satellite
Positioning System, global positioning system) satellite or big-dipper satellite, the time service then replied according to the satellite received
Information determines temporal information, and enters resting state, and the temporal information determined according to time service information seeks to enter dormancy shape
The temporal information of state.
It is then possible to which this will be entered to starting counter value of the temporal information as real-time clock of resting state, order is real-time
Clock starts counting up.That is, the temporal information that this will can be entered to resting state is write in the register of real-time clock.
When terminal or router are waken up from resting state, read real-time clock and start counting up to obtain with starting counter value
Current count value, and current time information is worth to according to current count.Thereby, it is possible to ensure that terminal or router are entering
After resting state, it still is able to obtain the accurate time.
, can also be by dormancy time length come the accurate current time information of computing system in the disclosure.
Before dormancy, when temporal information and the dormancy that to enter resting state that terminal or router will can be got
Between stored corresponding to length, so as to when terminal or router are waken up from resting state, be based on entering dormancy
The temporal information and dormancy time length of state, calculate current time information.
In the disclosure, accurate current time information can also be obtained at other equipment.
, can be to server or the other equipment hair such as the other-end that passes through network connection that is, after hibernate
Send the time obtain request, then receive other equipment return temporal information, the other equipment return temporal information be exactly when
Preceding temporal information.
In the disclosure, terminal and router can also send time request letter after being waken up from resting state to satellite
Breath, the time service information then replied according to the satellite received determine current time information.
In the disclosure, the current time information of terminal or router acquisition can also be UTC time.During so as to realize UTC
Between accurate coordination.
Step 102, the current time information based on acquisition are corrected to present system time.
The current time information of terminal or router based on acquisition is calibrated to present system time, such as will be currently
System time modification is acquired current time information.
As shown in Fig. 2 Fig. 2 is a kind of correct application field of system time of the disclosure according to an exemplary embodiment
Scape schematic diagram.In the scene shown in Fig. 2, including:As the millet router of router, and as with the millet router
The terminal millet smart mobile phone of networking.Real-time clock is built-in with the millet router.
Millet router sends time acquisition request, millet intelligence before resting state is entered, to millet smart mobile phone
Mobile phone sends temporal information this moment to millet router, and millet router is real-time as built in using the temporal information received
The starting counter value of clock, subsequently into resting state.Millet router from resting state wake up when, obtain real-time clock work as
The preceding time, and with the current time modification present system time, so as to realize the accurate calibration to system time.
In application scenarios shown in Fig. 2, realize the correction of system time detailed process may refer to it is foregoing in Fig. 1
Description, will not be repeated here.
Corresponding with the bearing calibration embodiment of aforementioned system time, the disclosure additionally provides the means for correcting of system time
And its router and the embodiment of terminal applied.
As shown in figure 3, Fig. 3 is a kind of means for correcting frame of system time of the disclosure according to an exemplary embodiment
Figure, the device can include:Current time information acquisition module 310 and system time correction module 320.
Wherein, current time information acquisition module 310, be configured as from resting state wake up when, during by reading system
Between beyond mode obtain current time information;
System time correction module 320, it is configured as the current time obtained based on current time information acquisition module 310
Information correction present system time.
In above-described embodiment, terminal or router can obtain current time information, and base when being waken up from resting state
Present system time is corrected in the temporal information of acquisition.Because in the dormant state, system clock is stopped, when from dormancy shape
When state is waken up, the inaccurate time can cause occur mistake in control logic.Thus terminal or router are waken up from resting state
When, it is necessary to first current time, and update the system time be obtained in a manner of reading beyond system time, to ensure system time
Accuracy, and the accuracy in control logic.
As shown in figure 4, Fig. 4 is another system time means for correcting frame of the disclosure according to an exemplary embodiment
Figure, on the basis of foregoing embodiment illustrated in fig. 3, the device can also include the embodiment:First dormancy time acquisition module
330th, setup module 340 and counting module 350.
First dormancy time acquisition module 330, it is configured as obtaining the temporal information that enter resting state;
Setup module 340, it is configured as entering resting state based on what the first dormancy time acquisition module 330 obtained
Temporal information sets the starting counter value of real-time clock;
Counting module 350, when being configured as entering resting state, starting that real-time clock is set based on setup module 340
Count value starts counting up.
As shown in figure 5, Fig. 5 is another system time means for correcting frame of the disclosure according to an exemplary embodiment
Figure, on the basis of foregoing embodiment illustrated in fig. 4, the current time information acquisition module 310 can include the embodiment:First
Reading submodule 311 and very first time information obtain submodule 312.
First reading submodule 311, it is configured as reading the starting counter value that real-time clock is set based on setup module 340
Start counting up obtained current count value.
Very first time information obtains submodule 312, is configured as the current count read according to the first reading submodule 311
It is worth to current time information.
In above-described embodiment, terminal or router can be before resting state be entered, and resting state will be entered by obtaining
Temporal information, the then starting counter value using the temporal information as real-time clock.Because real-time clock only needs extremely low confession
Electricity can just remain on, and power consumption is extremely low, and can provide very reliable gate time, therefore, it is possible to by real-time
Clock obtains the correct time after dormancy is waken up.
As shown in fig. 6, Fig. 6 is another system time means for correcting frame of the disclosure according to an exemplary embodiment
Figure, on the basis of foregoing embodiment illustrated in fig. 3, the device can also include the embodiment:Second dormancy time acquisition module
360th, dormancy time length acquisition module 370 and memory module 380.
Wherein, the second dormancy time acquisition module 360, it is configured as obtaining the temporal information that enter resting state;
Dormancy time length acquisition module 370, it is configured as obtaining the dormancy time length that enter resting state;
Memory module 380, be configured as the corresponding acquisition of second storage dormancy time acquisition module 360 will enter dormancy
The dormancy time length that the temporal information and dormancy time length acquisition module 370 of state obtain.
As shown in fig. 7, Fig. 7 is another system time means for correcting frame of the disclosure according to an exemplary embodiment
Figure, on the basis of foregoing embodiment illustrated in fig. 6, current time information acquisition module 310 can also include the embodiment:Second
Reading submodule 313 and calculating sub module 314.
Second reading submodule 313, it is configured as reading the time letter that enter resting state that memory module 380 stores
Breath and dormancy time length;
Calculating sub module 314, for being believed based on the time that enter resting state that the second reading submodule 313 is read
Breath and dormancy time length computation draw current time information.
In above-described embodiment, terminal or router can be grown based on time when entering resting state and dormancy time
Degree, current time information is calculated after dormancy is waken up, so as to be based only upon simple operation, external equipment can without since
To realize the accurate correction of system time.
As shown in figure 8, Fig. 8 is another system time means for correcting frame of the disclosure according to an exemplary embodiment
Figure, on the basis of earlier figures 4 or embodiment illustrated in fig. 6, dormancy time acquisition module 360 can include the embodiment:System
Time reading submodule 361.
Wherein, system time reading submodule 361, it is configured as reading system time conduct when entering resting state
To enter the temporal information of resting state.
In above-described embodiment, during due to being also introduced into resting state, system time is accurate, thus terminal or router
Time of the system time as resting state to be entered can be read before resting state is entered.
As shown in figure 9, Fig. 9 is another system time means for correcting frame of the disclosure according to an exemplary embodiment
Figure, on the basis of earlier figures 4 or embodiment illustrated in fig. 6, dormancy time acquisition module 360 can include the embodiment:First
Time obtains request-to-send submodule 362 and very first time information receiving submodule 363.
The very first time obtains request-to-send submodule 362, is configured as, in resting state to be entered, to by network connecting
The equipment connect sends time acquisition request;
Very first time information receiving submodule 363, it is configured as receiving the equipment based on very first time acquisition request transmission
The time that submodule 362 is sent obtains the temporal information that enter resting state that request returns.
In above-described embodiment, when entering resting state, terminal or router can send in the time to other equipment and obtain
Accurate time information when taking request to obtain resting state to be entered.
As shown in Figure 10, Figure 10 is another system time means for correcting of the disclosure according to an exemplary embodiment
Block diagram, on the basis of earlier figures 4 or embodiment illustrated in fig. 6, dormancy time acquisition module 360 can also include the embodiment:
Very first time solicited message sending submodule 364 and the second temporal information obtain submodule 365.
Very first time solicited message sending submodule 364, it is configured as in resting state to be entered, when being sent to satellite
Between solicited message;
Second temporal information obtains submodule 365, is configured as the time service information returned based on the satellite, obtains entering
The temporal information of resting state.
In above-described embodiment, terminal or router can obtain precise time letter before resting state is entered to satellite
Breath, the temporal information as resting state to be entered.
As shown in figure 11, Figure 11 is another system time means for correcting of the disclosure according to an exemplary embodiment
Block diagram, on the basis of foregoing embodiment illustrated in fig. 3, the current time information acquisition module 310 can include the embodiment:The
Two times obtained the temporal information receiving submodule 316 of request-to-send submodule 315 and second.
Second time obtained request-to-send submodule 315, was configured as obtaining to the equipment transmission time by network connection
Take request;
Second temporal information receiving submodule 316, it is configured as receiving the equipment based on the second time acquisition request hair
The time for sending submodule 315 to send obtains the current time information that request returns.
In above-described embodiment, terminal or router can obtain current time information, example to by the equipment of network connection
Such as server, such as other-end, the correction to system time is achieved in.
As shown in figure 12, Figure 12 is another system time means for correcting of the disclosure according to an exemplary embodiment
Block diagram, on the basis of foregoing embodiment illustrated in fig. 3, current time information acquisition module 310 can also include the embodiment:The
Two time request information sending submodules 317 and the 3rd temporal information obtain submodule 318.
Second time request information sending submodule 317, it is configured as sending time request information to satellite;
3rd temporal information obtains submodule 318, is configured as the time service information returned based on satellite, obtains current time
Information.
In above-described embodiment, terminal or router can obtain precise time letter after resting state is entered to satellite
Breath, as the accurate time information waken up from resting state, is corrected with this to system time.
As shown in figure 13, Figure 13 is another system time means for correcting of the disclosure according to an exemplary embodiment
Block diagram, on the basis of foregoing embodiment illustrated in fig. 3, system time correction module 320 can include the embodiment:Change submodule
Block 321.
Submodule 321 is changed, is configured as present system time being revised as current time information acquisition module 310 being obtained
The current time information taken.
The means for correcting embodiment of above-mentioned Fig. 3 to the system time shown in Figure 13 can be applied in router or terminal.
The function of unit and the implementation process of effect specifically refer to and step are corresponded in the above method in said apparatus
Implementation process, it will not be repeated here.
For device embodiment, because it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.Device embodiment described above is only schematical, wherein described be used as separating component
The unit of explanation can be or may not be physically separate, can be as the part that unit is shown or can also
It is not physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Can be according to reality
Need to select some or all of module therein to realize the purpose of disclosure scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
Accordingly, the disclosure also provides a kind of terminal, and the terminal includes processor;It can perform for storing processor
The memory of instruction;Wherein, the processor is configured as:When being waken up from resting state, by reading beyond system time
Mode obtains current time information;Present system time is corrected based on the current time information.
Accordingly, the disclosure also provides a kind of router, and the router includes processor;Can for storing processor
The memory of execute instruction;Wherein, the processor is configured as:When being waken up from resting state, by read system time with
Outer mode obtains current time information;Present system time is corrected based on the current time information.
As shown in figure 14, Figure 14 is a kind of means for correcting for system time according to an exemplary embodiment
1400 structural representation.For example, device 1400 may be provided in a routing device.Reference picture 14, device 1400 include
Processing component 1422, it further comprises one or more processors, and as the memory resource representated by memory 1432,
Can be by the instruction of the execution of processing component 1422, such as application program for storing.The application program stored in memory 1432
Can include it is one or more each correspond to the module of one group of instruction.In addition, processing component 1422 is configured as
Execute instruction, to perform the method for above-mentioned access webpage.
Device 1400 can also include a power supply module 1426 and be configured as the power management of performs device 1400, one
Wired or wireless network interface 1450 is configured as device 1400 being connected to network, and input and output (I/O) interface
1458.Device 1400 can be operated based on the operating system for being stored in memory 1432, such as Windows ServerTM, Mac
OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
As shown in figure 15, Figure 15 is a kind of correction for system time of the disclosure according to an exemplary embodiment
One structural representation of device 1500.For example, device 1500 can be the mobile phone for having routing function, and computer, numeral
Broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Reference picture 15, device 1500 can include following one or more assemblies:Processing component 1502, memory 1504,
Power supply module 1506, multimedia groupware 1508, audio-frequency assembly 1510, the interface 1512 of input/output (I/O), sensor cluster
1514, and communication component 1516.
The integrated operation of the usual control device 1500 of processing component 1502, such as communicated with display, call, data,
The operation that camera operation and record operation are associated.Processing component 1502 can include one or more processors 1520 to perform
Instruction, to complete all or part of step of above-mentioned method.In addition, processing component 1502 can include one or more moulds
Block, the interaction being easy between processing component 1502 and other assemblies.For example, processing component 1502 can include multi-media module,
To facilitate the interaction between multimedia groupware 1508 and processing component 1502.
Memory 1504 is configured as storing various types of data to support the operation in device 1500.These data
Example includes being used for the instruction of any application program or method operated on device 1500, contact data, telephone book data,
Message, picture, video etc..Memory 1504 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1506 provides electric power for the various assemblies of device 1500.Power supply module 1506 can include power management
System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 1500.
Multimedia groupware 1508 is included in the screen of one output interface of offer between described device 1500 and user.
In some embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch and passed
Sensor is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or slip be dynamic
The border of work, but also detect the duration and pressure related to the touch or slide.In certain embodiments, it is more
Media component 1508 includes a front camera and/or rear camera.When device 1500 is in operator scheme, mould is such as shot
When formula or video mode, front camera and/or rear camera can receive outside multi-medium data.Each preposition shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 1510 is configured as output and/or input audio signal.For example, audio-frequency assembly 1510 includes a wheat
Gram wind (MIC), when device 1500 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone quilt
It is configured to receive external audio signal.The audio signal received can be further stored in memory 1504 or via communication
Component 1516 is sent.In certain embodiments, audio-frequency assembly 1510 also includes a loudspeaker, for exports audio signal.
I/O interfaces 1512 provide interface, above-mentioned peripheral interface module between processing component 1502 and peripheral interface module
Can be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and
Locking press button.
Sensor cluster 1514 includes one or more sensors, and the state for providing various aspects for device 1500 is commented
Estimate.For example, sensor cluster 1514 can detect opening/closed mode of device 1500, the relative positioning of component, such as institute
The display and keypad that component is device 1500 are stated, sensor cluster 1514 can be with detection means 1500 or device 1,500 1
The position of individual component changes, the existence or non-existence that user contacts with device 1500, the orientation of device 1500 or acceleration/deceleration and dress
Put 1500 temperature change.Sensor cluster 1514 can include proximity transducer, be configured in no any physics
The presence of object nearby is detected during contact.Sensor cluster 1514 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In certain embodiments, the sensor cluster 1514 can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor, microwave remote sensor or temperature sensor.
Communication component 1516 is configured to facilitate the communication of wired or wireless way between device 1500 and other equipment.Dress
The wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof can be accessed by putting 1500.It is exemplary at one
In embodiment, communication component 1516 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1516 also includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1500 can be by one or more application specific integrated circuits (ASIC), numeral
Signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein
Its embodiment.The disclosure is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or
Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
The preferred embodiment of the disclosure is the foregoing is only, not limiting the disclosure, all essences in the disclosure
God any modification, equivalent substitution and improvements done etc., should be included within the scope of disclosure protection with principle.
Claims (20)
- A kind of 1. bearing calibration of system time, it is characterised in that including:The temporal information of resting state will be entered by obtaining;The starting counter value of real-time clock is set based on the temporal information that enter resting state;When entering resting state, the real-time clock is started counting up based on the starting counter value;When being waken up from resting state, current time information is obtained by way of reading beyond system time;Present system time is corrected based on the current time information;Wherein, it is described to obtain current time information by way of reading beyond system time, including:Read the current count value that the real-time clock starts counting up to obtain based on the starting counter value;Current time information is worth to according to the current count.
- 2. according to the method for claim 1, it is characterised in that described to enter before resting state, methods described also includes:The temporal information of resting state will be entered by obtaining;The dormancy time length of the resting state will be entered by obtaining;To enter the temporal information of resting state and the dormancy time length described in corresponding storage.
- 3. according to the method for claim 2, it is characterised in that described obtained by way of reading beyond system time is worked as Preceding temporal information, including:The temporal information of resting state and the dormancy time length will be entered by reading the described of storage;Current time information is drawn based on described into the temporal information of resting state and the dormancy time length computation.
- 4. method according to claim 1 or 2, it is characterised in that the acquisition will enter the temporal information of resting state Including:Read temporal information of system time when entering resting state as resting state to be entered.
- 5. method according to claim 1 or 2, it is characterised in that the acquisition will enter the temporal information of resting state, Including:In resting state to be entered, time acquisition request is sent to the equipment by network connection;Receive the temporal information that enter resting state that the equipment obtains request return based on the time.
- 6. method according to claim 1 or 2, it is characterised in that the acquisition will enter the temporal information of resting state, Including:In resting state to be entered, time request information is sent to satellite;The time service information returned based on the satellite, obtains the temporal information of resting state to be entered.
- 7. according to the method for claim 1, it is characterised in that described obtained by way of reading beyond system time is worked as Preceding temporal information, including:Time acquisition request is sent to the equipment by network connection;Receive the current time information that the equipment obtains request return based on the time.
- 8. according to the method for claim 1, it is characterised in that described obtained by way of reading beyond system time is worked as Preceding temporal information, including:Time request information is sent to satellite;The time service information returned based on the satellite, obtains current time information.
- 9. according to the method for claim 1, it is characterised in that described based on current time information correction current system Time, including:The present system time is revised as the current time information.
- A kind of 10. means for correcting of system time, it is characterised in that including:First dormancy time acquisition module, the temporal information of resting state is entered for obtaining;Setup module, for setting the starting counter value of real-time clock based on the temporal information that enter resting state;Counting module, for when entering resting state, the real-time clock to be started counting up based on the starting counter value;Current time information acquisition module, during for being waken up from resting state, obtained by way of reading beyond system time Current time information;System time correction module, for correcting present system time based on the current time information;The current time information acquisition module includes:First reading submodule, start counting up by reading the real-time clock based on the starting counter value to obtain it is current based on Numerical value;Very first time information obtains submodule, for being worth to current time information according to the current count.
- 11. device according to claim 10, it is characterised in that described device also includes:Second dormancy time acquisition module, the temporal information of resting state is entered for obtaining;Dormancy time length acquisition module, the dormancy time length of the resting state is entered for obtaining;Memory module, for enter the temporal information of resting state and the dormancy time length described in corresponding storage.
- 12. device according to claim 11, it is characterised in that the current time information acquisition module includes:Second reading submodule, to enter the temporal information and dormancy time length of resting state described in storage for reading Degree;Calculating sub module, for be drawn based on described into the temporal information of resting state and the dormancy time length computation Current time information.
- 13. the device according to claim 11 or 12, it is characterised in that the dormancy time acquisition module includes:System time reading submodule, system time when entering resting state for reading is as resting state to be entered Temporal information.
- 14. the device according to claim 11 or 12, it is characterised in that the dormancy time acquisition module includes:The very first time obtains request-to-send submodule, in resting state to be entered, being sent out to by the equipment of network connection The time is sent to obtain request;Very first time information receiving submodule, entering not for request return is obtained based on the time for receiving the equipment The temporal information of dormancy state.
- 15. the device according to claim 11 or 12, it is characterised in that the dormancy time acquisition module includes:Very first time solicited message sending submodule, in resting state to be entered, time request information to be sent to satellite;Second temporal information obtains submodule, for the time service information returned based on the satellite, obtains resting state to be entered Temporal information.
- 16. device according to claim 10, it is characterised in that the current time information acquisition module includes:Second time obtained request-to-send submodule, for sending time acquisition request to the equipment by network connection;Second temporal information receiving submodule, the current time for asking to return is obtained based on the time for receiving the equipment Information.
- 17. device according to claim 10, it is characterised in that the current time information acquisition module includes:Second time request information sending submodule, for sending time request information to satellite;3rd temporal information obtains submodule, for the time service information returned based on the satellite, obtains current time information.
- 18. device according to claim 10, it is characterised in that the system time correction module includes:Submodule is changed, for the present system time to be revised as into the current time information.
- A kind of 19. terminal, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Wherein, The processor is configured as:The temporal information of resting state will be entered by obtaining;The starting counter value of real-time clock is set based on the temporal information that enter resting state;When entering resting state, the real-time clock is started counting up based on the starting counter value;When being waken up from resting state, current time information is obtained by way of reading beyond system time;Present system time is corrected based on the current time information;Wherein, it is described to obtain current time information by way of reading beyond system time, including:Read the current count value that the real-time clock starts counting up to obtain based on the starting counter value;Current time information is worth to according to the current count.
- A kind of 20. router, it is characterised in that including:Processor;For storing the memory of processor-executable instruction;Its In, the processor is configured as:The temporal information of resting state will be entered by obtaining;The starting counter value of real-time clock is set based on the temporal information that enter resting state;When entering resting state, the real-time clock is started counting up based on the starting counter value;When being waken up from resting state, current time information is obtained by way of reading beyond system time;Present system time is corrected based on the current time information;Wherein, it is described to obtain current time information by way of reading beyond system time, including:Read the current count value that the real-time clock starts counting up to obtain based on the starting counter value;Current time information is worth to according to the current count.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510368069.4A CN104917581B (en) | 2015-06-29 | 2015-06-29 | Bearing calibration, device, terminal and the router of system time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510368069.4A CN104917581B (en) | 2015-06-29 | 2015-06-29 | Bearing calibration, device, terminal and the router of system time |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104917581A CN104917581A (en) | 2015-09-16 |
CN104917581B true CN104917581B (en) | 2018-02-02 |
Family
ID=54086320
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510368069.4A Active CN104917581B (en) | 2015-06-29 | 2015-06-29 | Bearing calibration, device, terminal and the router of system time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104917581B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105653279A (en) * | 2015-12-29 | 2016-06-08 | 小米科技有限责任公司 | Clock system and wakeup method for mobile terminal and functional chip |
KR102257792B1 (en) * | 2017-05-22 | 2021-05-31 | 베이징 시아오미 모바일 소프트웨어 컴퍼니 리미티드 | Off-screen display method and device |
CN107493499A (en) * | 2017-08-08 | 2017-12-19 | 青岛海信电器股份有限公司 | Terminal system method for updating time, device and electronic equipment |
CN109976501A (en) * | 2017-12-28 | 2019-07-05 | 中移物联网有限公司 | A kind of Low-power-consumptiocontrol control method, device, system and storage medium |
CN111399624B (en) * | 2020-02-18 | 2021-04-13 | 上海泰辑软件有限公司 | Embedded low-power-consumption image display method and system |
CN113472467A (en) * | 2020-03-30 | 2021-10-01 | 中国电信股份有限公司 | Clock synchronization method, device and system |
CN112462846A (en) * | 2020-12-14 | 2021-03-09 | 深圳市晨北科技有限公司 | Clock correction method, clock correction device, computer equipment and storage medium |
CN112905250A (en) * | 2021-02-09 | 2021-06-04 | 上海锐伟电子科技有限公司 | Awakening method and system of embedded equipment |
CN113050497A (en) * | 2021-03-23 | 2021-06-29 | 阿尔特汽车技术股份有限公司 | Method for timing correction, and corresponding controller, vehicle, device, and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201418155Y (en) * | 2009-02-18 | 2010-03-03 | 王翥 | Wireless sensor network node |
CN202043293U (en) * | 2011-05-10 | 2011-11-16 | 深圳市华奥通通信技术有限公司 | Micropower wireless communication system and device thereof |
CN103327586A (en) * | 2013-05-29 | 2013-09-25 | 东南大学 | Synchronous method for wireless sensor network node dormancy low power consumption protocol |
-
2015
- 2015-06-29 CN CN201510368069.4A patent/CN104917581B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201418155Y (en) * | 2009-02-18 | 2010-03-03 | 王翥 | Wireless sensor network node |
CN202043293U (en) * | 2011-05-10 | 2011-11-16 | 深圳市华奥通通信技术有限公司 | Micropower wireless communication system and device thereof |
CN103327586A (en) * | 2013-05-29 | 2013-09-25 | 东南大学 | Synchronous method for wireless sensor network node dormancy low power consumption protocol |
Also Published As
Publication number | Publication date |
---|---|
CN104917581A (en) | 2015-09-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104917581B (en) | Bearing calibration, device, terminal and the router of system time | |
US10031575B2 (en) | Method and device for waking up MCU chip | |
CN109920418B (en) | Method and device for adjusting awakening sensitivity | |
CN103944804B (en) | Contact recommending method and device | |
US10423379B2 (en) | Method and device for screen-off display | |
JP6284687B2 (en) | MCU wakeup method and apparatus | |
CN105099526B (en) | Polling data packet transmission method and device | |
RU2705424C1 (en) | Method and device for controlling an alarm clock | |
EP3136697B1 (en) | Contact record processing method and apparatus | |
CN106250430A (en) | The sort method of smart machine list and device | |
CN106357910A (en) | Terminal working mode switching method and device | |
US10497303B2 (en) | Method and device for always on display, and computer-readable storage medium | |
US20190011948A1 (en) | Method and apparatus for always-on display, and computer-readable storage medium | |
WO2017088373A1 (en) | Bill processing method, device and terminal device | |
CN103905442B (en) | Awakening method and device in a kind of data syn-chronization | |
US20210250728A1 (en) | Terminal positioning method, apparatus, electronic device and storage medium | |
CN108804244A (en) | Data transmission method for uplink, device and storage medium | |
CN107454204A (en) | User profile mask method and device | |
CN107223351A (en) | Control the method and device of network insertion | |
CN109034747A (en) | Task reminders method and device | |
CN106537947A (en) | Operation triggering method and portable electronic device | |
CN104484046B (en) | Duration monitoring method and device | |
CN107368175A (en) | Reduce processing method, device and the terminal of power consumption of terminal | |
US20160125303A1 (en) | Method and apparatus for calculating smart indicator | |
CN107896277B (en) | Method and device for setting alarm clock reminding mode and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |