JP2010085325A - Time synchronizer, program for performing computer as time synchronizer, and recording medium - Google Patents

Time synchronizer, program for performing computer as time synchronizer, and recording medium Download PDF

Info

Publication number
JP2010085325A
JP2010085325A JP2008256677A JP2008256677A JP2010085325A JP 2010085325 A JP2010085325 A JP 2010085325A JP 2008256677 A JP2008256677 A JP 2008256677A JP 2008256677 A JP2008256677 A JP 2008256677A JP 2010085325 A JP2010085325 A JP 2010085325A
Authority
JP
Japan
Prior art keywords
time
internal clock
information source
current time
time 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.)
Pending
Application number
JP2008256677A
Other languages
Japanese (ja)
Inventor
Harunobu Mori
晴信 森
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2008256677A priority Critical patent/JP2010085325A/en
Publication of JP2010085325A publication Critical patent/JP2010085325A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a time synchronizer maintaining accuracy of an internal clock by selecting a time information server for synchronizing depending on a time difference between the internal clock and the time information server. <P>SOLUTION: A control part 101 takes a first current time T1 from a time information source 200 and a second current time T2 from a time information source 300 respectively, corrects the time of the internal clock based on the current time T1 in cases where the time difference between a time T0 of the internal clock and the current time T1 is equal or higher than a predetermined threshold, and corrects the time of the internal clock based on the current time T2 in other cases. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、時刻同期装置、これを用いた電子機器、コンピュータを時刻同期装置として機能させるためのプログラム(以下、「時刻同期プログラム」と称する。)および時刻同期プログラムを格納するコンピュータ読み取り可能な記録媒体に関し、特に、異なる時刻情報源から現在時刻を取得して内部時計の時刻の補正を行う時刻同期装置と、時刻同期プログラムおよび記録媒体に関する。   The present invention relates to a time synchronization apparatus, an electronic apparatus using the same, a program for causing a computer to function as a time synchronization apparatus (hereinafter referred to as “time synchronization program”), and a computer-readable record storing the time synchronization program. In particular, the present invention relates to a time synchronization apparatus that acquires the current time from different time information sources and corrects the time of the internal clock, a time synchronization program, and a recording medium.

現在、内部に時計(内部時計)を保持し、外部の時刻情報源から時刻情報を取得して、時刻の補正を行う装置が数多く用いられている。   Currently, many devices are used that hold a clock (internal clock) inside, acquire time information from an external time information source, and correct the time.

例えば、デジタル放送受信機では、デジタル放送波の中に現在時刻の情報を含むTOT(Time Offset Table)と呼ばれるデータが多重化されており、放送波受信時にこのデータを取得することによってデジタル放送受信機中の内部時計を補正することができるようになっている。複数のデジタル放送を受信することにより複数のTOTを取得することができた場合における内部時計の同期については、例えば、下記特許文献1に開示されている。特許文献1に記載の方法を用いると、複数のTOTから一つのTOTを選択し、選択したTOTの現在時刻に内部時計を同期させることができる。また、ネットワークに接続されている装置においては、例えば、RFC2030で規定されているSNTP(Simple Network Time Protocol)を実装することにより、時刻情報サーバのパケット送信時刻や装置のパケット受信時刻等を元に、内部時計を補正することができる。   For example, in a digital broadcast receiver, data called TOT (Time Offset Table) including information on the current time is multiplexed in a digital broadcast wave, and the digital broadcast is received by acquiring this data when the broadcast wave is received. The internal clock in the machine can be corrected. The synchronization of the internal clock when a plurality of TOTs can be acquired by receiving a plurality of digital broadcasts is disclosed, for example, in Patent Document 1 below. Using the method described in Patent Document 1, it is possible to select one TOT from a plurality of TOTs and synchronize the internal clock with the current time of the selected TOT. In addition, in a device connected to the network, for example, by implementing SNTP (Simple Network Time Protocol) defined in RFC2030, the time information server packet transmission time, the device packet reception time, etc. The internal clock can be corrected.

特開2007−116321号公報JP 2007-116321 A

上記特許文献1に開示されている技術は、デジタル放送波に多重化されて伝送されるTOTという正確度(真の値からの近さとして定義される。)や精密度(ばらつきの小ささとして定義される。)が、いずれのデジタル放送波を選択しても一定範囲内であることが前提となっている。   The technique disclosed in Patent Document 1 described above is accurate (defined as close to a true value) and precision (small variation) as TOT transmitted multiplexed with a digital broadcast wave. However, it is assumed that any digital broadcast wave is within a certain range.

しかしながら、TOTや標準電波によって送信される日本標準時等のように正確度と精密度がいずれも高い時刻情報を取得する手段を持たない機器や、機器が取得できない場所にある場合には、例えばネットワークを経由して時刻情報サーバから現在時刻を取得する方法もあるが、時刻情報サーバの構成や時刻情報を取得するためのプロトコルの違いなどによって、正確度や精密度が全ての時刻情報サーバで同一であることは保証されない場合がある。このような場合に、精密度は高いが正確度が常に高いことは保証されていない時刻情報サーバに内部時計を同期させると、正確度を維持できない可能性がある。また、精密度は低いが正確度が保証されている時刻情報サーバに内部時計を同期させると、精密度を維持することは難しくなるという問題がある。   However, if there is a device that does not have a means for acquiring time information with high accuracy and precision, such as Japan Standard Time transmitted by TOT or standard radio waves, or in a place where the device cannot be acquired, for example, a network Although there is a method of acquiring the current time from the time information server via the time information server, the accuracy and precision are the same for all time information servers due to differences in the configuration of the time information server and the protocol for acquiring the time information. May not be guaranteed. In such a case, there is a possibility that the accuracy cannot be maintained if the internal clock is synchronized with a time information server that has high accuracy but is not guaranteed to have high accuracy. In addition, if the internal clock is synchronized with a time information server with low accuracy but guaranteed accuracy, there is a problem that it is difficult to maintain accuracy.

本発明は、上述の課題等を解決するためになされたものであり、本発明の目的の一つは、少なくとも内部時計の正確度が維持される時刻同期装置を提供することである。   The present invention has been made to solve the above-described problems and the like, and one of the objects of the present invention is to provide a time synchronization device that maintains at least the accuracy of the internal clock.

上記課題を解決するために、内部時計と時刻情報サーバとの時刻差に応じて同期を取る時刻情報サーバを選択することを特徴とする。   In order to solve the above problem, a time information server to be synchronized is selected according to a time difference between the internal clock and the time information server.

本発明の一観点によれば、複数の時刻情報源から取得した現在時刻を元に内部時計の時刻の補正を行う時刻同期装置において、該時刻同期装置は制御部を有し、該制御部は、第一の時刻情報源から第一の現在時刻を、該第一の現在時刻とは異なる第二の時刻情報源から第二の現在時刻をそれぞれ取得し、前記内部時計の時刻と前記第一の現在時刻との時刻差が予め定められた第一の閾値以上の場合は、前記第一の現在時刻を元に前記内部時計の時刻を補正し、前記内部時計の時刻と前記第一の現在時刻との時刻差が予め定められた前記第一の閾値以上ではない場合は、前記第二の現在時刻を元に前記内部時計の時刻を補正することを特徴とする時刻同期装置が提供される。前記第二の時刻情報源は前記第一の時刻情報源に比べて精密度は高いが正確度が常に高いことは保証されていないものであり、前記第一の時刻情報源は、前記第二の時刻情報源に比べて精密度は低いが正確度が高いことが保証されている。   According to one aspect of the present invention, in a time synchronization apparatus that corrects the time of an internal clock based on current times acquired from a plurality of time information sources, the time synchronization apparatus includes a control unit, and the control unit includes: A first current time from the first time information source, a second current time from a second time information source different from the first current time, and the time of the internal clock and the first time If the time difference from the current time is equal to or greater than a predetermined first threshold, the time of the internal clock is corrected based on the first current time, and the time of the internal clock and the first current Provided is a time synchronizer that corrects the time of the internal clock based on the second current time when the time difference from the time is not greater than or equal to the predetermined first threshold. . The second time information source is higher in accuracy than the first time information source, but is not guaranteed to be always high in accuracy, and the first time information source is the second time information source. Compared to the time information source of, the accuracy is low, but it is guaranteed that the accuracy is high.

