CN104917581A - System time correction method and device, terminal and router - Google Patents

System time correction method and device, terminal and router Download PDF

Info

Publication number
CN104917581A
CN104917581A CN201510368069.4A CN201510368069A CN104917581A CN 104917581 A CN104917581 A CN 104917581A CN 201510368069 A CN201510368069 A CN 201510368069A CN 104917581 A CN104917581 A CN 104917581A
Authority
CN
China
Prior art keywords
time
resting state
information
enter
current time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510368069.4A
Other languages
Chinese (zh)
Other versions
CN104917581B (en
Inventor
孟德国
曾凡
侯恩星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510368069.4A priority Critical patent/CN104917581B/en
Publication of CN104917581A publication Critical patent/CN104917581A/en
Application granted granted Critical
Publication of CN104917581B publication Critical patent/CN104917581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electric Clocks (AREA)

Abstract

The disclosure relates to a system time correction method and device, a terminal and a router. The method comprises the steps that current time information is acquired by a mode except for reading system time when waking up from the dormant state; and current system time is corrected on the basis of the current time information. With application of the disclosed embodiment, the current time information can be acquired by the terminal or the router when waking up from the dormant state, and current system time can be corrected on the basis of the acquired time information. A system clock stops working under the dormant state, and control logic errors are caused by inaccurate time when waking up from the dormant state. Therefore, current time is acquired by the mode except for reading system time when the terminal or the router wakes up from the dormant state, and system time is corrected so that system time accuracy and control logic precision can be guaranteed.

Description

The bearing calibration of system time, device, terminal and router
Technical field
The disclosure relates to network communication technology field, particularly relates to a kind of bearing calibration of system time, device, terminal and router.
Background technology
In order to reduce the power consumption of system, way conventional at present makes the MCU of equipment (MicrocontrollerUnit, micro-control unit) enter resting state when not having service needed process, wakes up when there being service needed process from resting state again.
In correlation technique, the time of many embedded systems all depends on system systick (heartbeat timer), i.e. system timing clock.But when MCU enters resting state, CPU (Central ProcessingUnit, CPU) and the clock of peripheral control unit all can stop, that is, heartbeat timer also can quit work, so when MCU wakes up from resting state, clock mistake at this moment, thus the mistake in some control logics can be caused.
Summary 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, and equipment is from the inaccurate problem brought of the system time after resting state is waken up.
According to the first aspect of disclosure embodiment, a kind of bearing calibration of system time is provided, comprises:
When waking up from resting state, obtain current time information by the mode beyond the reading system time;
Present system time is corrected based on described current time information.
Optionally, described wake up from resting state before, described method also comprises:
Acquisition will enter the temporal information of resting state;
The starting counter value of real-time clock is set based on the described temporal information that will enter resting state;
When entering resting state, described real-time clock starts counting based on described starting counter value.
Optionally, describedly obtain current time information by the mode beyond the reading system time, comprising:
Read the current count value that described real-time clock starts based on described starting counter value to count to get;
Current time information is obtained according to described current count value.
Optionally, described in enter resting state before, described method also comprises:
Acquisition will enter the temporal information of resting state;
Acquisition will enter the dormancy time length of described resting state;
The temporal information of resting state and described dormancy time length to be entered described in corresponding storage.
Optionally, describedly obtain current time information by the mode beyond the reading system time, comprising:
Read store described and will enter the temporal information of resting state and described dormancy time length;
The temporal information that will enter resting state based on described and described dormancy time length computation draw current time information.
Optionally, the temporal information that described acquisition will enter resting state comprises:
System time when reading will enter resting state is as the temporal information that will enter resting state.
Optionally, described acquisition will enter the temporal information of resting state, comprising:
When resting state will be entered, obtain request to the equipment transmitting time connected by network;
Receive described equipment and obtain the temporal information that will enter resting state asking to return based on the described time.
Optionally, described acquisition will enter the temporal information of resting state, comprising:
When resting state will be entered, to satellite transmitting time solicited message;
Based on the time service information that described satellite returns, obtain the temporal information that will enter resting state.
Optionally, describedly obtain current time information by the mode beyond the reading system time, comprising:
Request is obtained to the equipment transmitting time connected by network;
Receive described equipment and obtain the current time information asking to return based on the described time.
Optionally, describedly obtain current time information by the mode beyond the reading system time, comprising:
To satellite transmitting time solicited message;
Based on the time service information that described satellite returns, obtain current time information.
Optionally, described based on described current time information correction present system time, comprising:
Described present system time is revised as described current time information.
According to the second aspect of disclosure embodiment, a kind of means for correcting of system time is provided, comprises:
Current time information acquisition module, during for waking up from resting state, obtains current time information by the mode beyond the reading system time;
System time correction module, for correcting present system time based on described current time information.
Optionally, described device also comprises:
First dormancy time acquisition module, for obtaining the temporal information that will enter resting state;
Module is set, for arranging the starting counter value of real-time clock based on the described temporal information that will enter resting state;
Counting module, for when entering resting state, described real-time clock starts counting based on described starting counter value.
Optionally, described current time information acquisition module comprises:
First reading submodule, for reading the current count value that described real-time clock starts based on described starting counter value to count to get;
Very first time information obtains submodule, for obtaining current time information according to described current count value.
Optionally, described device also comprises:
Second dormancy time acquisition module, for obtaining the temporal information that will enter resting state;
Dormancy time length acquisition module, for obtaining the dormancy time length that will enter described resting state;
Memory module, for correspondence storage described in enter the temporal information of resting state and described dormancy time length.
Optionally, described current time information acquisition module comprises:
Second reading submodule, for reading the temporal information and described dormancy time length that will enter resting state described in storage;
Calculating sub module, draws current time information for the temporal information that will enter resting state based on described and described dormancy time length computation.
Optionally, described dormancy time acquisition module comprises:
System time reading submodule, for reading system time when will enter resting state as the temporal information that will enter resting state.
Optionally, described dormancy time acquisition module comprises:
The very first time obtains request and sends submodule, for when entering resting state, obtains request to the equipment transmitting time connected by network;
Very first time receives information submodule, obtains for receiving described equipment the temporal information that will enter resting state asking to return based on the described time.
Optionally, described dormancy time acquisition module comprises:
Very first time solicited message sends submodule, for when entering resting state, to satellite transmitting time solicited message;
Second temporal information obtains submodule, for the time service information returned based on described satellite, obtains the temporal information that will enter resting state.
Optionally, described current time information acquisition module comprises:
Second time obtained request and sends submodule, for obtaining request to the equipment transmitting time connected by network;
Second temporal information receives submodule, obtains for receiving described equipment the current time information asking to return based on the described time.
Optionally, described current time information acquisition module comprises:
Second time request information sends submodule, for satellite transmitting time solicited message;
3rd temporal information obtains submodule, for the time service information returned based on described satellite, obtains current time information.
Optionally, described system time correction module comprises:
Amendment submodule, for being revised as described current time information by described present system time.
According to the third aspect of disclosure embodiment, a kind of terminal is provided, comprises: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
When waking up from resting state, obtain current time information by the mode beyond the reading system time;
Present system time is corrected based on described current time information.
According to the fourth aspect of disclosure embodiment, a kind of router is provided, comprises: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
When waking up from resting state, obtain current time information by the mode beyond the reading system time;
Present system time is corrected based on described current time information.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In the disclosure, terminal or router can obtain current time information when waking up from resting state, and correct present system time based on the temporal information obtained.Due in the dormant state, system clock quits work, and when waking up from resting state, the inaccurate time can cause mistake appears in control logic.Thus, when terminal or router are waken up from resting state, need first to obtain current time in the mode beyond the reading system time, and the update the system time, to ensure the accuracy of system time, and the accuracy in control logic.
In the disclosure, terminal or router before entering resting state, can obtain the temporal information that will enter resting state, then using the starting counter value of this temporal information as real-time clock.Because real-time clock only needs extremely low amount of power supply just can keep running, power consumption is extremely low, also the operation of real-time clock can not be affected after terminal or router enter resting state, and real-time clock can provide gate time very reliably, thus, correct time after dormancy is waken up can be obtained by real-time clock.
In the disclosure, terminal or router can based on time when entering resting state and dormancy time length, current time information is calculated after dormancy is waken up, thus, only based on simple operation, and without the need to since external equipment just can realize the accurate correction of system time.
In the disclosure, terminal or router, before entering resting state, can obtain precise time information to satellite, as the temporal information that will enter resting state.Terminal or router, after entering resting state, can obtain precise time information to satellite, as the accurate time information of waking up from resting state, correct with this to system time.
In the disclosure, terminal or router can obtain current time information, such as server, such as other-end to the equipment connected by network, realize the correction to system time thus.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the bearing calibration flow chart of a kind of system time of the disclosure according to an exemplary embodiment.
Fig. 2 is the correct application scene schematic diagram of a kind of system time of the disclosure according to an exemplary embodiment.
Fig. 3 is the means for correcting block diagram of a kind of system time of the disclosure according to an exemplary embodiment.
Fig. 4 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Fig. 5 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Fig. 6 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Fig. 7 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Fig. 8 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Fig. 9 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Figure 10 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Figure 11 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Figure 12 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Figure 13 is the means for correcting block diagram of the another kind of system time of the disclosure according to an exemplary embodiment.
Figure 14 is a structural representation of a kind of means for correcting for system time of the disclosure according to an exemplary embodiment.
Figure 15 is the structural representation of the another kind of the disclosure according to an exemplary embodiment for the means for correcting of system time.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The term used in the disclosure is only for the object describing specific embodiment, and the not intended to be limiting disclosure." one ", " described " and " being somebody's turn to do " of the singulative used in disclosure and the accompanying claims book is also intended to comprise most form, unless context clearly represents other implications.It is also understood that term "and/or" used herein refer to and comprise one or more project of listing be associated any or all may combine.
Term first, second, third, etc. may be adopted although should be appreciated that to describe various information in the disclosure, these information should not be limited to these terms.These terms are only used for the information of same type to be distinguished from each other out.Such as, when not departing from disclosure scope, the first information also can be called as the second information, and similarly, the second information also can be called as the first information.Depend on linguistic context, word as used in this " if " can be construed as into " ... time " or " when ... time " 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, and the method may be used for also may be used in router in terminal, comprises the following steps:
Step 101, when waking up from resting state, obtain current time information by the mode beyond the reading system time.
Router in the disclosure is as a kind of smart routing devices, and it not only has traditional routing function, can further include SOS and disk, and the storage size of this disk can be arranged as required flexibly, such as, is set to 1T; Terminal in the disclosure can be any intelligent terminal with function of surfing the Net, such as, can be specially mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant) etc.Wherein, terminal can pass through WLAN (wireless local area network) couple in router, and by the server on router access public network.
In the disclosure, terminal or router, in order to reduce power consumption, when not having service needed process, based on setting, can enter resting state.But due to its be in resting state time, the clock of CPU can stop, and that is heartbeat timer can quit work, when thus waking up from resting state, system time is probably inaccurate, and thus terminal or router need again to obtain current time information accurately.
In disclosure step, the accuracy of system clock can be ensured by real-time clock.
Wherein, RTC (Real-Time Clock, real-time clock) relies on the recurrent pulses of external crystal-controlled oscillation generation to carry out the clock of timing, and real-time clock only needs extremely low amount of power supply just can keep running, power consumption is extremely low, can provide reliable timing time for system.Real-time clock can be the built-in clock of the MCU of terminal or router, also can be the real time clock circuit external with the pin of MCU.
In this fashion, before the MCU of terminal or router enters resting state, first can obtain current time information, namely will enter the temporal information of resting state.
In the disclosure, obtaining the temporal information that will enter resting state has various ways, and such as, when will enter resting state, system time is 12 points, then the temporal information that will enter resting state is just 12 points.Before terminal or router enter dormancy, be in normal operating conditions, system heart-throb timer is normal work, and present system time at this time can think correct time.
When terminal or router can be networked, can also obtain from other equipment the temporal information that this will enter resting state.Such as, request can be obtained to other equipment transmitting times such as server or the other-ends connected by network, then receive the temporal information that other equipment return, then enter dormancy, the temporal information that these other equipment return is exactly the temporal information that will enter resting state.
In addition, terminal and router can also to satellite transmitting time solicited messages, comprise GPS (GlobalPositioning System, global positioning system) satellite or big-dipper satellite, then according to the time service information determination temporal information that the satellite received is replied, and entering resting state, this is exactly the temporal information that will enter resting state according to the temporal information that time service information is determined.
Then, this to can be entered the starting counter value of temporal information as real-time clock of resting state, make real-time clock start counting.That is, this to be able to be entered in the register of temporal information write real-time clock of resting state.
When terminal or router are waken up from resting state, read the current count value that real-time clock starts with starting counter value to count to get, and obtain current time information according to current count value.Thereby, it is possible to ensure that terminal or router are after entering resting state, still can obtain precise time.
In the disclosure, computing system current time information accurately can also be carried out by dormancy time length.
Before dormancy, the temporal information that will enter resting state got and carrying out corresponding to dormancy time length can store by terminal or router, thus when terminal or router are waken up from resting state, based on temporal information and the dormancy time length that will enter resting state, current time information can be calculated.
In the disclosure, current time information accurately can also be obtained from other equipment.
That is, after hibernate, can obtain request to other equipment transmitting times such as server or the other-ends connected by network, then receive the temporal information that other equipment return, the temporal information that these other equipment return is exactly current time information.
In the disclosure, terminal and router can also after waking up from resting state, to satellite transmitting time solicited message, then according to the time service information determination current time information that the satellite received is replied.
In the disclosure, the current time information that terminal or router obtain also can be the UTC time.Thus realize the accurate coordination of UTC time.
Step 102, based on obtain current time information present system time is corrected.
Terminal or router are calibrated present system time based on the current time information obtained, such as, present system time is revised as obtained current time information.
As shown in Figure 2, Fig. 2 is the correct application scene schematic diagram of a kind of system time of the disclosure according to an exemplary embodiment.In the scene shown in Fig. 2, comprising: as the millet router of router, and as the terminal millet smart mobile phone with this millet router cluster.Real-time clock is built-in with in this millet router.
Millet router is before entering resting state, request is obtained to millet smart mobile phone transmitting time, millet smart mobile phone sends temporal information this moment to millet router, the temporal information that receives as the starting counter value of built-in real-time clock, is then entered resting state by millet router.When millet router is waken up from resting state, obtain the current time of real-time clock, and with this current time modification present system time, thus realize the accurate calibration to system time.
In application scenarios shown in Fig. 2, the detailed process realizing the correction of system time see aforementioned to the description in Fig. 1, can not repeat them here.
Corresponding with the bearing calibration embodiment of aforementioned system time, the embodiment of the means for correcting that the disclosure additionally provides system time and the router applied and terminal.
As shown in Figure 3, Fig. 3 is the means for correcting block diagram of a kind of system time of the disclosure according to an exemplary embodiment, and this device can comprise: current time information acquisition module 310 and system time correction module 320.
Wherein, current time information acquisition module 310, when being configured to wake up from resting state, obtains current time information by the mode beyond the reading system time;
System time correction module 320, the current time information being configured to obtain based on current time information acquisition module 310 corrects present system time.
In above-described embodiment, terminal or router can obtain current time information when waking up from resting state, and correct present system time based on the temporal information obtained.Due in the dormant state, system clock quits work, and when waking up from resting state, the inaccurate time can cause mistake appears in control logic.Thus, when terminal or router are waken up from resting state, need first to obtain current time in the mode beyond the reading system time, and the update the system time, to ensure the accuracy of system time, and the accuracy in control logic.
As shown in Figure 4, Fig. 4 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and this device can also comprise: the first dormancy time acquisition module 330, arrange module 340 and counting module 350.
First dormancy time acquisition module 330, is configured to obtain the temporal information that will enter resting state;
Arrange module 340, the temporal information that will enter resting state being configured to obtain based on the first dormancy time acquisition module 330 arranges the starting counter value of real-time clock;
Counting module 350, when being configured to enter resting state, real-time clock starts counting based on the starting counter value arranging module 340 setting.
As shown in Figure 5, Fig. 5 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 4, and this current time information acquisition module 310 can comprise: the first reading submodule 311 and very first time information obtain submodule 312.
First reading submodule 311, is configured to the current count value that reading real-time clock starts based on the starting counter value arranging module 340 setting to count to get.
Very first time information obtains submodule 312, and the current count value being configured to read according to the first reading submodule 311 obtains current time information.
In above-described embodiment, terminal or router before entering resting state, can obtain the temporal information that will enter resting state, then using the starting counter value of this temporal information as real-time clock.Because real-time clock only needs extremely low amount of power supply just can keep running, power consumption is extremely low, and can provide gate time very reliably, thus, can obtain correct time after dormancy is waken up by real-time clock.
As shown in Figure 6, Fig. 6 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and this device can also comprise: the second dormancy time acquisition module 360, dormancy time length acquisition module 370 and memory module 380.
Wherein, the second dormancy time acquisition module 360, is configured to obtain the temporal information that will enter resting state;
Dormancy time length acquisition module 370, is configured to obtain the dormancy time length that will enter resting state;
Memory module 380, is configured to the corresponding temporal information that will enter resting state of the second storage dormancy time acquisition module 360 acquisition and the dormancy time length of dormancy time length acquisition module 370 acquisition.
As shown in Figure 7, Fig. 7 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 6, and current time information acquisition module 310 can also comprise: the second reading submodule 313 and calculating sub module 314.
Second reading submodule 313, is configured to the temporal information that will enter resting state and the dormancy time length that read memory module 380 storage;
Calculating sub module 314, draws current time information for the temporal information that will enter resting state that reads based on the second reading submodule 313 and dormancy time length computation.
In above-described embodiment, terminal or router based on time when entering resting state and dormancy time length, can calculate current time information after dormancy is waken up, thus, only based on simple operation, and without the need to since external equipment just can realize the accurate correction of system time.
As shown in Figure 8, Fig. 8 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is in earlier figures 4 or basis embodiment illustrated in fig. 6, and dormancy time acquisition module 360 can comprise: system time reading submodule 361.
Wherein, system time reading submodule 361, is configured to read system time when will enter resting state as the temporal information that will enter resting state.
In above-described embodiment, during owing to also not entering resting state, system time is accurately, and thus terminal or router can before entering resting state, and the reading system time is as the time that will enter resting state.
As shown in Figure 9, Fig. 9 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is in earlier figures 4 or basis embodiment illustrated in fig. 6, and dormancy time acquisition module 360 can comprise: the very first time obtains request and sends submodule 362 and very first time receives information submodule 363.
The very first time obtains request and sends submodule 362, is configured to when entering resting state, obtains request to the equipment transmitting time connected by network;
Very first time receives information submodule 363, is configured to receive this equipment and obtains based on the time that the very first time obtains the transmission of request transmission submodule 362 temporal information that will enter resting state asking to return.
In above-described embodiment, when entering resting state, terminal or router can obtain the accurate time information asking to obtain when will enter resting state in other equipment transmitting times.
As shown in Figure 10, Figure 10 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is in earlier figures 4 or basis embodiment illustrated in fig. 6, and dormancy time acquisition module 360 can also comprise: very first time solicited message sends submodule 364 and the second temporal information obtains submodule 365.
Very first time solicited message sends submodule 364, is configured to when entering resting state, to satellite transmitting time solicited message;
Second temporal information obtains submodule 365, is configured to the time service information returned based on this satellite, obtains the temporal information that will enter resting state.
In above-described embodiment, terminal or router, before entering resting state, can obtain precise time information to satellite, as the temporal information that will enter resting state.
As shown in figure 11, Figure 11 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and this current time information acquisition module 310 can comprise: the second time obtained request and sends submodule 315 and the second temporal information reception submodule 316.
Second time obtained request and sends submodule 315, was configured to obtain request to the equipment transmitting time connected by network;
Second temporal information receives submodule 316, is configured to receive described equipment and obtains based on the time that the second time obtained the transmission of request transmission submodule 315 current time information asking to return.
In above-described embodiment, terminal or router can obtain current time information, such as server, such as other-end to the equipment connected by network, realize the correction to system time thus.
As shown in figure 12, Figure 12 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and current time information acquisition module 310 can also comprise: the second time request information sends submodule 317 and the 3rd temporal information obtains submodule 318.
Second time request information sends submodule 317, is configured to satellite transmitting time solicited message;
3rd temporal information obtains submodule 318, is configured to the time service information returned based on satellite, obtains current time information.
In above-described embodiment, terminal or router, after entering resting state, can obtain precise time information to satellite, as the accurate time information of waking up from resting state, correct with this to system time.
As shown in figure 13, Figure 13 is the another kind of system time means for correcting block diagram of the disclosure according to an exemplary embodiment, and this embodiment is on aforementioned basis embodiment illustrated in fig. 3, and system time correction module 320 can comprise: amendment submodule 321.
Amendment submodule 321, is configured to present system time to be revised as the current time information that current time information acquisition module 310 obtains.
The means for correcting embodiment of the system time shown in above-mentioned Fig. 3 to Figure 13 can be applied in router or terminal.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the disclosure also provides a kind of terminal, and described terminal includes processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to: when waking up from resting state, obtains current time information by the mode beyond the reading system time; Present system time is corrected based on described current time information.
Accordingly, the disclosure also provides a kind of router, and described router includes processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to: when waking up from resting state, obtains current time information by the mode beyond the reading system time; Present system time is corrected based on described current time information.
As shown in figure 14, Figure 14 is a structural representation of a kind of means for correcting 1400 for system time according to an exemplary embodiment.Such as, device 1400 may be provided in a routing device.With reference to Figure 14, device 1400 comprises processing components 1422, and it comprises one or more processor further, and the memory resource representated by memory 1432, can such as, by the instruction of the execution of processing unit 1422, application program for storing.The application program stored in memory 1432 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1422 is configured to perform instruction, to perform the method for above-mentioned accessed web page.
Device 1400 can also comprise the power management that a power supply module 1426 is configured to final controlling element 1400, and a wired or wireless network interface 1450 is configured to device 1400 to be connected to network, and input and output (I/O) interface 1458.Device 1400 can operate the operating system based on 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 structural representation of a kind of means for correcting 1500 for system time of the disclosure according to an exemplary embodiment.Such as, device 1500 can be the mobile phone with routing function, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 15, device 1500 can comprise following one or more assembly: processing components 1502, memory 1504, power supply module 1506, multimedia groupware 1508, audio-frequency assembly 1510, the interface 1512 of I/O (I/O), sensor cluster 1514, and communications component 1516.
The integrated operation of the usual control device 1500 of processing components 1502, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1502 can comprise one or more processor 1520 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1502 can comprise one or more module, and what be convenient between processing components 1502 and other assemblies is mutual.Such as, processing components 1502 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1508 and processing components 1502.
Memory 1504 is configured to store various types of data to be supported in the operation of device 1500.The example of these data comprises for any application program of operation on device 1500 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1504 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 1506 is device 1500 provide electric power.Power supply module 1506 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1500 and be associated.
Multimedia groupware 1508 is included in the screen providing an output interface between described device 1500 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 1508 comprises a front-facing camera and/or post-positioned pick-up head.When device 1500 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1510 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1510 comprises a microphone (MIC), and when device 1500 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1504 further or be sent via communications component 1516.In certain embodiments, audio-frequency assembly 1510 also comprises a loud speaker, for output audio signal.
I/O interface 1512 is for providing interface between processing components 1502 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1514 comprises one or more transducer, for providing the state estimation of various aspects for device 1500.Such as, sensor cluster 1514 can detect the opening/closing state of device 1500, the relative positioning of assembly, such as described assembly is display and the keypad of device 1500, the position of all right checkout gear 1500 of sensor cluster 1514 or device 1500 assemblies changes, the presence or absence that user contacts with device 1500, the variations in temperature of device 1500 orientation or acceleration/deceleration and device 1500.Sensor cluster 1514 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1514 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1514 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor, microwave remote sensor or temperature sensor.
Communications component 1516 is configured to the communication being convenient to wired or wireless mode between device 1500 and other equipment.Device 1500 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1516 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 1516 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1500 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
Those skilled in the art, at consideration specification and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The disclosure is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
The foregoing is only preferred embodiment of the present disclosure, not in order to limit the disclosure, all within spirit of the present disclosure and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the disclosure protects.

