CN1859616A - Method for correcting terminal device local time and terminal device - Google Patents

Method for correcting terminal device local time and terminal device Download PDF

Info

Publication number
CN1859616A
CN1859616A CNA2006100016522A CN200610001652A CN1859616A CN 1859616 A CN1859616 A CN 1859616A CN A2006100016522 A CNA2006100016522 A CN A2006100016522A CN 200610001652 A CN200610001652 A CN 200610001652A CN 1859616 A CN1859616 A CN 1859616A
Authority
CN
China
Prior art keywords
note
time
school
terminal equipment
reception
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2006100016522A
Other languages
Chinese (zh)
Other versions
CN100455051C (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2006100016522A priority Critical patent/CN100455051C/en
Publication of CN1859616A publication Critical patent/CN1859616A/en
Application granted granted Critical
Publication of CN100455051C publication Critical patent/CN100455051C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention relates to communication technology, specially relating to correcting terminal unit local zone time method and terminal unit. Said invented method includes 1, instant timing method utilizing special timing message transmission time, time of reception and retransmission time to make accuracy timing; 2, random timing method utilizing one message or continuously received at least two message receiving time and retransmission time to make compensating timing; said invention also providing terminal unit for realizing above-mentioned one or all method. Said method can be realized in terminal side without any change to network side.

Description

A kind of method and terminal equipment of proofreading and correct the terminal equipment local zone time
Technical field
The present invention relates to the communication technology, particularly a kind of method and terminal equipment of proofreading and correct the terminal equipment local zone time.
Background technology
Mobile phone becomes communication tool very easily as a kind of the most frequently used terminal equipment in present life.Time clock feature on the mobile phone also becomes the most convenient approach that people take the time, but mobile phone does not at present on the market mostly possess the function of automatic correcting time, and after the user bought mobile phone, when generally at first it being carried out artificial school, operation was more loaded down with trivial details during artificial school.In use there is the time difference owing to frequency departure, the mobile phone of crystal inside falls, battery does not have electricity for a long time etc. in mobile phone between reason may cause on the mobile phone time and standard time, and at this moment the user just need carry out timing again.It is no problem generally to utilize TV, airtime to carry out manual amendment's mobile phone time as benchmark, if but out of doors, benchmark will be cumbersome during the school that can not find.
Existing part base station has increased the agreement when mobile phone carried out the school, the regulation of agreement during according to this school, when mobile phone carries out the school as follows:
Request command when 1, mobile phone has sent the school to the base station;
When 2, the school is received in the base station behind the request command, local zone time on the query facility, again temporal information during by the school agreement return to mobile phone;
3, after mobile phone is received the temporal information of base station, local zone time is updated to time of base station, realizes automatic correcting time.
But, agreement when this Technology Need mobile phone and base station equipment are supported the school simultaneously, and need all basic station over network equipment to support this agreement.Because protocol development is later during this school, has only part producer base station to support this agreement now, it much all is old base station that the base station on the present GSM network has, and agreement when also not supporting this school is so can't realize automatic correcting time at the whole network.Simultaneously, because this agreement does not have formation standard in mobile phone industry, also have only the part mobile phone could support this agreement now.In addition, operator does not obtain income from this agreement, be difficult to guarantee that this protocol function can be supported for a long time.
Summary of the invention
The invention provides a kind of method and terminal equipment of proofreading and correct the terminal equipment local zone time, complicated operation when having terminal equipment equipment craft school now to solve is proofreaied and correct the problem that accuracy is subjected to a reference source restriction.
A kind of method of proofreading and correct the terminal equipment local zone time comprises the steps:
Note when A, terminal equipment send the school that local terminal receives to network side note treatment facility, and the delivery time T1 of note when writing down this school;
B, network side note treatment facility add this note in the note when described school forwarding is T3 constantly, and note is transmitted to terminal equipment during with this school;
Note when C, terminal equipment receive described school, the T2 and the extract described forwarding T3 constantly time of reception of note when writing down this school;
D, terminal equipment basis of calculation time T=T3+ (T2-T1) ÷ 2+ Δ T4, and local zone time proofreaied and correct be this standard time T, wherein: Δ T4 〉=0, determine according to the terminal equipment disposal ability.
Described method also comprises the steps: simultaneously
When A1 ', terminal equipment receive a note, obtain the time of reception and the forwarding of this note and also calculate when receiving this note constantly, the deviate of local zone time relative standard time is: forwarding constantly adds that the one way transmission time of note between network side note treatment facility and terminal equipment deducts the time of reception again;
B1 ', terminal equipment return steps A 1 ' after local zone time is compensated a deviate.
Perhaps, described method also comprises the steps: simultaneously
A2 ', terminal equipment obtain the t2 and the transmit t3 constantly time of reception of N continuous bar note respectively, and calculate when receiving each bar note respectively, the deviate Δ t=of local zone time relative standard time (t3+ Δ t3)-t2, wherein, N 〉=2, Δ t3 is the one way transmission time of note between network side note treatment facility and terminal equipment;
B2 ', terminal equipment calculate the statistic bias value Δ t ' of N bar note, and will return steps A 2 ' behind statistic bias value Δ t ' of local zone time compensation.
Wherein, described steps A 2 ' specifically comprises the steps:
A21 ', zero clearing note number count value;
A22 ', judge whether to receive a note,, preserve result of calculation and execution in step A23 ', otherwise continue to judge if then obtain the t2 and the t3 of this note correspondence and calculate the Δ t=t3+ Δ t3-t2 of this note;
A23 ', judge whether described count value equals N, if execution in step B2 ' then, otherwise return steps A 22 '.
In the described method, set the reception duration threshold value of continuous N bar note, and in described step B2 ', judge in the N bar note, article one, whether the time of reception of note and the last item note is at interval smaller or equal to this threshold value, if return steps A 21 ' after calculating described statistic bias value Δ t ' again and compensating local zone time; Otherwise the temporal information of deletion article one note and described count value subtracted 1 after return steps A 22 '.
Wherein, described Δ t ' is: the mean value of N Δ t; Perhaps, when N 〉=4, remove N the maximum and minimum value among the Δ t after, the mean value of N-2 Δ t of residue; Perhaps, when N 〉=6, with N Δ t sequence arrangement, remove ordering the preceding two and ordering after two after, the mean value of N-4 Δ t of residue.
The one way transmission time between described network side note treatment facility and the terminal equipment comprises the experience transmission time and the standard transmission time of storage in advance, wherein, half of difference between the time of reception of note and the delivery time when standard transmission time equals described school calculated when the each execution in step D and upgraded by terminal equipment.
Described method also comprises, behind each execution of step B1 ' of terminal equipment or the B2 ', at first judges whether to preserve the described standard transmission time, if be this standard transmission time with Δ t3 assignment then, otherwise is the experience transmission time with Δ t3 assignment again.
In the described method, terminal equipment is time instruction setting up procedure A according to the user school, wherein, and function key or function choosing-item input when confirming school in the menu when instruction is by the school of operation setting on terminal during described user school.
The content of note is empty or information during for the school set during described school.
According to same technical conceive, another kind of method of proofreading and correct the terminal equipment local zone time provided by the invention comprises the steps:
When a1, terminal equipment receive a note, obtain the time of reception and the forwarding of this note and also calculate when receiving this note constantly, the deviate of local zone time relative standard time is: forwarding constantly adds that the one way transmission time of note between network side note treatment facility and terminal equipment deducts the time of reception again;
B1, terminal equipment return step a1 after local zone time is compensated a deviate.
According to same technical conceive, the present invention provides a kind of method of proofreading and correct the terminal equipment local zone time again, comprises the steps:
A2, terminal equipment obtain the t2 and the transmit t3 constantly time of reception of N continuous bar note respectively, and calculate when receiving each bar note respectively, the deviate Δ t=of local zone time relative standard time (t3+ Δ t3)-t2, wherein, N 〉=2, Δ t3 is the one way transmission time of note between network side note treatment facility and terminal equipment;
B2, terminal equipment calculate the statistic bias value Δ t ' of N bar note, and will return step a2 behind statistic bias value Δ t ' of local zone time compensation.
Specifically comprise the steps: among the described step a2
A21, zero clearing note number count value;
A22, judge whether to receive a note,, preserve result of calculation and execution in step a13, otherwise continue to judge if then obtain the t2 and the t3 of this note correspondence and calculate the Δ t=t3+ Δ t3-t2 of this note correspondence;
A23, judge whether described count value equals N, if execution in step b2 then, otherwise return step a22.
In the described method, set the reception duration threshold value of N continuous bar note, and in described step b2, whether the time of reception of judging article one note and the last item note in the N bar note is at interval smaller or equal to this threshold value, if return step a21 after calculating described statistic bias value Δ t ' again and compensating local zone time; Otherwise the temporal information of deletion article one note and described count value subtracted 1 after return step a22.
Among the step b2, described Δ t ' is:
The mean value of N Δ t; Perhaps,
When N 〉=4, remove N the maximum and minimum value among the Δ t after, the mean value of N-2 Δ t of residue; Perhaps,
When N 〉=6, with N Δ t sequence arrangement, remove ordering the preceding two and ordering after two after, the mean value of N-4 Δ t of residue.
The present invention also provides the terminal equipment of realizing first method of the present invention, comprises note processing module and the realtime clock chip that is connected the note processing module, and module when also comprising the school is connected between note processing module and the realtime clock chip;
Note when instruction triggers note processing module sent the school when module was according to the user school during described school, the temporal information of note was proofreaied and correct the local zone time count value in the realtime clock chip when module was according to this school when described note processing module module when delivery time, the time of reception and the forwarding on network side note treatment facility of note returns to described school constantly during with described school, described school.
Wherein, described note processing module comprises:
Note generation unit during the school, the note when triggering of module generates described school during according to the school;
The short message receiving-transmitting unit, the note and the delivery time of note when exporting this school when sending described school; Note and the note and the time of reception thereof when exporting this school when perhaps receiving the school;
The note processing unit connects the short message receiving-transmitting unit, during the identification school note and when extracting this school note forwarding constantly, time of reception of note and transmit output together constantly during then with this school;
Module comprises during described school:
The trigger element during school, note generation unit when generating triggering signal and exporting to the school during instruction when receiving user's school;
Processing unit during first school, delivery time, the time of reception and forwarding time information and the basis of calculation time of note during respectively from short message receiving-transmitting unit and note processing unit reception school;
The performance element during school, between processing unit and the realtime clock chip, it is the standard time that the local zone time count value in the realtime clock chip is proofreaied and correct when being connected first school.
Module also comprises during described school: processing unit during second school is connected between note processing unit and the realtime clock chip;
Described note processing unit is with time of reception of each bar note and transmit processing unit when constantly exporting to described second school, processing unit performance element according to a note or at least two note times of reception of receiving continuously and when transmitting constantly the calculation correction time and result of calculation being exported to school during this second school, performance element is proofreaied and correct local zone time count value in the realtime clock chip according to result of calculation during the school.
Comprise the information stores subelement in the processing unit during described second school, be used for the time of reception of temporary note and transmit constantly and store relevant parameter.
The present invention provides a kind of terminal equipment of realizing second kind and the third method of the present invention again, comprises note processing module and the realtime clock chip that is connected the note processing module, and module when also comprising the school is connected between note processing module and the realtime clock chip;
Module when described note processing module is exported to described school with the time of reception of each bar note constantly with the forwarding of this note on network side note treatment facility, module is according to time of reception of a note or at least two notes receiving continuously with transmit the calculation correction time constantly during described school, and proofreaies and correct local zone time count value in the realtime clock chip according to result of calculation.
Wherein, described note processing module comprises:
The short message receiving-transmitting unit is used to receive and dispatch note, and exports the note and the time of reception thereof of receiving;
The note processing unit connects the short message receiving-transmitting unit, the forwarding of from the note of receiving, extracting this note constantly, and with time of reception of note with transmit output together constantly;
Module comprises during described school:
The processing unit during school receives the time of reception of note and transmits time information from the note processing unit, and the calculation correction time is also exported result of calculation;
The performance element during school when being connected the school between processing unit and the realtime clock chip, is proofreaied and correct local zone time count value in the realtime clock chip according to result of calculation.
Comprise the information stores subelement in the processing unit during described school, be used for the time of reception of temporary note and transmit constantly and store relevant parameter.
Beneficial effect of the present invention is as follows:
The method of the invention only need increase the relevant treatment flow process in terminal equipment side, note during by the transmission school, and the delivery time of note during according to the school, the Time Calculation of the time of reception and network side forwarding short message goes out standard time information, again according to standard time information correction local zone time, correction mechanism realizes in end side fully, do not need the software and hardware of the communication apparatus of existing network side operator is carried out any change, therefore be applied in the communication network of existing various standards, and the correction reference source of this method is the precise time of network side, has guaranteed the correction accuracy;
The present invention also provides a kind of utilize one or the time of reception of at least two normal short messages and the calibration method of the timing error that the constantly automatic compensated crystal crystal oscillator frequency deviation of forwarding causes, can use separately, also can cooperate accurate calibration method of the present invention to use, the timing error that automatic compensated crystal crystal oscillator frequency deviation causes, need not any expense of user effort or carry out any operation, just can be in the scope of setting with the ERROR CONTROL of local zone time;
The present invention also provides the terminal equipment that possesses one of above-mentioned automatic correcting time function or have both two kinds of functions, and the Web-compatible of this terminal equipment and existing any standard is for user's use provides convenience;
The method of the invention and terminal equipment provide new income point to operator, automatic correcting time once, operator obtains the income of a short-message fee, has guaranteed that this business has the condition of long-run development.
Description of drawings
Fig. 1 is the method flow diagram of embodiment one of the present invention;
Fig. 2 is the method flow diagram of embodiment two of the present invention;
Fig. 3 is the terminal equipment structural representation of embodiment three of the present invention;
Fig. 4 is the terminal equipment structural representation of embodiment four of the present invention;
Fig. 5 is the terminal equipment structural representation of embodiment five of the present invention.
Embodiment
Receive in the process of note at terminal equipment, network side note treatment facility has not only sent content, the sending side terminal equipment number of note to terminal equipment, but also the temporal information when having sent forwarding short message.This time is actual to be exactly the time of operator's equipment because operator's equipment time relationship to charge accurately and communication normal, so the operator generally has professional Time Synchronization Network to guarantee that the time of its equipment is accurate.So just guaranteed the accuracy of time reference.
Technical conceive of the present invention is to utilize the function of receiving and sending short message of existing terminal equipment, temporal information by the transmitting-receiving note, and the forwarding time information of the network side note treatment facility that carries in the existing note is realized automatic correcting time, do not need network side to change any handling process, according to this technical conceive, the invention provides two kinds of automatic correcting time methods, be respectively instant calibration method and calibration method at random, below with specific embodiment and be described with reference to the accompanying drawings.
Embodiment one, instant calibration method
Terminal equipment sends the note that target terminal equipment number is consistent with this terminal equipment number, and the temporal information of the current terminal equipment of record delivery time, network side note treatment facility is after receiving note, to this note be transmitted back this terminal equipment according to the purpose terminal equipment number of note, in note, increase the temporal information of current network side note treatment facility simultaneously.After terminal equipment received the note that network side returns, recorder is the temporal information of current terminal equipment constantly, and obtained network side and transmit time information from this note, handled when carrying out the school immediately according to the relevance between the above-mentioned temporal information then.Like this, terminal equipment only need be realized the automatic correcting time function by a note, note when the present invention's note that this target terminal equipment number is consistent with this terminal equipment number is called the school, and concrete steps comprise as shown in Figure 1:
Note when S101, end side send the school that local terminal receives to network side, and the delivery time T1 of note when writing down this school;
Function choosing-item or button when at first on terminal equipment, the school being set, the user carries out function choosing-item or presses when this button triggers the school and order, when terminal equipment receives user's school after the order, trigger note when sending the school, the target terminal device number of note is this terminal equipment number during this school, and the content of note can be empty (suggestion so reduces amount of information), also can be the predefined content of manufacturer, and the delivery time information of note be T1 when writing down this school;
S102, when network side note treatment facility is received the school after the note, according to existing note handling process, note when transmitting this school, and when transmitting, increase automatically and transmit T3 constantly according to the target terminal equipment number in the note.Because the purpose terminal equipment number of note is consistent with transmission terminal equipment number during the school, note will be returned the terminal equipment of note when sending the school along original path during this school;
S103, terminal equipment side when receiving note, the terminal equipment time T 2 of note during this school of recorder, and the forwarding of the network side note treatment facility that carries in the note when extracting school T3 constantly;
S104, terminal equipment basis of calculation time T also proofread and correct local zone time and are this standard time T, T=T3+ (T2-T1) ÷ 2+ Δ T4, and this standard time T is the time data that writes the terminal equipment realtime clock chip;
Wherein: the transmit after receive time delay of note is T2-T1 during the school, it is consistent to the information path that the information path of network side note treatment facility and terminal equipment receive the note that network side note treatment facility transmits back to consider that terminal equipment sends note, the time of experience also thinks identical, test by reality, generally from delivery time T1 to the time of reception T2 the interval very little, so note comes and goes the inconsistent very little especially of elapsed-time standards, this difference can be accepted when the terminal equipment school, so network side note treatment facility can be thought Δ T3=(T2-T1) ÷ 2 to the short message receiving-transmitting delay parameter between the terminal equipment, the standard time when then terminal equipment receives the school during note is T3+ Δ T3=T3+ (T2-T1) ÷ 2;
Δ T4 is that terminal equipment receives the time interval that note arrives the moment when specifically carrying out the school, then terminal equipment is specifically carried out standard time T=T3+ (T2-T1) the ÷ 2+ Δ T4 of timing, time interval Δ T4 〉=0, determine that according to the terminal equipment disposal ability be generally a constant, the terminal equipment disposal ability is strong more, Δ T4 should be more little, even can ignore, according to different terminal equipments, the technical staff can accurately measure the value of Δ T4.
After terminal equipment calculates standard time T, regulate the terminal equipment time deviation automatically, realize automatic correcting time by software.
Said method only need increase the relevant treatment flow process in end side, note during by the transmission school, and during according to the school moment of delivery time, the time of reception and the network side forwarding short message of note calculate standard time information, again according to standard time information correction local zone time, correction mechanism realizes in end side fully, do not need the software and hardware of the communication apparatus of existing network side operator is carried out any change, therefore can be applied in the communication network of existing various standards, and the correction reference source of this method is the precise time of network side, has guaranteed the correction accuracy; When the expense of 1 note of user effort had just realized accurate school, real-time was good, when being applicable to new clothes Battery Terminal Equipment school and be badly in need of certain situation such as correct time.
Embodiment two, calibration method at random
Terminal equipment in use, owing to frequency departure, the terminal equipment of crystal inside falls, battery does not have reasons such as electricity for a long time, may cause the clock time of terminal equipment and produce deviation between the standard time, for compensating the deviation that above-mentioned reason produces, the present invention also provides a kind of time of reception of utilizing normal short message and transmits method when constantly carrying out school at random, this method can be used separately, also can cooperate embodiment one application.
Calibration method can be carried out when receiving each bar note at random, be that terminal equipment is when receiving a note, obtain the time of reception and the forwarding of this note and also calculate when receiving this note constantly, the deviate of local zone time relative standard time is: forwarding constantly adds that the one way transmission time of note between network side note treatment facility and terminal equipment deducts the time of reception again; Then with deviate of local zone time compensation.
Calibration method also can utilize many continuous notes to realize at random, principle is during the school: be t2 the time of reception of supposing a normal short message, transmitting constantly is t3, network side note treatment facility is Δ t3 to the one way transmit after receive time delay parameter of the note between the terminal equipment, then when this note is received, the difference DELTA t=t3+ Δ t3-t2 of terminal equipment and network side standard time, Δ t is generally produced by the accumulation of crystal oscillator frequency deviation, therefore after local zone time being compensated this difference, local zone time can be corrected to the network side standard time and be consistent, wherein: if the described bearing calibration at random of present embodiment is used separately, then Δ t3 can rule of thumb be worth setting, if the described bearing calibration at random of present embodiment cooperates embodiment one to use, then the accurate measured value that can calculate Δ t3 according to the temporal information of proofreading and correct note among the embodiment one is: Δ t3=Δ T3=(T2-T1) ÷ 2, the empirical value of Δ t3 and accurately measured value be kept at respectively in the special-purpose memory block.
According to Principle of Statistics, consider that mistake may appear in the temporal information that the wall scroll note is carried or write down, and, the position of terminal equipment might change, for avoiding consequent unreasonable compensation, reach comparatively accurate deviation compensation, generally do not proofread and correct at any time according to the temporal information of wall scroll note, but after receiving N bar note, the temporal information of this N bar note of comprehensive statistics is proofreaied and correct, generally can set N more than or equal to 10 and smaller or equal to 20, the comprehensive statistics method can select following any one:
1, the mean value of N the Δ t that will calculate respectively according to N bar note is as the difference DELTA t ' that proofreaies and correct;
2, remove after N the maximum and minimum value among the Δ t, the mean value of N-2 Δ t of residue is as the difference DELTA t ' that proofreaies and correct;
3, with all N Δ t rank order, remove preceding two and latter two then after, the mean value of N-4 Δ t of residue is as the difference DELTA t ' of correction.
Like this, after terminal equipment is received note at every turn, calculate difference DELTA t and the preservation of the time of reception and the standard time of this note, when the difference DELTA t of the note that accumulative total is preserved reaches N of setting, calculate Δ t ' according to one of above-mentioned three kinds of methods, and with Δ t ' of local zone time compensation, being about to local zone time increases Δ t '.When this method of execution, terminal device prioritizes selects the accurate measured value of Δ t3 to calculate, and promptly at first judges whether to preserve the accurate measured value of Δ t3, if then utilize accurate measured value to calculate Δ t and Δ t ', otherwise, utilize the empirical value that is provided with to calculate.
For preventing that the terminal cumulative departure is too big, cause trueness error, can set effective reception duration threshold value M of the N bar note that is used for compensation correction, for example M is 5 days, if article one the reception span of note and N bar note was greater than 5 days, when then not carrying out the school at that time, the temporal information of deletion article one note waits and receives when judging whether to carry out the school according to duration threshold value M again after next bar note.
Here need to prove, generally, note from the time that the network equipment is forwarded on the terminal equipment to be spent be uncertain, with send terminal equipment, the residing wireless communication networks of receiving terminal apparatus geographical position relation is very big.This time value generally less (being generally less than 1 second) but, the deviation effects that produces during to the school is little, can also be provided with a constant come approximate substitution it, this deviation will further reduce like this, the result is an ordinary terminal equipment user acceptable during final school.
Be that example is elaborated when utilizing continuously the school at random of many notes below, after at first setting the empirical value of reception duration threshold value M, Δ t3 of the total number N of note when being used to carry out school at random, N bar note, the concrete steps of calibration method comprise as shown in Figure 2 at random:
S201, each time carry out during the school at random after, terminal equipment is with note total number count value I zero clearing and be Δ t3 assignment;
If this method and embodiment one described instant bearing calibration are used, after then instant correction is performed, store the exact value of Δ t3 in the terminal equipment, after carrying out during the school at random each time, terminal equipment should at first read the exact value of Δ t3 and carry out assignment, if the memory block of exact value is empty, the empirical value that then reads Δ t3 again carries out assignment.
Whether S202, monitoring receive a note, if then continue step S203, otherwise this step S202 that circulates;
S203, obtain the t2 and the transmit t3 constantly time of reception of this note, when calculating this note and being received, the difference DELTA t=t3+ Δ t3-t2 of terminal equipment and network side standard time is then with count value I increase by 1;
S204, judge whether I equals N,, otherwise return step S202 if then continue step S205;
In S205, the N bar note, whether the time interval between the time of reception of the time of reception of a note and the last item note is smaller or equal to M the earliest, if then continue step S206, otherwise the deletion time temporal information of a note the earliest, return step S202 after I reduced 1;
S206, calculating Δ t ';
S207, with Δ t ' of local zone time compensation, promptly the time of the local zone time after the compensation before for compensation adds a Δ t '.Return step S201.
According to said method, can be within the specific limits with the Deviation Control of local zone time, for example deviation is 1,000,000 negative/time, per 1,000,000 seconds, promptly about 12 days, the local zone time of terminal equipment can be walked slow 1 second, if M is set to 5 days, then can be in 1 second with the local zone time Deviation Control.
When this method is used separately, on the basis when the manual school of user, the note that basis is at random received compensates, even the accuracy during the manual school of user is relatively poor, after compensation several times, can constantly dwindle the timing error that deviation and automatic compensated crystal crystal oscillator frequency deviation cause.If this method cooperates embodiment one accurate calibration method use, the timing error that causes of compensated crystal crystal oscillator frequency deviation need not any expense of user effort or carries out any operation automatically, just can keep the accuracy of local zone time substantially.
The essence of above-mentioned two kinds of calibration methods of the present invention all is when standard time of utilizing the network equipment that carries in the note realizing the school for benchmark, and realizes automatically in end side fully, does not need to revise any handling process of network equipment.
Embodiment three, the terminal equipment of function when possessing instant school
For realizing instant bearing calibration of the present invention, a kind of terminal equipment of function when possessing instant school also is provided, as shown in Figure 3, terminal equipment of the present invention comprises note processing module and the realtime clock chip that is connected the note processing module, wherein, the note processing module is used to receive and dispatch note and handles note, comprises the counter that carries out timing according to the pulse per second (PPS) of crystal crystal oscillator generation in the realtime clock chip, and the count value of counter is stored in corresponding memory cell;
This terminal equipment also comprises: the module during school is connected between note processing module and the realtime clock chip; Wherein:
Note when instruction triggers note processing module sent the school when module was according to the user school during described school, the temporal information of note was proofreaied and correct the local zone time count value in the realtime clock chip when module was according to this school when described note processing module module when delivery time, the time of reception and the forwarding on network side note treatment facility of note returns to described school constantly during with described school, described school.
For finishing said method, described note processing module further can comprise:
Note generation unit during the school, note when generating described school according to described triggering signal;
The short message receiving-transmitting unit, the note and the delivery time of note when exporting this school when sending described school; Note and the note and the time of reception thereof when exporting this school when perhaps receiving the school that network side returns;
Note processing unit, identification during the school note and when extracting this school note forwarding constantly, time of reception of note and transmit output together constantly during then with this school;
Module further can comprise during described school:
The trigger element during school, when receiving user's school instruction and when the school note generation unit output triggering signal;
The processing unit during school, the information and basis of calculation time correlation time of note when receiving the school, correlation time information comprise delivery time T1, the time of reception T2 and network side transmit T3 constantly, standard time T=T3+ (T2-T1) ÷ 2;
The performance element during school is when connecting the school between note processing unit and the realtime clock chip, in the count value memory cell that standard time T is referred to synchronously go in the realtime clock chip.
Use above-mentioned terminal equipment, function key or function choosing-item when confirming once the school when user only needs to operate once the school, when spending 1 short-message fee and can realize accurate school, and with the Web-compatible of existing any standard.
Embodiment four, the terminal equipment of function when possessing school at random
As shown in Figure 4, this terminal equipment comprises note processing module and the realtime clock chip that is connected the note processing module, and module when described terminal equipment also comprises the school is connected between note processing module and the realtime clock chip;
Module when described note processing module is exported to described school with the time of reception of each bar note constantly with the forwarding of this note on network side note treatment facility, module is respectively according to time of reception of the N bar note of a note or setting with transmit the calculation correction time constantly during described school, and proofreaies and correct local zone time count value in the realtime clock chip according to result of calculation.
For realizing calibration function at random of the present invention, described note processing module further can comprise:
The short message receiving-transmitting unit is used to receive and dispatch note, and exports the note and the time of reception thereof of receiving;
The note processing unit extracts the forwarding of this note on network side note treatment facility constantly from the note of receiving, and with time of reception of note with transmit output together constantly;
Module further can comprise during described school:
The processing unit during school receives the time of reception of note and transmits time information, according to temporal information calculation correction time of the N bar note of continuous reception and export result of calculation;
The performance element during school when being connected the school between processing unit and the realtime clock chip, is proofreaied and correct local zone time count value in the realtime clock chip according to result of calculation.
And, comprise the information stores subelement in the processing unit during described school, be used for the time of reception of the temporary N bar note of receiving successively and transmit constantly and store relevant parameter, mainly comprise the empirical value of Δ t in the relevant parameter.
Use above-mentioned terminal equipment, the user is without any need for operation, and terminal equipment is corrected the time differences according to many notes of receiving automatically, with the ERROR CONTROL of local zone time in setting range, the same Web-compatible with existing any standard of this terminal equipment.
Embodiment five, the function and the terminal equipment of calibration function at random when possessing instant school simultaneously
As shown in Figure 5, comprehensive embodiment three and embodiment four, the unit when unit and second school when module comprises first school during school, the course of work is summarized as follows:
The trigger element during school, instruction and note when the note generation unit generates the school when triggering the school when receiving user's instant school, the processing unit when delivery time of note was transferred to first school when note and high-ranking officers when the short message receiving-transmitting unit sent the school;
After the note processing unit identifies the number that the sends terminal note identical with the receiving terminal number, unit with time of reception of this note and when transmitting when constantly sending to first school unit and second school simultaneously;
Processing unit during first school, when note is carried out instant school when being used for according to the school, the phase delivery time of note, the time of reception and forwarding back basis of calculation time and performance element when exporting to the school constantly when receiving the school; And during first school during once instant school of the every execution of processing unit, the accurate measured value of the associated information calculation Δ t3 of note during according to the school, Δ t3=Δ T3=(T2-T1) ÷ 2, and processing unit is preserved or is updated in the storing sub-units when sending to second school, mainly comprises empirical value and the exact value of Δ t in the relevant parameter that storing sub-units is preserved.
Because the user also can send note to oneself, the note processing unit does not need to distinguish note when whether being special-purpose school, as long as it is identical with the receiving terminal number to send the number of terminal, just with time of reception of note with transmit processing unit when constantly sending to first school, if at this moment do not preserve the delivery time of this note during first school in the processing unit, then abandon the temporal information of receiving.Perhaps, triggering signal of processing unit output when trigger element also can be to first school in the note generation unit when triggering the school during school, processing unit is provided with instant calibration mark position after receiving triggering signal during first school, when receiving a time of reception and transmitting constantly, judge whether to carry out instant correction according to flag bit, and, can prevent the generation of above-mentioned situation equally executing this flag bit of instant correction back cancellation.
The course of work of processing unit and embodiment four are just the same during second school, the processing unit when time of reception of each bar note that the note handling process will be received and forwarding constantly send to second school, when processing unit carries out the school according to default handling process and the relevant parameter information in the information stores subelement of being kept at during second school, repeat no more here.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (22)

1, a kind of method of proofreading and correct the terminal equipment local zone time is characterized in that, comprises the steps:
Note when A, terminal equipment send the school that local terminal receives to network side note treatment facility, and the delivery time T1 of note when writing down this school;
B, network side note treatment facility add this note in the note when described school forwarding is T3 constantly, and note is transmitted to terminal equipment during with this school;
Note when C, terminal equipment receive described school, the T2 and the extract described forwarding T3 constantly time of reception of note when writing down this school;
D, terminal equipment basis of calculation time T=T3+ (T2-T1) ÷ 2+ Δ T4, and local zone time proofreaied and correct be this standard time T, wherein: Δ T4 〉=0, determine according to the terminal equipment disposal ability.
2, the method for claim 1 is characterized in that, described method also comprises the steps: simultaneously
When A1 ', terminal equipment receive a note at every turn, obtain the time of reception and the forwarding of this note and also calculate when receiving this note constantly, the deviate of local zone time relative standard time is: forwarding constantly adds that the one way transmission time of note between network side note treatment facility and terminal equipment deducts the time of reception again;
B1 ', terminal equipment return steps A 1 ' after local zone time is compensated a deviate.
3, the method for claim 1 is characterized in that, described method also comprises the steps: simultaneously
A2 ', terminal equipment obtain the t2 and the transmit t3 constantly time of reception of N continuous bar note respectively, and calculate when receiving each bar note respectively, the deviate Δ t=of local zone time relative standard time (t3+ Δ t3)-t2, wherein, N 〉=2, Δ t3 is the one way transmission time of note between network side note treatment facility and terminal equipment;
B2 ', terminal equipment calculate the statistic bias value Δ t ' of N bar note, and will return steps A 2 ' behind statistic bias value Δ t ' of local zone time compensation.
4, method as claimed in claim 3 is characterized in that, described steps A 2 ' specifically comprises the steps:
A21 ', zero clearing note number count value;
A22 ', judge whether to receive a note,, preserve result of calculation and execution in step A23 ', otherwise continue to judge if then obtain the t2 and the t3 of this note correspondence and calculate the Δ t=t3+ Δ t3-t2 of this note;
A23 ', judge whether described count value equals N, if execution in step B2 ' then, otherwise return steps A 22 '.
5, method as claimed in claim 4, it is characterized in that, set the reception duration threshold value of N continuous bar note, and in described step B2 ', judge in the N bar note, article one, whether the time of reception of note and the last item note is at interval smaller or equal to this threshold value, if return steps A 21 ' after calculating described statistic bias value Δ t ' again and compensating local zone time; Otherwise the temporal information of deletion article one note and described count value subtracted 1 after return steps A 22 '.
6, method as claimed in claim 3 is characterized in that, described Δ t ' is:
The mean value of N Δ t; Perhaps,
When N 〉=4, remove N the maximum and minimum value among the Δ t after, the mean value of N-2 Δ t of residue; Perhaps,
When N 〉=6, with N Δ t sequence arrangement, remove ordering the preceding two and ordering after two after, the mean value of N-4 Δ t of residue.
7, as claim 2 or 3 described methods, it is characterized in that, the one way transmission time between described network side note treatment facility and the terminal equipment comprises the experience transmission time and the standard transmission time of storage in advance, wherein, half of difference between the time of reception of note and the delivery time when standard transmission time equals described school calculated when the each execution in step D and upgraded by terminal equipment.
8, method as claimed in claim 7, it is characterized in that, described method also comprises, behind each execution of step B1 ' of terminal equipment or the B2 ', at first judge whether to preserve the described standard transmission time, if be this standard transmission time then, otherwise it is the experience transmission time with Δ t3 assignment again with Δ t3 assignment.
9, the method for claim 1 is characterized in that, terminal equipment is time instruction setting up procedure A according to the user school, wherein, and function key or function choosing-item input when confirming school in the menu when instruction is by the school of operation setting on terminal during described user school.
10, the method for claim 1 is characterized in that, the content of note is empty or information during for the school set during described school.
11, a kind of method of proofreading and correct the terminal equipment local zone time is characterized in that, comprises the steps:
When a1, terminal equipment receive a note, obtain the time of reception and the forwarding of this note and also calculate when receiving this note constantly, the deviate of local zone time relative standard time is: forwarding constantly adds that the one way transmission time of note between network side note treatment facility and terminal equipment deducts the time of reception again;
B1, terminal equipment return step a1 after local zone time is compensated a deviate.
12, a kind of method of proofreading and correct the terminal equipment local zone time is characterized in that, comprises the steps:
A2, terminal equipment obtain the t2 and the transmit t3 constantly time of reception of N continuous bar note respectively, and calculate when receiving each bar note respectively, the deviate Δ t=of local zone time relative standard time (t3+ Δ t3)-t2, wherein, N 〉=2, Δ t3 is the one way transmission time of note between network side note treatment facility and terminal equipment;
B2, terminal equipment calculate the statistic bias value Δ t ' of N bar note, and will return step a2 behind statistic bias value Δ t ' of local zone time compensation.
13, method as claimed in claim 12 is characterized in that, specifically comprises the steps: among the described step a2
A21, zero clearing note number count value;
A22, judge whether to receive a note,, preserve result of calculation and execution in step a13, otherwise continue to judge if then obtain the t2 and the t3 of this note correspondence and calculate the Δ t=t3+ Δ t3-t2 of this note correspondence;
A23, judge whether described count value equals N, if execution in step b2 then, otherwise return step a22.
14, method as claimed in claim 13, it is characterized in that, set the reception duration threshold value of N continuous bar note, and in described step b2, whether the time of reception of judging article one note and the last item note in the N bar note is at interval smaller or equal to this threshold value, if return step a21 after calculating described statistic bias value Δ t ' again and compensating local zone time; Otherwise the temporal information of deletion article one note and described count value subtracted 1 after return step a22.
15, method as claimed in claim 12 is characterized in that, among the step b2, described Δ t ' is:
The mean value of N Δ t; Perhaps,
When N 〉=4, remove N the maximum and minimum value among the Δ t after, the mean value of N-2 Δ t of residue; Perhaps,
When N 〉=6, with N Δ t sequence arrangement, remove ordering the preceding two and ordering after two after, the mean value of N-4 Δ t of residue.
16, a kind of terminal equipment comprises note processing module and the realtime clock chip that is connected the note processing module, it is characterized in that module when described terminal equipment also comprises the school is connected between note processing module and the realtime clock chip;
Note when instruction triggers note processing module sent the school when module was according to the user school during described school, the temporal information of note was proofreaied and correct the local zone time count value in the realtime clock chip when module was according to this school when described note processing module module when delivery time, the time of reception and the forwarding on network side note treatment facility of note returns to described school constantly during with described school, described school.
17, terminal equipment as claimed in claim 16 is characterized in that,
Described note processing module comprises:
Note generation unit during the school, the note when triggering of module generates described school during according to the school;
The short message receiving-transmitting unit, the note and the delivery time of note when exporting this school when sending described school; Note and the note and the time of reception thereof when exporting this school when perhaps receiving the school;
The note processing unit connects the short message receiving-transmitting unit, during the identification school note and when extracting this school note forwarding constantly, time of reception of note and transmit output together constantly during then with this school;
Module comprises during described school:
The trigger element during school, note generation unit when generating triggering signal and exporting to the school during instruction when receiving user's school;
Processing unit during first school, delivery time, the time of reception and forwarding time information and the basis of calculation time of note during respectively from short message receiving-transmitting unit and note processing unit reception school;
The performance element during school, between processing unit and the realtime clock chip, it is the standard time that the local zone time count value in the realtime clock chip is proofreaied and correct when being connected first school.
18, terminal equipment as claimed in claim 17 is characterized in that, module also comprises during described school: processing unit during second school is connected between note processing unit and the realtime clock chip;
Described note processing unit is with time of reception of each bar note and transmit processing unit when constantly exporting to described second school, processing unit performance element according to time of reception of a note or at least two notes receiving continuously and when transmitting constantly the calculation correction time and result of calculation being exported to the school respectively during this second school, performance element is proofreaied and correct local zone time count value in the realtime clock chip according to result of calculation during the school.
19, terminal equipment as claimed in claim 18 is characterized in that, comprises the information stores subelement in the processing unit during described second school, is used for the time of reception of temporary note and transmits constantly and store relevant parameter.
20, a kind of terminal equipment comprises note processing module and the realtime clock chip that is connected the note processing module, it is characterized in that module when described terminal equipment also comprises the school is connected between note processing module and the realtime clock chip;
Module when described note processing module is exported to described school with the time of reception of each bar note constantly with the forwarding of this note on network side note treatment facility, module is respectively according to time of reception of a note or at least two notes receiving continuously with transmit the calculation correction time constantly during described school, and proofreaies and correct local zone time count value in the realtime clock chip according to result of calculation.
21, terminal equipment as claimed in claim 20 is characterized in that,
Described note processing module comprises:
The short message receiving-transmitting unit is used to receive and dispatch note, and exports the note and the time of reception thereof of receiving;
The note processing unit connects the short message receiving-transmitting unit, the forwarding of from the note of receiving, extracting this note constantly, and with time of reception of note with transmit output together constantly;
Module comprises during described school:
The processing unit during school receives the time of reception of note and transmits time information from the note processing unit, and the calculation correction time is also exported result of calculation;
The performance element during school when being connected the school between processing unit and the realtime clock chip, is proofreaied and correct local zone time count value in the realtime clock chip according to result of calculation.
22, terminal equipment as claimed in claim 21 is characterized in that, comprises the information stores subelement in the processing unit during described school, is used for the time of reception of temporary note and transmits constantly and store relevant parameter.
CNB2006100016522A 2006-01-20 2006-01-20 Method for correcting terminal device local time and terminal device Expired - Fee Related CN100455051C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100016522A CN100455051C (en) 2006-01-20 2006-01-20 Method for correcting terminal device local time and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100016522A CN100455051C (en) 2006-01-20 2006-01-20 Method for correcting terminal device local time and terminal device

Publications (2)

Publication Number Publication Date
CN1859616A true CN1859616A (en) 2006-11-08
CN100455051C CN100455051C (en) 2009-01-21

Family

ID=37298468

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100016522A Expired - Fee Related CN100455051C (en) 2006-01-20 2006-01-20 Method for correcting terminal device local time and terminal device

Country Status (1)

Country Link
CN (1) CN100455051C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442797B (en) * 2007-11-19 2011-03-02 中兴通讯股份有限公司 Method for processing network time
CN103645960A (en) * 2013-12-23 2014-03-19 北京安兔兔科技有限公司 Method and system for determining whether performance test is valid
CN103874040A (en) * 2012-12-18 2014-06-18 联芯科技有限公司 Method for mobile terminal to process newly received short messages and mobile terminal
CN105722210A (en) * 2016-03-02 2016-06-29 广东欧珀移动通信有限公司 Crystal oscillator static frequency error calibration method and system
CN109871923A (en) * 2019-02-19 2019-06-11 深圳市西克智能技术有限公司 Time-correcting method, terminal device and storage medium based on two dimensional code
CN111263320A (en) * 2020-01-16 2020-06-09 北京北科驿唐科技有限公司 Method and device for clock synchronization through short message
CN111431649A (en) * 2019-11-27 2020-07-17 杭州海康威视数字技术股份有限公司 Timing processing method and device
CN114006674A (en) * 2021-12-31 2022-02-01 深圳市海清视讯科技有限公司 Time correction method, device, equipment and storage medium for attendance equipment
CN114125799A (en) * 2021-11-12 2022-03-01 中国电信股份有限公司 Communication time length metering method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69813742T2 (en) * 1997-12-15 2003-12-24 Koninkl Philips Electronics Nv Cordless phone and timer management method
DE10040035B4 (en) * 2000-08-11 2005-10-06 T-Mobile Deutschland Gmbh Method for synchronizing the internal clock of a mobile station with the local time
KR100396785B1 (en) * 2001-10-19 2003-09-02 엘지전자 주식회사 Apparatus and method for compensating time error of gsm terminal
CN1428965A (en) * 2001-12-25 2003-07-09 深圳市中兴通讯股份有限公司上海第二研究所 Method for correcting clock ageing of telecommunication equipment
KR100424336B1 (en) * 2003-06-24 2004-03-22 주식회사 엠솔테크 Method for setting time of mobile terminal of Global System for Mobile communications

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101442797B (en) * 2007-11-19 2011-03-02 中兴通讯股份有限公司 Method for processing network time
CN103874040A (en) * 2012-12-18 2014-06-18 联芯科技有限公司 Method for mobile terminal to process newly received short messages and mobile terminal
CN103645960A (en) * 2013-12-23 2014-03-19 北京安兔兔科技有限公司 Method and system for determining whether performance test is valid
CN103645960B (en) * 2013-12-23 2017-07-21 北京安兔兔科技有限公司 Whether performance test effectively determines method and system
CN105722210A (en) * 2016-03-02 2016-06-29 广东欧珀移动通信有限公司 Crystal oscillator static frequency error calibration method and system
CN105722210B (en) * 2016-03-02 2019-03-08 Oppo广东移动通信有限公司 A kind of calibration method and calibration system of the static frequency error of crystal oscillator
CN109871923A (en) * 2019-02-19 2019-06-11 深圳市西克智能技术有限公司 Time-correcting method, terminal device and storage medium based on two dimensional code
CN111431649A (en) * 2019-11-27 2020-07-17 杭州海康威视数字技术股份有限公司 Timing processing method and device
CN111431649B (en) * 2019-11-27 2022-09-02 杭州海康威视数字技术股份有限公司 Timing processing method and device
CN111263320A (en) * 2020-01-16 2020-06-09 北京北科驿唐科技有限公司 Method and device for clock synchronization through short message
CN114125799A (en) * 2021-11-12 2022-03-01 中国电信股份有限公司 Communication time length metering method and device
CN114125799B (en) * 2021-11-12 2024-06-07 中国电信股份有限公司 Communication duration metering method and device
CN114006674A (en) * 2021-12-31 2022-02-01 深圳市海清视讯科技有限公司 Time correction method, device, equipment and storage medium for attendance equipment
CN114006674B (en) * 2021-12-31 2022-04-01 深圳市海清视讯科技有限公司 Time correction method, device, equipment and storage medium for attendance equipment

Also Published As

Publication number Publication date
CN100455051C (en) 2009-01-21

Similar Documents

Publication Publication Date Title
CN1859616A (en) Method for correcting terminal device local time and terminal device
CN1728857A (en) Method for selecting communication service using position information in a multi-mode mobile terminal
CN1230025C (en) Location system with enhanced security
CN1510955A (en) Mobile communication ternminal servo, communication system, communication controlling method and programm
CN1278570C (en) Mobile communication system, mobile station, base station and its data pack communication method
CN1810018A (en) Method for controlling a service performed in a radiocommunication device for optimising the management of the charge of the battery, and corresponding control device
CN1729709A (en) Cordless communication network and flow control methods
CN1825994A (en) Mobile radio terminal
CN1756218A (en) Communication equipment, communication programme and communication method
CN1665172A (en) Wireless communication system, wireless communication apparatus, wireless communication method, and computer program
CN1794855A (en) Method and device synchronous operating time in equipment management
CN1804653A (en) Time difference information supply system, terminal unit and control method for terminal unit
CN1291617C (en) Cell control method and cell system
CN1845599A (en) Method for obtaining and updating service key in mobile television service
CN1426251A (en) Mobile tracing system, route equipment, mobile communication terminal and control program
CN1436010A (en) Account system, mobile terminal and account method
CN1752769A (en) Positioning system, positioning apparatus, positioning information providing apparatus and positioning method
CN1438808A (en) Mobile control apparatus, mobile communication terminal and mobile communication system
CN1870719A (en) Method and system for receiving-end and source-end synchonous of broadcast TV service
CN1422095A (en) Information terminal apparatus
CN1469670A (en) Communication terminal for limiting content use
CN1490960A (en) Flow based charge calculating method for single user in multimedia broadcasting and group broadcasting business
CN1842975A (en) Mobile station
CN1279706C (en) Mobile communication system, radio base station control system and radio base station control method
CN1176553A (en) Synchronizer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090121

Termination date: 20140120