第一の時刻情報源に比べて精密度は高いが正確度が常に高いことは保証されていない第二の時刻情報源と、第二の時刻情報源に比べて精密度は低いが正確度が高いことが保証されている第一の時刻情報源がある場合に、第一の時刻情報源と第二の時刻情報源との時刻差が閾値以下の状態であれば、第二の時刻情報源に内部時計が同期することによって精密度と正確度を維持することが可能となる。   The second time information source, which is more accurate than the first time information source but is not guaranteed to be always highly accurate, and the second time information source, which is less accurate but more accurate than the second time information source. If there is a first time information source that is guaranteed to be high, and the time difference between the first time information source and the second time information source is equal to or less than a threshold value, the second time information source As the internal clock synchronizes with each other, the precision and accuracy can be maintained.

また、前記制御部は、前記内部時計の時刻と前記第一の現在時刻との時刻差が、あらかじめ定められた前記第一の閾値を超えたと判定された以降は、前記内部時計の時刻と前記第二の現在時刻との時刻差が、予め定められ、前記第一の閾値とは異なる第二の閾値以下となるまで、前記第一の現在時刻を元に内部時計の時刻を補正することが好ましい。   In addition, after it is determined that the time difference between the time of the internal clock and the first current time exceeds the predetermined first threshold, the control unit determines the time of the internal clock and the time of the internal clock. The time of the internal clock may be corrected based on the first current time until a time difference from the second current time is predetermined and equal to or less than a second threshold different from the first threshold. preferable.

さらに、ネットワークを経由してデータの送受信を行う通信部を備え、該通信部が、ネットワーク上の時刻情報源を含む時刻情報サーバから送信された現在時刻を含むパケットを受信し、前記制御部は、受信した前記現在時刻を含むパケットから現在時刻を取り出すことによって前記時刻情報源から現在時刻を取得することが好ましい。   The communication unit further includes a communication unit that transmits and receives data via a network, and the communication unit receives a packet including a current time transmitted from a time information server including a time information source on the network. Preferably, the current time is acquired from the time information source by extracting the current time from the received packet including the current time.

本発明の他の観点によれば、複数の時刻情報源から取得した現在時刻を元に内部時計の時刻の補正を行う時刻同期方法であって、第一の時刻情報源から第一の現在時刻を、該第一の現在時刻とは異なる第二の時刻情報源から第二の現在時刻をそれぞれ取得するステップと、前記内部時計の時刻と前記第一の現在時刻との時刻差が予め定められた第一の閾値以上の場合は、前記第一の現在時刻を元に前記内部時計の時刻を補正し、前記内部時計の時刻と前記第一の現在時刻との時刻差が予め定められた前記第一の閾値以上ではない場合は、前記第二の現在時刻を元に前記内部時計の時刻を補正するステップを有することを特徴とする時刻同期方法が提供される。前記内部時計の時刻と前記第一の現在時刻との時刻差が、あらかじめ定められた前記第一の閾値を超えたと判定された以降は、前記内部時計の時刻と前記第二の現在時刻との時刻差が、予め定められ、前記第一の閾値とは異なる第二の閾値以下となるまで、前記第一の現在時刻を元に内部時計の時刻を補正するステップを有することが好ましい。   According to another aspect of the present invention, there is provided a time synchronization method for correcting the time of an internal clock based on current times acquired from a plurality of time information sources, wherein the first current time is determined from a first time information source. Obtaining a second current time from a second time information source different from the first current time, and a time difference between the time of the internal clock and the first current time is determined in advance. If it is equal to or greater than the first threshold, the time of the internal clock is corrected based on the first current time, and the time difference between the time of the internal clock and the first current time is predetermined. If the time is not equal to or greater than the first threshold value, a time synchronization method is provided that includes a step of correcting the time of the internal clock based on the second current time. After it is determined that the time difference between the time of the internal clock and the first current time exceeds the predetermined first threshold, the time of the internal clock and the second current time are It is preferable that the method further includes a step of correcting the time of the internal clock based on the first current time until the time difference is equal to or less than a second threshold that is predetermined and different from the first threshold.

本発明は、上記の方法をコンピュータに実行させるためのプログラムであっても良いし、該プログラムを記録した、コンピュータ読みとり可能な記録媒体であっても良い。該プログラムは、インターネットなどの伝送媒体によって取得できるような形態でも良い。   The present invention may be a program for causing a computer to execute the above method, or a computer-readable recording medium on which the program is recorded. The program may be in a form that can be acquired by a transmission medium such as the Internet.

本発明に係る時刻同期装置によれば、第一の時刻情報源から第一の現在時刻を、第二の時刻情報源から第二の現在時刻をそれぞれ取得し、内部時計の時刻と第一の現在時刻との時刻差があらかじめ定めた閾値以上の場合は、第一の現在時刻を元に内部時計の時刻を補正し、そうでない場合は第二の現在時刻を元に内部時計の時刻を補正する。   According to the time synchronization apparatus of the present invention, the first current time is obtained from the first time information source, the second current time is obtained from the second time information source, and the time of the internal clock and the first time are obtained. If the time difference from the current time is greater than or equal to a predetermined threshold, the internal clock time is corrected based on the first current time, otherwise the internal clock time is corrected based on the second current time. To do.

したがって、第一の時刻情報源に比べて精密度は高いが正確度が常に高いことは保証されていない第二の時刻情報源と、第二の時刻情報源に比べて精密度は低いが正確度が高いことが保証されている第一の時刻情報源がある場合に、第一の時刻情報源と第二の時刻情報源との時刻差が閾値以下の状態であれば、第二の時刻情報源に内部時計が同期することによって精密度と正確度を維持することが可能となる。   Therefore, the second time information source, which is more accurate than the first time information source but is not guaranteed to be always highly accurate, is less accurate but more accurate than the second time information source. If there is a first time information source that is guaranteed to be high, if the time difference between the first time information source and the second time information source is less than or equal to a threshold value, the second time The accuracy and accuracy can be maintained by synchronizing the internal clock with the information source.

また、時刻差が閾値以上の状態であれば、第一の時刻情報源に内部時計が同期することによって少なくとも正確度を維持することが可能となる。   Further, if the time difference is equal to or greater than the threshold value, at least accuracy can be maintained by synchronizing the internal clock with the first time information source.

以下、図面を参照しつつ、本発明の実施の形態について説明する。以下の説明では、同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. In the following description, the same parts are denoted by the same reference numerals. Their names and functions are also the same. Therefore, detailed description thereof will not be repeated.

