CN106027191A - Time updating method, device and terminal equipment - Google Patents
Time updating method, device and terminal equipment Download PDFInfo
- Publication number
- CN106027191A CN106027191A CN201610344426.8A CN201610344426A CN106027191A CN 106027191 A CN106027191 A CN 106027191A CN 201610344426 A CN201610344426 A CN 201610344426A CN 106027191 A CN106027191 A CN 106027191A
- Authority
- CN
- China
- Prior art keywords
- time
- temporal information
- information
- terminal
- precise
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0638—Clock or time synchronisation among nodes; Internode synchronisation
- H04J3/0658—Clock or time synchronisation among packet nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Electric Clocks (AREA)
Abstract
The invention relates to a time updating method, device and equipment. The time updating method comprises the following steps of: obtaining at least three time information, wherein various time information corresponds to different time servers; and the time deviation between the time information and the local time of a terminal is greater than or equal to a pre-set threshold value; determining the precise time according to at least two time information if at least two time information in at least three time information satisfies a pre-set condition; and updating the local time of the terminal according to the precise time. The fact that the time of the terminal equipment is actually inaccurate is determined by obtaining the time of different time servers; even the time deviation is beyond a pre-set difference value range, the time of the terminal equipment is also updated; the problem that use of an application program is influenced due to the fact that the time is not updated when the local time of the terminal equipment is inaccurate can be avoided; and thus, the user experience is effectively improved.
Description
Technical field
It relates to computer technology, particularly relate to the update method of a kind of time, device and terminal unit.
Background technology
Along with advancing by leaps and bounds of intelligent terminal technology, the terminal unit of intelligence has been widely spread application, such as: intelligence
The equipment such as energy mobile phone, panel computer, intelligent game computer, user, outside the additional function using those equipment, also can use
Those terminal units obtain temporal information.At present the time update mode of terminal unit is when time server obtains nearest
Between information, determine that whether the deviation of time current with terminal unit time that this temporal information is carried is less than predetermined deviation threshold
Value, if less than being then updated the time of terminal unit, if above-mentioned deviation is more than deviation threshold, is not updated.
If in this case the time of mobile phone originally mistake also cannot be updated, cause time accuracy low, and can lead
Causing the use existing problems of a lot of application program, Consumer's Experience is poor.
Summary of the invention
For overcoming problem present in correlation technique, the disclosure provides the update method of a kind of time, device and terminal unit.
First aspect according to disclosure embodiment, it is provided that the update method of a kind of time, including:
Terminal obtains at least three temporal information;Wherein, the corresponding different time server of each temporal information, and time described
Between the time deviation of information and described terminal the machine time more than or equal to predetermined threshold value;
If there is at least two temporal information in described at least three temporal information and meet pre-conditioned, then according to described at least two
Individual temporal information determines precise time;
According to described precise time, the machine time of described terminal is carried out time renewal.
The technical scheme that disclosure embodiment provides, terminal unit, by obtaining the time of different time servers, determines
The time going out terminal unit is the most inaccurate, and obtains precise time, even if time difference has been over the difference preset
Scope, is also updated the time of terminal unit, it is to avoid cause the time the most more owing to the time of terminal unit itself is inaccurate
Newly, affect the use of application program, be effectively improved Consumer's Experience.
Optionally, described terminal obtains at least three temporal information, including:
Described terminal asks the acquisition time to network side;
When the deviation of described time with described terminal the machine time is more than described predetermined threshold value, record described deviation and described end
The positional information of end, it is thus achieved that described temporal information, and repeat to ask the acquisition time to network side;
When number of repetition reaches preset times, it is thus achieved that described at least three temporal information.
In the scheme that disclosure embodiment provides, terminal unit can be repeatedly when the time server that network side is different obtains
Between, when the time deviation obtaining time and the terminal unit itself come from time server is more than predetermined threshold value, record every
Positional information when the secondary acquisition time, i.e. all obtains a temporal information after each acquisition time, takes from multiple times
Business device obtains, and can avoid the renewal timing error that the timing error of certain time server itself causes.
Optionally, meet pre-conditioned if described at least three temporal information exists at least two temporal information, then root
Precise time is determined according to described at least two temporal information, including:
In described at least three temporal information, determine that positional information meets the temporal information of predeterminated position condition;
The time is selected to be less than preset standard by mistake with the time deviation of described terminal the machine time in the temporal information determined
The temporal information of difference;
Described precise time is determined according to the time that the temporal information selected is corresponding.
Optionally, meet pre-conditioned if described at least three temporal information exists at least two temporal information, then root
Precise time is determined according to described at least two temporal information, including:
If the time that there is at least two temporal information corresponding in described at least three temporal information is identical, it is determined that described at least
Time corresponding to two temporal informations is described precise time.
In the scheme that disclosure embodiment provides, during the determination of precise information, this programme does not limit to be selected
The time of at least two temporal information instruction is identical, it is allowed to there is certain technical error, i.e. in standard error scope
Inside it is regarded as coupling, from the time that multiple time servers indicate, gets rid of the timing error that caused by server failure
Situation, determines that precise time carries out the renewal of the system time of terminal unit, improves the accuracy of time, and ensures to answer
Normal use, Consumer's Experience is effectively provided.
Optionally, described according to described precise time, the machine time of described terminal is carried out time renewal, including:
Time update notification message is pushed, so that user determines whether to carry out time renewal to user;
If user selects to carry out time renewal, then system time is updated to described precise time.
In the scheme that disclosure embodiment provides, after determining precise time, terminal unit can by voice message or
Person shows that the modes such as promotion message remind user's time to be carried out renewal, chooses whether to be updated for user, if user
If selecting not to be updated, then abandon the renewal of this time, if user selects to carry out time renewal, then by system time
It is updated to the precise time determined, it is ensured that while time precision, facilitate user to select, improves Consumer's Experience.
Optionally, the positional information of described terminal includes the community that the longitude at described terminal place, latitude and described terminal are resident
Information.
Optionally, each temporal information also includes that the corresponding time is inclined with the time of the current time of described terminal unit
Difference.
In the scheme that disclosure embodiment provides, terminal unit while the different time server acquisition time, Ke Yiji
Record the position and cell information being presently in, to determine that terminal unit is the time obtained in different positions, such as: family,
The place such as company, market, distant time server, to ensure the follow-up accuracy determining precise time.
Second aspect according to disclosure embodiment, it is provided that the updating device of a kind of time, including:
First acquisition module, is configured to obtain at least three temporal information;Wherein, each temporal information corresponding different time
Between server, and the time deviation of described temporal information and described terminal the machine time is more than or equal to predetermined threshold value;
First processing module, meets default if being configured in described at least three temporal information there is at least two temporal information
Condition, then determine precise time according to described at least two temporal information;
Second processing module, when being configured to carry out the machine time of the updating device of described time according to described precise time
Between update.
Optionally, described first acquisition module includes:
First obtains submodule, is configured to ask the acquisition time to network side;
First processes submodule, is configured as the deviation of described time and described terminal the machine time more than described predetermined threshold value
Time, record described deviation and the positional information of described terminal, it is thus achieved that described temporal information, and repeat to obtain to network side request
Time;
Second processes submodule, is configured as number of repetition when reaching preset times, it is thus achieved that described at least three temporal information.
Optionally, described first processing module includes:
3rd processes submodule, is configured to determine that positional information meets predeterminated position in described at least three temporal information
The temporal information of condition;
Fourth process submodule, is configured in the temporal information determined select the updating device of time and described time
The time deviation of the machine time is less than the temporal information of preset standard error;
5th processes submodule, and the time according to the temporal information selected is corresponding that is configured to determines described precise time.
Optionally, described first processing module includes:
6th processes submodule, if it is corresponding to be configured to there is at least two temporal information in described at least three temporal information
Time is identical, it is determined that time corresponding to described at least two temporal information is described precise time.
Optionally, described second processing module includes:
First sends submodule, is configured to push time update notification message to user, during so that user determines whether to carry out
Between update;
7th process submodule, if be configured to user select carry out time renewal, then system time is updated to described accurately
Time.
Optionally, the positional information of the updating device of the described time that described first acquisition module obtains includes the described time more
The longitude at new equipment place, latitude and resident cell information.
In the scheme that any of the above-described open embodiment provides, the updating device of time is used for performing the technology of the method for first aspect
Scheme, it is similar with technique effect that it realizes principle.
The third aspect according to disclosure embodiment provides a kind of terminal unit, including: it is configured to control executable instruction and holds
The processor of row, be configured to store the memorizer of processor executable and be configured to receive message receptor and
Send the transmitter of message;
Described processor is configured to:
Obtain at least three temporal information;Wherein, the corresponding different time server of each temporal information, and letter of described time
Breath is more than or equal to predetermined threshold value with the time deviation of described terminal unit the machine time;
If there is at least two temporal information in described at least three temporal information and meet pre-conditioned, then according to described at least two
Individual temporal information determines precise time;
According to described precise time, the machine time of described terminal unit is carried out time renewal.
The update method of time, device and the terminal unit that disclosure embodiment provides, by obtaining different time servers
Time, i.e. terminal unit obtain at least three temporal information, in conjunction with multiple time servers instruction time, determine
The time of terminal unit is the most inaccurate, even if time difference has been over the difference range preset, also to terminal unit
Time be updated, it is to avoid cause the time not update owing to the time of terminal unit itself is inaccurate and application program made
With impacting, it is effectively improved Consumer's Experience.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, can not limit
The disclosure processed.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet embodiments of the invention,
And for explaining the principle of the present invention together with description.
Fig. 1 is the flow chart of the update method embodiment one according to a kind of time shown in an exemplary embodiment;
Fig. 2 is the flow chart of the update method embodiment two according to a kind of time shown in an exemplary embodiment;
Fig. 3 is the block diagram of the updating device embodiment one according to a kind of time shown in an exemplary embodiment;
Fig. 4 is the block diagram of the updating device embodiment two according to a kind of time shown in an exemplary embodiment;
Fig. 5 is the block diagram of the updating device embodiment three according to a kind of time shown in an exemplary embodiment;
Fig. 6 is the block diagram of the updating device embodiment four according to a kind of time shown in an exemplary embodiment;
Fig. 7 is the block diagram of the updating device embodiment five according to a kind of time shown in an exemplary embodiment;
Fig. 8 is the block diagram of the entity according to a kind of terminal unit shown in an exemplary embodiment;
Fig. 9 is the block diagram according to a kind of terminal unit 1200 shown in an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to accompanying drawing
Time, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.In following exemplary embodiment
Described embodiment does not represent all embodiments consistent with the present invention.On the contrary, they are only and the most appended power
The example of the apparatus and method that some aspects that described in detail in profit claim, the present invention are consistent.
Fig. 1 is the flow chart of the update method embodiment one according to a kind of time shown in an exemplary embodiment.Such as Fig. 1
Shown in, the method is mainly used in the terminal unit of intelligence, such as: the equipment such as mobile phone, game machine or panel computer.
The update method of this time comprises the following steps:
In step S101, terminal obtains at least three temporal information;Wherein, each temporal information corresponding different time
Server, and the time deviation of described temporal information and described terminal the machine time is more than or equal to predetermined threshold value.
In this step, after terminal unit or terminal first power on networking, when directly can obtain according to existing mode
Between time on server, the time of system is initially updated.This programme is directed to terminal unit and was normally using
Cheng Zhong, the situation that the time caused due to timing or other problems is inconsistent with network time, it is likely to result in certain applications
The problem that can not normally use.Now, terminal unit can initiate inquiry to time server, obtains temporal information, if
Determine time that this temporal information indicates time deviation with terminal unit current time less than the standard deviation preset, the most directly
According to the time information renovation system time got, otherwise, need to use the technical scheme in this programme, record this time
Information, then elsewhere, obtains another temporal information from other time server, relatively rational situation be to
Few three different time servers get three or the temporal information of more than three, to improve the degree of accuracy of scheme.
In step s 102, meet pre-conditioned if described at least three temporal information exists at least two temporal information,
Then determine precise time according to described at least two temporal information.
In this step, terminal unit need by above-mentioned at least three temporal information instruction time identical or instruction time
Between temporal information identical in range of error choose, multiple temporal informations will meet pre-conditioned multiple times
Information chooses, and this is pre-conditioned can be that the time that multiple temporal information indicates is identical with the time deviation of terminal the machine,
Or identical in certain range of error, it is also possible to be the pre-conditioned of other, can be according to practical situation in implementing
It is configured.
It is meant that: there may exist the situation of time server fault, so needing by gathering multiple time servers
The time server that temporal information is fixed a breakdown, to ensure the accuracy of temporal information.I.e. carry out according to a plurality of temporal information
Arbitration, selects the standard time, the most above-mentioned precise time.
In step s 102, according to described precise time, the machine time of described terminal is carried out time renewal.
Determining precise time instantly, after also becoming the standard time, no matter this precise time and terminal unit is current
Whether the time is greater than standard deviation, and system time is all updated to above-mentioned precise time by terminal unit, it is ensured that the standard of time
Really property, it is to avoid affect the use of application program.
The update method of the time of offer is provided, by obtaining the time of different time servers, determines
The time going out terminal unit is the most inaccurate, even if time difference has been over the difference range preset, also sets terminal
The standby time is updated, it is to avoid cause the time not update owing to the time of terminal unit itself is inaccurate and to application program
Use impacts, and is effectively improved Consumer's Experience.
Fig. 2 is the flow chart of the update method embodiment two according to a kind of time shown in an exemplary embodiment.Such as Fig. 2
Shown in, in conjunction with above-described embodiment, the method is to apply at terminal units such as mobile phone, panel computer, computer, game machines equally
On, the update method of the time that this embodiment provides comprises the following steps:
In step s 201, terminal obtains at least three temporal information;Wherein, each temporal information corresponding different time
Server, and the time deviation of described temporal information and described terminal the machine time is more than or equal to predetermined threshold value.
In this step, the specific implementation of terminal acquisition at least three temporal information may is that described terminal is to network side
The request acquisition time, i.e. obtain from the time server of network side;Big with the deviation of described terminal the machine time when the described time
When described predetermined threshold value, record described deviation and the positional information of described terminal, it is thus achieved that described temporal information, and repeat to
The network side request acquisition time;When number of repetition reaches preset times, it is thus achieved that described at least three temporal information.
Each temporal information that terminal unit obtains includes: when the time of server instruction of correspondence, detection obtain the described time
Described terminal unit location information and cell information.In the program, terminal unit obtains the time from time server
Mode at least includes following several: this terminal unit of time server Periodic Notice;Or, terminal unit actively takes to the time
Business device sends the lower message of time inquiring request, so that time server time of return, then terminal unit combines the time returned
And the positional information of described terminal, (specifically can include that the longitude at described terminal place, latitude and described terminal are resident
Cell information) etc. obtain above-mentioned temporal information;The time server in any embodiment in this programme can be legal specially
Server for Time Service, it is also possible to be the common webserver, it is possible to provide the time to terminal unit.
And terminal unit can record location and cell information when obtaining the time in this scenario every time, in order to follow-up end
End equipment can determine that during carrying out Data Analysis Services multiple temporal information is at different position acquisitions, or
Different time servers obtains, and the data repeatedly obtained at server at the same time cannot judge that this time server is
No fault, so not can determine that accuracy, it is therefore desirable to obtains time, comprehensive analysis processing from different time servers.
Further, each temporal information also includes that the corresponding time is inclined with the time of the current time of described terminal unit
Difference.
In step S202, meet pre-conditioned if described at least three temporal information exists at least two temporal information,
Then determine precise time according to described at least two temporal information.
In this step, if three temporal informations there being the time of two temporal information instructions match each other, such as: have two
The time consistency that individual time server provides, or consistent with the time deviation of terminal unit, or time deviation is in permission
In range of error, then think that the time of two temporal information instructions matches each other, then these two temporal informations are chosen
As, time indicated as precise time, the specific implementation of this step at least includes following two:
The first implementation: determine in described at least three temporal information positional information meet predeterminated position condition time
Between information;The time is selected to be less than preset standard with the time deviation of described terminal the machine time in the temporal information determined
The temporal information of error;Described precise time is determined according to the time that the temporal information selected is corresponding.
, if there is the time phase that at least two temporal information is corresponding in described at least three temporal information in the second implementation
The time corresponding with, it is determined that described at least two temporal information is described precise time.
It is meant that: there is the time of multiple temporal information instruction and the time deviation of terminal unit at least three temporal information
Identical, all the fastest than the time of terminal unit itself two minutes, or slow a few minutes, it is determined that those time selected
The time of information instruction is described precise time;
The third implementation: if there is the time of multiple temporal information instruction and described end in described at least three temporal information
Error between the time deviation of end equipment is less than preset standard error, the then time arbitrary temporal information selected indicated
It is defined as described precise time.
In step S203, push time update notification message to user, so that user determines whether to carry out time renewal.
In step S204, if user selects to carry out time renewal, then system time is updated to described precise time.
In above-mentioned two step, terminal unit is it was confirmed that after precise time, can directly carry out system time
Update, it is also possible to be first prompted to user, push time more new information, user oneself choose whether the time to be carried out more
Newly, more right to choose is provided a user with.
Display to the user that time update notification, and option is provided on interface, process according to the selection of user, if used
Family selects to carry out time renewal, then system time is updated to the precise time got, is not updated.
The update method of the time that disclosure embodiment provides, after determining precise time, terminal unit can pass through language
Sound prompting or display promote the modes such as message to remind user's time to be carried out renewal, choose whether to be updated for user,
If user selects not to be updated, then abandon the renewal of this time, if user selects to carry out time renewal, then will
System time is updated to the precise time determined, it is ensured that facilitate user to select while time precision, improves Consumer's Experience.
On the basis of above-mentioned two embodiment, as a example by mobile phone, the program is to implement process as follows:
1, mobile phone first passage network identity and time zone (Network identity and Time Zone, NITZ) function, from
Network side obtains the time and updates the machine time.
2, when mobile phone obtains the time from network side again, if the time deviation that the machine time and network are given (can be joined less than 5s
Put), then update the machine time.
3, when mobile phone obtains the time from network side again, if the time deviation that the machine time and network are given (can be joined more than 5s
Put), the most do not update the machine time. simply recording geographical position longitude and latitude, cell information and time deviation. form such as [warp
Degree, latitude, cell information, time deviation].
Above-mentioned steps 2 and 3 is arranged side by side two kind situations, and the scheme in 3 is the technical scheme of the application.
If more than 43 time occurs, then according to a plurality of record, arbitrate: if the time that diverse geographic location obtains is inclined
Difference very close to, then it is assumed that they are the time of standard. mobile phone time can be updated with their time.
Mobile phone time can be enhanced by technique scheme to synchronize, promote cell phone system stability, it is to avoid some apply journey
Sequence should be the time and incorrect can not apply.
Fig. 3 is the block diagram of the updating device embodiment one according to a kind of time shown in an exemplary embodiment.With reference to Fig. 3,
The updating device 10 of this time, including:
First acquisition module 11, is configured to obtain at least three temporal information;Wherein, each temporal information correspondence is different
Time server, and the time deviation of described temporal information and described terminal the machine time is more than or equal to predetermined threshold value;
First processing module 12, meets if being configured in described at least three temporal information there is at least two temporal information
Pre-conditioned, then determine precise time according to described at least two temporal information;
Second processing module 13, is configured to enter the machine time of the updating device of described time according to described precise time
The row time updates.
Embodiment of the disclosure the updating device of the time of offer, for the technical scheme of aforementioned either method embodiment, in fact
Existing principle is similar with technique effect, by obtaining the time of different time servers, determines that the time of this device is certain
It is inaccurate, and obtains precise time, even if time difference has been over the difference range preset, also to this time more
The time of new equipment is updated, it is to avoid causes the time not update owing to the time of device itself is inaccurate, affects application program
Use, be effectively improved Consumer's Experience.
On the basis of the embodiment shown in above-mentioned Fig. 3, Fig. 4 is according to a kind of time shown in an exemplary embodiment more
The block diagram of new equipment embodiment two, with reference to Fig. 4, described first acquisition module 11 includes:
First obtains submodule 111, is configured to ask the acquisition time to network side;
First processes submodule 112, is configured as the described time default more than described with the deviation of described terminal the machine time
During threshold value, record described deviation and the positional information of described terminal, it is thus achieved that described temporal information, and repeat to ask to network side
The acquisition time;
Second processes submodule 113, is configured as number of repetition when reaching preset times, it is thus achieved that the described at least three time
Information.
Optionally, the positional information of the updating device of the described time that described first acquisition module 11 obtains includes the described time
The longitude at updating device place, latitude and resident cell information.
Embodiment of the disclosure the updating device of the time of offer, for the technical scheme of aforementioned either method embodiment, in fact
Existing principle is similar with technique effect, and the updating device of time, can record while the different time server acquisition time
The position being presently in and cell information, to determine that the updating device of time is the time obtained in different positions, such as:
The places such as family, company, market, distant time server, to ensure the follow-up accuracy determining precise time.
On the basis of the embodiment shown in above-mentioned Fig. 3 or 4, Fig. 5 is according to a kind of time shown in an exemplary embodiment
The block diagram of updating device embodiment three, with reference to Fig. 5, described first processing module 12 includes:
3rd processes submodule 121, is configured to determine that in described at least three temporal information positional information meets and presets
The temporal information of locality condition;
Fourth process submodule 122, is configured in the temporal information determined select the renewal of time and described time
The time deviation of device the machine time is less than the temporal information of preset standard error;
5th processes submodule 123, be configured to according to the time that the temporal information selected is corresponding determine described accurate time
Between.
On the basis of the embodiment shown in above-mentioned Fig. 3 or 4, Fig. 6 is according to a kind of time shown in an exemplary embodiment
The block diagram of updating device embodiment four, with reference to Fig. 5, described first processing module 12 includes:
6th processes submodule 124, if being configured in described at least three temporal information there is at least two temporal information pair
The time answered is identical, it is determined that time corresponding to described at least two temporal information is described precise time.
Embodiment of the disclosure the updating device of the time of offer, for the technical scheme of aforementioned either method embodiment, in fact
Existing principle is similar with technique effect, and during the determination for very first time information, this programme does not limit first selected
The time of temporal information instruction is identical, it is allowed to there is certain technical error, i.e. all thinks in the range of standard error
It is coupling, from the time that multiple time servers indicate, gets rid of the situation of the timing error caused by server failure, really
Make the renewal that precise time carries out the system time of device, improve the accuracy of time, and ensure that the normal of application uses,
Consumer's Experience is effectively provided.
On the basis of any one shown embodiment of above-mentioned Fig. 3 to Fig. 6, Fig. 7 illustrates according to an exemplary embodiment
A kind of block diagram of the updating device embodiment five of time, with reference to Fig. 7, described second processing module 13 includes:
First send submodule 131, be configured to push time update notification message to user so that user determine whether into
The row time updates;
7th processes submodule 132, selects to carry out time renewal if being configured to user, is then updated to by system time described
Precise time.
Embodiment of the disclosure the updating device of the time of offer, for the technical scheme of aforementioned either method embodiment, in fact
Existing principle is similar with technique effect, after determining precise time, the updating device of time can pass through voice message or
Display promotes the modes such as message to remind user's time to be carried out renewal, chooses whether to be updated for user, if user's choosing
Select if not being updated, then abandon the renewal of this time, if user selects to carry out time renewal, then by system time more
The new precise time for determining, it is ensured that facilitate user to select while time precision, improves Consumer's Experience.
About the updating device of the time in each embodiment above-mentioned, the concrete mode that wherein modules performs to operate exists
About the embodiment of the method has been described in detail, explanation will be not set forth in detail herein.I.e. the foregoing describe terminal to set
Standby inner function module and structural representation.
Fig. 8 is the block diagram of the entity according to a kind of terminal unit shown in an exemplary embodiment, with reference to Fig. 8, this terminal unit
Can be implemented as: be configured to control executable instruction perform processor, be configured to store processor can perform to refer to
The memorizer of order, the transmitter being configured to transmission message and the receptor of reception message;
Described processor is configured to:
Obtain at least three temporal information;Wherein, the corresponding different time server of each temporal information, and letter of described time
Breath is more than or equal to predetermined threshold value with the time deviation of described terminal unit the machine time;
If there is at least two temporal information in described at least three temporal information and meet pre-conditioned, then according to described at least two
Individual temporal information determines precise time;
According to described precise time, the machine time of described terminal unit is carried out time renewal.
In the embodiment of above-mentioned terminal unit, it should be appreciated that this processor can be that CPU is (English: Central
Processing Unit, is called for short: CPU), it is also possible to be other general processors, digital signal processor (English: Digital
Signal Processor, is called for short: DSP), special IC (English: Application Specific Integrated Circuit,
It is called for short: ASIC) etc..The processor that general processor can be microprocessor or this processor can also be any routine
Deng, and aforesaid memorizer can be read only memory (English: read-only memory, abbreviation: ROM), at random
Access memorizer (English: random access memory, RAM), flash memory, hard disk or solid-state it is called for short:
Hard disk.Hardware processor can be embodied directly in conjunction with the step of the method disclosed in the embodiment of the present invention to have performed, or
Combine execution by the hardware in processor and software module to complete.
Fig. 9 is the block diagram according to a kind of terminal unit 1200 shown in an exemplary embodiment.Such as, this terminal unit can
To be the mobile phone of user, panel computer etc..
With reference to Fig. 9, terminal unit 1200 can include following one or more assembly: processes assembly 1202, memorizer 1204,
Power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of input/output (I/O), sensing
Device assembly 1214, and communications component 1216.
Process assembly 1202 and generally control the integrated operation of terminal unit 1200, such as with display, data communication, multimedia
The operation that operation and record operation are associated.Process assembly 1202 and can include that one or more processor 1220 performs to refer to
Order, to complete all or part of step of above-mentioned method.Additionally, process assembly 1202 can include one or more mould
Block, it is simple to process between assembly 1202 and other assemblies is mutual.Such as, process assembly 1202 and can include multimedia mould
Block, with facilitate multimedia groupware 1208 and process between assembly 1202 mutual.
Memorizer 1204 is configured to store various types of data to support the operation at terminal unit 1200.These data
Example include on terminal unit 1200 operation any application program or the instruction of method, Various types of data, message,
Picture, video etc..Memorizer 1204 can be by any kind of volatibility or non-volatile memory device or their group
Close and realize, such 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 1206 is terminal unit 1200 provide electric power.Power supply module 1206 can include power supply
Management system, one or more power supplys, and other generate, manage and distribute what electric power was associated with for terminal unit 1200
Assembly.
The screen of one output interface of offer that multimedia groupware 1208 is included between described terminal unit 1200 and user.
In certain 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 include one or
Multiple touch sensors are with the gesture on sensing touch, slip and touch panel.Described touch sensor can not only sense tactile
Touch or the border of sliding action, but also detect the persistent period relevant to described touch or slide and pressure.
Audio-frequency assembly 1210 is configured to output and/or input audio signal.Such as, audio-frequency assembly 1210 includes a wheat
Gram wind (MIC), when terminal unit 1200 is in operator scheme, such as call model, logging mode and speech recognition mode
Time, mike is configured to receive external audio signal.The audio signal received can be further stored at memorizer
1204 or send via communications component 1216.In certain embodiments, audio-frequency assembly 1210 also includes a speaker,
For exporting audio signal.
I/O interface 1212 provides interface for processing between assembly 1202 and peripheral interface module, above-mentioned peripheral interface module can
To be keyboard, put striking wheel, button etc..
Sensor cluster 1214 includes one or more sensor, for providing the state of various aspects for terminal unit 1200
Assessment.Such as, what sensor cluster 1214 can detect terminal unit 1200 opens/closed mode, assembly relative
Location, the most described assembly is display and the keypad of terminal unit 1200, and sensor cluster 1214 can also detect end
End equipment 1200 or the position change of 1,200 1 assemblies of terminal unit, existence that user contacts with terminal unit 1200 or
Do not exist, terminal unit 1200 orientation or acceleration/deceleration and the variations in temperature of terminal unit 1200.Sensor cluster 1214
Proximity transducer can be included, be configured to when there is no any physical contact object near detecting.Sensor
Assembly 1214 can also include optical sensor, such as CMOS or ccd image sensor, is used for using in imaging applications.
In certain embodiments, this sensor cluster 1214 can also include acceleration transducer, gyro sensor, and magnetic senses
Device, pressure transducer or temperature sensor.
Communications component 1216 is configured to facilitate the communication of wired or wireless mode between terminal unit 1200 and other equipment.
Terminal unit 1200 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.
In one exemplary embodiment, communications component 1216 receives the broadcast from external broadcasting management system via broadcast channel
Signal or broadcast related information.In one exemplary embodiment, described communications component 1216 also includes near-field communication (NFC)
Module, to promote junction service.Such as, can be based on RF identification (RFID) technology in NFC module, infrared data is assisted
Meeting (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, terminal unit 1200 can by one or more application specific integrated circuits (ASIC),
Digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), existing
Field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components realize, and are used for holding
The update method of row time, including:
Terminal obtains at least three temporal information;Wherein, the corresponding different time server of each temporal information, and time described
Between the time deviation of information and described terminal the machine time more than or equal to predetermined threshold value;
If there is at least two temporal information in described at least three temporal information and meet pre-conditioned, then according to described at least two
Individual temporal information determines precise time;
According to described precise time, the machine time of described terminal is carried out time renewal.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium including instruction, such as, wrap
Including the memorizer 1204 of instruction, above-mentioned instruction can have been performed said method by the processor 1220 of terminal unit 1200.
Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM),
CD-ROM, tape, floppy disk and optical data storage devices etc..
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other reality of the present invention
Execute scheme.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes or
Adaptations follow the present invention general principle and include the undocumented common knowledge in the art of the disclosure or
Conventional techniques means.Description and embodiments is considered only as exemplary, and true scope and spirit of the invention are by following power
Profit requires to point out.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and can
To carry out various modifications and changes without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (13)
1. the update method of a time, it is characterised in that including:
Terminal obtains at least three temporal information;Wherein, the corresponding different time server of each temporal information, and time described
Between the time deviation of information and described terminal the machine time more than or equal to predetermined threshold value;
If there is at least two temporal information in described at least three temporal information and meet pre-conditioned, then according to described at least two
Individual temporal information determines precise time;
According to described precise time, the machine time of described terminal is carried out time renewal.
Method the most according to claim 1, it is characterised in that described terminal obtains at least three temporal information, bag
Include:
Described terminal asks the acquisition time to network side;
When the deviation of described time with described terminal the machine time is more than described predetermined threshold value, record described deviation and described end
The positional information of end, it is thus achieved that described temporal information, and repeat to ask the acquisition time to network side;
When number of repetition reaches preset times, it is thus achieved that described at least three temporal information.
Method the most according to claim 2, it is characterised in that if existing in described at least three temporal information
At least two temporal information meets pre-conditioned, then determine precise time according to described at least two temporal information, including:
In described at least three temporal information, determine that positional information meets the temporal information of predeterminated position condition;
The time is selected to be less than preset standard by mistake with the time deviation of described terminal the machine time in the temporal information determined
The temporal information of difference;
Described precise time is determined according to the time that the temporal information selected is corresponding.
Method the most according to claim 1, it is characterised in that if existing in described at least three temporal information
At least two temporal information meets pre-conditioned, then determine precise time according to described at least two temporal information, including:
If the time that there is at least two temporal information corresponding in described at least three temporal information is identical, it is determined that described at least
Time corresponding to two temporal informations is described precise time.
Method the most according to claim 1, it is characterised in that described according to described precise time to described terminal
The machine time carries out time renewal, including:
Time update notification message is pushed, so that user determines whether to carry out time renewal to user;
If user selects to carry out time renewal, then system time is updated to described precise time.
Method the most as claimed in any of claims 1 to 5, it is characterised in that the positional information of described terminal
Including the cell information that longitude, latitude and the described terminal at described terminal place are resident.
7. the updating device of a time, it is characterised in that including:
First acquisition module, is configured to obtain at least three temporal information;Wherein, each temporal information corresponding different time
Between server, and the time deviation of described temporal information and described terminal the machine time is more than or equal to predetermined threshold value;
First processing module, meets default if being configured in described at least three temporal information there is at least two temporal information
Condition, then determine precise time according to described at least two temporal information;
Second processing module, when being configured to carry out the machine time of the updating device of described time according to described precise time
Between update.
Device the most according to claim 7, it is characterised in that described first acquisition module includes:
First obtains submodule, is configured to ask the acquisition time to network side;
First processes submodule, is configured as the deviation of described time and described terminal the machine time more than described predetermined threshold value
Time, record described deviation and the positional information of described terminal, it is thus achieved that described temporal information, and repeat to obtain to network side request
Time;
Second processes submodule, is configured as number of repetition when reaching preset times, it is thus achieved that described at least three temporal information.
Device the most according to claim 8, it is characterised in that described first processing module includes:
3rd processes submodule, is configured to determine that positional information meets predeterminated position in described at least three temporal information
The temporal information of condition;
Fourth process submodule, is configured in the temporal information determined select the updating device of time and described time
The time deviation of the machine time is less than the temporal information of preset standard error;
5th processes submodule, and the time according to the temporal information selected is corresponding that is configured to determines described precise time.
Device the most according to claim 7, it is characterised in that described first processing module includes:
6th processes submodule, if it is corresponding to be configured to there is at least two temporal information in described at least three temporal information
Time is identical, it is determined that time corresponding to described at least two temporal information is described precise time.
11. devices according to claim 7, it is characterised in that described second processing module includes:
First sends submodule, is configured to push time update notification message to user, during so that user determines whether to carry out
Between update;
7th process submodule, if be configured to user select carry out time renewal, then system time is updated to described accurately
Time.
12. according to the device described in any one of claim 7 to 11, it is characterised in that described first acquisition module obtains
The positional information of updating device of described time include the longitude at updating device place of described time, latitude and resident little
District's information.
13. 1 kinds of terminal units, it is characterised in that including: be configured to control processor, the quilt that executable instruction performs
It is configured to store the memorizer of processor executable and be configured to receive the receptor of message and send sending out of message
Send device;
Described processor is configured to:
Obtain at least three temporal information;Wherein, the corresponding different time server of each temporal information, and letter of described time
Breath is more than or equal to predetermined threshold value with the time deviation of described terminal unit the machine time;
If there is at least two temporal information in described at least three temporal information and meet pre-conditioned, then according to described at least two
Individual temporal information determines precise time;
According to described precise time, the machine time of described terminal unit is carried out time renewal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610344426.8A CN106027191B (en) | 2016-05-23 | 2016-05-23 | Update method, device and the terminal device of time |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610344426.8A CN106027191B (en) | 2016-05-23 | 2016-05-23 | Update method, device and the terminal device of time |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106027191A true CN106027191A (en) | 2016-10-12 |
CN106027191B CN106027191B (en) | 2018-09-21 |
Family
ID=57096800
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610344426.8A Active CN106027191B (en) | 2016-05-23 | 2016-05-23 | Update method, device and the terminal device of time |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106027191B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708674A (en) * | 2016-11-18 | 2017-05-24 | 中国兵器装备集团自动化研究所 | Method for recording accumulated power-on time of circuit board |
CN107612788A (en) * | 2017-11-07 | 2018-01-19 | 中国电子科技集团公司第二十八研究所 | A kind of time server fault detection method, equipment and system |
CN107682569A (en) * | 2017-11-20 | 2018-02-09 | 深圳市万普拉斯科技有限公司 | Time information renovation method, apparatus, mobile terminal and readable storage medium storing program for executing |
CN108964822A (en) * | 2018-06-29 | 2018-12-07 | 四川斐讯信息技术有限公司 | A kind of multi-scheme obtains the method and system of network time parallel |
CN110297518A (en) * | 2019-06-20 | 2019-10-01 | 合肥联宝信息技术有限公司 | A kind of method of time measurement, device, storage medium and electronic equipment |
CN111867046A (en) * | 2020-07-23 | 2020-10-30 | 上海中通吉网络技术有限公司 | Method, system, equipment and storage medium for checking local time of mobile terminal |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1296188A (en) * | 1999-11-15 | 2001-05-23 | 国际电气株式会社 | Positioning system and location caculation method in mobile telecommunication system |
CN1794655A (en) * | 2005-12-22 | 2006-06-28 | 中山大学 | Time synchronous device and synchronous method of digital household network |
CN101252429A (en) * | 2008-02-22 | 2008-08-27 | 浙江大学 | Method for enhancing clock synchronization accuracy in distributed network system |
CN101695188A (en) * | 2009-10-15 | 2010-04-14 | 上海华为技术有限公司 | Method for correcting local time and clock server |
CN102684808A (en) * | 2012-06-06 | 2012-09-19 | 哈尔滨工业大学 | Self-adaptive clock synchronous system |
CN103905135A (en) * | 2012-12-24 | 2014-07-02 | ***通信集团公司 | Method, device and system for realizing time synchronization |
US20150271643A1 (en) * | 2014-02-25 | 2015-09-24 | Ahmad Jalali | Position determination using time of arrival measurements in a wireless local area network |
CN105282840A (en) * | 2014-07-24 | 2016-01-27 | 北京信威通信技术股份有限公司 | Method for time synchronization between nodes in wireless Ad Hoc network |
-
2016
- 2016-05-23 CN CN201610344426.8A patent/CN106027191B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1296188A (en) * | 1999-11-15 | 2001-05-23 | 国际电气株式会社 | Positioning system and location caculation method in mobile telecommunication system |
CN1794655A (en) * | 2005-12-22 | 2006-06-28 | 中山大学 | Time synchronous device and synchronous method of digital household network |
CN101252429A (en) * | 2008-02-22 | 2008-08-27 | 浙江大学 | Method for enhancing clock synchronization accuracy in distributed network system |
CN101695188A (en) * | 2009-10-15 | 2010-04-14 | 上海华为技术有限公司 | Method for correcting local time and clock server |
CN102684808A (en) * | 2012-06-06 | 2012-09-19 | 哈尔滨工业大学 | Self-adaptive clock synchronous system |
CN103905135A (en) * | 2012-12-24 | 2014-07-02 | ***通信集团公司 | Method, device and system for realizing time synchronization |
US20150271643A1 (en) * | 2014-02-25 | 2015-09-24 | Ahmad Jalali | Position determination using time of arrival measurements in a wireless local area network |
CN105282840A (en) * | 2014-07-24 | 2016-01-27 | 北京信威通信技术股份有限公司 | Method for time synchronization between nodes in wireless Ad Hoc network |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708674A (en) * | 2016-11-18 | 2017-05-24 | 中国兵器装备集团自动化研究所 | Method for recording accumulated power-on time of circuit board |
CN106708674B (en) * | 2016-11-18 | 2019-06-07 | 中国兵器装备集团自动化研究所 | A kind of method that writing circuit plate adds up power-on time |
CN107612788A (en) * | 2017-11-07 | 2018-01-19 | 中国电子科技集团公司第二十八研究所 | A kind of time server fault detection method, equipment and system |
CN107612788B (en) * | 2017-11-07 | 2020-09-18 | 中国电子科技集团公司第二十八研究所 | Time server fault detection method, equipment and system |
CN107682569A (en) * | 2017-11-20 | 2018-02-09 | 深圳市万普拉斯科技有限公司 | Time information renovation method, apparatus, mobile terminal and readable storage medium storing program for executing |
CN108964822A (en) * | 2018-06-29 | 2018-12-07 | 四川斐讯信息技术有限公司 | A kind of multi-scheme obtains the method and system of network time parallel |
CN108964822B (en) * | 2018-06-29 | 2020-09-01 | 重庆趣玩科技有限公司 | Method and system for acquiring network time in parallel by multiple schemes |
CN110297518A (en) * | 2019-06-20 | 2019-10-01 | 合肥联宝信息技术有限公司 | A kind of method of time measurement, device, storage medium and electronic equipment |
CN111867046A (en) * | 2020-07-23 | 2020-10-30 | 上海中通吉网络技术有限公司 | Method, system, equipment and storage medium for checking local time of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106027191B (en) | 2018-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106027191A (en) | Time updating method, device and terminal equipment | |
RU2641255C1 (en) | Method and device for access to wireless access point | |
RU2635237C2 (en) | Method and device for deleting intelligent script | |
KR101678038B1 (en) | Method, apparatus, program, and recording medium for automatically connecting wireless network | |
EP3440851B1 (en) | Proactive actions on mobile device using uniquely-identifiable and unlabeled locations | |
CN103826007A (en) | Method and device for remotely controlling terminal, and terminal device | |
CN104853336A (en) | Method for discovering intelligent equipment, method for accessing to internet and devices thereof | |
CN104105064A (en) | Device locating method and device | |
CN105487863A (en) | Interface setting method and device based on scene | |
CN104836924A (en) | Number marking method and device | |
CN104978267A (en) | Web page testing method, terminal and server | |
CN105208015A (en) | Application multi-account login processing method and device and terminal device | |
CN103944804A (en) | Contact recommending method and device | |
KR101852244B1 (en) | Recommendation information acquisition method, terminal, server, program, and recording medium | |
CN105930536A (en) | Method and device for creating indexes and method and device for jumping pages | |
CN106157602A (en) | The method and apparatus of calling vehicle | |
CN105100096B (en) | Verification method and device | |
CN104994125A (en) | Information sending method and device and information displaying method and device | |
CN106295861A (en) | The acquisition methods of weather forecast information, device and equipment | |
CN105372999A (en) | Data processing method and device | |
CN104539662A (en) | Information transmission method and device | |
CN109218509A (en) | Breath screen display method, apparatus and computer readable storage medium | |
CN106990989A (en) | The method and device for controlling application program to install | |
CN104050236B (en) | Web site contents update reminding method, server and client side | |
KR20180078104A (en) | Interface display method and apparatus |
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 |