CN106027191B - Update method, device and the terminal device of time - Google Patents

Update method, device and the terminal device of time Download PDF

Info

Publication number
CN106027191B
CN106027191B CN201610344426.8A CN201610344426A CN106027191B CN 106027191 B CN106027191 B CN 106027191B CN 201610344426 A CN201610344426 A CN 201610344426A CN 106027191 B CN106027191 B CN 106027191B
Authority
CN
China
Prior art keywords
time
temporal information
temporal
terminal
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610344426.8A
Other languages
Chinese (zh)
Other versions
CN106027191A (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 Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610344426.8A priority Critical patent/CN106027191B/en
Publication of CN106027191A publication Critical patent/CN106027191A/en
Application granted granted Critical
Publication of CN106027191B publication Critical patent/CN106027191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock 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 disclosure is directed to a kind of update method of time, device and equipment, which includes:Obtain at least three temporal informations;Wherein, each temporal information corresponds to different time servers, and the temporal information and the time deviation of terminal the machine time are greater than or equal to predetermined threshold value;If at least three temporal information, there are at least two temporal informations to meet preset condition, and precise time is determined according at least two temporal informations;Time update is carried out to the machine time of the terminal according to the precise time.By the time for obtaining different time servers, to determine that the time of terminal device is strictly inaccuracy, even the time difference has been over preset difference range, also the time of terminal device is updated, it avoids the time inaccuracy due to terminal device itself that the time is caused not update the use for influencing application program, effectively improves user experience.

Description

Update method, device and the terminal device of time
Technical field
This disclosure relates to a kind of computer technology more particularly to update method of time, device and terminal device.
Background technology
With advancing by leaps and bounds for intelligent terminal technology, intelligent terminal device has been widely spread application, such as: The equipment such as smart mobile phone, tablet computer, intelligent game computer, user can also use except the additional function using those equipment Those terminal devices obtain temporal information.The time update mode of terminal device is when obtaining nearest from time server at present Between information, determine the deviation of time and terminal device that the temporal information carries current time whether less than predetermined deviation threshold Value, if it is less than being then updated to the time of terminal device, if above-mentioned deviation is more than deviation threshold, without update. In this case it cannot be also updated if the time of mobile phone is originally wrong, cause time accuracy low, and can lead Cause the use of many application programs there are problem, user experience is poor.
Invention content
To overcome the problems in correlation technique, the disclosure provides a kind of update method of time, device and terminal and sets It is standby.
According to the first aspect of the embodiments of the present disclosure, a kind of update method of time is provided, including:
Terminal obtains at least three temporal informations;Wherein, each temporal information corresponds to different time servers, and described Temporal information and the time deviation of terminal the machine time are greater than or equal to predetermined threshold value;
If there are at least two temporal informations to meet preset condition at least three temporal information, according to extremely Few two temporal informations determine precise time;
Time update is carried out to the machine time of the terminal according to the precise time.
The technical solution that the embodiment of the present disclosure provides, terminal device are come by the time of the different time server of acquisition It determines that the time of terminal device is strictly inaccuracy, and obtains precise time, the even time difference has been over preset Difference range is also updated the time of terminal device, and the time inaccuracy due to terminal device itself is avoided to cause the time It does not update, influences the use of application program, effectively improve user experience.
Optionally, the terminal obtains at least three temporal informations, including:
The terminal asks to obtain the time to network side;
When the deviation of the time and terminal the machine time are more than the predetermined threshold value, the deviation and institute are recorded The location information for stating terminal obtains the temporal information, and repeats to ask to obtain the time to network side;
When number of repetition reaches preset times, at least three temporal information is obtained.
In the scheme that the embodiment of the present disclosure provides, terminal device can be obtained repeatedly to the different time server of network side Time is recorded when the time deviation of the time and terminal device itself come from time server acquisition are more than predetermined threshold value The location information when time is obtained every time, i.e., a temporal information is all obtained after obtaining the time every time, from multiple times Server is obtained, can renewal time mistake caused by the timing error to avoid some time server itself.
Optionally, if there are at least two temporal informations to meet preset condition at least three temporal informations, Precise time is then determined according at least two temporal information, including:
Determine that location information meets the temporal information of predeterminated position condition at least three temporal information;
The time deviation of time and terminal the machine time is selected to be less than pre- bidding in the temporal information determined The temporal information of quasi- error;
The precise time is determined according to the temporal information the selected corresponding time.
Optionally, if there are at least two temporal informations to meet preset condition at least three temporal informations, Precise time is then determined according at least two temporal information, including:
If there are at least two temporal informations corresponding time is identical at least three temporal information, it is determined that described At least two temporal informations corresponding time is the precise time.
In the scheme that the embodiment of the present disclosure provides, during the determination of precise information, this programme does not limit selection The time of at least two temporal informations instruction gone out wants identical, allows that there are certain technical errors, i.e., in standard error Matched, exclusion time mistake as caused by server failure from the time that multiple time servers indicate is regarded as in range Accidentally the case where, determines that precise time carries out the update of the system time of terminal device, improves the accuracy of time, and ensure The normal use of application, effectively provides user experience.
Optionally, described that time update is carried out to the machine time of the terminal according to the precise time, including:
Time update notification message is pushed to user, so that user determines whether to carry out time update;
If user selects to carry out time update, system time is updated to the precise time.
In the scheme that the embodiment of the present disclosure provides, after precise time is determined, terminal device can be carried by voice Whether showing or showing pushes the modes such as message that user is reminded to carry out time update, be updated for selection by the user, if User selects without update, then to abandon the update of this time, if user selects to carry out time update, when by system Between be updated to the precise time determined, ensure to facilitate user to select while time precision, improve user experience.
Optionally, the location information of the terminal includes that longitude, latitude and the terminal where the terminal are resident Cell information.
Optionally, each temporal information further includes the time of corresponding time and the current time of the terminal device Deviation.
In the scheme that the embodiment of the present disclosure provides, terminal device, can while obtaining the time from different time server To record the position being presently in and cell information, to determine that terminal device is the time obtained in different positions, such as:Family In, company, the places such as market, the time server of distance farther out, to ensure the follow-up accuracy for determining precise time.
According to the second aspect of the embodiment of the present disclosure, a kind of updating device of time is provided, including:
First acquisition module is configured as obtaining at least three temporal informations;Wherein, each temporal information corresponds to different Time server, and the temporal information and the time deviation of terminal the machine time are greater than or equal to predetermined threshold value;
First processing module, if being configured as at least three temporal information, there are at least two temporal informations satisfactions Preset condition then determines precise time according at least two temporal information;
Second processing module, be configured as according to the precise time to the machine time of the updating device of the time into The row time updates.
Optionally, first acquisition module includes:
First acquisition submodule is configured as asking to obtain the time to network side;
First processing submodule is configured as being more than described preset when the deviation of the time and terminal the machine time When threshold value, the location information of the deviation and the terminal is recorded, obtains the temporal information, and repeats to obtain to network side request Obtain the time;
Second processing submodule is configured as when number of repetition reaches preset times, obtains at least three time Information.
Optionally, the first processing module includes:
Third handles submodule, is configured as determining that location information satisfaction is default at least three temporal information The temporal information of locality condition;
Fourth process submodule is configured as selecting the update of time and the time in the temporal information determined The time deviation of device the machine time is less than the temporal information of preset standard error;
5th processing submodule, when being configured as determining described accurate according to the temporal information corresponding time selected Between.
Optionally, the first processing module includes:
6th processing submodule, if being configured as at least three temporal information, there are at least two temporal informations pair The time answered is identical, it is determined that at least two temporal information corresponding time is the precise time.
Optionally, the Second processing module includes:
First sending submodule, be configured as to user push time update notification message so that user determine whether into The row time updates;
7th processing submodule is selected to carry out time update, system time is updated to described if being configured as user Precise time.
Optionally, the location information of the updating device for the time that first acquisition module obtains includes the time Updating device where longitude, 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 executing the method for first aspect Technical solution, implementing principle and technical effect are similar.
A kind of terminal device is provided according to the third aspect of the embodiment of the present disclosure, including:It is configured as controlling executable finger The processor executed is enabled, the memory of storage processor-executable instruction is configured as and is configured as receiving the reception of message Device and the transmitter for sending message;
The processor is configured as:
Obtain at least three temporal informations;Wherein, each temporal information corresponds to different time servers, and the time Information and the time deviation of terminal device the machine time are greater than or equal to predetermined threshold value;
If there are at least two temporal informations to meet preset condition at least three temporal information, according to extremely Few two temporal informations determine precise time;
Time update is carried out to the machine time of the terminal device according to the precise time.
Update method, device and the terminal device for the time that the embodiment of the present disclosure provides are taken by obtaining the different time The time of business device, i.e. terminal device obtain at least three temporal informations, in conjunction with the time that multiple time servers indicate, to determine The time for going out terminal device is strictly inaccuracy, and the even time difference has been over preset difference range, also set to terminal The standby time is updated, and avoids the time inaccuracy due to terminal device itself that the time is caused not update and to application program Using impacting, user experience is effectively improved.
It should be understood that above general description and following detailed description is only exemplary and explanatory, not The disclosure can be limited.
Description of the drawings
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the present invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of the update method embodiment one of time shown according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of the update method embodiment two of time shown according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of the updating device embodiment one of time shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of the updating device embodiment two of time shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the updating device embodiment three of time shown according to an exemplary embodiment;
Fig. 6 is a kind of block diagram of the updating device example IV of time shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of the updating device embodiment five of time shown according to an exemplary embodiment;
Fig. 8 is a kind of block diagram of the entity of terminal device shown according to an exemplary embodiment;
Fig. 9 is a kind of block diagram of terminal device 1200 shown according to an exemplary embodiment.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is a kind of flow chart of the update method embodiment one of time shown according to an exemplary embodiment.Such as Fig. 1 Shown, this method is mainly used in the terminal device of intelligence, such as:The equipment such as mobile phone, game machine or tablet computer.It should The update method of time includes the following steps:
In step S101, terminal obtains at least three temporal informations;Wherein, each temporal information corresponds to the different time Server, and the temporal information and the time deviation of terminal the machine time are greater than or equal to predetermined threshold value.
In this step, it after terminal device or terminal first power on networking, can directly be obtained according to existing mode The time on time server is taken, the time of system is initially updated.This programme, which is directed to terminal device, normally to be made With in the process, due to the situation that the time caused by timing or other problems is inconsistent with network time, it is likely to result in part The problem of using normal use is unable to.At this point, terminal device can be initiated to inquire to time server, temporal information is obtained, such as Fruit determines that the time of temporal information instruction is less than preset standard deviation with the time deviation of terminal device current time, then directly It connects according to the time information renovation system time got, otherwise, needs, using the technical solution in this programme, to record the time Information obtains another temporal information, more reasonable situation is from least then elsewhere from other time server The temporal information that three or three or more are got in three different time servers, to improve the accuracy of scheme.
In step s 102, if there are at least two temporal informations to meet default item at least three temporal information Part then determines precise time according at least two temporal information.
In this step, terminal device needs the time that will be indicated in above-mentioned at least three temporal information identical or indicates Identical temporal information chooses in error range time, i.e., will meet the multiple of preset condition in multiple temporal informations Temporal information chooses, which can be the time deviation phase of the time and terminal the machine of multiple temporal information instructions Together, identical or in certain error range, can also be other preset conditions, it can be according to practical feelings in specific implementation Condition is configured.
It is meant that:The case where there may be time server failure, so needing by acquiring multiple Time Services The temporal information of device is come the time server debugged, to ensure the accuracy of temporal information.I.e. according to a plurality of temporal information It is arbitrated, selects standard time, that is, above-mentioned precise time.
In step s 102, time update is carried out to the machine time of the terminal according to the precise time.
Determining precise time instantly, after also becoming the standard time, no matter the precise time and terminal device Whether current time is greater than standard deviation, and system time is all updated to above-mentioned precise time by terminal device, ensures the time Accuracy, avoid influence application program use.
The update method for the time that embodiment of the disclosure provides is come by obtaining the time of different time servers Determine that the time of terminal device is strictly inaccuracy, the even time difference has been over preset difference range, also to end The time of end equipment is updated, and avoids the time inaccuracy due to terminal device itself that the time is caused not update and to applying journey The use of sequence impacts, and effectively improves user experience.
Fig. 2 is a kind of flow chart of the update method embodiment two of time shown according to an exemplary embodiment.Such as Fig. 2 Shown, in conjunction with above-described embodiment, this method is applied on the terminal devices such as mobile phone, tablet computer, computer, game machine, The update method for the time that the embodiment provides includes the following steps:
In step s 201, terminal obtains at least three temporal informations;Wherein, each temporal information corresponds to the different time Server, and the temporal information and the time deviation of terminal the machine time are greater than or equal to predetermined threshold value.
In this step, the specific implementation of at least three temporal informations of terminal acquisition can be:The terminal is to net The request of network side obtains the time, i.e., is obtained from the time server of network side;It is inclined when the time and terminal the machine time When difference is more than the predetermined threshold value, the location information of the deviation and the terminal is recorded, obtains the temporal information, and repeat It asks to obtain the time to network side;When number of repetition reaches preset times, at least three temporal information is obtained.
Terminal device obtain each temporal information include:When the time of corresponding server instruction, detection obtain described Between when the location of the terminal device information and cell information.When terminal device is obtained from time server in the program Between mode include at least it is following several:The time server Periodic Notice terminal device;Alternatively, terminal device is actively to the time Message under server sending time inquiry request so that time server time of return, then terminal device combine return when Between and the terminal location information, (it is resident to can specifically include longitude, latitude and the terminal where the terminal Cell information) etc. obtain above-mentioned temporal information;The time server in any embodiment in this programme can be legal special For the server of Time Service, it can also be common network server, the time can be provided to terminal device.
And in this scenario terminal device can record every time obtain the time when the location of and cell information, with after an action of the bowels Continuous terminal device can determine during carrying out Data Analysis Services multiple temporal informations be in different position acquisitions, Or different time server acquisitions, it can not judge the Time Service in the data that server at the same time repeatedly obtains Device whether failure, so not can determine that accuracy, it is therefore desirable to the time is obtained from different time servers, at comprehensive analysis Reason.
Further, each temporal information further include the corresponding time with the current time of the terminal device when Between deviation.
In step S202, if there are at least two temporal informations to meet default item at least three temporal information Part then determines precise time according at least two temporal information.
In this step, it to match each other if there are two the times of temporal information instruction in three temporal informations, such as:Have Two time servers provide time consistency, either or time deviation consistent with the time deviation of terminal device allowing Error range in, it is considered that two temporal informations instruction time match each other, then two temporal informations are selected It is used as, the time indicated, the specific implementation of the step was including at least following two as precise time:
The first realization method:Determine that location information meets predeterminated position condition at least three temporal information Temporal information;The time deviation of time and terminal the machine time is selected to be less than in the temporal information determined default The temporal information of standard error;The precise time is determined according to the temporal information the selected corresponding time.
Second of realization method, if there are at least two temporal informations corresponding times at least three temporal information It is identical, it is determined that at least two temporal information corresponding time is the precise time.
It is meant that:There are the times of the time and terminal device of the instruction of multiple temporal informations at least three temporal informations Deviation is identical, such as all faster than the time of terminal device itself two minutes or slow a few minutes, it is determined that those select when Between information indicate time be the precise time;
The third realization method:If there are the time of multiple temporal informations instruction and institutes at least three temporal information The error stated between the time deviation of terminal device is less than preset standard error, then by any temporal information instruction selected Time is determined as the precise time.
In step S203, time update notification message is pushed to user, so that user determines whether to carry out time update.
In step S204, if user selects to carry out time update, system time is updated to the precise time.
It, can be directly to system time after terminal device has had confirmed precise time in above-mentioned two step It is updated, can also first be prompted to user, push time new information, the time to be carried out is chosen whether by user oneself Update, provides a user more rights to choose.
Time update notification is shown to user, and option is provided on interface, is handled according to the user's choice, if User selects to carry out time update, then system time is updated to the precise time got, otherwise without update.
The update method for the time that the embodiment of the present disclosure provides, after precise time is determined, terminal device can lead to It crosses voice prompt or display pushes the modes such as message that user is reminded to carry out time update, whether carry out more for selection by the user Newly, if user select without update, abandon this time update, if user select carry out time update, The precise time that system time is updated to determine ensures to facilitate user to select while time precision, improves user experience.
On the basis of above-mentioned two embodiment, by taking mobile phone as an example, the program the specific implementation process is as follows:
1, mobile phone first passage network identity and time zone (Network identity and Time Zone, NITZ) work( Can, it obtains the time from network side 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 is less than 5s (configurable) then updates 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 is more than 5s (configurable), update the machine time is not recording geographical position longitude and latitude, cell information and time deviation formats at this time Such as [longitude, latitude, cell information, time deviation].
Above-mentioned steps 2 and 3 are two kinds of situations side by side, and the scheme in 3 is the technical solution of the application.
If 4, more than 3 appearance, according to a plurality of record, is arbitrated:If the time that diverse geographic location obtains is inclined Difference very close to, then it is assumed that they be standard time can with their time update mobile phone time.
Pass through above-mentioned technical proposal can enhance mobile phone time synchronization, promote cell phone system stability, some is avoided to answer Should be the time with program incorrect cannot be applied.
Fig. 3 is a kind of block diagram of the updating device embodiment one of time shown according to an exemplary embodiment.With reference to figure 3, the updating device 10 of the time, including:
First acquisition module 11 is configured as obtaining at least three temporal informations;Wherein, each temporal information corresponds to different Time server, and the time deviation of the temporal information and terminal the machine time are greater than or equal to predetermined threshold value;
First processing module 12, if being configured as at least three temporal information, there are at least two temporal informations to expire Sufficient preset condition then determines precise time according at least two temporal information;
Second processing module 13 is configured as the machine time to the updating device of the time according to the precise time Carry out time update.
The updating device for the time that embodiment of the disclosure provides is used for the technical solution of aforementioned either method embodiment, Its implementing principle and technical effect is similar, by obtaining the time of different time servers, to determine the time of the device It is strictly inaccurate, and precise time is obtained, the even time difference has been over preset difference range, also to the time The time of updating device is updated, and avoids the time inaccuracy due to device itself that the time is caused not update, influences to apply journey The use of sequence, effectively improves user experience.
On the basis of above-mentioned embodiment shown in Fig. 3, Fig. 4 is a kind of time shown according to an exemplary embodiment The block diagram of updating device embodiment two, with reference to Fig. 4, first acquisition module 11 includes:
First acquisition submodule 111 is configured as asking to obtain the time to network side;
First processing submodule 112 is configured as when the deviation of the time and terminal the machine time are more than described When predetermined threshold value, the location information of the deviation and the terminal is recorded, obtains the temporal information, and repeats to ask to network side It asks and obtains the time;
Second processing submodule 113 is configured as when number of repetition reaches preset times, when obtaining described at least three Between information.
Optionally, when the location information of the updating device for the time that first acquisition module 11 obtains includes described Between updating device where longitude, latitude and resident cell information.
The updating device for the time that embodiment of the disclosure provides is used for the technical solution of aforementioned either method embodiment, Its implementing principle and technical effect is similar, and the updating device of time, can be with while obtaining the time from different time server The position being presently in and cell information are recorded, to determine that the updating device of time is the time obtained in different positions, example Such as:The places such as family, company, market, the time server of distance farther out, to ensure the follow-up accuracy for determining precise time.
Shown in above-mentioned Fig. 3 or 4 on the basis of embodiment, when Fig. 5 is a kind of shown according to an exemplary embodiment Between updating device embodiment three block diagram, with reference to Fig. 5, the first processing module 12 includes:
Third handles submodule 121, is configured as determining that location information meets at least three temporal information The temporal information of predeterminated position condition;
Fourth process submodule 122 is configured as selecting time and the time in the temporal information determined The time deviation of updating device the machine time is less than the temporal information of preset standard error;
5th processing submodule 123 is configured as being determined according to the temporal information corresponding time selected described accurate Time.
Shown in above-mentioned Fig. 3 or 4 on the basis of embodiment, when Fig. 6 is a kind of shown according to an exemplary embodiment Between updating device example IV block diagram, with reference to Fig. 5, the first processing module 12 includes:
6th processing submodule 124, if being configured as at least three temporal information, there are at least two times letters It is identical to cease the corresponding time, it is determined that at least two temporal information corresponding time is the precise time.
The updating device for the time that embodiment of the disclosure provides is used for the technical solution of aforementioned either method embodiment, Its implementing principle and technical effect is similar, and during the determination of first time information, this programme, which does not limit, to be selected The time of first time information instruction wants identical, allows that there are certain technical errors, i.e., within the scope of standard error all It is considered matched, the feelings of the timing error as caused by server failure is excluded from the time that multiple time servers indicate Condition determines that precise time carries out the update of the system time of device, improves the accuracy of time, and ensures the normal of application It uses, user experience is effectively provided.
On the basis of above-mentioned Fig. 3 to Fig. 6 embodiments shown in any one, Fig. 7 is shown according to an exemplary embodiment A kind of time updating device embodiment five block diagram, with reference to Fig. 7, the Second processing module 13 includes:
First sending submodule 131 is configured as pushing time update notification message to user, so that user determines whether Carry out time update;
7th processing submodule 132 selects to carry out time update, system time is updated to institute if being configured as user State precise time.
The updating device for the time that embodiment of the disclosure provides is used for the technical solution of aforementioned either method embodiment, Its implementing principle and technical effect is similar, and after precise time is determined, the updating device of time can pass through voice prompt Or whether display pushes the modes such as message that user is reminded to carry out time update, be updated for selection by the user, if with Family selects without update, then to abandon the update of this time, if user selects to carry out time update, by system time It is updated to the precise time determined, ensures to facilitate user to select while time precision, improves user experience.
About the updating device of the time in above-mentioned each embodiment, wherein modules have executed the concrete mode of operation Through being described in detail in the embodiment of the method, explanation will be not set forth in detail herein.I.e. the foregoing describe ends The inner function module of end equipment and structural representation.
Fig. 8 is a kind of block diagram of the entity of terminal device shown according to an exemplary embodiment, with reference to Fig. 8, the terminal Equipment can be implemented as:Be configured as control executable instruction execute processor, be configured as storage processor can hold The memory of row instruction is configured as sending the transmitter of message and receives the receiver of message;
The processor is configured as:
Obtain at least three temporal informations;Wherein, each temporal information corresponds to different time servers, and the time Information and the time deviation of terminal device the machine time are greater than or equal to predetermined threshold value;
If there are at least two temporal informations to meet preset condition at least three temporal information, according to extremely Few two temporal informations determine precise time;
Time update is carried out to the machine time of the terminal device according to the precise time.
In the embodiment of above-mentioned terminal device, it should be appreciated that the processor can be central processing unit (English: Central Processing Unit, referred to as:CPU), it can also be other general processors, digital signal processor (English: Digital Signal Processor, referred to as:DSP), application-specific integrated circuit (English:Application Specific Integrated Circuit, referred to as:ASIC) etc..General processor can be microprocessor or the processor can also be Any conventional processor etc., and memory above-mentioned can be read-only memory (English:Read-only memory, abbreviation: ROM), random access memory (English:Random access memory, referred to as:RAM), flash memory, hard disk or solid State hard disk.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware processor and execute completion, or Hardware and software module combination in person's processor execute completion.
Fig. 9 is a kind of block diagram of terminal device 1200 shown according to an exemplary embodiment.For example, the terminal device can To be mobile phone, the tablet computer etc. of user.
With reference to Fig. 9, terminal device 1200 may include following one or more components:Processing component 1202, memory 1204, power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor Component 1214 and communication component 1216.
The integrated operation of 1202 usual control terminal equipment 1200 of processing component, such as with display, data communication, multimedia Operation and record operate associated operation.Processing component 1202 may include that one or more processors 1220 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more modules, Convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module, with side Just the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in terminal device 1200.These numbers According to example include instruction for any application program or method that are operated on terminal device 1200, Various types of data, message, Picture, video etc..Memory 1204 can be by any kind of volatibility or non-volatile memory device or combination thereof It realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable Read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, Disk or CD.
Power supply module 1206 provides electric power for the various assemblies of terminal device 1200.Power supply module 1206 may include power supply Management system, one or more power supplys and other with for terminal device 1200 generate, management and distribution associated group of electric power Part.
Multimedia component 1208 is included in the screen of one output interface of offer between the terminal device 1200 and user Curtain.In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touching Panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is touched to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or cunning The boundary of action, but also detect duration and pressure associated with the touch or slide operation.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat Gram wind (MIC), when terminal device 1200 is in operation mode, when such as call model, logging mode and speech recognition mode, Mike Wind is configured as receiving external audio signal.The received audio signal can be further stored in memory 1204 or via Communication component 1216 is sent.In some embodiments, audio component 1210 further includes a loud speaker, for exporting audio letter Number.
I/O interfaces 1212 provide interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module Can be keyboard, click wheel, button etc..
Sensor module 1214 includes one or more sensors, the shape for providing various aspects for terminal device 1200 State is assessed.For example, sensor module 1214 can detect the state that opens/closes of terminal device 1200, component it is relatively fixed Position, such as the component are the display and keypad of terminal device 1200, and sensor module 1214 can be set with detection terminal For 1200 or the position change of 1,200 1 components of terminal device, the existence or non-existence that user contacts with terminal device 1200, The temperature change in 1200 orientation of terminal device or acceleration/deceleration and terminal device 1200.Sensor module 1214 may include connecing Nearly sensor is configured to detect the presence of nearby objects without any physical contact.Sensor module 1214 is also May include optical sensor, such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, should Sensor module 1214 can also include acceleration transducer, and gyro sensor, Magnetic Sensor, pressure sensor or temperature pass Sensor.
Communication component 1216 is configured to facilitate the logical of wired or wireless way between terminal device 1200 and other equipment Letter.Terminal device 1200 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.One In a exemplary embodiment, communication component 1216 via broadcast channel receive broadcast singal from external broadcasting management system or Broadcast related information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, with Promote short range communication.For example, can be based on radio frequency identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology surpasses Broadband (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 1200 can by one or more application application-specific integrated circuit (ASIC), Digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field-programmable gate array It arranges (FPGA), controller, microcontroller, microprocessor or other electronic components to realize, the update method for executing the time, packet It includes:
Terminal obtains at least three temporal informations;Wherein, each temporal information corresponds to different time servers, and described Temporal information and the time deviation of terminal the machine time are greater than or equal to predetermined threshold value;
If there are at least two temporal informations to meet preset condition at least three temporal information, according to extremely Few two temporal informations determine precise time;
Time update is carried out to the machine time of the terminal according to the precise time.
In the exemplary embodiment, it includes the non-transitorycomputer readable storage medium instructed, example to additionally provide a kind of Such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of terminal device 1200 to complete above-mentioned side Method.For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, magnetic Band, floppy disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or Person's adaptive change follows the general principle of the present invention and includes the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following Claim is pointed out.
It should be understood that the invention is not limited in the precision architectures for being described above and being shown in the accompanying drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims.

Claims (11)

1. a kind of update method of time, which is characterized in that including:
Terminal obtains at least three temporal informations;Wherein, each temporal information corresponds to different time servers, and the time Information and the time deviation of terminal the machine time are greater than or equal to predetermined threshold value;
If there are at least two temporal informations to meet preset condition at least three temporal information, at least two according to A temporal information determines precise time;
Time update is carried out to the machine time of the terminal according to the precise time;
The terminal obtains at least three temporal informations, including:
The terminal asks to obtain the time to network side;
When the deviation of the time and terminal the machine time are more than the predetermined threshold value, the deviation and the end are recorded The location information at end obtains the temporal information, and repeats to ask to obtain the time to network side;
When number of repetition reaches preset times, at least three temporal information is obtained.
2. if according to the method described in claim 1, it is characterized in that, exist at least at least three temporal informations Two temporal informations meet preset condition, then determine precise time according at least two temporal information, including:
Determine that location information meets the temporal information of predeterminated position condition at least three temporal information;
Time and the time deviation of terminal the machine time is selected to be missed less than preset standard in the temporal information determined The temporal information of difference;
The precise time is determined according to the temporal information the selected corresponding time.
3. if according to the method described in claim 1, it is characterized in that, exist at least at least three temporal informations Two temporal informations meet preset condition, then determine precise time according at least two temporal information, including:
If there are at least two temporal informations corresponding time is identical at least three temporal information, it is determined that it is described at least Two temporal informations corresponding time is the precise time.
4. according to the method described in claim 1, it is characterized in that, it is described according to the precise time to the machine of the terminal Time carries out time update, including:
Time update notification message is pushed to user, so that user determines whether to carry out time update;
If user selects to carry out time update, system time is updated to the precise time.
5. method as claimed in any of claims 1 to 4, which is characterized in that the location information of the terminal includes The cell information that longitude, latitude and the terminal where the terminal are resident.
6. a kind of updating device of time, which is characterized in that including:
First acquisition module is configured as obtaining at least three temporal informations;Wherein, each temporal information corresponds to the different time Server, and the temporal information and the time deviation of terminal the machine time are greater than or equal to predetermined threshold value;
First processing module, if being configured as at least three temporal information, there are at least two temporal informations satisfaction is default Condition then determines precise time according at least two temporal information;
Second processing module, when being configured as carrying out the machine time of the updating device of the time according to the precise time Between update;
First acquisition module includes:
First acquisition submodule is configured as asking to obtain the time to network side;
First processing submodule is configured as being more than the predetermined threshold value when the deviation of the time and terminal the machine time When, the location information of the deviation and the terminal is recorded, when obtaining the temporal information, and repeating to ask to obtain to network side Between;
Second processing submodule is configured as when number of repetition reaches preset times, obtains at least three temporal information.
7. device according to claim 6, which is characterized in that the first processing module includes:
Third handles submodule, is configured as determining that location information meets predeterminated position at least three temporal information The temporal information of condition;
Fourth process submodule is configured as selecting the updating device of time and the time in the temporal information determined The time deviation of the machine time is less than the temporal information of preset standard error;
5th processing submodule is configured as determining the precise time according to the temporal information corresponding time selected.
8. device according to claim 6, which is characterized in that the first processing module includes:
6th processing submodule, if being configured as at least three temporal information, there are at least two temporal informations are corresponding Time is identical, it is determined that at least two temporal information corresponding time is the precise time.
9. device according to claim 6, which is characterized in that the Second processing module includes:
First sending submodule is configured as pushing time update notification message to user, when so that user determining whether to carry out Between update;
7th processing submodule selects to carry out time update if being configured as user, system time is updated to described accurate Time.
10. according to claim 6 to 9 any one of them device, which is characterized in that first acquisition module obtains described The location information of the updating device of time includes longitude, latitude and the resident cell letter where the updating device of the time Breath.
11. a kind of terminal device, which is characterized in that including:It is configured as the processor of control executable instruction execution, is configured To store the memory of processor-executable instruction and being configured as receiving the transmitter of the receiver of message and transmission message;
The processor is configured as:
Obtain at least three temporal informations;Wherein, each temporal information corresponds to different time servers, and the temporal information It is greater than or equal to predetermined threshold value with the time deviation of terminal device the machine time;
At least three temporal informations of the acquisition, including:
It asks to obtain the time to network side;
When the deviation of the time and terminal device the machine time are more than the predetermined threshold value, the deviation and institute are recorded The location information for stating terminal device obtains the temporal information, and repeats to ask to obtain the time to network side;
When number of repetition reaches preset times, at least three temporal information is obtained;
If there are at least two temporal informations to meet preset condition at least three temporal information, at least two according to A temporal information determines precise time;
Time update is carried out to the machine time of the terminal device according to the precise time.
CN201610344426.8A 2016-05-23 2016-05-23 Update method, device and the terminal device of time Active CN106027191B (en)

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 CN106027191A (en) 2016-10-12
CN106027191B true 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)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106708674B (en) * 2016-11-18 2019-06-07 中国兵器装备集团自动化研究所 A kind of method that writing circuit plate adds up power-on time
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
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

Citations (7)

* Cited by examiner, † Cited by third party
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
CN105282840A (en) * 2014-07-24 2016-01-27 北京信威通信技术股份有限公司 Method for time synchronization between nodes in wireless Ad Hoc network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150271643A1 (en) * 2014-02-25 2015-09-24 Ahmad Jalali Position determination using time of arrival measurements in a wireless local area network

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN105282840A (en) * 2014-07-24 2016-01-27 北京信威通信技术股份有限公司 Method for time synchronization between nodes in wireless Ad Hoc network

Also Published As

Publication number Publication date
CN106027191A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106027191B (en) Update method, device and the terminal device of time
US10117046B2 (en) Discrete location classification
US10560810B2 (en) Proactive actions on mobile device using uniquely-identifiable and unlabeled locations
US11451924B2 (en) Ranging measurements for spatially-aware user interface of a mobile device
RU2638154C2 (en) Methods and devices for number labeling
US10698442B2 (en) Method and apparatus for always-on display applied in a display driver integrated circuit
CN103944804A (en) Contact recommending method and device
CN112464096A (en) Information processing method and device
WO2021017853A1 (en) Method for recommending operation sequence, terminal, and computer readable medium
CN104050236B (en) Web site contents update reminding method, server and client side
CN105407160A (en) Interface display method and device
AU2018101666B4 (en) Proactive actions on mobile device using uniquely-identifiable and unlabeled locations
CN104811904A (en) Contact setting method and device
CN106503023B (en) Method and device for prompting nearby friends
CN107977127B (en) Method, device and terminal for updating page
RU2616592C2 (en) Method and apparatus for determining location
WO2021196673A1 (en) Application login method and apparatus, electronic device and storage medium
JP2017524215A (en) Message transmission method, apparatus, program, and recording medium
CN113031837B (en) Content sharing method and device, storage medium, terminal and server
CN107368278B (en) Information processing method and device
US11601514B2 (en) Microlocations using tagged data
CN111382242A (en) Information providing method, device and readable medium
US9843317B2 (en) Method and device for processing PWM data
CN107315590B (en) Notification message processing method and device
EP2996295B1 (en) Method and device for processing pwm data

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