<第1の実施の形態>
図1は、本発明の第1の実施の形態による時刻同期装置100の内部構成例を示す機能ブロック図である。図2は、本実施の形態による時刻同期装置100の制御部101における処理の流れを示すフローチャート図である。
<First Embodiment>
FIG. 1 is a functional block diagram showing an internal configuration example of the time synchronization apparatus 100 according to the first embodiment of the present invention. FIG. 2 is a flowchart showing the flow of processing in the control unit 101 of the time synchronization apparatus 100 according to this embodiment.

図1および図2を参照して、本実施の形態にして説明する。尚、時刻同期装置100は、内部時計を有するものであればどのような装置でも適用することができ、例えばテレビジョン受信装置、STB、DVR(Digital Video Recorder)、PC(Personal Computer)などである。   This embodiment will be described with reference to FIG. 1 and FIG. The time synchronization apparatus 100 can be applied to any apparatus having an internal clock, such as a television receiver, STB, DVR (Digital Video Recorder), PC (Personal Computer), etc. .

図1において、時刻同期装置100は、時刻同期装置100の動作を制御する制御部101と、制御プログラム180などが格納されている記憶部102と、内部時計の時刻を発生させるタイマー部103と、ネットワーク経由でデータの送受信を行なう機能を有する通信用インタフェースである通信部104と、を備えている。   In FIG. 1, a time synchronization apparatus 100 includes a control unit 101 that controls the operation of the time synchronization apparatus 100, a storage unit 102 that stores a control program 180, a timer unit 103 that generates the time of an internal clock, And a communication unit 104 that is a communication interface having a function of transmitting and receiving data via a network.

制御部101は、マイクロプロセッサ(Microprocessor)、プログラミングすることができるLSI(Large Scale Integration)であるFPGA(Field Programmable Gate Array)、特定の用途のために設計,製造される集積回路であるASIC(Application Specific Integrated Circuit)、その他の演算機能を有する回路等のいずれであってもよい。   The control unit 101 includes a microprocessor, an FPGA (Field Programmable Gate Array), which is a programmable LSI (Large Scale Integration), and an ASIC (Application, which is an integrated circuit designed and manufactured for a specific application. Specific Integrated Circuit), a circuit having other arithmetic functions, or the like may be used.

記憶部102は、ハードディスクやフラッシュメモリなど、データを保持可能な媒体や回路等のいずれであってもよい。記憶部102には、制御部101に所定の処理を行なわせるための制御プログラム180も記憶されている。制御部101は、制御プログラム180に従って、時刻同期装置100の内部の各構成部に対する各種の処理、演算処理等を行なうことができる。   The storage unit 102 may be any medium or circuit that can hold data, such as a hard disk or a flash memory. The storage unit 102 also stores a control program 180 for causing the control unit 101 to perform predetermined processing. The control unit 101 can perform various types of processing, arithmetic processing, and the like for each component within the time synchronization apparatus 100 according to the control program 180.

タイマー部103は、時刻同期装置100が有するクロックを元に時刻の管理を行う。例えば、制御部101から現在時刻の値が設定されると、それ以降は、水晶発振器等のクロックジェネレータから出力されるクロックに基づいて時刻(クロック周波数の逆数)を随時インクリメントすることによって現在時刻を保持することができる。   The timer unit 103 performs time management based on a clock included in the time synchronization apparatus 100. For example, when the value of the current time is set from the control unit 101, the current time is then incremented from time to time based on a clock output from a clock generator such as a crystal oscillator. Can be held.

通信部104で用いられる通信手法としては、Bluetooth(Bluetooth SIGの登録商標)等の近距離無線通信技術や、無線LANの規格であるIEEE802.11a、IEEE802.11b、IEEE802.11g、その他UWB等の無線通信技術、あるいは有線LANの規格であるEthernet(Xerox社の登録商標)、IEEE1394、HDMI、その他PLC等の有線通信技術を利用してデータ通信を行なう通信用インタフェースのいずれであってもよい。   Communication methods used in the communication unit 104 include short-range wireless communication technologies such as Bluetooth (registered trademark of Bluetooth SIG), IEEE802.11a, IEEE802.11b, IEEE802.11g, and other UWB standards for wireless LAN. Either a wireless communication technology or a communication interface for performing data communication using a wired LAN standard such as Ethernet (registered trademark of Xerox), IEEE 1394, HDMI, PLC, or the like may be used.

以下、図1および図2を参照しながら、時刻同期装置100が外部の第一及び第二の時刻情報源200、300との間で行う時刻同期処理について、具体的に説明する。尚、第一の時刻情報源200は、時刻情報源300に比べて精密度は低い(例えば時刻情報が分単位である)が正確度は高い(例えば標準電波やGPS衛星からの電波によって送信される時刻情報に内部時計を同期させる方法がある。)ことが保証されているものであり、第二の時刻情報源300は、第一の時刻情報源200に比べて精密度は高い(例えば時刻情報が秒単位である)が、正確度が常に高いことは保証されていない(例えばNTPサーバの場合、NTPクライアントからの時刻問い合わせの集中による過負荷や上位NTPサーバとの通信途絶等によって正確度が下がる場合がある。)時刻情報源であるものとする。   Hereinafter, the time synchronization process performed between the time synchronization apparatus 100 and the external first and second time information sources 200 and 300 will be specifically described with reference to FIGS. 1 and 2. The first time information source 200 is lower in accuracy than the time information source 300 (for example, the time information is in units of minutes) but high in accuracy (for example, transmitted by a standard radio wave or a radio wave from a GPS satellite). The second time information source 300 is higher in precision than the first time information source 200 (for example, the time information). Although the information is in seconds, it is not guaranteed that the accuracy is always high (for example, in the case of an NTP server, the accuracy is due to overload due to concentration of time queries from NTP clients, communication interruption with the upper NTP server, etc.) ) It shall be a time information source.

或いは、時刻同期装置100の運用仕様上、第一の時刻情報源200への同期が必須とされ、第二の時刻情報源300への同期はオプショナルとされている場合などについても本発明は適用が可能である。第二の時刻情報源300が第一の時刻情報源200に比べて精密度が高い場合には、本発明を適用することによって、第一の時刻情報源200と第二の時刻情報源300との時刻差が閾値以下の状態であれば、第二の時刻情報源300に内部時計が同期することで精密度を維持しつつ第一の時刻情報源200への同期を保つことが可能となる。   Alternatively, the present invention is applied to the case where synchronization to the first time information source 200 is indispensable in the operational specifications of the time synchronization apparatus 100, and synchronization to the second time information source 300 is optional. Is possible. When the second time information source 300 has higher precision than the first time information source 200, the first time information source 200, the second time information source 300, and the like are applied by applying the present invention. If the time difference is equal to or smaller than the threshold value, the internal clock is synchronized with the second time information source 300, so that the synchronization with the first time information source 200 can be maintained while maintaining the precision. .

また、以下に説明する時刻同期装置100の処理は、制御部101が記憶部102に記憶されている制御プログラム180にしたがって動作することにより実行される。図1と図2とを参照して説明する。   Further, the process of the time synchronization apparatus 100 described below is executed by the control unit 101 operating according to the control program 180 stored in the storage unit 102. This will be described with reference to FIGS.

処理が開始されると、図2における(ステップS1)のように、時刻同期装置100の制御部101は、装置起動時に時刻同期処理の初期化(フラグをFALSEにする。)を実施した後に、以降の処理を行う。   When the process is started, as shown in FIG. 2 (step S1), the control unit 101 of the time synchronization apparatus 100 initializes the time synchronization process (sets the flag to FALSE) when the apparatus is activated. Perform the following processing.

