CN102572711A - Terminal clock and external clock difference synchronization method - Google Patents
Terminal clock and external clock difference synchronization method Download PDFInfo
- Publication number
- CN102572711A CN102572711A CN2012100198738A CN201210019873A CN102572711A CN 102572711 A CN102572711 A CN 102572711A CN 2012100198738 A CN2012100198738 A CN 2012100198738A CN 201210019873 A CN201210019873 A CN 201210019873A CN 102572711 A CN102572711 A CN 102572711A
- Authority
- CN
- China
- Prior art keywords
- time
- difference
- local
- clock
- terminal
- 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.)
- Pending
Links
Images
Landscapes
- Electric Clocks (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The invention provides a terminal clock and external clock difference synchronization method, comprising the following steps: starting a machine by a terminal, acquiring a TSO system time field and a UTC standard time, then reading a PSG (push service guide) table immediately, and acquiring the time zone difference data in the PSG table, wherein the time zone difference data in the ESG (electric service guide) table can be obtained in some occasions; synthesizing the time zone difference data and UTC data into local time; and calculating the difference between the local time and a clock time, wherein the difference between the local time and the clock time is used as the synchronization time difference. According to the terminal clock and external clock difference synchronization method, the clock does not need to be forced to synchronize and the original time memory of the user does not need to be kept, thus the terminal can still keep the high-precision difference time synchronization by using the clock after a CMMB demodulator module is closed, wherein the high-precision difference time synchronization is used as the pushed start time benchmark. The terminal clock and external clock difference synchronization method is used for the moment control under multiple time systems.
Description
Technical field
The invention belongs to filed of mobile multimedia broadcasting, be specifically related to the gap method for synchronous of a kind of terminal clock and external clock.
Background technology
This machine clock of mobile multi-media broadcast terminal needs enough accurately could constantly to open receive path according to broadcasting in the pushing service guide (PSG) and carries out Data Receiving.And this machine at common terminal clock does not organically utilize the external clock that transmits in the CMMB; Exist disadvantages such as automaticity is not high, versatility difference; And with this machine clock synchronization behind external clock; Also, cause the user to be reluctant to adopt the synchronous contradiction of external clock, cause the terminal when receiving propelling data, to have the situation of receiving or can not receive file less original forcibly changing time memory of terminal use.
Summary of the invention
For overcoming above-mentioned defective; The invention provides the gap method for synchronous of a kind of terminal clock and external clock; Do not rely on the time opening and closing terminal-receiving passage that individual subscriber is set; Thereby guaranteed that the terminal time of reception broadcasts the accurate consistent of external clock with front end, guaranteed the complete reception of propelling data.
For realizing above-mentioned purpose, the present invention provides the gap method for synchronous of a kind of terminal clock and external clock, and its improvements are that said method comprises the steps:
Said method comprises the steps:
(1). obtain the external clock TSO time;
(2). conversion external clock time type;
(3). obtain the local zone time side-play amount;
(4). calculate the local time zone time;
(5). calculate and the holding time difference.
In the optimal technical scheme provided by the invention, in said step 1, said to obtain the external clock TSO time be that network information table NIT from the control information table of multiplexed frame O obtains system time.
In second optimal technical scheme provided by the invention, in said step 2, change the said external clock time type of carrying out and be used for converting system time into the UTC time.
In the 3rd optimal technical scheme provided by the invention, in said step 3, the said mode of obtaining the side-play amount of local zone time comprises electron service instruction (ESG) local zone time skew obtain manner or pushing service guide (PSG) local zone time skew obtain manner.
In the 4th optimal technical scheme provided by the invention, said electron service instruction (ESG) local zone time skew obtain manner comprises from the basic description list of ESG of the control information table of multiplexed frame O and obtains the local zone time side-play amount.
In the 5th optimal technical scheme provided by the invention, said pushing service guide (PSG) local zone time skew obtain manner comprises and from PSG, obtains the local zone time side-play amount.
In the 6th optimal technical scheme provided by the invention, in said step 4, calculate the local time zone time through TSO time and local zone time side-play amount.
In the 7th optimal technical scheme provided by the invention, the said calculating local time zone time comprise with the time of location and UTC time compare so that confirm local time zone time=UTC time+time offset or local time zone time=UTC time-time offset.
In the 8th optimal technical scheme provided by the invention, in said step 5, said calculating and holding time difference; Comprise and obtaining this machine of terminal time; The difference of this machine of computing terminal time and local time zone time as gap value lock in time, and stores this difference in the database at terminal into.
In the 9th optimal technical scheme provided by the invention, accomplish said step 5 back difference update time.
In the tenth optimal technical scheme provided by the invention; In said step 6; The said time difference that carries out upgrades; Be meant the adjustment of starting up of terminal, this machine time, PSG resolve and any situation that needs time synchronized under, the local zone time that reads again and convert, and record at that time should the time and the difference of this machine time, the renewal of realization time difference.
With the prior art ratio; The gap method for synchronous of a kind of terminal clock provided by the invention and external clock; Do not rely on the time opening and closing terminal-receiving passage that individual subscriber is set; Thereby guaranteed that the terminal time of reception broadcasts the accurate consistent of external clock with front end, guaranteed the complete reception of propelling data.And this machine clock forced synchronism is not kept original time memory of user; When guaranteeing that the user obtains good experience; Still available the machine clock in terminal keeps high-precision gap time synchronized after closing the CMMB demodulation module, as the startup moment benchmark that pushes.Be used for the moment control under the system of many time.
Description of drawings
Fig. 1 utilizes ESG to obtain the clock synchronization flow chart of local zone time skew.
Fig. 2 utilizes PSG to obtain the clock synchronization flow chart of local zone time skew.
Fig. 3 is the clock synchronization flow chart of preset mode.
Embodiment
Embodiment 1, a kind of ESG of utilization obtain the clock synchronizing method of local zone time skew, and be as shown in Figure 1.Concrete clock synchronization step is following:
Step 101, starting up of terminal are obtained the data of multiplexed frame O simultaneously.
Step 102 is obtained the network information table NIT of control information table from multiplexed frame O.
" system time " field is resolved and extracted to step 103 to network information table NIT.
Step 104 is resolved and format conversion system time, thereby obtains the UTC time, comprises that the MJD date changes and the BCD scramble time extracts.The MJD date is changed year, month, day of MJD date code through calculating the UTC time with preceding 16 definition in the system time; When the BCD scramble time extracts BCD coding through back 24 definition in the system time and extracts, branch, second.
Step 105 reads and resolves after the network information table, finds the basic description list of ESG of multiplexed frame O at once.
Step 106, the data of extraction local zone time offset field from the basic description list of ESG.6 bit fields are back 5 bit representation time offset wherein, span 0~24, and unit is 0.5 hour.For example: the time zone value is " 010000 ", and the expression time difference is 8 hours.
Step 107, the local zone time skew, 6 fields are the 1st bit representation time zone polarity wherein, judges that time zone polarity is ' 0 ' or ' 1 ', when being ' 0 ', then representes local zone time early than the UTC time, and when putting ' 1 ', the expression local zone time is later than the UTC time.
Step 108, if local zone time early than the UTC time, local time zone time=UTC time+time offset then.For example the UTC time is 10: 11: 12 on the 6th June in 2011, the local zone time side-play amount is+and 8 hours, then the local time zone time is 18: 11: 12 on the 6th June in 2011.
Step 109, if local zone time is later than the UTC time, local time zone time=UTC time-time offset then.For example the UTC time is 10: 11: 12 on the 6th June in 2011, and the local zone time side-play amount is-8 hours, and then the local time zone time is 2: 11: 12 on the 6th June in 2011.
Step 110 is obtained this machine of terminal time.
Step 111, the difference of this machine of computing terminal time and above-mentioned local time zone time is as gap value lock in time.For example, this machine of terminal time is 18: 14: 17 on the 6th June in 2011, and the local time zone time is 18: 11: 12 on the 6th June in 2011, and then difference is 3 minutes 5 seconds.
Step 112 stores difference in the terminal database into.
Embodiment 2, a kind of PS6 of utilization obtain the clock synchronizing method of local zone time skew, and be as shown in Figure 2.Concrete clock synchronization step is following:
" system time " field is resolved and extracted to step 203 to network information table NIT.
Step 210 is obtained this machine of terminal time.
The clock synchronizing method of embodiment 3, a kind of preset mode, as shown in Figure 3.Concrete clock synchronization step is following:
" system time " field is resolved and extracted to step 303 to network information table NIT.
Step 304 is resolved and format conversion system time, thereby obtains the UTC time, comprises that the MJD date changes and the BCD scramble time extracts.The MJD date is changed year, month, day of MJD date code through calculating the UTC time with preceding 16 definition in the system time; When the BCD scramble time extracts BCD coding through back 24 definition in the system time and extracts, branch, second.
Step 305 presets the local zone time deviant, i.e. particular locality time zone standard time and UTC time difference (if early then for just, evening is then for bearing).For example Beijing time and UTC time difference are+8, if the UTC time is 10: 11: 12 on the 6th June in 2011, then the local time zone time is 18: 11: 12 on the 6th June in 2011.
Step 307 is obtained this machine of terminal time.
Step 309 stores difference in the terminal database into.
Method of the present invention; Do not rely on the time opening and closing terminal-receiving passage that individual subscriber is set; Thereby this machine clock forced synchronism is not kept original time memory of user; When guaranteeing that the user obtains good experience, still available the machine clock in terminal keeps high-precision gap time synchronized after closing the CMMB demodulation module, as the startup moment benchmark that pushes.Can be used for the moment control under the system of many time.
What need statement is that content of the present invention and embodiment are intended to prove the practical application of technical scheme provided by the present invention, should not be construed as the qualification to protection range of the present invention.Those skilled in the art can do various modifications, be equal to replacement or improvement under spirit of the present invention and principle inspiration.But these changes or modification are all in the protection range that application is awaited the reply.
Claims (11)
1. the gap method for synchronous of terminal clock and external clock is characterized in that said method comprises the steps:
(1). obtain the external clock TSO time;
(2). conversion external clock time type;
(3). obtain the local zone time side-play amount;
(4). calculate the local time zone time;
(5). calculate and the holding time difference.
2. method according to claim 1 is characterized in that, in said step 1, said to obtain the external clock TSO time be that network information table NIT from the control information table of multiplexed frame O obtains system time.
3. method according to claim 1 is characterized in that, in said step 2, changes the said external clock time type of carrying out and is used for converting system time into the UTC time.
4. method according to claim 1; It is characterized in that; In said step 3, the said mode of obtaining the side-play amount of local zone time comprises electron service instruction (ESG) local zone time skew obtain manner or pushing service guide (PSG) local zone time skew obtain manner.
5. method according to claim 4 is characterized in that, said electron service instruction (ESG) local zone time skew obtain manner comprises from the basic description list of ESG of the control information table of multiplexed frame O and obtains the local zone time side-play amount.
6. method according to claim 4 is characterized in that, said pushing service guide (PSG) local zone time skew obtain manner comprises and from PSG, obtains the local zone time side-play amount.
7. method according to claim 1 is characterized in that, in said step 4, calculates the local time zone time through TSO time and local zone time side-play amount.
8. method according to claim 7; It is characterized in that, the said calculating local time zone time comprise with the time of location and UTC time compare so that confirm local time zone time=UTC time+time offset or local time zone time=UTC time-time offset.
9. method according to claim 1; It is characterized in that, in said step 5, said calculating and holding time difference; Comprise and obtaining this machine of terminal time; The difference of this machine of computing terminal time and local time zone time as gap value lock in time, and stores this difference in the database at terminal into.
10. method according to claim 1 is characterized in that, accomplishes said step 5 back difference update time.
11. method according to claim 10; It is characterized in that; In said step 6, the said time difference that carries out upgrades, be meant starting up of terminal, the adjustment of this machine time, PSG resolves and any situation that needs time synchronized under; Again read and convert local zone time, and record at that time should the time and the difference of this machine time, the renewal of realization time difference.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100198738A CN102572711A (en) | 2012-01-21 | 2012-01-21 | Terminal clock and external clock difference synchronization method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100198738A CN102572711A (en) | 2012-01-21 | 2012-01-21 | Terminal clock and external clock difference synchronization method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102572711A true CN102572711A (en) | 2012-07-11 |
Family
ID=46416944
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100198738A Pending CN102572711A (en) | 2012-01-21 | 2012-01-21 | Terminal clock and external clock difference synchronization method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102572711A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103077067A (en) * | 2012-12-26 | 2013-05-01 | 华为技术有限公司 | Method, device and equipment for detecting system time of virtual machine |
CN104917834A (en) * | 2015-06-09 | 2015-09-16 | 北京金山安全软件有限公司 | Information pushing method and device |
CN110662284A (en) * | 2018-06-28 | 2020-01-07 | 华为技术有限公司 | Method and device for correcting time information |
CN111932236A (en) * | 2020-06-28 | 2020-11-13 | 郑州威科姆科技股份有限公司 | NB-IoT-based vehicle insurance duration charging device and reliability processing method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960435A (en) * | 2006-08-25 | 2007-05-09 | 中兴通讯股份有限公司 | Method and system for synchronizing broadcast time of mobile multimedia |
WO2008092750A1 (en) * | 2007-01-31 | 2008-08-07 | International Business Machines Corporation | Facilitating recovery in a coordinated timing network |
CN101868971A (en) * | 2007-09-21 | 2010-10-20 | Lg电子株式会社 | Digital broadcasting system and data processing method in the digital broadcasting system |
CN101959036A (en) * | 2009-07-16 | 2011-01-26 | 华为终端有限公司 | Method and device for calibrating local time |
-
2012
- 2012-01-21 CN CN2012100198738A patent/CN102572711A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1960435A (en) * | 2006-08-25 | 2007-05-09 | 中兴通讯股份有限公司 | Method and system for synchronizing broadcast time of mobile multimedia |
WO2008092750A1 (en) * | 2007-01-31 | 2008-08-07 | International Business Machines Corporation | Facilitating recovery in a coordinated timing network |
CN101868971A (en) * | 2007-09-21 | 2010-10-20 | Lg电子株式会社 | Digital broadcasting system and data processing method in the digital broadcasting system |
CN101959036A (en) * | 2009-07-16 | 2011-01-26 | 华为终端有限公司 | Method and device for calibrating local time |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103077067A (en) * | 2012-12-26 | 2013-05-01 | 华为技术有限公司 | Method, device and equipment for detecting system time of virtual machine |
CN103077067B (en) * | 2012-12-26 | 2016-03-30 | 华为技术有限公司 | Dummy machine system time defining method, device and equipment |
CN104917834A (en) * | 2015-06-09 | 2015-09-16 | 北京金山安全软件有限公司 | Information pushing method and device |
CN104917834B (en) * | 2015-06-09 | 2018-07-10 | 北京金山安全软件有限公司 | Information pushing method and device |
CN110662284A (en) * | 2018-06-28 | 2020-01-07 | 华为技术有限公司 | Method and device for correcting time information |
CN110662284B (en) * | 2018-06-28 | 2021-05-11 | 华为技术有限公司 | Method and device for correcting time information |
CN111932236A (en) * | 2020-06-28 | 2020-11-13 | 郑州威科姆科技股份有限公司 | NB-IoT-based vehicle insurance duration charging device and reliability processing method |
CN111932236B (en) * | 2020-06-28 | 2021-10-01 | 郑州威科姆科技股份有限公司 | NB-IoT-based vehicle insurance duration charging device and reliability processing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100900531B1 (en) | System and method for synchronizing a transport stream in a single frequency network | |
CN102572711A (en) | Terminal clock and external clock difference synchronization method | |
US20210103059A1 (en) | Time synchronization system and transmission apparatus | |
CN100370805C (en) | Method and system for receiving-end and source-end synchonous of broadcast TV service | |
CN101848396B (en) | Audio/video synchronization and anti-shaking method of transport stream | |
JP5399984B2 (en) | Transmission device, server device, and reception device | |
NZ716531A (en) | Media insertion system | |
CN102630017B (en) | Method and system for synchronizing mobile multi-media broadcasting and subtitles | |
EP1613090A3 (en) | Data synchronization method and apparatus for digital multimedia data receiver | |
CN101202613B (en) | Terminal for clock synchronization | |
CN101770016B (en) | GPS time service signal generator based on Beidou satellite | |
CN101656606A (en) | Time synchronization method, time synchronization device and time synchronization system | |
CN103098486A (en) | Method of DVB-T2 broadcasting with insertion of regional content and device used in the method | |
KR102546161B1 (en) | Receiving device and data processing method | |
TW201727408A (en) | Reception apparatus, transmission apparatus, and data processing method | |
CN1988667A (en) | Clock synchronizing method in broadcast network | |
EP3472952A1 (en) | Deterministic re-multiplexing for dvb sfn networks | |
CN101500070A (en) | Interface element pushing method and apparatus for set-top box | |
CN100548053C (en) | A kind of system clock recovery device | |
US9723339B2 (en) | Method for generating a time marking for synchronous terrestrial broadcasting | |
CN103986921A (en) | Digital satellite television time service method | |
CN101959036A (en) | Method and device for calibrating local time | |
CN102186106B (en) | Clock synchronization device in single-frequency network | |
CN100544448C (en) | A kind of clock system of mobile multimedia network | |
CN101742073A (en) | Method for realizing dynamic menu display by set-top box according to change of system time |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120711 |
|
RJ01 | Rejection of invention patent application after publication |