Claims (24)

1. a bearing calibration for system time, is characterized in that, comprising:
When waking up from resting state, obtain current time information by the mode beyond the reading system time;
Present system time is corrected based on described current time information.
2. method according to claim 1, is characterized in that, described wake up from resting state before, described method also comprises:
Acquisition will enter the temporal information of resting state;
The starting counter value of real-time clock is set based on the described temporal information that will enter resting state;
When entering resting state, described real-time clock starts counting based on described starting counter value.
3. method according to claim 2, is characterized in that, describedly obtains current time information by the mode beyond the reading system time, comprising:
Read the current count value that described real-time clock starts based on described starting counter value to count to get;
Current time information is obtained according to described current count value.
4. method according to claim 1, is characterized in that, described in enter resting state before, described method also comprises:
Acquisition will enter the temporal information of resting state;
Acquisition will enter the dormancy time length of described resting state;
The temporal information of resting state and described dormancy time length to be entered described in corresponding storage.
5. method according to claim 4, is characterized in that, describedly obtains current time information by the mode beyond the reading system time, comprising:
Read store described and will enter the temporal information of resting state and described dormancy time length;
The temporal information that will enter resting state based on described and described dormancy time length computation draw current time information.
6. the method according to claim 2 or 4, is characterized in that, the temporal information that described acquisition will enter resting state comprises:
System time when reading will enter resting state is as the temporal information that will enter resting state.
7. the method according to claim 2 or 4, is characterized in that, described acquisition will enter the temporal information of resting state, comprising:
When resting state will be entered, obtain request to the equipment transmitting time connected by network;
Receive described equipment and obtain the temporal information that will enter resting state asking to return based on the described time.
8. the method according to claim 2 or 4, is characterized in that, described acquisition will enter the temporal information of resting state, comprising:
When resting state will be entered, to satellite transmitting time solicited message;
Based on the time service information that described satellite returns, obtain the temporal information that will enter resting state.
9. method according to claim 1, is characterized in that, describedly obtains current time information by the mode beyond the reading system time, comprising:
Request is obtained to the equipment transmitting time connected by network;
Receive described equipment and obtain the current time information asking to return based on the described time.
10. method according to claim 1, is characterized in that, describedly obtains current time information by the mode beyond the reading system time, comprising:
To satellite transmitting time solicited message;
Based on the time service information that described satellite returns, obtain current time information.
11. methods according to claim 1, is characterized in that, described based on described current time information correction present system time, comprising:
Described present system time is revised as described current time information.
The means for correcting of 12. 1 kinds of system times, is characterized in that, comprising:
Current time information acquisition module, during for waking up from resting state, obtains current time information by the mode beyond the reading system time;
System time correction module, for correcting present system time based on described current time information.
13. devices according to claim 12, is characterized in that, described device also comprises:
First dormancy time acquisition module, for obtaining the temporal information that will enter resting state;
Module is set, for arranging the starting counter value of real-time clock based on the described temporal information that will enter resting state;
Counting module, for when entering resting state, described real-time clock starts counting based on described starting counter value.
14. devices according to claim 13, is characterized in that, described current time information acquisition module comprises:
First reading submodule, for reading the current count value that described real-time clock starts based on described starting counter value to count to get;
Very first time information obtains submodule, for obtaining current time information according to described current count value.
15. devices according to claim 12, is characterized in that, described device also comprises:
Second dormancy time acquisition module, for obtaining the temporal information that will enter resting state;
Dormancy time length acquisition module, for obtaining the dormancy time length that will enter described resting state;
Memory module, for correspondence storage described in enter the temporal information of resting state and described dormancy time length.
16. devices according to claim 15, is characterized in that, described current time information acquisition module comprises:
Second reading submodule, for reading the temporal information and described dormancy time length that will enter resting state described in storage;
Calculating sub module, draws current time information for the temporal information that will enter resting state based on described and described dormancy time length computation.
17. devices according to claim 13 or 15, it is characterized in that, described dormancy time acquisition module comprises:
System time reading submodule, for reading system time when will enter resting state as the temporal information that will enter resting state.
18. devices according to claim 13 or 15, it is characterized in that, described dormancy time acquisition module comprises:
The very first time obtains request and sends submodule, for when entering resting state, obtains request to the equipment transmitting time connected by network;
Very first time receives information submodule, obtains for receiving described equipment the temporal information that will enter resting state asking to return based on the described time.
19. devices according to claim 13 or 15, it is characterized in that, described dormancy time acquisition module comprises:
Very first time solicited message sends submodule, for when entering resting state, to satellite transmitting time solicited message;
Second temporal information obtains submodule, for the time service information returned based on described satellite, obtains the temporal information that will enter resting state.
20. devices according to claim 12, is characterized in that, described current time information acquisition module comprises:
Second time obtained request and sends submodule, for obtaining request to the equipment transmitting time connected by network;
Second temporal information receives submodule, obtains for receiving described equipment the current time information asking to return based on the described time.
21. devices according to claim 12, is characterized in that, described current time information acquisition module comprises:
Second time request information sends submodule, for satellite transmitting time solicited message;
3rd temporal information obtains submodule, for the time service information returned based on described satellite, obtains current time information.
22. devices according to claim 12, is characterized in that, described system time correction module comprises:
Amendment submodule, for being revised as described current time information by described present system time.
23. 1 kinds of terminals, is characterized in that, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
When waking up from resting state, obtain current time information by the mode beyond the reading system time;
Present system time is corrected based on described current time information.
24. 1 kinds of routers, is characterized in that, comprising: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to:
When waking up from resting state, obtain current time information by the mode beyond the reading system time;
Present system time is corrected based on described current time information.
CN201510368069.4A 2015-06-29 2015-06-29 Bearing calibration, device, terminal and the router of system time Active CN104917581B (en)

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 true CN104917581A (en) 2015-09-16
CN104917581B 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)