制御部101は、外部の第一の時刻情報源200より現在時刻(第一の現在時刻)T1を取得する(ステップS2)。第一の時刻情報源200がネットワーク上に存在する場合には、通信部104が、第一の時刻情報源200が送信する第一の現在時刻T1を含むデータパケットを受信し、制御部101は通信部104が受信したデータパケットから第一の現在時刻T1を取り出す。なお、第一の時刻情報源200がデータパケットをユニキャストで送信する場合には、通信部104から第一の時刻情報源200に対してデータパケットの送信要求を事前に送信する。なお、第一の現在時刻T1を取得するタイミングについては、例えば、予め定めた一定時間おきに取得するようにしてもよいし、ユーザから時刻同期装置100に対する何らかの要求(例えば、テレビジョン受信機の場合には、番組表の表示要求やコンテンツの再生要求など)が発生した時点で取得するようにしてもよい。   The control unit 101 acquires the current time (first current time) T1 from the external first time information source 200 (step S2). When the first time information source 200 exists on the network, the communication unit 104 receives a data packet including the first current time T1 transmitted by the first time information source 200, and the control unit 101 The first current time T1 is extracted from the data packet received by the communication unit 104. When the first time information source 200 transmits a data packet by unicast, the communication unit 104 transmits a data packet transmission request to the first time information source 200 in advance. Note that the timing for acquiring the first current time T1 may be acquired at predetermined intervals, for example, or any request from the user to the time synchronization apparatus 100 (for example, the television receiver). In such a case, it may be acquired when a program guide display request, a content reproduction request, or the like) occurs.

ステップS3においてフラグがTRUEの場合(ステップS3でY:すなわち、内部時計の現在時刻T0と第一の時刻情報源200から取得した第一の現在時刻T1との時間差が第一の閾値Th1以上となってから、内部時計の現在時刻T0と第二の時刻情報源300から取得した第二の現在時刻T2との時間差が第二の閾値Th2を超えている間)は、第一の時刻情報源200から取得した第一の現在時刻T1を元に内部時計の時刻を補正する(ステップS6)。   If the flag is TRUE in step S3 (Y in step S3: That is, the time difference between the current time T0 of the internal clock and the first current time T1 acquired from the first time information source 200 is equal to or greater than the first threshold Th1. Since the time difference between the current time T0 of the internal clock and the second current time T2 acquired from the second time information source 300 exceeds the second threshold Th2), the first time information source Based on the first current time T1 acquired from 200, the time of the internal clock is corrected (step S6).

ステップS3においてフラグがTRUEでない場合(ステップS3でN)には、制御部101は、タイマー部103より内部時計の現在時刻T0を取得し、内部時計の現在時刻T0と第一の時刻情報源200から取得した第一の現在時刻T1との時間差を求め、時間差が予め定めておいた第一の閾値Th1以上であるかどうか判定する(ステップS4)。閾値Th1の値としては、例えば第一の時刻情報源200から取得する時刻情報の最大丸め誤差の2倍〜3倍に設定しておくと、第一の時刻情報源200の時刻から大きく外れる前に内部時計を第一の時刻情報源200と同期させることが可能となる。   If the flag is not TRUE in step S3 (N in step S3), the control unit 101 acquires the current time T0 of the internal clock from the timer unit 103, and the current time T0 of the internal clock and the first time information source 200. The time difference from the first current time T1 acquired from the above is obtained, and it is determined whether or not the time difference is equal to or greater than a predetermined first threshold Th1 (step S4). As the value of the threshold Th1, for example, if it is set to be 2 to 3 times the maximum rounding error of the time information acquired from the first time information source 200, before it deviates significantly from the time of the first time information source 200, It is possible to synchronize the internal clock with the first time information source 200.

制御部101は、(ステップS4)において時間差が第一の閾値Th1以上であった場合には、以降は、第一の時刻情報源200から取得した第一の現在時刻T1を元に内部時計の時刻を補正する(ステップS6)。したがって、ステップS4において内部時計の現在時刻T0と第一の時刻情報源200から取得した第一の現在時刻T1との時間差が第一の閾値Th1以上であった場合には、ステップS5においてフラグをTRUEに変更する。   If the time difference is greater than or equal to the first threshold Th1 in (Step S4), the control unit 101 thereafter uses the first current time T1 acquired from the first time information source 200 to The time is corrected (step S6). Therefore, if the time difference between the current time T0 of the internal clock and the first current time T1 acquired from the first time information source 200 is greater than or equal to the first threshold Th1 in step S4, a flag is set in step S5. Change to TRUE.

時刻の補正方法としては、単に第一の現在時刻T1を内部時計の現在時刻T0として設定する方法と他に、n分後に時刻同期が完了するように(T1−T0)/(n×60)を1秒ごとに内部時計の時刻に加算することによって内部時計の時刻変化を緩和する方法などがある。また、内部時計の現在時刻T0と第一の時刻情報源200から取得した第一の現在時刻T1との時間差が第一の時刻情報源200から取得する時刻情報の最大丸め誤差以下の場合には、丸め誤差の影響が内部時計の時刻に及ぶのを防ぐために時刻補正を行わないという方法もある。   As a time correction method, in addition to the method of simply setting the first current time T1 as the current time T0 of the internal clock, the time synchronization is completed after n minutes (T1-T0) / (n × 60). There is a method of mitigating the time change of the internal clock by adding to the time of the internal clock every second. If the time difference between the current time T0 of the internal clock and the first current time T1 acquired from the first time information source 200 is less than or equal to the maximum rounding error of the time information acquired from the first time information source 200, There is also a method of not performing time correction in order to prevent the influence of the rounding error from reaching the time of the internal clock.

したがって、第一の時刻情報源200に比べて精密度は高いが正確度が常に高いことは保証されていない第二の時刻情報源300と、第二の時刻情報源300に比べて精密度は低いが正確度が高いことが保証されている第一の時刻情報源200とが存在する場合に、第一の時刻情報源200と第二の時刻情報源300との時刻差が閾値以上の状態であれば、第二の時刻情報源300に同期させている内部時計と第二の時刻情報源200との時刻差も閾値以上となることから、第二の時刻情報源200に内部時計を同期させることによって少なくとも正確度を維持することが可能となる。   Therefore, the accuracy is higher than that of the first time information source 200, but the accuracy is higher than that of the second time information source 300 and the second time information source 300, which are not guaranteed to be always high. A state in which the time difference between the first time information source 200 and the second time information source 300 is equal to or greater than a threshold when there is a first time information source 200 that is low but guaranteed to have high accuracy. If so, the time difference between the internal clock synchronized with the second time information source 300 and the second time information source 200 is also equal to or greater than the threshold value, so the internal clock is synchronized with the second time information source 200. By doing so, it is possible to maintain at least accuracy.

ステップS6の後、もしくは、ステップS4において時間差が第一の閾値Th1以上でなかった場合に(N)に、制御部101は、外部の第二の時刻情報源300より第二の現在時刻T2を取得する(ステップS7)。   After step S6 or when the time difference is not greater than or equal to the first threshold Th1 in step S4 (N), the control unit 101 obtains the second current time T2 from the external second time information source 300. Obtain (step S7).

時刻情報源300がネットワーク上に存在する場合には、(ステップS2)と同様に通信部104を用いて第二の現在時刻T2を取り出すことができる。第二の現在時刻T2を取得するタイミングについては、例えば、あらかじめ定めた一定時間おきに取得してもよいし、ユーザから時刻同期装置100に対する何らかの要求(例えばテレビの場合には番組表の表示要求やコンテンツの再生要求など)が発生した時点で取得してもよいし、第一の現在時刻T1を取得するタイミングと同時であってもよい。   When the time information source 300 exists on the network, the second current time T2 can be extracted using the communication unit 104 as in (Step S2). The timing for acquiring the second current time T2 may be acquired at predetermined intervals, for example, or any request from the user to the time synchronization apparatus 100 (for example, a program table display request in the case of a television). Or a content playback request, etc.), or at the same time as the acquisition of the first current time T1.

制御部101は、ステップS8においてフラグがFALSEの場合(ステップS8でN:すなわち、内部時計の現在時刻T0と第一の時刻情報源200から取得した第一の現在時刻T1との時間差が第一の閾値Th1未満である間)、第二の時刻情報源300から取得した第二の現在時刻T2を元に内部時計の時刻を補正する(ステップS11)。ステップS8においてフラグがTRUEの場合(ステップS8でY)、内部時計の現在時刻T0と第二の時刻情報源300から取得した第二の現在時刻T2との時間差を求め、この時間差があらかじめ定めておいた第二の閾値Th2以下であるかどうか判定する(ステップS9)。尚、上記時間差については、第一の現在時刻T1と第二の現在時刻T2とを取得するタイミングが同じ場合には、第一の現在時刻T1と第二の現在時刻T2との時間差を求めるようにしてもよい。閾値Th2の値としては、例えば第二の時刻情報源200から取得する時刻情報の最大丸め誤差+αに設定しておくと、第一の時刻情報源200と第二の時刻情報源300との時刻差が十分小さくなった時点以降に内部時計を第二の時刻情報源300と同期させることが可能となる。制御部101は、ステップS9において時間差が第二の閾値Th2以下であった場合に、ステップS10においてフラグをFALSEに変更する。それ以降は、第二の時刻情報源300から取得した第二の現在時刻T2を元に内部時計の時刻を補正する(ステップS11)。ステップS9でNの場合、もしくはステップS11で内部時計を補正した後には、いずれも、ステップS2に戻る。   When the flag is FALSE in step S8 (N in step S8, that is, the time difference between the current time T0 of the internal clock and the first current time T1 acquired from the first time information source 200 is the first time difference. The time of the internal clock is corrected based on the second current time T2 acquired from the second time information source 300 (step S11). If the flag is TRUE in step S8 (Y in step S8), a time difference between the current time T0 of the internal clock and the second current time T2 acquired from the second time information source 300 is obtained, and this time difference is determined in advance. It is determined whether it is less than or equal to the second threshold value Th2 (step S9). As for the time difference, when the timings for obtaining the first current time T1 and the second current time T2 are the same, the time difference between the first current time T1 and the second current time T2 is obtained. It may be. As the value of the threshold Th2, for example, when the maximum rounding error + α of time information acquired from the second time information source 200 is set, the time difference between the first time information source 200 and the second time information source 300 is set. After the time becomes sufficiently small, the internal clock can be synchronized with the second time information source 300. When the time difference is equal to or smaller than the second threshold value Th2 in step S9, the control unit 101 changes the flag to FALSE in step S10. Thereafter, the time of the internal clock is corrected based on the second current time T2 acquired from the second time information source 300 (step S11). In the case of N in step S9, or after the internal clock is corrected in step S11, the process returns to step S2.

したがって、第一の時刻情報源200に比べて精密度は高いが正確度が常に高いことは保証されていない第二の時刻情報源300と、第二の時刻情報源300に比べて精密度は低いが正確度が高いことが保証されている第一の時刻情報源200がある場合、第一の時刻情報源200と第二の時刻情報源300との時刻差が閾値未満の状態であれば、第一の時刻情報源200に同期させている内部時計と第二の時刻情報源300との時刻差も閾値未満となることから、第二の時刻情報源300に内部時計を同期させることによって精密度と正確度を維持することが可能となる。   Therefore, the accuracy is higher than that of the first time information source 200, but the accuracy is higher than that of the second time information source 300 and the second time information source 300, which are not guaranteed to be always high. If there is a first time information source 200 that is low but guaranteed to have high accuracy, the time difference between the first time information source 200 and the second time information source 300 is less than a threshold value. Since the time difference between the internal clock synchronized with the first time information source 200 and the second time information source 300 is also less than the threshold value, the internal clock is synchronized with the second time information source 300. Precision and accuracy can be maintained.

以下において、より具体的な例について説明を行う。内部時計と第一の時刻情報源との時刻差がα(例えばt×3)以上であれば、以降は内部時計と第二の時刻情報源との時刻差がβ(例えばt×2)以下になるまで第一の時刻情報源に内部時計を同期させる。そうでなければ、第二の時刻情報源に内部時計を同期させる。尚、ここで、tは第一の時刻情報源の最大丸め誤差である。このように、第一の時刻情報源と第二の時刻情報源との時刻差が無い状態では、第二の時刻情報源に内部時計を同期させることで精密度と正確度を維持することができる。第一の時刻情報源と第二の時刻情報源との時刻差が発生している状態では、第一の時刻情報源に内部時計を同期させることで少なくとも正確度を維持できる。   Hereinafter, more specific examples will be described. If the time difference between the internal clock and the first time information source is equal to or greater than α (eg, t × 3), the time difference between the internal clock and the second time information source is equal to or smaller than β (eg, t × 2). The internal clock is synchronized with the first time information source until. Otherwise, the internal clock is synchronized with the second time information source. Here, t is the maximum rounding error of the first time information source. Thus, in a state where there is no time difference between the first time information source and the second time information source, the precision and accuracy can be maintained by synchronizing the internal clock with the second time information source. it can. In a state where a time difference between the first time information source and the second time information source is generated, at least accuracy can be maintained by synchronizing the internal clock with the first time information source.

<第2の実施の形態>
次に、本発明の第2の実施の形態について説明を行う。本実施の形態においては、上記第1の実施の形態における時刻同期機能を電子機器、ここではパーソナルコンピュータ(以下では、PCと称する。)などに適用した例を示すものである。その場合、図1に示す時刻同期機能を発揮するための制御プログラム180が記録された記録媒体からプログラムを読み出して、PC等にインストールし、プログラムに基づいてPC等を動作させればよい。以下に詳細な説明を行なう。
<Second Embodiment>
Next, a second embodiment of the present invention will be described. In the present embodiment, an example is shown in which the time synchronization function in the first embodiment is applied to an electronic device, here a personal computer (hereinafter referred to as a PC). In that case, the program may be read from the recording medium on which the control program 180 for exhibiting the time synchronization function shown in FIG. 1 is recorded, installed in the PC, and the PC or the like is operated based on the program. Detailed description will be given below.

図3は、本発明の第2の実施の形態による時刻同期機能を備えたPC500の内部構成例を示す機能ブロック図である。   FIG. 3 is a functional block diagram showing an internal configuration example of a PC 500 having a time synchronization function according to the second embodiment of the present invention.

尚、図3には、説明のために記録媒体555も示しているが必須の要件ではない。また、図3は、制御プログラム180をPC500にインストールする際の構成例を示しており、この場合、PC500は、時刻同期装置100としても動作する。   FIG. 3 also shows a recording medium 555 for explanation, but this is not an essential requirement. FIG. 3 shows a configuration example when the control program 180 is installed in the PC 500. In this case, the PC 500 also operates as the time synchronization apparatus 100.

図3において、PC500は、PC500の内部の各機器に対する各種処理や、演算処理等を行なう機能を有する制御部510と、制御プログラム180などが格納されている、HDDやEPROMなどの記憶部520と、ユーザがPC500に対して入力操作を行なうためのインタフェースを接続するための入力部540と、外部の時刻情報源やデータなどの授受を行なう通信部560と、内部時計の時刻を発生させるタイマー部570と、を備えている。尚、PC500は、記憶部520に記憶された制御プログラム180に従って動作を行なうように構成されている。   In FIG. 3, a PC 500 includes a control unit 510 having a function of performing various processes and arithmetic processes for each device inside the PC 500, a storage unit 520 such as an HDD or an EPROM in which a control program 180 and the like are stored. An input unit 540 for connecting an interface for a user to perform an input operation on the PC 500, a communication unit 560 for exchanging external time information sources and data, and a timer unit for generating the time of an internal clock 570. The PC 500 is configured to operate according to the control program 180 stored in the storage unit 520.

さらに、PC500は、制御部510によってデータアクセスの制御がなされ、一時的にデータを記憶するワークメモリとして使用されるデータ一時記憶部522と、フォントデータ、図形データなどを表示するための画像を生成するのに用いる画像データが記憶されているCGROM(Character Graphic Read Only Memory)534と、制御部510からの描画指示に応じてCGROM534から必要な画像データを読出し、画像を生成するVDP(Video Display Processor)532と、VDP532が生成した画像を一時的に記憶する機能を有するVRAM(Video Random Access Memory)536と、制御プログラム180が記録された記録媒体555から制御プログラム180を読み出す機能を有する記録媒体アクセス部550と、を備える。尚、VDP532はVRAM536を利用して画像を生成している。   Further, the PC 500 controls data access by the control unit 510 and generates a data temporary storage unit 522 used as a work memory for temporarily storing data and an image for displaying font data, graphic data, and the like. A CGROM (Character Graphic Read Only Memory) 534 in which image data used for the image data is stored, and a VDP (Video Display Processor) that reads out necessary image data from the CGROM 534 according to a drawing instruction from the control unit 510 and generates an image. ) 532, a VRAM (Video Random Access Memory) 536 having a function of temporarily storing an image generated by the VDP 532, and a recording medium access having a function of reading the control program 180 from the recording medium 555 in which the control program 180 is recorded. Part 550. The VDP 532 uses the VRAM 536 to generate an image.