Cited By (10)

* Cited by examiner, † Cited by third party
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
CN107438811A (en) * 2017-05-22 2017-12-05 北京小米移动软件有限公司 One kind breath screen shows 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
CN111399624A (en) * 2020-02-18 2020-07-10 上海泰辑软件有限公司 Embedded low-power-consumption image display method 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
CN113472467A (en) * 2020-03-30 2021-10-01 中国电信股份有限公司 Clock synchronization method, device and system
CN113934257A (en) * 2021-10-15 2022-01-14 广州极飞科技股份有限公司 System time calculation method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Cited By (10)

* Cited by examiner, † Cited by third party
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
CN107438811A (en) * 2017-05-22 2017-12-05 北京小米移动软件有限公司 One kind breath screen shows 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
CN111399624A (en) * 2020-02-18 2020-07-10 上海泰辑软件有限公司 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
CN113934257A (en) * 2021-10-15 2022-01-14 广州极飞科技股份有限公司 System time calculation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN104917581B (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN104917581A (en) System time correction method and device, terminal and router
US10423379B2 (en) Method and device for screen-off display
US20160283022A1 (en) Method and Device for Awakening an Element
CN105159675A (en) Electronic equipment, wakeup method and device of electronic equipment
US11457437B2 (en) Method and apparatus for configuring information, base station and user equipment
US11194297B2 (en) Method and apparatus for controlling alarm clock
CN105279499A (en) Age recognition method and device
CN105532634A (en) Ultrasonic wave mosquito repel method, device and system
CN107623899B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN103995834A (en) Sensitive information detection method and related device
CN106357910A (en) Terminal working mode switching method and device
CN103544456A (en) Information processing method, information processing device and mobile terminal
CN105094968A (en) Method and device for rousing MCU
CN105406882A (en) Terminal equipment control method and device
CN104616241A (en) Video screen-shot method and device
US10497303B2 (en) Method and device for always on display, and computer-readable storage medium
CN103927200A (en) Electronic equipment awakening method and related device
CN104038882A (en) Loudspeaker debugging model calibration method and loudspeaker debugging method and device
CN105611048A (en) Alarm clock prompt method and device, and mobile terminal
US11228860B2 (en) Terminal positioning method, apparatus, electronic device and storage medium
CN107027157A (en) Location updating method and equipment
CN104657172A (en) System upgrading method and device
CN109218509A (en) Breath screen display method, apparatus and computer readable storage medium
EP3855773A1 (en) Vehicle-to-everything synchronization method and device
CN105159434A (en) Time display method, 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