PC500には、PC500から出力された画像データに基づいた画像を表示する表示部530と、ユーザがPC500を操作するためのインタフェースであるマウス542と、ユーザがPC500を操作するためのインタフェースであるキーボード544とが入力部540を介して接続されている。表示部530は、液晶ディスプレイ、CRT(Cathode Ray Tube)、ドットマトリクス等その他の画像表示方式をとる表示機器のいずれであってもよい。   The PC 500 includes a display unit 530 that displays an image based on image data output from the PC 500, a mouse 542 that is an interface for the user to operate the PC 500, and a keyboard that is an interface for the user to operate the PC 500. 544 is connected via the input unit 540. The display unit 530 may be any of display devices that employ other image display methods such as a liquid crystal display, a CRT (Cathode Ray Tube), and a dot matrix.

記憶部520は、制御部510によってデータアクセスされる。尚、記憶部520は、第1の実施の形態の記憶部102と同様な機器である。   The storage unit 520 is accessed by the control unit 510. Note that the storage unit 520 is the same device as the storage unit 102 of the first embodiment.

制御部510は、第1の実施の形態の制御部101と同様な機能を有する。したがって、詳細な説明は繰り返さない。また、制御部510は、記憶部520に記憶された制御プログラム180に従って、VDP532に対し、画像を生成させ、当該画像を表示部530に表示させる指示(以下においては、この指示を「描画指示」とする)を出す。   The control unit 510 has the same function as that of the control unit 101 of the first embodiment. Therefore, detailed description will not be repeated. The control unit 510 also instructs the VDP 532 to generate an image and display the image on the display unit 530 according to the control program 180 stored in the storage unit 520 (hereinafter, this instruction is referred to as a “drawing instruction”). ).

VDP532は表示部530と接続されている。そして、VDP532は、VRAM536に記憶された画像データを読出し、表示部530に、当該画像データに基づく画像を表示させる。   The VDP 532 is connected to the display unit 530. The VDP 532 reads out the image data stored in the VRAM 536 and causes the display unit 530 to display an image based on the image data.

データ一時記憶部522は、データを一時的に記憶可能なRAM(Random Access Memory)、SRAM(Static Random Access Memory)、DRAM(Dynamic Random Access Memory)、SDRAM(Synchronous DRAM)、ダブルデータレートモードという高速なデータ転送機能を持ったSDRAMであるDDR−SDRAM(Double Data Rate SDRAM)、Rambus社が開発した高速インタフェース技術を採用したDRAMであるRDRAM(Rambus Dynamic Random Access Memory:Rambus社の登録商標)、Direct−RDRAM(Direct Rambus Dynamic Random Access Memory)、その他、データを揮発的に記憶保持可能な構成を有する回路のいずれであってもよい。   The data temporary storage unit 522 is a high-speed RAM (Random Access Memory), SRAM (Static Random Access Memory), DRAM (Dynamic Random Access Memory), SDRAM (Synchronous DRAM), or double data rate mode capable of temporarily storing data. DDR-SDRAM (Double Data Rate SDRAM), which is an SDRAM having a flexible data transfer function, RDRAM (Rambus Dynamic Random Access Memory: a registered trademark of Rambus), which adopts a high-speed interface technology developed by Rambus, and Direct -RDRAM (Direct Rambus Dynamic Random Access Memory) or any other circuit having a configuration capable of storing and holding data in a volatile manner may be used.

記録媒体555に記憶されている制御プログラム180は、制御部510の動作(インストール処理)により、記録媒体アクセス部550から読み出され、記憶部520に記憶される。尚、記録媒体555は、DVD−ROM(Digital Versatile Disk Read Only Memory)、CD−ROM(Compact Disk Read Only Memory)、CF(Compact Flash) カード、SD(Secure Digital)メモリーカード、メモリースティック(登録商標)およびUSBメモリ、ハードディスク、磁気テープ、その他揮発性記録媒体、不揮発性記録媒体のいずれであってもよい。   The control program 180 stored in the recording medium 555 is read from the recording medium access unit 550 and stored in the storage unit 520 by the operation (installation process) of the control unit 510. The recording medium 555 includes a DVD-ROM (Digital Versatile Disk Read Only Memory), a CD-ROM (Compact Disk Read Only Memory), a CF (Compact Flash) card, an SD (Secure Digital) memory card, and a Memory Stick (registered trademark). And a USB memory, a hard disk, a magnetic tape, other volatile recording media, and non-volatile recording media.

尚、制御プログラム180が記録される機器は、PCに限定されることなく、プログラムをインストール可能で、当該プログラムに基づいて動作し、他の時刻情報源と内部時計の時刻とを同期する機能を有する時刻同期装置であれば良い。当該時刻同期装置としては、例えば、DVR、テレビ、携帯電話等であってもよい。   The device in which the control program 180 is recorded is not limited to a PC, and the program can be installed, operates based on the program, and has a function of synchronizing the time of another time information source and the internal clock. Any time synchronization device may be used. For example, the time synchronization device may be a DVR, a television, a mobile phone, or the like.

また、制御プログラム180は、図示しないサーバ装置上に置かれたものを、通信部560を経由してダウンロードした後、記憶部520に保存したものを使用してもよい。   The control program 180 may be a program stored on a server device (not shown) that is downloaded via the communication unit 560 and then stored in the storage unit 520.

マウス542またはキーボード544からの入力指示は、入力部540を介して制御部510に伝達される。制御部510は、入力部540からの入力指示に基づいて所定の処理を行なう。   An input instruction from the mouse 542 or the keyboard 544 is transmitted to the control unit 510 via the input unit 540. Control unit 510 performs predetermined processing based on an input instruction from input unit 540.

通信部560は、インターネットなどのネットワークと、有線または無線で、データの授受を行う機能を有し、上述の通信部104と同様なインタフェースである。また、タイマー部570は、PC500が有するクロックを元に時刻の管理を行い、前述のタイマー部103と同様な機能を有する。詳細な説明は繰り返さない。   The communication unit 560 has a function of exchanging data with a network such as the Internet in a wired or wireless manner, and has the same interface as the communication unit 104 described above. The timer unit 570 performs time management based on the clock of the PC 500 and has the same function as the timer unit 103 described above. Detailed description will not be repeated.

以上説明したように、制御プログラム180がインストールされたPCを使用することにより、第1の実施の形態により説明した時刻同期装置100がPCによって実現された場合においても、本発明を適用可能となる。   As described above, by using a PC in which the control program 180 is installed, the present invention can be applied even when the time synchronization apparatus 100 described in the first embodiment is realized by a PC. .

したがって、本実施の形態においても、第1の実施の形態と同様な効果を得ることができる。   Therefore, also in this embodiment, the same effect as that of the first embodiment can be obtained.

尚、上記において説明した実施の形態は、すべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。例えば、第2の実施の形態による適用例としてPCを用いた場合について示したが、その他、デジタル放送受信装置やポータブルミュージックプレーヤーなどのAV機器、家電機器、通信機能を備えているため携帯電話などの携帯電子機器等に用いると好適である。   In addition, it should be thought that embodiment described above is an illustration and restrictive at no points. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims. For example, although a case where a PC is used as an application example according to the second embodiment has been described, AV equipment such as a digital broadcast receiving device and a portable music player, home appliances, and a mobile phone because it includes a communication function. It is suitable for use in portable electronic devices.

図4は、本実施の形態によるシステムの一構成例を示す図である。図4に示す例では、時刻同期装置100と時刻同期装置100内にある内部時計103とを備えたデジタル放送受信装置100aが、時刻情報源Aおよび時刻情報源Bとの間で時刻同期を行う。時刻情報源Aは、例えば、SNTPサーバであり、第一の現在時刻を例えば秒単位で提供し、時刻情報源Bは、例えばライセンスサーバであり、第二の現在時刻を例えば第一の現在時刻よりも精密度の低い分単位で提供する。なお、デジタル放送を受信中の場合には、デジタル放送波内のTOTに含まれる現在時刻に内部時計103を同期させ、デジタル放送を受信していない場合には、時刻情報源Aおよび時刻情報源Bから現在時刻を受信するようにしてもよい。   FIG. 4 is a diagram illustrating a configuration example of a system according to the present embodiment. In the example illustrated in FIG. 4, a digital broadcast receiving device 100 a including the time synchronization device 100 and the internal clock 103 in the time synchronization device 100 performs time synchronization between the time information source A and the time information source B. . The time information source A is, for example, an SNTP server, and provides the first current time in units of seconds, for example. The time information source B is, for example, a license server, and the second current time is, for example, the first current time. Provide in minutes with less precision. When the digital broadcast is being received, the internal clock 103 is synchronized with the current time included in the TOT in the digital broadcast wave. When the digital broadcast is not received, the time information source A and the time information source are synchronized. The current time may be received from B.

本発明は、時刻同期装置、及びそれを用いた電子機器等に利用可能である。   The present invention can be used for a time synchronization device and an electronic device using the time synchronization device.

本発明の第1の実施の形態における時刻同期装置100の内部構成例を示す機能ブロック図である。It is a functional block diagram which shows the example of an internal structure of the time synchronizer 100 in the 1st Embodiment of this invention. 本実施の形態における時刻同期装置100の処理の流れを示すフローチャート図である。It is a flowchart figure which shows the flow of a process of the time synchronizer 100 in this Embodiment. 本発明の第2の実施の形態におけるPC500の内部の構成例を示す機能ブロック図である。It is a functional block diagram which shows the example of an internal structure of PC500 in the 2nd Embodiment of this invention. 本実施の形態による時刻同期システムの一構成例を示す図である。It is a figure which shows the example of 1 structure of the time synchronization system by this Embodiment.

符号の説明Explanation of symbols

100…時刻同期装置、101,510…制御部、102,520…記憶部、103,570…タイマー部、104,560…通信部、530…表示部、540…入力部、180…制御プログラム、500…PC、522…データ一時記憶部、532…VDP、534…CGROM、536…VRAM、542…マウス、544…キーボード、550…記憶媒体アクセス部、555…記録媒体。 DESCRIPTION OF SYMBOLS 100 ... Time synchronization apparatus, 101, 510 ... Control part, 102,520 ... Memory | storage part, 103,570 ... Timer part, 104,560 ... Communication part, 530 ... Display part, 540 ... Input part, 180 ... Control program, 500 ... PC, 522 ... Temporary data storage unit, 532 ... VDP, 534 ... CGROM, 536 ... VRAM, 542 ... Mouse, 544 ... Keyboard, 550 ... Storage medium access unit, 555 ... Recording medium.

Claims (9)

複数の時刻情報源から取得した現在時刻を元に内部時計の時刻の補正を行う時刻同期装置において、
該時刻同期装置は制御部を有し、
該制御部は、
第一の時刻情報源から第一の現在時刻を、該第一の現在時刻とは異なる第二の時刻情報源から第二の現在時刻をそれぞれ取得し、
前記内部時計の時刻と前記第一の現在時刻との時刻差が予め定められた第一の閾値以上の場合は、前記第一の現在時刻を元に前記内部時計の時刻を補正し、
前記内部時計の時刻と前記第一の現在時刻との時刻差が予め定められた前記第一の閾値以上ではない場合は、前記第二の現在時刻を元に前記内部時計の時刻を補正することを特徴とする時刻同期装置。
In the time synchronization device that corrects the time of the internal clock based on the current time acquired from a plurality of time information sources,
The time synchronization apparatus has a control unit,
The control unit
Obtaining a first current time from a first time information source and a second current time from a second time information source different from the first current time,
If the time difference between the time of the internal clock and the first current time is greater than or equal to a predetermined first threshold, the time of the internal clock is corrected based on the first current time,
When the time difference between the time of the internal clock and the first current time is not equal to or more than the predetermined first threshold, the time of the internal clock is corrected based on the second current time. A time synchronizer characterized by the above.
前記第二の時刻情報源は前記第一の時刻情報源に比べて精密度は高いが正確度が常に高いことは保証されていないものであり、前記第一の時刻情報源は、前記第二の時刻情報源に比べて精密度は低いが正確度が高いことが保証されていることを特徴とする請求項1に記載の時刻同期装置。   The second time information source is higher in accuracy than the first time information source, but is not guaranteed to be always high in accuracy, and the first time information source is the second time information source. The time synchronizer according to claim 1, wherein the time synchronizer is low in precision but high in accuracy as compared with the time information source. 前記制御部は、
前記内部時計の時刻と前記第一の現在時刻との時刻差が、予め定められた前記第一の閾値を超えたと判定された以降は、前記内部時計の時刻と前記第二の現在時刻との時刻差が、予め定められ、前記第一の閾値とは異なる第二の閾値以下となるまで、前記第一の現在時刻を元に内部時計の時刻を補正することを特徴とする請求項1又は2に記載の時刻同期装置。
The controller is
After determining that the time difference between the time of the internal clock and the first current time exceeds the predetermined first threshold, the time of the internal clock and the second current time are The time of the internal clock is corrected based on the first current time until the time difference is predetermined and equal to or less than a second threshold different from the first threshold. 2. The time synchronizer according to 2.
さらに、ネットワークを経由してデータの送受信を行う通信部を備え、
該通信部が、ネットワーク上の時刻情報源を含む時刻情報サーバから送信された現在時刻を含むパケットを受信し、
前記制御部は、受信した前記現在時刻を含むパケットから現在時刻を取り出すことによって前記時刻情報源から現在時刻を取得することを特徴とする請求項1から3までのいずれか1項に記載の時刻同期装置。
Furthermore, it has a communication unit that transmits and receives data via the network,
The communication unit receives a packet including a current time transmitted from a time information server including a time information source on a network,
4. The time according to claim 1, wherein the control unit acquires the current time from the time information source by extracting the current time from the received packet including the current time. 5. Synchronizer.
請求項1から4までのいずれか1項に記載の時刻同期装置を備えた機器。   The apparatus provided with the time synchronizer of any one of Claim 1. 複数の時刻情報源から取得した現在時刻を元に内部時計の時刻の補正を行う時刻同期方法であって、
第一の時刻情報源から第一の現在時刻を、該第一の現在時刻とは異なる第二の時刻情報源から第二の現在時刻をそれぞれ取得するステップと、
前記内部時計の時刻と前記第一の現在時刻との時刻差が予め定められた第一の閾値以上の場合は、前記第一の現在時刻を元に前記内部時計の時刻を補正し、前記内部時計の時刻と前記第一の現在時刻との時刻差が予め定められた前記第一の閾値以上ではない場合は、前記第二の現在時刻を元に前記内部時計の時刻を補正するステップを有することを特徴とする時刻同期方法。
A time synchronization method for correcting the time of the internal clock based on the current time acquired from a plurality of time information sources,
Obtaining a first current time from a first time information source and a second current time from a second time information source different from the first current time;
If the time difference between the time of the internal clock and the first current time is equal to or greater than a predetermined first threshold, the time of the internal clock is corrected based on the first current time, A step of correcting the time of the internal clock based on the second current time when the time difference between the time of the clock and the first current time is not equal to or greater than the predetermined first threshold; A time synchronization method characterized by the above.
前記内部時計の時刻と前記第一の現在時刻との時刻差が、あらかじめ定められた前記第一の閾値を超えたと判定された以降は、前記内部時計の時刻と前記第二の現在時刻との時刻差が、予め定められ、前記第一の閾値とは異なる第二の閾値以下となるまで、前記第一の現在時刻を元に内部時計の時刻を補正するステップを有することを特徴とする請求項6に記載の時刻同期方法。   After it is determined that the time difference between the time of the internal clock and the first current time exceeds the predetermined first threshold, the time of the internal clock and the second current time are The method further comprises a step of correcting the time of the internal clock based on the first current time until the time difference is equal to or less than a second threshold that is predetermined and different from the first threshold. Item 7. The time synchronization method according to item 6. 請求項6又は7に記載の方法をコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the method according to claim 6 or 7. 請求項8に記載のプログラムを記録した、コンピュータ読みとり可能な記録媒体。   A computer-readable recording medium on which the program according to claim 8 is recorded.
JP2008256677A 2008-10-01 2008-10-01 Time synchronizer, program for performing computer as time synchronizer, and recording medium Pending JP2010085325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008256677A JP2010085325A (en) 2008-10-01 2008-10-01 Time synchronizer, program for performing computer as time synchronizer, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008256677A JP2010085325A (en) 2008-10-01 2008-10-01 Time synchronizer, program for performing computer as time synchronizer, and recording medium

Publications (1)

Publication Number Publication Date
JP2010085325A true JP2010085325A (en) 2010-04-15

Family

ID=42249414

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008256677A Pending JP2010085325A (en) 2008-10-01 2008-10-01 Time synchronizer, program for performing computer as time synchronizer, and recording medium

Country Status (1)

Country Link
JP (1) JP2010085325A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156402A (en) * 2011-01-25 2011-08-17 四川长虹电器股份有限公司 Automatic voice time broadcasting method for set top box
JP2013040840A (en) * 2011-08-15 2013-02-28 Nec Corp Apparatus and method for detecting deterioration of oscillator
EP2717509A1 (en) * 2011-05-31 2014-04-09 Nec Corporation Synchronization device and synchronization method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102156402A (en) * 2011-01-25 2011-08-17 四川长虹电器股份有限公司 Automatic voice time broadcasting method for set top box
EP2717509A1 (en) * 2011-05-31 2014-04-09 Nec Corporation Synchronization device and synchronization method
EP2717509A4 (en) * 2011-05-31 2014-10-29 Nec Corp Synchronization device and synchronization method
RU2556082C1 (en) * 2011-05-31 2015-07-10 Нек Корпорейшн Synchronisation device and synchronisation method
US9763207B2 (en) 2011-05-31 2017-09-12 Nec Corporation Timing synchronization device and timing synchronization control method
JP2013040840A (en) * 2011-08-15 2013-02-28 Nec Corp Apparatus and method for detecting deterioration of oscillator

Similar Documents

Publication Publication Date Title
US11276086B2 (en) Client-side video advertisement replacement using automatic content recognition
US10147440B2 (en) Method for playing data and apparatus and system thereof
US20190274109A1 (en) High definition timing synchronisation function
US10579215B2 (en) Providing content via multiple display devices
JP2021530927A (en) Establishing and using interpolation-based time mapping with low-rate fingerprinting to help facilitate frame-accuracy content correction
TWI547123B (en) Synchronizing media streams using time signal(s) from an independent time source
CN111510237B (en) Controller and method for modifying clock signal, and synchronization device
US10070405B2 (en) Terminal apparatus and method for time synchronization
US7373250B2 (en) AGPS module time synchronization method and device using system time information in mobile terminal
CN106717079B (en) Clock synchronization using WIFI beacons
CN109891960B (en) Wireless device, wireless device processing method, and memory
JP2010085325A (en) Time synchronizer, program for performing computer as time synchronizer, and recording medium
WO2020001213A1 (en) Message transmission method, switching apparatus, wireless communication device and storage medium
CN116109734A (en) Picture processing method and device
JP2009192277A (en) High-precision time synchronizing apparatus, high-precision time synchronous method, and program
TW201601543A (en) Video channel display method and apparatus
US10181312B2 (en) Acoustic system, communication device, and program
US9635633B2 (en) Multimedia synchronization system and method
US9232213B2 (en) Stereo image output apparatus and associated method
US11381938B2 (en) Method and apparatus for providing unicast-based multimedia service
JP4304615B2 (en) Data processing apparatus, data processing method, and data processing program
JP2009232112A (en) Information processor and timing synchronization method
CN114089038B (en) Time scale second bit jump processing method and system for dynamic data of synchronous phasor measurement device
CN112019288B (en) Time synchronization method, service single board and network equipment
KR20230137661A (en) Method And Apparatus for Synchronization Between Video frame And Audio frame