JP2008064495A - Time synchronizing device, system, and method, and program - Google Patents

Time synchronizing device, system, and method, and program Download PDF

Info

Publication number
JP2008064495A
JP2008064495A JP2006240265A JP2006240265A JP2008064495A JP 2008064495 A JP2008064495 A JP 2008064495A JP 2006240265 A JP2006240265 A JP 2006240265A JP 2006240265 A JP2006240265 A JP 2006240265A JP 2008064495 A JP2008064495 A JP 2008064495A
Authority
JP
Japan
Prior art keywords
time
correction
internal clock
opportunity
electronic certificate
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
JP2006240265A
Other languages
Japanese (ja)
Other versions
JP4943783B2 (en
Inventor
Hiroshi Hozumi
洋 穂積
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2006240265A priority Critical patent/JP4943783B2/en
Publication of JP2008064495A publication Critical patent/JP2008064495A/en
Application granted granted Critical
Publication of JP4943783B2 publication Critical patent/JP4943783B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Computer And Data Communications (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a time synchronizing device, a time synchronizing system, a time synchronizing method, and a program capable of not only performing periodically a timing for performing time synchronization with another device, but also performing time correction at an accurate and optimum timing by the device, by detecting a time abnormality or the like by the device itself, and determining a timing when the time correction (synchronization) is necessary. <P>SOLUTION: This time synchronizing device having a function for taking time synchronization with another device when communicating with another device, has an internal timepiece for measuring a time of own device, a host device time acquisition means for acquiring a time of a host device managing own device, a timing detection means for detecting a timing when time correction of the internal timepiece is necessary, and a time correction means for correcting the time of own device to the time of the host device as time correction of the internal clock when the timing when time correction is necessary is detected by the timing detection means. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、他装置との通信を行う際に時刻を同期させる時刻同期装置、時刻同期システム、時刻同期方法及びプログラムに関する。   The present invention relates to a time synchronization device, a time synchronization system, a time synchronization method, and a program for synchronizing time when communicating with other devices.

従来の通信システムにおいて、管理装置(上位装置)と、その管理装置に管理される被管理装置(下位装置)とをネットワーク上に有するものがある。このような通信システムの従来技術例として、以下のものがある。   Some conventional communication systems have a management device (higher-level device) and a managed device (lower-level device) managed by the management device on a network. Examples of the prior art of such a communication system include the following.

例えば、特許文献1として、ファイアウォールの内側に設けることで、そのファイアウォールの外側に設けられるサーバである管理装置と、ファイアウォールの内側に設けられる数のクライアントである被管理装置との間の通信を仲介する仲介装置が、各被管理装置からのコマンドを受信して管理装置に転送し、管理装置にアクセスした際、管理装置において、それまでに転送したいずれかのコマンドに対する応答が送信可能な状態になっていた場合に、その応答を受信し、その応答を、その応答と対応するコマンドの送信元に転送する「仲介装置、通信システム、通信方法、プログラム及び記録媒体」がある。   For example, as disclosed in Patent Document 1, by providing inside a firewall, communication between a management device that is a server provided outside the firewall and a managed device that is a number of clients provided inside the firewall is mediated. When the intermediary device receives a command from each managed device, transfers it to the management device, and accesses the management device, the management device can send a response to any of the commands transferred so far. In this case, there is a “mediation device, communication system, communication method, program, and recording medium” that receives the response and transfers the response to the transmission source of the command corresponding to the response.

例えば、特許文献2として、被管理装置である画像形成装置のCPUは、予め設定されたダウンタイム計測期間(所定期間)内に、使用不可要因(ダウン要因)を検出した場合に、その使用不可要因の発生によって当該装置が使用できない間のダウンタイム(使用不可時間)を計測し、その計測時間が予め設定された複数のダウンタイム通報しきい値のいずれかに達する毎に、その旨をベンダー側の管理装置へ通報する「遠隔管理システムとその電子装置,使用不可要因発生時の制御方法,およびプログラム」がある。   For example, as disclosed in Patent Document 2, when a CPU of an image forming apparatus that is a managed apparatus detects an unusable factor (down factor) within a preset downtime measurement period (predetermined period), the CPU cannot be used. The vendor measures the downtime (unusable time) when the device cannot be used due to the occurrence of a factor, and every time the measured time reaches one of the preset downtime notification thresholds, the vendor There is a "remote management system and its electronic device, control method when unusable factor occurs, and program" to notify the management device on the side.

例えば、特許文献3として、デジタル証明書を記憶している部品を使用する通信装置(被管理装置)と通信可能な管理装置が、通信装置から通信要求と共にデジタル証明書を受信し、その受信に基づいて部品のデジタル証明書を更新する必要があると判断した場合に、更新用のデジタル証明書を通信装置に送信し、通信装置に部品のデジタル証明書を更新させる「通信装置、デジタル証明書転送装置、認証データ転送装置、デジタル証明書設定システム、認証データ設定システム、通信装置の制御方法、デジタル証明書設定方法、認証データ設定方法、プログラム、および記録媒体」がある。
特開2005−316991号公報 特開2005−100304号公報 特開2005−318572号公報
For example, as Patent Document 3, a management device capable of communicating with a communication device (managed device) that uses a component storing a digital certificate receives a digital certificate together with a communication request from the communication device, and receives the digital certificate. If it is determined that it is necessary to renew the digital certificate for the component, the digital certificate for update is transmitted to the communication device, and the communication device updates the digital certificate for the component. Transfer device, authentication data transfer device, digital certificate setting system, authentication data setting system, communication device control method, digital certificate setting method, authentication data setting method, program, and recording medium ”.
JP 2005-316991 A JP 2005-100304 A JP 2005-318572 A

しかしながら、上記特許文献1〜3に挙げたような従来の通信システムにおいて、時刻同期を行う装置は、時刻同期を行うタイミングが、単純に一定間隔であったり、起動時のみであったりした。よって、実際に時刻が異常であることを装置自らが検知して時刻同期を実行することはなかった。   However, in the conventional communication systems such as those described in Patent Documents 1 to 3, the time synchronization apparatus has a simple timing at which the time synchronization is performed or only at the time of activation. Therefore, the device itself did not detect that the time was actually abnormal, and time synchronization was not executed.

本発明は、上記事情に鑑みてなされたものであり、他装置との時刻同期を行う契機(タイミング)を、定期的に行うだけではなく、装置自らが時刻の異常などを検知し、時刻補正(同期)が必要な契機を決定することによって、装置が、より正確かつ最適なタイミングで時刻補正を行うことができる時刻同期装置、時刻同期システム、時刻同期方法及びプログラムを提供することを目的とする。   The present invention has been made in view of the above circumstances, and not only periodically triggers (timing) to synchronize time with other devices, but also the device itself detects time abnormality and corrects the time. It is an object of the present invention to provide a time synchronization device, a time synchronization system, a time synchronization method, and a program capable of performing time correction at a more accurate and optimal timing by determining an opportunity that requires (synchronization). To do.

かかる目的を達成するために、請求項1記載の発明は、他装置と通信を行う場合に、他装置と時刻の同期を取る機能を備えた時刻同期装置であって、自装置の時刻を計測する内部時計と、自装置を管理する上位装置の時刻を取得する上位装置時刻取得手段と、内部時計の時刻補正が必要な契機を検知する契機検知手段と、契機検知手段により時刻補正が必要な契機が検知された場合、内部時計の時刻補正として、自装置の時刻を上位装置の時刻に補正する時刻補正手段と、を有することを特徴とする。   In order to achieve this object, the invention described in claim 1 is a time synchronization device having a function of synchronizing time with another device when communicating with the other device, and measures the time of the device itself. The internal clock, the host device time acquisition means for acquiring the time of the host device that manages the own device, the trigger detection means for detecting the trigger that needs to correct the time of the internal clock, and the clock correction by the trigger detection means. When an opportunity is detected, it has time correction means for correcting the time of its own device to the time of the host device as time correction of the internal clock.

請求項2記載の発明は、請求項1記載の発明において、契機検知手段は、上位装置時刻取得手段により取得された上位装置の時刻と、内部時計により計測された自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、判断の結果、両時刻の差が許容時刻誤差の範囲内ではない場合を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 2 is the invention according to claim 1, wherein the trigger detection means compares the time of the host device acquired by the host device time acquisition means with the time of the own device measured by the internal clock. When it is determined whether or not the difference between the two times is within a predetermined allowable time error range, and the difference between the two times is not within the allowable time error range as a result of the determination, the time correction is necessary It is characterized by detecting.

請求項3記載の発明は、請求項1又は2記載の発明において、契機検知手段は、上位装置時刻取得手段により取得された上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、時刻補正が必要な契機として検知することを特徴とする。   According to a third aspect of the present invention, in the first or second aspect of the invention, the trigger detection means stores the time when the predetermined information is stored in the storage medium together with the time of the upper apparatus acquired by the upper apparatus time acquisition means. It is detected as an opportunity that requires correction.

請求項4記載の発明は、請求項1から3のいずれか1項に記載の発明において、契機検知手段は、自装置が他装置と暗号化通信を行うために保持する電子証明書の有効期限と、内部時計により計測された自装置の時刻とを比較し、自装置の時刻が電子証明書の有効期限の範囲内であるか否かを判断し、判断の結果、自装置の時刻が電子証明書の有効期限の範囲内ではない場合を、時刻補正が必要な契機として検知することを特徴とする。   According to a fourth aspect of the present invention, in the invention according to any one of the first to third aspects, the trigger detection means is configured such that the self-device has an expiration date of an electronic certificate held for performing encrypted communication with another device. Is compared with the time of the own device measured by the internal clock to determine whether the time of the own device is within the validity period of the electronic certificate. It is characterized in that a case where the certificate is not within the valid period is detected as an opportunity that requires time correction.

請求項5記載の発明は、請求項1から4のいずれか1項に記載の発明において、契機検知手段は、自装置が他装置と電子証明書を用いて暗号化通信を行う時に、他装置から送られてきた電子証明書の有効期限と、内部時計により計測された自装置の時刻とを比較し、自装置の時刻が電子証明書の有効期限の範囲内であるか否かを判断し、判断の結果、自装置の時刻が電子証明書の有効期限の範囲内ではない場合を、時刻補正が必要な契機として検知することを特徴とする。   According to a fifth aspect of the present invention, in the invention according to any one of the first to fourth aspects, the trigger detection means is configured such that when the own apparatus performs encrypted communication with the other apparatus using an electronic certificate, Compares the expiration date of the electronic certificate sent from the device with the time of the device itself measured by the internal clock, and determines whether the time of the device is within the validity period of the electronic certificate. As a result of the determination, a case where the time of the own device is not within the validity period of the electronic certificate is detected as an opportunity that requires time correction.

請求項6記載の発明は、請求項1から5のいずれか1項に記載の発明において、契機検知手段は、自装置によって管理される下位装置との通信時に、下位装置から送られてくる情報の中に含まれる下位装置の時刻と、内部時計により計測された自装置の時刻とを比較し、下位装置の時刻を判断し、判断の結果、下位装置の時刻が、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 6 is the invention according to any one of claims 1 to 5, wherein the trigger detection means sends information sent from the lower device during communication with the lower device managed by the own device. The time of the lower device included in the device is compared with the time of the own device measured by the internal clock to determine the time of the lower device, and as a result of the determination, the time of the lower device is greater than the time of the own device. The present invention is characterized in that when it is in the future, or when it is past a predetermined time, it is detected as an opportunity that requires time correction.

請求項7記載の発明は、請求項1から6のいずれか1項に記載の発明において、契機検知手段は、他装置との通信時に、他装置から送られてくるパケットのタイムスタンプと、内部時計により計測された自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、判断の結果、両時刻の差が許容時刻誤差の範囲内ではない場合を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 7 is the invention according to any one of claims 1 to 6, wherein the trigger detection means includes a time stamp of a packet sent from the other device and an internal Compares the time of the device with the time measured by the clock to determine whether the difference between the two times is within a predetermined allowable time error range. As a result of the determination, the difference between the two times is within the allowable time error range. It is characterized in that a case that is not within is detected as an opportunity that requires time correction.

請求項8記載の発明は、請求項1から7のいずれか1項に記載の発明において、契機検知手段は、自装置の時刻が異常である旨の通知を他装置から受け取った時を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 8 is the invention according to any one of claims 1 to 7, wherein the trigger detection means receives a notification from the other device that the time of its own device is abnormal. It is detected as an opportunity that requires correction.

請求項9記載の発明は、請求項1から8のいずれか1項に記載の発明において、内部時計の影響を受けない単調増加クロックによるタイマを有し、契機検知手段は、単調増加クロックによるタイマにより計測される一定周期毎を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 9 is the invention according to any one of claims 1 to 8, further comprising a timer based on a monotonically increasing clock that is not affected by the internal clock, and the trigger detecting means is a timer based on the monotonically increasing clock. It is characterized by detecting every fixed period measured by the above as a trigger that requires time correction.

請求項10記載の発明は、請求項1から9のいずれか1項に記載の発明において、契機検知手段は、自装置が起動した時を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 10 is the invention according to any one of claims 1 to 9, wherein the trigger detection means detects when the own apparatus is activated as a trigger that requires time correction. To do.

請求項11記載の発明は、請求項1から10のいずれか1項に記載の発明において、所定の操作を受け付け、内部時計の時刻を変更可能な時刻変更手段を有し、契機検知手段は、時刻変更手段にて内部時計の時刻及びタイムゾーンを変更する操作が受け付けられた時を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 11 is the invention according to any one of claims 1 to 10, further comprising time changing means for accepting a predetermined operation and changing the time of the internal clock. The time change means detects when an operation to change the time and time zone of the internal clock is accepted as an opportunity that requires time correction.

請求項12記載の発明は、請求項1から11のいずれか1項に記載の発明において、契機検知手段は、自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、内部時計により計測された自装置の時刻とを比較し、ファイル及びディレクトリのタイムスタンプを判断し、判断の結果、ファイル及びディレクトリのタイムスタンプが、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 12 is the invention according to any one of claims 1 to 11, wherein the trigger detection means includes a time stamp of a file and a directory stored in a storage medium accessible by the own device, Compare with the time of its own device measured by the internal clock, determine the time stamp of the file and directory, and if the result of the determination is that the time stamp of the file and directory is later than the time of its own device, or Detecting a time that needs to be corrected when it is past the predetermined time.

請求項13記載の発明は、請求項1から12のいずれか1項に記載の発明において、契機検知手段は、自装置が保持するデータの内容に含まれている時刻と、内部時計により計測された自装置の時刻とを比較し、自装置が保持するデータの内容に含まれている時刻を判断し、判断の結果、自装置が保持するデータの内容に含まれている時刻が、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知することを特徴とする。   According to a thirteenth aspect of the present invention, in the invention according to any one of the first to twelfth aspects, the trigger detection means is measured by the time included in the content of the data held by the own device and the internal clock. Compared with the time of the own device, the time included in the content of the data held by the own device is determined, and as a result of the determination, the time included in the content of the data held by the own device is In this case, it is detected that a time that needs to be corrected is detected when the time is later than the time or when it is past the predetermined time.

請求項14記載の発明は、請求項1から13のいずれか1項に記載の発明において、自装置によって管理される下位装置からの問い合わせに対して応答する応答手段を有し、契機検知手段は、自装置の時刻について下位装置からの問い合わせが有った時を、時刻補正が必要な契機として検知し、応答手段は、時刻補正手段により自装置の時刻が補正された後に、下位装置からの問い合わせに対して、自装置の時刻を応答することを特徴とする。   The invention according to claim 14 is the invention according to any one of claims 1 to 13, further comprising response means for responding to an inquiry from a lower device managed by the own device, wherein the trigger detection means is , The time when there is an inquiry from the lower device about the time of its own device is detected as a trigger that requires time correction, the response means from the lower device after the time of the own device is corrected by the time correction means In response to the inquiry, the time of its own device is returned.

請求項15記載の発明は、請求項1から14のいずれか1項に記載の発明において、時刻補正手段による時刻補正の結果、自装置の時刻が正常である場合、他装置に対して、他装置の時刻異常、又は、他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知手段を有することを特徴とする。   The invention according to claim 15 is the invention according to any one of claims 1 to 14, wherein, as a result of time correction by the time correction means, if the time of the own device is normal, It has the 1st time abnormality notification means which notifies the time abnormality of an apparatus, or the expiration date of the electronic certificate of another apparatus.

請求項16記載の発明は、請求項1から15のいずれか1項に記載の発明において、時刻補正手段による時刻補正の結果、内部時計の時刻がデフォルトに戻っていた場合、自装置の電源が入っていない時に内部時計を維持するための内蔵電池の異常として検知し、その旨を、自装置を管理する上位装置に通知する第2の時刻異常通知手段を有することを特徴とする。   According to a sixteenth aspect of the present invention, in the invention according to any one of the first to fifteenth aspects, if the time of the internal clock has returned to the default as a result of the time correction by the time correction means, It is characterized by having a second time abnormality notification means for detecting an abnormality of the built-in battery for maintaining the internal clock when it is not, and notifying the host device of that fact to that effect.

請求項17記載の発明は、請求項1から16のいずれか1項に記載の発明において、時刻補正手段は、自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、内部時計の影響を受けない単調増加クロックを用いて計測し、計測の結果を通信処理によって生じるタイムラグとして、上位装置から取得した時刻に加えてから時刻補正を行うことを特徴とする。   The invention according to claim 17 is the invention according to any one of claims 1 to 16, wherein the time correction means calculates the time required for the reception processing during the time inquiry communication to the host device that manages the device. The measurement is performed using a monotonically increasing clock that is not affected by the internal clock, and the time correction is performed after adding the measurement result to the time acquired from the host device as a time lag caused by communication processing.

請求項18記載の発明は、請求項2から17のいずれか1項に記載の発明において、内部時計の精度と、自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、許容時刻誤差として設定できる許容時刻誤差設定手段を有することを特徴とする。   The invention according to claim 18 is the invention according to any one of claims 2 to 17, wherein the accuracy of the accuracy of the internal clock and the accuracy of the internal clock of the host device that manages the own device And an allowable time error setting means capable of setting up to ± N (N: a predetermined number) times the minimum number of digits as an allowable time error.

請求項19記載の発明は、請求項1から18のいずれか1項に記載の発明において、上位装置時刻取得手段により上位装置から上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、上位装置の時刻の正当性を保護するとともに、上位装置の時刻の改竄を防止するセキュリティ手段を有することを特徴とする。   The invention according to claim 19 is the invention according to any one of claims 1 to 18, wherein when the host device time acquisition means acquires the time of the host device from the host device, the mutual certificate using the electronic certificate is used. By using authentication and encrypted communication, it is characterized by having security means for protecting the legitimacy of the time of the host device and preventing falsification of the time of the host device.

請求項20記載の発明は、請求項1から19のいずれか1項に記載の発明において、時刻補正手段により時刻補正がされた後も、自装置の時刻が、自装置が他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに当する場合、自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求手段を有することを特徴とする。   The invention according to claim 20 is the invention according to any one of claims 1 to 19, wherein the time of the own device is encrypted with the other device even after the time is corrected by the time correction means. When an electronic certificate held for communication expires, a new electronic certificate can be used for encrypted communication using a special electronic certificate that does not check the time of the host device that manages the device. And an electronic certificate issuance request means for requesting the issuance of.

請求項21記載の発明は、請求項1から20のいずれか1項に記載の発明において、時刻補正手段により時刻補正がされた後も、自装置がアクセス可能な記憶媒体あるいは自装置に記憶される、ファイル又はデータの時刻が異常であった場合、ファイル又はデータのもつ重要度に基づいて、ファイル又はデータを削除あるいは更新するファイル・データ削除更新手段、もしくは、自装置を管理する上位システムに対してファイル又はデータの時刻異常を通知する第3の時刻異常通知手段を有することを特徴とする。   The invention according to claim 21 is stored in a storage medium accessible by the own apparatus or the own apparatus even after the time is corrected by the time correcting means in the invention according to any one of the first to twentieth aspects. If the time of the file or data is abnormal, the file / data deletion / updating means that deletes or updates the file or data based on the importance of the file or data, or the host system that manages the device itself A third time abnormality notification means for notifying the time abnormality of the file or data is provided.

請求項22記載の発明は、請求項1から21のいずれか1項に記載の発明において、有効期限切れの電子証明書を更新できなかった場合、他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、自装置の停止を通知する自装置停止通知手段と、自装置停止通知手段により通知した後、自装置を停止する自装置停止手段と、自装置の停止を報知する自装置停止報知手段と、を有することを特徴とする。   The invention according to claim 22 is the special feature in which the time check is not performed on the other device in the invention according to any one of claims 1 to 21 when the expired electronic certificate cannot be renewed. Self-device stop notification means for notifying the stop of the self-device in encrypted communication using an electronic certificate, self-device stop means for stopping the self-device after notifying by the self-device stop notification means, and stopping the self-device. Own device stop notification means for notification.

請求項23記載の発明は、請求項1から22のいずれか1項に記載の時刻同期装置を有することを特徴とする。   A twenty-third aspect of the invention includes the time synchronizer according to any one of the first to twenty-second aspects.

請求項24記載の発明は、内部時計を用いて自装置の時刻を計測する時刻同期装置が、他装置と通信を行う場合に、自装置を管理する上位装置の時刻を取得し、他装置と時刻の同期を取る時刻同期方法であって、内部時計の時刻補正が必要な契機を検知する契機検知ステップと、契機検知ステップにより時刻補正が必要な契機が検知された場合、内部時計の時刻補正として、自装置の時刻を上位装置の時刻に補正する時刻補正ステップと、を有することを特徴とする。   According to a twenty-fourth aspect of the present invention, when a time synchronization device that measures the time of its own device using an internal clock communicates with another device, the time of the host device that manages the own device is acquired, A time synchronization method that synchronizes the time, the trigger detection step for detecting the trigger for the time correction of the internal clock, and the clock correction for the internal clock when the trigger for the time correction is detected by the trigger detection step And a time correction step of correcting the time of the own device to the time of the host device.

請求項25記載の発明は、請求項24記載の発明において、契機検知ステップは、上位装置から取得した上位装置の時刻と、内部時計により計測された自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、判断の結果、両時刻の差が許容時刻誤差の範囲内ではない場合を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 25 is the invention according to claim 24, wherein the trigger detection step compares the time of the host device acquired from the host device with the time of the own device measured by the internal clock, It is determined whether or not the difference is within a predetermined allowable time error range, and when the difference between the two times is not within the allowable time error range as a result of the determination, it is detected as a trigger that requires time correction. Features.

請求項26記載の発明は、請求項24又は25記載の発明において、契機検知ステップは、上位装置から取得した上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、時刻補正が必要な契機として検知することを特徴とする。   According to a twenty-sixth aspect of the present invention, in the invention according to the twenty-fourth or twenty-fifth aspect, the trigger detection step requires time correction when storing predetermined information in the storage medium together with the time of the higher-level device acquired from the higher-level device. It is detected as an opportunity.

請求項27記載の発明は、請求項24から26のいずれか1項に記載の発明において、契機検知ステップは、自装置が他装置と暗号化通信を行うために保持する電子証明書の有効期限と、内部時計により計測された自装置の時刻とを比較し、自装置の時刻が電子証明書の有効期限の範囲内であるか否かを判断し、判断の結果、自装置の時刻が電子証明書の有効期限の範囲内ではない場合を、時刻補正が必要な契機として検知することを特徴とする。   According to a twenty-seventh aspect of the present invention, in the invention according to any one of the twenty-fourth to twenty-sixth aspects, the trigger detection step includes an expiration date of an electronic certificate held for the device itself to perform encrypted communication with another device. Is compared with the time of the own device measured by the internal clock to determine whether the time of the own device is within the validity period of the electronic certificate. It is characterized in that a case where the certificate is not within the valid period is detected as an opportunity that requires time correction.

請求項28記載の発明は、請求項24から27のいずれか1項に記載の発明において、契機検知ステップは、自装置が他装置と電子証明書を用いて暗号化通信を行う時に、他装置から送られてきた電子証明書の有効期限と、内部時計により計測された自装置の時刻とを比較し、自装置の時刻が電子証明書の有効期限の範囲内であるか否かを判断し、判断の結果、自装置の時刻が電子証明書の有効期限の範囲内ではない場合を、時刻補正が必要な契機として検知することを特徴とする。   According to a twenty-eighth aspect of the present invention, in the invention according to any one of the twenty-fourth to twenty-seventh aspects, the trigger detection step is performed when the own apparatus performs encrypted communication with another apparatus using an electronic certificate. Compares the expiration date of the electronic certificate sent from the device with the time of the device itself measured by the internal clock, and determines whether the time of the device is within the validity period of the electronic certificate. As a result of the determination, a case where the time of the own device is not within the validity period of the electronic certificate is detected as an opportunity that requires time correction.

請求項29記載の発明は、請求項24から28のいずれか1項に記載の発明において、契機検知ステップは、自装置が管理する下位装置との通信時に、下位装置から送られてくる情報の中に含まれる下位装置の時刻と、内部時計により計測された自装置の時刻とを比較し、下位装置の時刻を判断し、判断の結果、下位装置の時刻が、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知することを特徴とする。   According to a twenty-ninth aspect of the present invention, in the invention according to any one of the twenty-fourth to twenty-eighth aspects, the trigger detection step includes the step of detecting information sent from a lower-level device during communication with a lower-level device managed by the own device The time of the lower device included in the device is compared with the time of the own device measured by the internal clock, and the time of the lower device is determined. As a result of the determination, the time of the lower device is later than the time of the own device. Or when it is past the predetermined time as a trigger that requires time correction.

請求項30記載の発明は、請求項24から29のいずれか1項に記載の発明において、契機検知ステップは、他装置との通信時に、他装置から送られてくるパケットのタイムスタンプと、内部時計により計測された自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、判断の結果、両時刻の差が許容時刻誤差の範囲内ではない場合を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 30 is the invention according to any one of claims 24 to 29, wherein the trigger detection step includes a time stamp of a packet sent from another device, and an internal Compares the time of the device with the time measured by the clock to determine whether the difference between the two times is within a predetermined allowable time error range. As a result of the determination, the difference between the two times is within the allowable time error range. It is characterized in that a case that is not within is detected as an opportunity that requires time correction.

請求項31記載の発明は、請求項24から30のいずれか1項に記載の発明において、契機検知ステップは、自装置の時刻が異常である旨の通知を他装置から受け取った時を、時刻補正が必要な契機として検知することを特徴とする。   According to a thirty-first aspect of the invention, in the invention according to any one of the twenty-fourth to thirty-third aspects, the trigger detection step indicates a time when a notification that the time of the own device is abnormal is received from another device. It is detected as an opportunity that requires correction.

請求項32記載の発明は、請求項24から31のいずれか1項に記載の発明において、契機検知ステップは、内部時計の影響を受けない単調増加クロックによるタイマにより計測される一定周期毎を、時刻補正が必要な契機として検知することを特徴とする。   According to a thirty-second aspect of the invention, in the invention according to any one of the twenty-fourth to thirty-first aspects, the trigger detection step includes a constant period measured by a timer with a monotonically increasing clock that is not affected by the internal clock. It is detected as an opportunity that requires time correction.

請求項33記載の発明は、請求項24から32のいずれか1項に記載の発明において、契機検知ステップは、自装置が起動した時を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 33 is the invention according to any one of claims 24 to 32, characterized in that the trigger detection step detects when the own apparatus is activated as a trigger that requires time correction. To do.

請求項34記載の発明は、請求項24から33のいずれか1項に記載の発明において、契機検知ステップは、内部時計の時刻及びタイムゾーンを変更する操作を受け付けた時を、時刻補正が必要な契機として検知することを特徴とする。   According to a thirty-fourth aspect of the invention, in the invention according to any one of the twenty-fourth to thirty-third aspects, the trigger detection step requires time correction when an operation for changing the time and time zone of the internal clock is received. It is characterized by detecting as a trigger.

請求項35記載の発明は、請求項24から34のいずれか1項に記載の発明において、契機検知ステップは、自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、内部時計により計測された自装置の時刻とを比較し、ファイル及びディレクトリのタイムスタンプを判断し、判断の結果、ファイル及びディレクトリのタイムスタンプが、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知することを特徴とする。   The invention according to claim 35 is the invention according to any one of claims 24 to 34, wherein the trigger detection step includes a time stamp of a file and a directory stored in a storage medium accessible by the own device, Compare with the time of its own device measured by the internal clock, determine the time stamp of the file and directory, and if the result of the determination is that the time stamp of the file and directory is later than the time of its own device, or Detecting a time that needs to be corrected when it is past the predetermined time.

請求項36記載の発明は、請求項24から35のいずれか1項に記載の発明において、契機検知ステップは、自装置が保持するデータの内容に含まれている時刻と、内部時計により計測された自装置の時刻とを比較し、自装置が保持するデータの内容に含まれている時刻を判断し、判断の結果、自装置が保持するデータの内容に含まれている時刻が、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知することを特徴とする。   According to a thirty-sixth aspect of the invention, in the invention according to any one of the twenty-fourth to thirty-fifth aspects, the trigger detection step is measured by a time included in the content of data held by the own device and an internal clock. Compared with the time of the own device, the time included in the content of the data held by the own device is determined, and as a result of the determination, the time included in the content of the data held by the own device is In this case, it is detected that a time that needs to be corrected is detected when the time is later than the time or when it is past the predetermined time.

請求項37記載の発明は、請求項24から37のいずれか1項に記載の発明において、契機検知ステップは、自装置の時刻について下位装置からの問い合わせが有った時を、時刻補正が必要な契機として検知し、時刻補正ステップにより自装置の時刻が補正された後に、下位装置からの問い合わせに対して、自装置の時刻を応答する応答ステップを有することを特徴とする。   The invention according to claim 37 is the invention according to any one of claims 24 to 37, wherein the trigger detection step needs to correct the time when there is an inquiry from a lower device about the time of the own device. And a response step of responding to the time of the own device in response to an inquiry from the lower device after the time of the own device is corrected by the time correction step.

請求項38記載の発明は、請求項24から37のいずれか1項に記載の発明において、時刻補正ステップによる時刻補正の結果、自装置の時刻が正常である場合、他装置に対して、他装置の時刻異常、又は、他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知ステップを有することを特徴とする。   The invention as set forth in claim 38 is the invention according to any one of claims 24 to 37, wherein, as a result of time correction by the time correction step, the time of the own apparatus is normal, It has the 1st time abnormality notification step which notifies the time abnormality of an apparatus, or the expiration date of the electronic certificate of another apparatus.

請求項39記載の発明は、請求項24から38のいずれか1項に記載の発明において、時刻補正ステップによる時刻補正の結果、内部時計の時刻がデフォルトに戻っていた場合、自装置の電源が入っていない時に内部時計を維持するための内蔵電池の異常として検知し、その旨を、自装置を管理する上位装置に通知する第2の時刻異常通知ステップを有することを特徴とする。   According to a thirty-ninth aspect of the present invention, in the invention according to any one of the twenty-fourth to thirty-eighth aspects, when the time of the internal clock has returned to the default as a result of the time correction by the time correction step, It is characterized by having a second time abnormality notification step for detecting an abnormality of the built-in battery for maintaining the internal clock when it is not, and notifying the host device of that fact to that effect.

請求項40記載の発明は、請求項24から39のいずれか1項に記載の発明において、時刻補正ステップは、自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、内部時計の影響を受けない単調増加クロックを用いて計測し、計測の結果を通信処理によって生じるタイムラグとして、上位装置から取得した時刻に加えてから時刻補正を行うことを特徴とする。   The invention according to claim 40 is the invention according to any one of claims 24 to 39, wherein the time correction step calculates the time required for the reception process during the time inquiry communication with the host device that manages the device. The measurement is performed using a monotonically increasing clock that is not affected by the internal clock, and the time correction is performed after adding the measurement result to the time acquired from the host device as a time lag caused by communication processing.

請求項41記載の発明は、請求項24から40のいずれか1項に記載の発明において、内部時計の精度と、自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、許容時刻誤差として設定できる許容時刻誤差設定ステップを有することを特徴とする。   The invention according to claim 41 is the invention according to any one of claims 24 to 40, wherein the accuracy of the coarse one of the accuracy of the internal clock and the accuracy of the internal clock of the host device managing its own device is And an allowable time error setting step capable of setting an allowable time error up to ± N (N: a predetermined number) times the minimum number of digits.

請求項42記載の発明は、請求項24から41のいずれか1項に記載の発明において、上位装置から上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、上位装置の時刻の正当性を保護するとともに、上位装置の時刻の改竄を防止するセキュリティステップを有することを特徴とする。   The invention according to claim 42 is the invention according to any one of claims 24 to 41, wherein mutual authentication and encrypted communication using an electronic certificate are performed when the time of the host device is acquired from the host device. It is characterized by having a security step that protects the legitimacy of the time of the host device and prevents the falsification of the time of the host device.

請求項43記載の発明は、請求項24から42のいずれか1項に記載の発明において、時刻補正ステップにより時刻補正がされた後も、自装置の時刻が、自装置が他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに当する場合、自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求ステップを有することを特徴とする。   The invention according to claim 43 is the invention according to any one of claims 24 to 42, wherein the time of the own device is encrypted with the other device even after the time is corrected by the time correction step. When an electronic certificate held for communication expires, a new electronic certificate can be used for encrypted communication using a special electronic certificate that does not check the time of the host device that manages the device. An electronic certificate issuance requesting step for requesting the issuance of an electronic certificate.

請求項44記載の発明は、請求項24から43のいずれか1項に記載の発明において、時刻補正ステップにより時刻補正がされた後も、自装置がアクセス可能な記憶媒体あるいは自装置に記憶される、ファイル又はデータの時刻が異常であった場合、ファイル又はデータのもつ重要度に基づいて、ファイル又はデータを削除あるいは更新するファイル・データ削除更新ステップ、もしくは、自装置を管理する上位システムに対してファイル又はデータの時刻異常を通知する第3の時刻異常通知ステップを有することを特徴とする。   The invention according to claim 44 is stored in a storage medium accessible by the own apparatus or the own apparatus even after the time is corrected by the time correction step in the invention according to any one of claims 24 to 43. If the time of the file or data is abnormal, the file / data deletion / update step that deletes or updates the file or data based on the importance of the file or data, or the host system that manages the device A third time abnormality notification step for notifying the time abnormality of the file or data is provided.

請求項45記載の発明は、請求項24から44のいずれか1項に記載の発明において、有効期限切れの電子証明書を更新できなかった場合、他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、自装置の停止を通知する自装置停止通知ステップと、自装置停止通知ステップにより通知した後、自装置を停止する自装置停止ステップと、自装置の停止を報知する自装置停止報知ステップと、を有することを特徴とする。   The invention according to claim 45 is the special feature in which, in the invention according to any one of claims 24 to 44, when the expired electronic certificate cannot be renewed, the time check is not performed on the other device. The self-device stop notification step for notifying the stop of the own device, the self-device stop step for stopping the self-device after notification by the self-device stop notification step, and the stop of the self-device And a self-device stop notification step for notification.

請求項46記載の発明は、内部時計を用いて自装置の時刻を計測する時刻同期装置に、他装置と通信を行う場合に、自装置を管理する上位装置の時刻を取得させ、他装置と時刻の同期を取らせるためのプログラムであって、時刻同期装置に、内部時計の時刻補正が必要な契機を検知する契機検知処理と、契機検知処理により時刻補正が必要な契機が検知された場合、内部時計の時刻補正として、自装置の時刻を上位装置の時刻に補正する時刻補正処理と、を実行させることを特徴とする。   The invention according to claim 46 allows a time synchronization device that measures the time of its own device using an internal clock to acquire the time of a host device that manages its own device when communicating with the other device, A program to synchronize the time, when the time synchronization device detects the trigger that needs to correct the time of the internal clock, and the trigger that detects the time is detected by the trigger detection process As a time correction of the internal clock, a time correction process for correcting the time of the own device to the time of the host device is executed.

請求項47記載の発明は、請求項46記載の発明において、契機検知処理は、上位装置から取得した上位装置の時刻と、内部時計により計測された自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、判断の結果、両時刻の差が許容時刻誤差の範囲内ではない場合を、時刻補正が必要な契機として検知する処理であることを特徴とする。   The invention according to claim 47 is the invention according to claim 46, wherein the trigger detection processing compares the time of the host device acquired from the host device with the time of the own device measured by the internal clock, A process for determining whether or not the difference is within a predetermined allowable time error range, and detecting that the difference between the two times is not within the allowable time error range as a trigger that requires time correction. It is characterized by being.

請求項48記載の発明は、請求項46又は47記載の発明において、契機検知処理は、上位装置から取得した上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、時刻補正が必要な契機として検知する処理であることを特徴とする。   According to a 48th aspect of the present invention, in the invention according to the 46th or 47th aspect, the trigger detection process requires time correction when storing predetermined information in the storage medium together with the time of the upper apparatus acquired from the upper apparatus. It is the process detected as an opportunity.

請求項49記載の発明は、請求項46から48のいずれか1項に記載の発明において、契機検知処理は、自装置が他装置と暗号化通信を行うために保持する電子証明書の有効期限と、内部時計により計測された自装置の時刻とを比較し、自装置の時刻が電子証明書の有効期限の範囲内であるか否かを判断し、判断の結果、自装置の時刻が電子証明書の有効期限の範囲内ではない場合を、時刻補正が必要な契機として検知する処理であることを特徴とする。   According to a 49th aspect of the present invention, in the invention according to any one of the 46th to 48th aspects of the present invention, the trigger detection process is performed by the expiration date of an electronic certificate held by the own apparatus for performing encrypted communication with another apparatus. Is compared with the time of the own device measured by the internal clock to determine whether the time of the own device is within the validity period of the electronic certificate. The present invention is characterized in that it is a process for detecting when the certificate is not within the validity period as an opportunity that requires time correction.

請求項50記載の発明は、請求項46から49のいずれか1項に記載の発明において、契機検知処理は、自装置が他装置と電子証明書を用いて暗号化通信を行う時に、他装置から送られてきた電子証明書の有効期限と、内部時計により計測された自装置の時刻とを比較し、自装置の時刻が電子証明書の有効期限の範囲内であるか否かを判断し、判断の結果、自装置の時刻が電子証明書の有効期限の範囲内ではない場合を、時刻補正が必要な契機として検知する処理であることを特徴とする。   The invention according to claim 50 is the invention according to any one of claims 46 to 49, wherein the trigger detection process is performed when the own apparatus performs encrypted communication with the other apparatus using an electronic certificate. Compares the expiration date of the electronic certificate sent from the device with the time of the device itself measured by the internal clock, and determines whether the time of the device is within the validity period of the electronic certificate. As a result of the determination, the process is characterized in that it detects when the time of its own device is not within the range of the validity period of the electronic certificate as an opportunity that requires time correction.

請求項51記載の発明は、請求項46から50のいずれか1項に記載の発明において、契機検知処理は、自装置によって管理される下位装置との通信時に、下位装置から送られてくる情報の中に含まれる下位装置の時刻と、内部時計により計測された自装置の時刻とを比較し、下位装置の時刻を判断し、判断の結果、下位装置の時刻が、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知する処理であることを特徴とする。   The invention according to claim 51 is the invention according to any one of claims 46 to 50, wherein the trigger detection process is information sent from a lower-level device during communication with a lower-level device managed by the own device. The time of the lower device included in the device is compared with the time of the own device measured by the internal clock to determine the time of the lower device, and as a result of the determination, the time of the lower device is greater than the time of the own device. The present invention is characterized in that it is a process of detecting when it is in the future or when it is past a predetermined time as an opportunity that requires time correction.

請求項52記載の発明は、請求項46から51のいずれか1項に記載の発明において、契機検知処理は、他装置との通信時に、他装置から送られてくるパケットのタイムスタンプと、内部時計により計測された自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、判断の結果、両時刻の差が許容時刻誤差の範囲内ではない場合を、時刻補正が必要な契機として検知する処理であることを特徴とする。   The invention according to claim 52 is the invention according to any one of claims 46 to 51, wherein the trigger detection processing includes a time stamp of a packet sent from another device, and an internal Compares the time of the device with the time measured by the clock to determine whether the difference between the two times is within a predetermined allowable time error range. As a result of the determination, the difference between the two times is within the allowable time error range. It is the process which detects the case which is not in the inside as an opportunity which needs time correction.

請求項53記載の発明は、請求項46から52のいずれか1項に記載の発明において、契機検知処理は、自装置の時刻が異常である旨の通知を他装置から受け取った時を、時刻補正が必要な契機として検知する処理であることを特徴とする。   The invention according to claim 53 is the invention according to any one of claims 46 to 52, in which the trigger detection process is performed when the notification that the time of the own apparatus is abnormal is received from another apparatus. It is the process which detects as an opportunity which needs correction | amendment.

請求項54記載の発明は、請求項46から53のいずれか1項に記載の発明において、契機検知処理は、内部時計の影響を受けない単調増加クロックによるタイマにより計測される一定周期毎を、時刻補正が必要な契機として検知する処理であることを特徴とする。   According to a 54th aspect of the present invention, in the invention according to any one of the 46th to 53rd aspects, the trigger detection process is performed at regular intervals measured by a timer with a monotonically increasing clock that is not affected by the internal clock. It is the process which detects as an opportunity which needs time correction.

請求項55記載の発明は、請求項46から54のいずれか1項に記載の発明において、契機検知処理は、自装置が起動した時を、時刻補正が必要な契機として検知する処理であることを特徴とする。   According to a 55th aspect of the present invention, in the invention according to any one of the 46th to 54th aspects, the trigger detection process is a process of detecting when the own apparatus is activated as a trigger that requires time correction. It is characterized by.

請求項56記載の発明は、請求項46から55のいずれか1項に記載の発明において、契機検知処理は、内部時計の時刻及びタイムゾーンを変更する操作を受け付けた時を、時刻補正が必要な契機として検知する処理であることを特徴とする。   According to a 56th aspect of the present invention, in the invention according to any one of the 46th to 55th aspects, the trigger detection process requires time correction when an operation to change the time and time zone of the internal clock is received. It is the process which detects as a special opportunity.

請求項57記載の発明は、請求項46から56のいずれか1項に記載の発明において、契機検知処理は、自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、内部時計により計測された自装置の時刻とを比較し、ファイル及びディレクトリのタイムスタンプを判断し、判断の結果、ファイル及びディレクトリのタイムスタンプが、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知する処理であることを特徴とする。   The invention according to claim 57 is the invention according to any one of claims 46 to 56, wherein the trigger detection process includes a time stamp of a file and a directory stored in a storage medium accessible by the own device, Compare with the time of its own device measured by the internal clock, determine the time stamp of the file and directory, and if the result of the determination is that the time stamp of the file and directory is later than the time of its own device, or The process is characterized in that it is a process of detecting a time that needs to be corrected when it is past the predetermined time.

請求項58記載の発明は、請求項46から57のいずれか1項に記載の発明において、契機検知処理は、自装置が保持するデータの内容に含まれている時刻と、内部時計により計測された自装置の時刻とを比較し、自装置が保持するデータの内容に含まれている時刻を判断し、判断の結果、自装置が保持するデータの内容に含まれている時刻が、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知する処理であることを特徴とする。   The invention according to claim 58 is the invention according to any one of claims 46 to 57, wherein the trigger detection process is measured by the time included in the content of the data held by the own device and an internal clock. Compared with the time of the own device, the time included in the content of the data held by the own device is determined, and as a result of the determination, the time included in the content of the data held by the own device is This process is characterized in that it is a process that detects a time that needs to be corrected when the time is later than the time or the time that is past the predetermined time.

請求項59記載の発明は、請求項46から59のいずれか1項に記載の発明において、契機検知処理は、自装置の時刻について下位装置からの問い合わせが有った時を、時刻補正が必要な契機として検知処理であり、時刻同期装置に、時刻補正処理により自装置の時刻が補正された後に、下位装置からの問い合わせに対して、自装置の時刻を応答する応答処理を実行させることを特徴とする。   The invention according to claim 59 is the invention according to any one of claims 46 to 59, wherein the trigger detection processing requires time correction when there is an inquiry from a lower device about the time of the own device. It is a detection process as an opportunity, and after the time of the own apparatus is corrected by the time correction process, the time synchronization apparatus is allowed to execute a response process that responds to the time of the own apparatus in response to an inquiry from a lower apparatus. Features.

請求項60記載の発明は、請求項46から59のいずれか1項に記載の発明において、時刻補正処理による時刻補正の結果、自装置の時刻が正常である場合、時刻同期装置に、他装置に対して、他装置の時刻異常、又は、他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知処理を実行させることを特徴とする。   The invention according to claim 60 is the invention according to any one of claims 46 to 59, wherein, as a result of time correction by the time correction processing, if the time of the own apparatus is normal, the time synchronization apparatus is On the other hand, the first time abnormality notification process for notifying the time abnormality of the other device or the expiration date of the electronic certificate of the other device is executed.

請求項61記載の発明は、請求項46から60のいずれか1項に記載の発明において、時刻補正処理による時刻補正の結果、内部時計の時刻がデフォルトに戻っていた場合、時刻同期装置に、自装置の電源が入っていない時に内部時計を維持するための内蔵電池の異常として検知し、その旨を、自装置を管理する上位装置に通知する第2の時刻異常通知処理を実行させることを特徴とする。   In the invention of claim 61, in the invention of any one of claims 46 to 60, when the time of the internal clock is returned to the default as a result of the time correction by the time correction process, Detecting an abnormality of the internal battery for maintaining the internal clock when the power of the own device is not turned on, and executing a second time abnormality notification process for notifying the upper device managing the own device to that effect Features.

請求項62記載の発明は、請求項46から61のいずれか1項に記載の発明において、時刻補正処理は、自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、内部時計の影響を受けない単調増加クロックを用いて計測し、計測の結果を通信処理によって生じるタイムラグとして、上位装置から取得した時刻に加えてから時刻補正を行う処理であることを特徴とする。   The invention according to claim 62 is the invention according to any one of claims 46 to 61, wherein the time correction processing is performed by calculating a time required for reception processing during time inquiry communication with a host device that manages the device. This is characterized in that the measurement is performed using a monotonically increasing clock that is not affected by the internal clock, and the measurement result is added to the time acquired from the host device as the time lag caused by the communication process, and then the time is corrected.

請求項63記載の発明は、請求項47から62のいずれか1項に記載の発明において、時刻同期装置に、内部時計の精度と、自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、許容時刻誤差として設定できる許容時刻誤差設定処理を実行させることを特徴とする。   According to a 63rd aspect of the present invention, in the invention according to any one of the 47th to 62nd aspects, the time synchronizer includes: the accuracy of the internal clock; and the accuracy of the internal clock of the host device that manages the own device. An allowable time error setting process capable of setting up to ± N (N: a predetermined number) times the minimum number of digits of the coarser accuracy as an allowable time error is executed.

請求項64記載の発明は、請求項46から63のいずれか1項に記載の発明において、時刻同期装置に、上位装置から上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、上位装置の時刻の正当性を保護するとともに、上位装置の時刻の改竄を防止するセキュリティ処理を実行させることを特徴とする。   The invention according to claim 64 is the invention according to any one of claims 46 to 63, wherein the time synchronizer uses the electronic certificate to obtain the time of the host device from the host device. In addition, the use of encrypted communication protects the legitimacy of the time of the host device and executes security processing for preventing falsification of the time of the host device.

請求項65記載の発明は、請求項46から64のいずれか1項に記載の発明において、時刻補正処理により時刻補正がされた後も、自装置の時刻が、自装置が他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに当する場合、時刻同期装置に、自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求処理を実行させることを特徴とする。   The invention according to claim 65 is the invention according to any one of claims 46 to 64, wherein the time of the own device is encrypted with the other device even after the time is corrected by the time correction processing. When the digital certificate held for communication expires, the time synchronization device is encrypted communication with a special electronic certificate that does not check the time with the host device that manages the device itself. The electronic certificate issuance request process for requesting the issuance of a new electronic certificate is executed.

請求項66記載の発明は、請求項46から65のいずれか1項に記載の発明において、時刻補正処理により時刻補正がされた後も、自装置がアクセス可能な記憶媒体あるいは自装置に記憶される、ファイル又はデータの時刻が異常であった場合、時刻同期装置に、ファイル又はデータのもつ重要度に基づいて、ファイル又はデータを削除あるいは更新するファイル・データ削除更新処理、もしくは、自装置を管理する上位システムに対してファイル又はデータの時刻異常を通知する第3の時刻異常通知処理を実行させることを特徴とする。   According to a 66th aspect of the present invention, in the invention according to any one of the 46th to 65th aspects, even after the time is corrected by the time correction process, the self apparatus is stored in an accessible storage medium or the self apparatus. If the time of the file or data is abnormal, the time synchronization device deletes or updates the file or data based on the importance of the file or data, or the device itself A third time abnormality notification process for notifying a time abnormality of a file or data to a higher system to be managed is executed.

請求項67記載の発明は、請求項46から66のいずれか1項に記載の発明において、有効期限切れの電子証明書を更新できなかった場合、時刻同期装置に、他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、自装置の停止を通知する自装置停止通知処理と、自装置停止通知処理により通知した後、自装置を停止する自装置停止処理と、自装置の停止を報知する自装置停止報知処理と、を実行させることを特徴とする。   The invention according to claim 67 is the invention according to any one of claims 46 to 66, wherein when the expired electronic certificate cannot be renewed, the time synchronizer is checked against other devices. A self-device stop notification process for notifying the stop of the self-device in encrypted communication using a special electronic certificate that is not performed, and a self-device stop process for stopping the self-device after notifying by the self-device stop notification processing, And a self-device stop notification process for notifying the stop of the self-device.

本発明によれば、より正確かつ最適なタイミングで時刻補正を行うことが可能となる。   According to the present invention, it is possible to perform time correction at a more accurate and optimal timing.

以下、本発明を実施するための最良の形態について添付図面を参照して詳細に説明する。   The best mode for carrying out the present invention will be described below in detail with reference to the accompanying drawings.

本発明の一実施形態として、時刻同期システム(通信システム)の構成を図1に示す。
図1に示すように、本実施形態の時刻同期システムは、設置環境Aと、設置環境Bとがある。設置環境Aでは、管理装置であるG/W装置1(上位装置)と、このG/W装置1とインターネット4を介して接続され、G/W装置1に管理される被管理装置である仲介装置2(G/W装置1の下位装置であり、画像印刷機器3に対しては上位装置)と、この仲介装置2とLAN等を介して接続される画像印刷機器3(仲介装置2の下位装置)と、を有する。設置環境Bでは、管理装置であるG/W装置1(上位装置)と、このG/W装置1とインターネット4を介して接続され、G/W装置1に管理される被管理装置である画像印刷機器5(G/W装置1の下位装置)と、を有する。設置環境Aでは仲介装置2が、設置環境Bでは画像印刷機器5が、それぞれ本実施形態の時刻同期装置となる。
As an embodiment of the present invention, a configuration of a time synchronization system (communication system) is shown in FIG.
As shown in FIG. 1, the time synchronization system of this embodiment includes an installation environment A and an installation environment B. In the installation environment A, the G / W device 1 (high-order device) that is a management device and the mediation that is a managed device that is connected to the G / W device 1 via the Internet 4 and is managed by the G / W device 1. Device 2 (lower device of G / W device 1 and higher device for image printing device 3), and image printing device 3 connected to this mediation device 2 via a LAN or the like (lower level of mediation device 2) Device). In the installation environment B, an image that is a managed device that is connected to the G / W device 1 (high-level device), which is a management device, and the G / W device 1 via the Internet 4 and is managed by the G / W device 1. Printing device 5 (subordinate device of G / W device 1). In the installation environment A, the intermediary device 2 and the image printing device 5 in the installation environment B are time synchronization devices of the present embodiment, respectively.

本実施形態の時刻同期装置(仲介装置2、画像印刷機器5)の機能構成を図2に示す。
本実施形態の時刻同期装置は、図2に示すように、自装置(時刻同期装置自身を示す。なお、他装置は、時刻同期装置と通信を行う装置であり、上位装置や下位装置を示す)の現在時刻(現在日時)を計測する内部時計11を有する。また、装置に電源が入っていない時に、この内部時計11の動作を維持させるための内蔵電池10を有する。
FIG. 2 shows a functional configuration of the time synchronization device (the mediation device 2 and the image printing device 5) of the present embodiment.
As shown in FIG. 2, the time synchronization apparatus of the present embodiment indicates the own apparatus (the time synchronization apparatus itself. The other apparatus is an apparatus that communicates with the time synchronization apparatus, and indicates an upper apparatus and a lower apparatus. ) Has an internal clock 11 that measures the current time (current date and time). In addition, it has a built-in battery 10 for maintaining the operation of the internal clock 11 when the apparatus is not turned on.

本実施形態の時刻同期装置は、図2に示すように、自装置を起動するため装置起動手段14、内部時計11の影響を受けずに計時を行う単調増加クロック17、この単調増加クロックの計測結果に基づいて、予め設定されたスケジュール(例えば、他装置との通信)を実行するスケジューラ15を有する。   As shown in FIG. 2, the time synchronizer according to the present embodiment has a monotonically increasing clock 17 for measuring the time without being affected by the device starting means 14 and the internal clock 11 for starting the own device, and measuring the monotonically increasing clock. Based on the result, it has a scheduler 15 that executes a preset schedule (for example, communication with other devices).

本実施形態の時刻同期装置は、図2に示すように、上位装置と通信を行うための上位装置通信手段23、下位装置と通信を行うための下位装置通信手段25を有する。また、上位装置との通信に用いるための上位装置通信用電子証明書24、下位装置との通信に用いるための下位装置通信用電子証明書27をそれぞれ保持する。これらは、上位装置時刻取得手段16により上位装置から上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、上位装置の時刻の正当性を保護するとともに、上位装置の時刻の改竄を防止するセキュリティ手段として機能する。よって、時刻補正の基となる上位装置の時刻情報の正当性が保たれているので、時刻情報の改竄や、上位装置の成りすましを防ぐことができる。また、本実施形態の時刻同期装置は、これら電子証明書の更新を行う電子証明書更新手段18を有する。   As shown in FIG. 2, the time synchronization apparatus of the present embodiment includes a higher-level device communication unit 23 for communicating with a higher-level device and a lower-level device communication unit 25 for communicating with a lower-level device. Further, the electronic certificate for higher-level device communication 24 for use in communication with the higher-level device and the lower-level device communication electronic certificate 27 for use in communication with the lower level device are held. In these cases, when the host device time acquisition means 16 acquires the host device time from the host device, the authenticity of the host device time is protected by using mutual authentication and encrypted communication using an electronic certificate. At the same time, it functions as a security means for preventing falsification of the time of the host device. Therefore, since the legitimacy of the time information of the host device that is the basis of the time correction is maintained, it is possible to prevent falsification of the time information and spoofing of the host device. In addition, the time synchronization apparatus of the present embodiment includes an electronic certificate update unit 18 that updates these electronic certificates.

本実施形態の時刻同期装置は、図2に示すように、上位装置が有する内部時計にて計測された、上位装置の現在時刻(現在日時)を示す時刻情報(以下、単に「時刻」という)を取得する上位装置時刻取得手段16を有する。   As shown in FIG. 2, the time synchronization apparatus of the present embodiment has time information (hereinafter simply referred to as “time”) indicating the current time (current date and time) of the host device, measured by an internal clock of the host device. The high-order apparatus time acquisition means 16 is acquired.

本実施形態の時刻同期装置は、図2に示すように、ユーザからの入力操作を受け付け、内部時計11の時刻やタイムゾーンを設定・変更する入力操作受付手段19(時刻変更手段)を有する。また、この入力操作受付手段19は、内部時計11の精度と、自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、許容時刻誤差として設定するための入力操作を受け付けることもできる(許容時刻誤差設定手段)。よって、許容誤差の範囲を指定できるので、時刻の補正頻度と時刻の精度のバランスを調整することができる。   As shown in FIG. 2, the time synchronization apparatus of the present embodiment includes an input operation receiving unit 19 (time changing unit) that receives an input operation from a user and sets / changes the time and time zone of the internal clock 11. Further, the input operation accepting means 19 has a minimum accuracy of ± N (N: a predetermined number) of the accuracy of the internal clock 11 and the accuracy of the internal clock of the host device that manages the device itself. It is also possible to accept an input operation for setting up to twice as an allowable time error (allowable time error setting means). Therefore, since an allowable error range can be specified, the balance between the time correction frequency and the time accuracy can be adjusted.

本実施形態の時刻同期装置は、図2に示すように、自装置がアクセス可能であり、所定の情報(データ、ファイル、ディレクトリ)を記憶するための記憶媒体20を有する。   As shown in FIG. 2, the time synchronization apparatus according to the present embodiment is accessible by the own apparatus and includes a storage medium 20 for storing predetermined information (data, file, directory).

本実施形態の時刻同期装置は、図2に示すように、比較対象時刻を取得する比較対象時刻取得手段21を有する。比較対象時刻とは、後述する時刻比較手段13にて、内部時計11の時刻と比較される対象となる時刻情報である。例としては、入力操作手段19で入力された時刻、記憶媒体20に記憶される情報に含まれる時刻、上位装置通信用電子証明書24及び下位装置通信用27の有効期限、他装置から受信した時刻(例えば、パケットのタイムスタンプ等)、などが挙げられる。   As illustrated in FIG. 2, the time synchronization apparatus according to the present embodiment includes a comparison target time acquisition unit 21 that acquires a comparison target time. The comparison target time is time information to be compared with the time of the internal clock 11 by the time comparison unit 13 described later. As an example, the time input by the input operation means 19, the time included in the information stored in the storage medium 20, the expiration date of the electronic certificate 24 for upper device communication and 27 for lower device communication, received from another device Time (for example, time stamp of a packet, etc.), etc. are mentioned.

本実施形態の時刻同期装置は、図2に示すように、内部時計11で計測された自装置の時刻と、上位装置時刻取得手段16で取得された上位装置の時刻とを比較する時刻比較手段13を有する。また、この時刻比較手段13は、内部時計11で計測された自装置の時刻と、比較対象時刻取得手段21で取得された所定の比較対象時刻とを比較する。さらに、この時刻比較手段13は、上述したような、時刻同士を比較する時刻比較機能に加えて、内部時計11の時刻補正(時刻同期)が必要な契機(タイミング)を検知する機能も有する。すなわち、時刻を比較した結果や自装置でのイベント(処理)に基づいて、内部時計11の時刻補正が必要な契機を検知する。なお、本実施形態では、時刻比較手段13に契機検知機能を持つようにしたが、別に設けてもよい。この契機検知機能については、詳細を後述する。   As shown in FIG. 2, the time synchronization apparatus according to the present embodiment compares the time of the own apparatus measured by the internal clock 11 with the time of the upper apparatus acquired by the upper apparatus time acquisition means 16. 13 The time comparison unit 13 compares the time of the own device measured by the internal clock 11 with the predetermined comparison target time acquired by the comparison target time acquisition unit 21. In addition to the time comparison function for comparing the times as described above, the time comparison unit 13 also has a function of detecting a trigger (timing) that requires time correction (time synchronization) of the internal clock 11. That is, an opportunity that requires time correction of the internal clock 11 is detected based on the result of comparing the times and the event (processing) in the own device. In the present embodiment, the time comparison means 13 has an opportunity detection function, but may be provided separately. Details of this opportunity detection function will be described later.

本実施形態の時刻同期装置は、図2に示すように、時刻比較手段13により時刻補正が必要な契機が検知された場合に、内部時計11で計測されている自装置の時刻を、上位装置時刻取得手段16で取得された上位装置の時刻に補正する時刻補正手段12を有する。この時刻補正手段12は、自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、内部時計の影響を受けない単調増加クロック17を用いて計測し、この計測の結果を通信処理によって生じるタイムラグとして、上位装置から取得した時刻に加えてから時刻補正を行うようにしてもよい。このように、上位装置の時刻を取得するための通信に掛かったタイムラグを加算することで、より正確に時刻補正することができる。   As shown in FIG. 2, the time synchronization apparatus according to the present embodiment displays the time of its own device measured by the internal clock 11 when the time comparison unit 13 detects a trigger that requires time correction. Time correction means 12 for correcting to the time of the host device acquired by the time acquisition means 16 is provided. The time correction means 12 measures the time required for the reception process during the time inquiry communication with the host device that manages the own device using the monotonically increasing clock 17 that is not affected by the internal clock, and the result of this measurement is obtained. As a time lag caused by the communication processing, time correction may be performed after adding to the time acquired from the host device. Thus, the time can be corrected more accurately by adding the time lag required for communication for acquiring the time of the host device.

本実施形態の時刻同期装置は、図2に示すように、時刻異常通知手段22を有する。この時刻異常通知手段22は、時刻補正手段12による時刻補正の結果、自装置の時刻が正常である場合、他装置に対して、他装置の時刻が異常である旨(あるいは、他装置がそのことを検知していない旨)、又は、他装置の電子証明書の有効期限切れである旨を通知する(第1の時刻異常通知手段)。よって、他装置の時刻が異常であることや他装置の電子証明書の有効期限が切れていることを検知通知することで、他装置に時刻補正及び証明書更新の契機を伝えることができ、また、他装置の時計が異常であることを検知通知することで、他装置に時刻補正の契機を伝えることができる。   As shown in FIG. 2, the time synchronization apparatus of the present embodiment includes time abnormality notification means 22. The time abnormality notifying means 22 indicates that the time of the own apparatus is normal to the other apparatus when the time of the own apparatus is normal as a result of the time correction by the time correcting means 12 (or the other apparatus That the electronic certificate of the other device has expired (first time abnormality notification means). Therefore, by detecting and notifying that the time of the other device is abnormal or that the expiration date of the electronic certificate of the other device has expired, it is possible to inform the other device of the timing of time correction and certificate update, Further, by detecting and notifying that the clock of the other device is abnormal, it is possible to inform the other device of the timing for time correction.

また、この時刻異常通知手段22は、時刻補正手段12による時刻補正の結果、内部時計11の時刻がデフォルトに戻っていた場合、内蔵電池10の異常として検知し、その旨を、自装置を管理する上位装置に通知する(第2の時刻異常通知手段)。よって、自装置の時刻の維持ができていないことを検知することで、内蔵電池残量を調べるモジュールが無くとも、内蔵電池の異常を検知することができる。   In addition, when the time of the internal clock 11 returns to the default as a result of the time correction by the time correction unit 12, the time abnormality notification unit 22 detects that the internal battery 10 is abnormal, and manages the device accordingly. (Second time abnormality notification means). Therefore, by detecting that the time of the device itself cannot be maintained, it is possible to detect an abnormality of the internal battery without a module for checking the remaining amount of the internal battery.

また、この時刻異常通知手段22は、時刻補正手段12により時刻補正がされた後も、自装置がアクセス可能な記憶媒体あるいは自装置に記憶される、ファイル又はデータの時刻が異常であった場合、自装置を管理する上位システムに対してファイル又はデータの時刻異常を通知する(第3の時刻異常通知手段)。なお、ファイル又はデータの時刻が異常であった場合は、ファイル又はデータのもつ重要度に基づいて、このファイル又はデータを削除あるいは更新するファイル・データ削除更新手段(図示せず)を有するようにしてもよい。このように、すでに間違った時刻で作成されてしまったファイルやデータを検知し、それぞれのファイルの持つ重要度に応じた対応をすることで、ファイルやデータの正当性を保つことができる。   In addition, the time abnormality notifying means 22 is used even when the time of the file or data stored in the storage device accessible by the own apparatus or the own apparatus is abnormal even after the time correction by the time correcting means 12. Then, the time abnormality of the file or data is notified to the host system that manages the own device (third time abnormality notification means). If the time of the file or data is abnormal, file / data deletion / update means (not shown) for deleting or updating the file or data is provided based on the importance of the file or data. May be. In this way, it is possible to maintain the correctness of files and data by detecting files and data that have already been created at the wrong time and responding according to the importance of each file.

また、この時刻異常通知手段22は、時刻補正手段12により時刻補正がされた後も、自装置の時刻が、自装置が他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに該当する場合、自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書(レスキュー証明書26)による暗号化通信で、新しい電子証明書の発行を要求する機能(電子証明書発行要求手段)も有する。このように、補正後の結果から電子証明書の有効期限を確認することで、有効期限の切れていない電子証明書の更新を行うことを防ぐことができる。また、暗号化通信によって新しい電子証明書発行の傍受を防ぐことができる。   In addition, the time abnormality notifying unit 22 has the time of its own device after the time correction unit 12 corrects the time, and the electronic certificate held by the own device for performing encrypted communication with another device has expired. If this is the case, a function that requests the higher-level device that manages the device itself to issue a new electronic certificate by encrypted communication using a special electronic certificate (rescue certificate 26) that is not time-checked (rescue certificate 26). Electronic certificate issuing request means). Thus, by checking the validity period of the electronic certificate from the corrected result, it is possible to prevent the electronic certificate that has not expired from being updated. Further, it is possible to prevent interception of new electronic certificate issuance by encrypted communication.

さらに、この時刻異常通知手段22は、自装置によって管理される下位装置からの問い合わせに対して応答する機能(応答手段)も有し、時刻補正手段12により自装置の時刻が補正された後に、下位装置からの問い合わせに対して、自装置の時刻を応答する。よって、下位装置へ伝える時刻を正確なものにすることができる。   Further, the time abnormality notifying means 22 also has a function (response means) for responding to inquiries from lower devices managed by the own device, and after the time of the own device is corrected by the time correcting means 12, In response to an inquiry from a lower-level device, the time of its own device is returned. Therefore, it is possible to make the time transmitted to the lower device accurate.

本実施形態の時刻同期装置は、図2に示すように、有効期限切れの電子証明書を更新できなかった場合、他装置に対して、時刻チェックが行なわれない特別な電子証明書(レスキュー証明書26)による暗号化通信で、自装置の停止を通知し、その通知後、自装置を停止する自装置停止手段28を有する。また、自装置の停止を報知する手段(自装置停止報知手段)として、自装置停止の旨を画面表示する停止画面表示手段29、及び、LEDを点灯する停止LED点灯手段30を有する。よって、自装置の時刻を正しく補正しても正常に動作することのできなくなった状態の場合に、自装置に関係のある他装置への通知と、自装置においてLEDや画面による停止の表示とを行うことで、自装置が動作不能であることを周囲やユーザに知らせることができる。   As shown in FIG. 2, the time synchronization apparatus according to the present embodiment is a special electronic certificate (rescue certificate) that is not time-checked to other apparatuses when an expired electronic certificate cannot be updated. 26) It has own device stop means 28 for notifying the stop of the own device by the encrypted communication according to 26) and stopping the own device after the notification. Further, as means for notifying the stop of the own apparatus (own apparatus stop notifying means), there are a stop screen display means 29 for displaying a message indicating that the own apparatus is stopped, and a stop LED lighting means 30 for turning on the LED. Therefore, in the case where it is not possible to operate normally even if the time of the own device is corrected correctly, notification to other devices related to the own device and display of stoppage by LED or screen in the own device By performing the above, it is possible to notify the surroundings and the user that the device is inoperable.

以上説明したように、本実施形態の時刻同期装置は、他装置(上位装置や下位装置)と通信を行う場合に、他装置と時刻の同期を取る機能を備えた時刻同期装置であって、自装置(時刻同期装置自身)の時刻を計測する内部時計11と、自装置を管理する上位装置の時刻を取得する上位装置時刻取得手段16と、内部時計11の時刻補正が必要な契機を検知する契機検知機能を有する時刻比較手段13と、時刻比較手段13の契機検知機能により時刻補正が必要な契機が検知された場合、内部時計11の時刻補正として、自装置の時刻を上位装置の時刻に補正する時刻補正手段と、を主たる構成とすることを特徴とする。   As described above, the time synchronization apparatus according to the present embodiment is a time synchronization apparatus having a function of synchronizing time with another apparatus when communicating with another apparatus (higher-order apparatus or lower-order apparatus). Internal clock 11 that measures the time of its own device (time synchronization device itself), upper device time acquisition means 16 that acquires the time of the higher-level device that manages its own device, and triggers that require time correction of internal clock 11 are detected When the time comparison means 13 having an opportunity detection function and the opportunity detection function of the time comparison means 13 detect an opportunity that requires time correction, the time of the own device is set as the time of the host device as time correction of the internal clock 11. And a time correction means for correcting to a main structure.

ここで、本時刻同期装置の主たる特徴である「時刻比較手段13の契機検知機能」について詳細に説明する。契機検知機能は、上述したように、内部時計11の時刻補正(時刻同期)が必要な契機(タイミング)を検知する機能である。そして、この機能により、以下に説明する所定の契機が検知された場合に、時刻補正手段12により、内部時計11で計測されている自装置の時刻が、上位装置時刻取得手段16により取得された上位装置の時刻に補正(同期)される。   Here, “the trigger detection function of the time comparison unit 13”, which is a main feature of the present time synchronization apparatus, will be described in detail. As described above, the trigger detection function is a function that detects a trigger (timing) that requires time correction (time synchronization) of the internal clock 11. When the predetermined trigger described below is detected by this function, the time of the own device measured by the internal clock 11 is acquired by the host device time acquisition unit 16 by the time correction unit 12. It is corrected (synchronized) with the time of the host device.

検知例1として、時刻比較機能は、上位装置時刻取得手段16により取得された上位装置の時刻と、内部時計11により計測された自装置の時刻とを比較し、契機検知機能は、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、判断の結果、両時刻の差が許容時刻誤差の範囲内ではない場合を、時刻補正が必要な契機として検知する。   As a detection example 1, the time comparison function compares the time of the host device acquired by the host device time acquisition means 16 with the time of its own device measured by the internal clock 11, and the trigger detection function It is determined whether or not the difference is within a predetermined allowable time error range, and if the result of the determination is that the difference between the two times is not within the allowable time error range, it is detected as a trigger that requires time correction.

よって、検知例1によれば、時刻補正が必要な時に上位装置の時刻と同期をとっているので、装置の時刻を正しく保つことができる。   Therefore, according to the detection example 1, since the time of the host device is synchronized when time correction is necessary, the time of the device can be kept correct.

検知例2として、契機検知機能は、上位装置時刻取得手段16により取得された上位装置の時刻とともに所定の情報(重要情報など)を記憶媒体20に記憶する時を、時刻補正が必要な契機として検知する。   As a detection example 2, the trigger detection function uses a time at which time correction is required as a time when predetermined information (such as important information) is stored in the storage medium 20 together with the time of the host device acquired by the host device time acquisition unit 16. Detect.

よって、検知例2によれば、記憶媒体20に保存される情報の時刻を正しいものに保証できる。   Therefore, according to the detection example 2, it is possible to ensure that the time of information stored in the storage medium 20 is correct.

検知例3として、時刻比較機能は、自装置が他装置と暗号化通信を行うために保持する電子証明書の有効期限と、内部時計により計測された自装置の時刻とを比較し、契機検知機能は、自装置の時刻が電子証明書の有効期限の範囲内であるか否かを判断し、判断の結果、自装置の時刻が電子証明書の有効期限の範囲内ではない場合を、時刻補正が必要な契機として検知する。   As a detection example 3, the time comparison function compares the expiration date of the electronic certificate held by the own device for performing encrypted communication with another device and the time of the own device measured by the internal clock, and detects the trigger. The function determines whether or not the time of its own device is within the validity period of the electronic certificate, and if the result of the determination is that the time of its own device is not within the validity period of the electronic certificate, Detected as an opportunity for correction.

よって、検知例3によれば、自装置の現在時刻が電子証明書の有効期限の範囲外の時を、時刻補正が必要な契機としているので、自装置が電子証明書の有効期限外の時間で動くことを防ぐことができる。   Therefore, according to the detection example 3, since the time when the current time of the own device is outside the range of the validity period of the electronic certificate is necessary as the time correction, the time when the own device is outside the validity period of the electronic certificate. Can be prevented from moving in.

検知例4として、時刻比較機能は、自装置が他装置と電子証明書を用いて暗号化通信を行う時に、他装置から送られてきた電子証明書の有効期限と、内部時計により計測された自装置の時刻とを比較し、契機検知機能は、自装置の時刻が電子証明書の有効期限の範囲内であるか否かを判断し、判断の結果、自装置の時刻が電子証明書の有効期限の範囲内ではない場合を、時刻補正が必要な契機として検知する。   As detection example 4, the time comparison function is measured by the expiration date of the electronic certificate sent from the other device and the internal clock when the device performs encrypted communication with the other device using the electronic certificate. The trigger detection function compares the time of its own device and determines whether the time of its own device is within the validity period of the electronic certificate. When it is not within the range of the expiration date, it is detected as an opportunity that requires time correction.

よって、検知例4によれば、自装置の現在時刻が他装置から送られてきた電子証明書の有効期限の範囲外の時を、時刻補正が必要な契機としているので、他装置の電子証明書の保証と拒絶を正しくすることができる。   Therefore, according to the detection example 4, since the time when the current time of the own device is out of the validity period of the electronic certificate sent from the other device is an opportunity that requires time correction, the electronic certificate of the other device is used. Can guarantee and reject the certificate correctly.

検知例5として、時刻比較機能は、自装置によって管理される下位装置との通信時に、下位装置から送られてくる情報の中に含まれる下位装置の時刻と、内部時計により計測された自装置の時刻とを比較し、契機検知機能は、下位装置の時刻を判断し、判断の結果、下位装置の時刻が、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知する。   As a detection example 5, the time comparison function uses the time of the lower device included in the information sent from the lower device and the own device measured by the internal clock when communicating with the lower device managed by the own device. The trigger detection function determines the time of the lower device, and if the result of the determination is that the time of the lower device is later than the time of the own device, or is past the predetermined time Is detected as an opportunity that requires time correction.

よって、検知例5によれば、自装置の現在時刻と、他装置から送られてくる情報中に含まれる他装置の時刻とを比較した結果を、時刻補正の契機としているので、自装置あるいは他装置の時刻の異常を検知することができる。   Therefore, according to the detection example 5, the result of comparing the current time of the own device and the time of the other device included in the information transmitted from the other device is used as a trigger for time correction. An abnormality in the time of another device can be detected.

検知例6として、時刻比較機能は、他装置との通信時に、他装置から送られてくるパケットのタイムスタンプと、内部時計により計測された自装置の時刻とを比較し、契機検知機能は、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、判断の結果、両時刻の差が許容時刻誤差の範囲内ではない場合を、時刻補正が必要な契機として検知する。   As a detection example 6, the time comparison function compares the time stamp of the packet sent from the other device with the time of the own device measured by the internal clock at the time of communication with the other device. It is determined whether the difference between the two times is within the range of the allowable time error, and if the result of the determination is that the difference between the two times is not within the range of the allowable time error, it is detected as a trigger that requires time correction. To do.

よって、検知例6によれば、自装置の現在時刻と、他装置との通信パケットのタイムスタンプとを比較した結果を、時刻補正の契機としているので、検知例4、5で検知することのできない通信時の自装置、あるいは他装置の時刻の異常を検知することができる。   Therefore, according to the detection example 6, since the result of comparing the current time of the own device and the time stamp of the communication packet with the other device is an opportunity for time correction, the detection examples 4 and 5 It is possible to detect an abnormality in the time of the own device or other device during communication that cannot be performed.

検知例7として、契機検知機能は、自装置の時刻が異常である旨の通知を他装置から受け取った時を、時刻補正が必要な契機として検知する。   As a detection example 7, the trigger detection function detects when a notification that the time of its own device is abnormal is received from another device as a trigger that requires time correction.

よって、検知例7によれば、他装置からの時刻異常の通知の受信を、時刻補正の契機としているので、装置自身が検知できない時刻異常を検知することができる。   Therefore, according to the detection example 7, the reception of the notification of the time abnormality from the other device is used as a trigger for the time correction, so that the time abnormality that cannot be detected by the device itself can be detected.

検知例8として、契機検知機能は、単調増加クロックによるタイマにより計測される一定周期毎を、時刻補正が必要な契機として検知する。   As a detection example 8, the trigger detection function detects a fixed period measured by a timer with a monotonically increasing clock as a trigger that requires time correction.

よって、検知例8によれば、装置の保持する時計に影響を受けない定期的な時刻補正の契機を持つので、定期的に時刻が補正されること、時計に基づいたスケジュール(例えば、他装置への通信)が時計の巻き戻りなどで実行されず(検知例4・5・6など)時刻合わせもいつまでも発生しない可能性があるが、それをカバーすることができる。   Therefore, according to the detection example 8, since there is an opportunity for periodic time correction that is not affected by the clock held by the apparatus, the time is periodically corrected, and a schedule based on the clock (for example, another apparatus) Communication) is not executed due to clock rewinding or the like (detection examples 4, 5, 6, etc.), there is a possibility that time adjustment will not occur indefinitely, but this can be covered.

検知例9として、契機検知機能は、自装置が起動した時を、時刻補正が必要な契機として検知する。   As detection example 9, the trigger detection function detects when the own apparatus is started as a trigger that requires time correction.

よって、検知例9によれば、電源が切れている時に時計の時刻情報を維持するのでの電池が切れていて、時刻がデフォルトに戻っている場合、あるいは、元々電源が切れている時の時計の時刻情報を保持しない場合、起動時を時刻補正の契機としているので、上記場合の時刻を正しく補正することができる。   Therefore, according to the detection example 9, when the power is turned off, the time information of the clock is maintained, the battery is dead, and the time is returned to the default, or when the power is originally turned off. When the time information is not held, the time of startup is used as a trigger for time correction, so that the time in the above case can be corrected correctly.

検知例10として、契機検知機能は、入力操作受付手段19にて内部時計の時刻及びタイムゾーンを設定変更する操作が受け付けられた時を、時刻補正が必要な契機として検知する。   As detection example 10, the trigger detection function detects when an operation for setting and changing the time and time zone of the internal clock is received by the input operation reception unit 19 as a trigger that requires time correction.

よって、検知例10によれば、画面等からの入力操作によって、内部時計11の時刻に関わる情報が変更された時を、時刻補正の契機としているので、操作間違いによる時刻のズレを防止することができる。   Therefore, according to the tenth detection example, when the information related to the time of the internal clock 11 is changed by an input operation from the screen or the like, the time correction is used as an opportunity to correct the time. Can do.

検知例11によれば、時刻比較機能は、自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、内部時計により計測された自装置の時刻とを比較し、契機検知機能は、ファイル及びディレクトリのタイムスタンプを判断し、判断の結果、ファイル及びディレクトリのタイムスタンプが、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知する。   According to the detection example 11, the time comparison function compares the time stamp of the file and directory stored in the storage medium accessible to the own device with the time of the own device measured by the internal clock, and detects the trigger. The function determines the time stamp of the file and directory. As a result of the determination, if the time stamp of the file and directory is later than the time of its own device, or if it is past the predetermined time. Detected as an opportunity that requires time correction.

よって、検知例11によれば、自装置の現在時刻と、記憶媒体20のファイルのタイムスタンプを比較した結果から時刻の異常を検出し、時刻補正の契機としているので、ファイルへのアクセス毎に時刻情報の補正を行うことができる。   Therefore, according to the detection example 11, since the time abnormality is detected from the result of comparing the current time of the own device and the time stamp of the file of the storage medium 20 and the time correction is triggered, each time the file is accessed Time information can be corrected.

検知例12として、時刻比較機能は、自装置が保持するデータの内容に含まれている時刻と、内部時計により計測された自装置の時刻とを比較し、契機検知機能は、自装置が保持するデータの内容に含まれている時刻を判断し、判断の結果、自装置が保持するデータの内容に含まれている時刻が、自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、時刻補正が必要な契機として検知する。   As a detection example 12, the time comparison function compares the time included in the content of data held by the own device with the time of the own device measured by the internal clock, and the trigger detection function is held by the own device. If the time included in the data content held by the own device is later than the time of the own device as a result of the determination, or a predetermined time A case where the time is earlier than the time is detected as an opportunity that requires time correction.

よって、検知例12によれば、自装置の現在時刻と、自装置に保持するデータファイル中の時刻との比較から異常を検出し、時刻補正の契機としているので、時刻情報をもつデータファイルへのアクセス毎に時刻の補正を行うことができる。   Therefore, according to the detection example 12, the abnormality is detected from the comparison between the current time of the own device and the time in the data file held in the own device, and the time correction is triggered. The time can be corrected for each access.

検知例13として、契機検知機能は、自装置の時刻について、下位装置からの問い合わせが有った時を、時刻補正が必要な契機として検知する。   As a detection example 13, the trigger detection function detects when an inquiry from a lower-level device is received for the time of the own device as a trigger that requires time correction.

よって、検知例13によれば、下位装置からの時刻情報の問い合わせがあった時を、時刻補正の契機としているので、下位装置へ伝える時刻情報を正確なものにすることができる。   Therefore, according to the detection example 13, when the time information is inquired from the lower device, the time correction is triggered, so the time information transmitted to the lower device can be made accurate.

なお、上述した各手段及び各機能は、ハードウェア及びソフトウェアのどちらで実現してもよい。ソフトウェアで実現する場合、時刻同期プログラムが本実施形態の時刻同期装置に読み込まれ、時刻同期装置の動作を制御する。時刻同期装置は、この時刻同期プログラムの制御によって、上記各手段及び各機能を実現するとともに、以下に説明する処理動作を実行する。   Each means and each function described above may be realized by either hardware or software. When implemented by software, a time synchronization program is read into the time synchronization apparatus of the present embodiment and controls the operation of the time synchronization apparatus. The time synchronization apparatus realizes the above-described means and functions by the control of the time synchronization program, and executes processing operations described below.

次に、本実施形態の時刻同期装置の基本処理動作について図4を参照して説明する。なお、図4では、上位装置からの時刻情報の取得、自装置の時刻の補正、電子証明書の更新について説明する。   Next, the basic processing operation of the time synchronization apparatus of this embodiment will be described with reference to FIG. In FIG. 4, acquisition of time information from the host device, correction of the time of the own device, and update of the electronic certificate will be described.

上位装置(図1のG/W装置1)に電子証明書を用いた暗号化通信を行い(ステップS1/YES)、暗号化通信に成功したか否かを判断する(ステップS2)。   Encrypted communication using the electronic certificate is performed on the host device (G / W device 1 in FIG. 1) (step S1 / YES), and it is determined whether the encrypted communication is successful (step S2).

ステップS2において、暗号化通信に成功した場合、(ステップS2/成功)、上位装置から、上位装置の内部時計で計測された上位装置の時刻を示す時刻情報を取得する(ステップS3)。そして、時刻同期装置の内部時計11で計測した時刻と、上位装置から取得した時刻情報とを比較し(ステップS4)、両時刻の差が、予め設定された許容範囲以内であるか否かを判断する(ステップS5)。ここで、差が許容範囲内であれば(ステップS5/範囲内)、内部時計11の時刻を修正せずにBへ進む(Bの後の処理については図3参照)。差が許容範囲外であれば(ステップS5/範囲外)、上記検知例1で説明したように、これを時刻補正の契機として検知し、内部時計11の時刻を上位時計の時刻に修正し(ステップS6)、Cへ進む(Cの後の処理については図3参照)。   In step S2, when the encrypted communication is successful (step S2 / success), time information indicating the time of the host device measured by the internal clock of the host device is acquired from the host device (step S3). Then, the time measured by the internal clock 11 of the time synchronizer is compared with the time information acquired from the host device (step S4), and whether or not the difference between the two times is within a preset allowable range. Judgment is made (step S5). Here, if the difference is within the allowable range (step S5 / within range), the process proceeds to B without correcting the time of the internal clock 11 (see FIG. 3 for processing after B). If the difference is outside the permissible range (step S5 / out of range), as described in the detection example 1 above, this is detected as a trigger for time correction, and the time of the internal clock 11 is corrected to the time of the upper clock ( Step S6), proceed to C (see FIG. 3 for processing after C).

ステップS2において、暗号化通信に失敗した場合、(ステップS2/失敗)、HTTPの失敗か否かを判断する(ステップS8)。ここで、HTTPの失敗である場合(ステップS8/YES)、ステップS1に戻り、リトライする。HTTPの成功である場合(ステップS8/NO)、電子証明書(図1の上位装置通信用電子証明書24)が有効期限切れか否かを判断する(ステップS9)。   If the encrypted communication fails in step S2 (step S2 / failure), it is determined whether or not the HTTP has failed (step S8). Here, when it is a failure of HTTP (step S8 / YES), it returns to step S1 and tries again. If the HTTP is successful (step S8 / NO), it is determined whether or not the electronic certificate (the upper apparatus communication electronic certificate 24 in FIG. 1) has expired (step S9).

ステップS9において、電子証明書の有効期限が切れていない場合(ステップS9/NO)、リトライの価値があるかどうかを判断する(ステップS10)。リトライの価値がある場合(ステップS10/YES)、ステップS1へ戻り、リトライする。リトライの価値がない場合(ステップS10/NO)、Dへ進む(Dの後の処理については図3参照)。   In step S9, if the validity period of the electronic certificate has not expired (step S9 / NO), it is determined whether or not it is worth retrying (step S10). If it is worth retrying (step S10 / YES), the process returns to step S1 to retry. If there is no value for retry (step S10 / NO), the process proceeds to D (see FIG. 3 for the process after D).

ステップS9において、電子証明書の有効期限が切れている場合(ステップS9/YES)、自装置に保存している電子証明書を削除する(ステップS11)。削除した電子証明書とは別の「有効期限無しの電子証明書」を用いて上位装置と通信を行い(ステップS12)、通信に成功したか否かを判断する(ステップS13)   In step S9, when the validity period of the electronic certificate has expired (step S9 / YES), the electronic certificate stored in the own device is deleted (step S11). Communication with the host device is performed using a “digital certificate with no expiration date” different from the deleted electronic certificate (step S12), and it is determined whether the communication is successful (step S13).

ステップS13において、通信に失敗した場合(ステップS13/失敗)、リトライの価値があるかどうかを判断する(ステップS14)。リトライの価値がある場合(ステップS14/YES)、ステップS12へ戻り、リトライする。リトライの価値がない場合(ステップS14/NO)、Dへ進む(Dの後の処理については図3参照)。   If communication fails in step S13 (step S13 / failure), it is determined whether or not there is a retry value (step S14). If it is worth retrying (step S14 / YES), the process returns to step S12 to retry. If there is no value for retry (step S14 / NO), the process proceeds to D (see FIG. 3 for the process after D).

ステップS13において、通信に成功した場合(ステップS13/成功)、上位装置から、上位装置の内部時計で計測された上位装置の時刻を示す時刻情報を取得し、時刻同期装置の内部時計11で計測した時刻と、上位装置から取得した時刻情報とを比較し(ステップS15)、両時刻の差が、予め設定された許容範囲以内であるか否かを判断する(ステップS16)。ここで、差が許容範囲内であれば(ステップS16/範囲内)、新しい電子証明書の発行を上位装置へ依頼する(ステップS18)。差が許容範囲外であれば(ステップS16/範囲外)、上記検知例1で説明したように、これを時刻補正の契機として検知し、内部時計11の時刻を上位時計の時刻に修正し(ステップS17)、新しい電子証明書の発行を上位装置へ依頼する(ステップS18)。   In step S13, when communication is successful (step S13 / success), time information indicating the time of the host device measured by the host device's internal clock is acquired from the host device and measured by the internal clock 11 of the time synchronization device. The time thus obtained is compared with the time information acquired from the host device (step S15), and it is determined whether or not the difference between the two times is within a preset allowable range (step S16). Here, if the difference is within the allowable range (step S16 / within range), the host device is requested to issue a new electronic certificate (step S18). If the difference is outside the allowable range (step S16 / out of range), as described in the detection example 1 above, this is detected as a trigger for time correction, and the time of the internal clock 11 is corrected to the time of the upper clock ( In step S17), a higher-level device is requested to issue a new electronic certificate (step S18).

そして、上位装置が新しい電子証明書を発行したか否かを判断する(ステップS19)。新しい電子証明書が発行されない場合(ステップS19/NO)、Fへ進む(Fの後の処理については図3参照)。新しい電子証明書が発行された場合(ステップS19/YES)、電子証明書を新しく発行されたものに更新し(ステップS20)、Eへ進む(Eの後の処理については図3参照)。   Then, it is determined whether or not the host device has issued a new electronic certificate (step S19). When a new electronic certificate is not issued (step S19 / NO), the process proceeds to F (see FIG. 3 for the process after F). When a new electronic certificate is issued (step S19 / YES), the electronic certificate is updated to a newly issued one (step S20), and the process proceeds to E (see FIG. 3 for the processing after E).

次に、図3(a)〜(d)の各フローを参照して、本実施形態の時刻同期装置における、時刻補正の契機及び時刻補正後の処理について説明する。   Next, the timing of time correction and the processing after time correction in the time synchronization apparatus of the present embodiment will be described with reference to the flows of FIGS.

図3(a)は、時刻同期装置の起動時(検知例9)を、時刻補正の契機とする場合である。この場合、時刻補正の契機として検知した後、図4のフローをAから開始する。そして、図4のB〜Eに至った場合は、通常動作を開始する。図4のFに至った場合は、他装置へ自装置の停止を通知し、自装置を停止する。   FIG. 3A shows a case where the time synchronization device is activated (detection example 9) as a trigger for time correction. In this case, after the time correction is detected, the flow of FIG. And when it comes to BE of FIG. 4, a normal operation | movement is started. When the process reaches F in FIG. 4, the other apparatus is notified of the stop of the own apparatus, and the own apparatus is stopped.

図3(b)は、ファイル等の時刻異常を検知した時(検知例11、12)を、時刻補正の契機とする場合である。この場合、時刻補正の契機として検知した後、図4のフローをAから開始する。そして、図4のBに至った場合は、ファイルの重要度に応じて、削除・変更・他装置への通知を行う。図4のC〜Eに至った場合は、通常動作を継続する。図4のFに至った場合は、他装置へ自装置の停止を通知し、自装置を停止する。   FIG. 3B shows a case where a time correction is detected when a time abnormality such as a file is detected (detection examples 11 and 12). In this case, after the time correction is detected, the flow of FIG. When the process reaches B in FIG. 4, deletion / change / notification to other apparatuses is performed according to the importance of the file. When reaching C to E in FIG. 4, the normal operation is continued. When the process reaches F in FIG. 4, the other apparatus is notified of the stop of the own apparatus, and the own apparatus is stopped.

図3(c)は、他装置から時刻異常通知を受信した時(検知例7)、及び、他装置との通信時に時刻異常を検知した時(検知例5、6)を、時刻補正の契機とする場合である。これらの場合、時刻補正の契機として検知した後、図4のフローをAから開始する。そして、図4のBに至った場合は、他装置の異常を検知し、他装置へ時刻異常を通知する。図4のC〜Eに至った場合は、通常動作を継続する。図4のFに至った場合は、他装置へ自装置の停止を通知し、自装置を停止する。   FIG. 3C shows the timing of time correction when a time abnormality notification is received from another device (detection example 7) and when a time abnormality is detected during communication with another device (detection examples 5 and 6). This is the case. In these cases, after detecting the timing of time correction, the flow of FIG. When the process reaches B in FIG. 4, the abnormality of the other apparatus is detected and the time abnormality is notified to the other apparatus. When reaching C to E in FIG. 4, the normal operation is continued. When the process reaches F in FIG. 4, the other apparatus is notified of the stop of the own apparatus, and the own apparatus is stopped.

図3(a)は、定期的(検知例8)、所定の情報の保存時(検知例2)、電子証明書の有効期限チェック時(検知例3、4)、入力操作受付手段(入力画面等)から変更等がされた時(検知例10)、下位装置からの時刻問い合わせがあった時(検知例13)を、時刻補正の契機とする場合である。これらの場合、時刻補正の契機として検知した後、図4のフローをAから開始する。そして、図4のB〜Eに至った場合は、通常動作を継続する。図4のFに至った場合は、他装置へ自装置の停止を通知し、自装置を停止する。   FIG. 3A shows a periodical (detection example 8), a predetermined information storage (detection example 2), an electronic certificate expiration date check (detection examples 3 and 4), an input operation accepting means (input screen). And so on) (detection example 10), and when there is a time inquiry from a lower-level device (detection example 13). In these cases, after detecting the timing of time correction, the flow of FIG. And when it comes to BE of FIG. 4, normal operation | movement is continued. When the process reaches F in FIG. 4, the other apparatus is notified of the stop of the own apparatus, and the own apparatus is stopped.

以上、本発明の実施形態について説明したが、上記実施形態に限定されるものではなく、その要旨を逸脱しない範囲において種々の変形が可能である。   As mentioned above, although embodiment of this invention was described, it is not limited to the said embodiment, A various deformation | transformation is possible in the range which does not deviate from the summary.

本発明の時刻同期装置と、他装置(上位装置・下位装置)との構成例を示す図である。It is a figure which shows the structural example of the time synchronizer of this invention, and another apparatus (high-order apparatus and low-order apparatus). 本発明の時刻同期装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of the time synchronizer of this invention. 本発明の時刻同期装置の基本動作を示すフローチャートである。It is a flowchart which shows the basic operation | movement of the time synchronizer of this invention. 本発明の時刻同期装置における時刻補正の契機及び時刻補正後の動作をそれぞれ示すフローチャートである。It is a flowchart which shows the opportunity of time correction in the time synchronization apparatus of this invention, and the operation | movement after time correction, respectively.

符号の説明Explanation of symbols

1 G/W装置(上位装置)
2 仲介装置(時刻同期装置)
3 画像印刷機器(下位装置)
4 インターネット
5 画像印刷機器(時刻同期装置)
10 内蔵電池
11 内部時計
12 時刻補正手段
13 時刻比較手段
14 装置起動手段
15 スケジューラ
16 上位装置時刻取得手段
17 単調増加クロック
18 電子証明書更新手段
19 入力操作受付手段
20 記憶媒体
21 比較対象時刻取得手段
22 時刻異常通知手段
23 上位装置通信手段
24 上位装置通信用電子証明書
25 下位装置通信手段
26 レスキュー証明書
27 下位装置通信用電子証明書
28 自装置停止手段
29 停止画面表示手段
30 停止LED点灯手段
1 G / W device (host device)
2 Mediation device (time synchronization device)
3 Image printing equipment (lower device)
4 Internet 5 Image printing equipment (time synchronization device)
DESCRIPTION OF SYMBOLS 10 Built-in battery 11 Internal clock 12 Time correction means 13 Time comparison means 14 Apparatus start-up means 15 Scheduler 16 High-order apparatus time acquisition means 17 Monotonically increasing clock 18 Electronic certificate update means 19 Input operation reception means 20 Storage medium 21 Comparison target time acquisition means 22 Time Abnormal Notification Unit 23 Host Device Communication Unit 24 Host Device Communication Electronic Certificate 25 Subordinate Device Communication Unit 26 Rescue Certificate 27 Subordinate Device Communication Electronic Certificate 28 Own Device Stop Unit 29 Stop Screen Display Unit 30 Stop LED Lighting Unit

Claims (67)

他装置と通信を行う場合に、該他装置と時刻の同期を取る機能を備えた時刻同期装置であって、
自装置の時刻を計測する内部時計と、
前記自装置を管理する上位装置の時刻を取得する上位装置時刻取得手段と、
前記内部時計の時刻補正が必要な契機を検知する契機検知手段と、
前記契機検知手段により前記時刻補正が必要な契機が検知された場合、前記内部時計の時刻補正として、前記自装置の時刻を前記上位装置の時刻に補正する時刻補正手段と、
を有することを特徴とする時刻同期装置。
A time synchronization device having a function of synchronizing time with another device when communicating with the other device,
An internal clock that measures the time of its own device,
Host device time acquisition means for acquiring the time of the host device that manages the host device;
Trigger detection means for detecting a trigger that requires time correction of the internal clock;
When the trigger that detects the time correction is detected by the trigger detection unit, the time correction unit that corrects the time of the own device to the time of the host device as the time correction of the internal clock;
A time synchronizer characterized by comprising:
前記契機検知手段は、
前記上位装置時刻取得手段により取得された前記上位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1記載の時刻同期装置。
The opportunity detection means includes
The time of the host device acquired by the host device time acquisition means is compared with the time of the host device measured by the internal clock, and the difference between the two times is within a predetermined allowable time error range. Determine whether or not
2. The time synchronization apparatus according to claim 1, wherein, as a result of the determination, a case where the difference between the two times is not within the range of the allowable time error is detected as an opportunity that requires the time correction.
前記契機検知手段は、
前記上位装置時刻取得手段により取得された前記上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、前記時刻補正が必要な契機として検知することを特徴とする請求項1又は2記載の時刻同期装置。
The opportunity detection means includes
The time when the predetermined information is stored in a storage medium together with the time of the host device acquired by the host device time acquisition unit is detected as an opportunity for the time correction. Time synchronizer.
前記契機検知手段は、
前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から3のいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
The self device compares the expiration date of the electronic certificate held for performing encrypted communication with the other device and the time of the self device measured by the internal clock, and the time of the self device is the electronic device. Determine if it is within the validity period of the certificate,
4. The apparatus according to claim 1, wherein, as a result of the determination, a case where the time of the own device is not within a range of an expiration date of the electronic certificate is detected as an opportunity for the time correction. 5. The time synchronization device according to item.
前記契機検知手段は、
前記自装置が前記他装置と電子証明書を用いて暗号化通信を行う時に、該他装置から送られてきた電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から4のいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
When the device itself performs encrypted communication with the other device using the electronic certificate, the expiration date of the electronic certificate sent from the other device, and the time of the device measured by the internal clock To determine whether the time of the device is within the validity period of the electronic certificate,
5. The apparatus according to claim 1, wherein, as a result of the determination, a case where the time of the own device is not within a range of an expiration date of the electronic certificate is detected as an opportunity for the time correction. The time synchronization device according to item.
前記契機検知手段は、
前記自装置によって管理される下位装置との通信時に、該下位装置から送られてくる情報の中に含まれる下位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記下位装置の時刻を判断し、
前記判断の結果、前記下位装置の時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から5のいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
When communicating with a lower device managed by the own device, the time of the lower device included in the information sent from the lower device is compared with the time of the own device measured by the internal clock. , Determine the time of the subordinate device,
As a result of the determination, a case where the time of the lower-order device is later than the time of the own device or a time earlier than a predetermined time is detected as an opportunity for the time correction. The time synchronizer according to claim 1, wherein:
前記契機検知手段は、
前記他装置との通信時に、該他装置から送られてくるパケットのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から6のいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
When communicating with the other device, the time stamp of the packet sent from the other device is compared with the time of the own device measured by the internal clock, and the difference between the two times is a predetermined allowable time error. Determine whether it is within range,
7. The method according to claim 1, wherein, as a result of the determination, a case where the difference between the two times is not within the range of the allowable time error is detected as an opportunity that requires the time correction. 8. Time synchronizer.
前記契機検知手段は、
前記自装置の時刻が異常である旨の通知を前記他装置から受け取った時を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から7のいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
8. The time according to claim 1, wherein a time when the time correction is necessary is detected when a notification that the time of the own device is abnormal is received from the other device. 9. Time synchronizer.
前記内部時計の影響を受けない単調増加クロックによるタイマを有し、
前記契機検知手段は、
前記単調増加クロックによるタイマにより計測される一定周期毎を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から8のいずれか1項に記載の時刻同期装置。
Having a timer with a monotonically increasing clock not affected by the internal clock;
The opportunity detection means includes
9. The time synchronization apparatus according to claim 1, wherein each time period measured by a timer based on the monotonically increasing clock is detected as an opportunity that requires time correction. 9.
前記契機検知手段は、
前記自装置が起動した時を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から9のいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
The time synchronization apparatus according to any one of claims 1 to 9, wherein a time when the own apparatus is activated is detected as a trigger that requires the time correction.
所定の操作を受け付け、前記内部時計の時刻を変更可能な時刻変更手段を有し、
前記契機検知手段は、
前記時刻変更手段にて前記内部時計の時刻及びタイムゾーンを変更する操作が受け付けられた時を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から10のいずれか1項に記載の時刻同期装置。
Having a time changing means for accepting a predetermined operation and changing the time of the internal clock;
The opportunity detection means includes
11. The time when the time changing means receives an operation for changing the time and time zone of the internal clock as an opportunity that requires the time correction. The time synchronizer described in 1.
前記契機検知手段は、
前記自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、前記ファイル及び前記ディレクトリのタイムスタンプを判断し、
前記判断の結果、前記ファイル及び前記ディレクトリのタイムスタンプが、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から11のいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
The time stamp of the file and the directory stored in the storage medium accessible to the device is compared with the time of the device measured by the internal clock to determine the time stamp of the file and the directory. ,
As a result of the determination, if the time stamp of the file and the directory is later than the time of the own device, or if it is past the predetermined time, the time correction is necessary. The time synchronization apparatus according to claim 1, wherein the time synchronization apparatus detects the time synchronization apparatus.
前記契機検知手段は、
前記自装置が保持するデータの内容に含まれている時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記自装置が保持するデータの内容に含まれている時刻を判断し、
前記判断の結果、前記自装置が保持するデータの内容に含まれている時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から12のいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
The time included in the content of data held by the own device is compared with the time of the own device measured by the internal clock, and the time contained in the content of data held by the own device is determined. Judgment
As a result of the determination, when the time included in the content of the data held by the own device is later than the time of the own device, or when the time is past the predetermined time, The time synchronization apparatus according to any one of claims 1 to 12, wherein the time synchronization apparatus is detected as an opportunity that requires time correction.
前記自装置によって管理される下位装置からの問い合わせに対して応答する応答手段を有し、
前記契機検知手段は、
前記自装置の時刻について前記下位装置からの問い合わせが有った時を、前記時刻補正が必要な契機として検知し、
前記応答手段は、
前記時刻補正手段により前記自装置の時刻が補正された後に、前記下位装置からの問い合わせに対して、前記自装置の時刻を応答することを特徴とする請求項1から13のいずれか1項に記載の時刻同期装置。
Response means for responding to an inquiry from a lower-level device managed by the device;
The opportunity detection means includes
The time when there is an inquiry from the lower device about the time of the own device is detected as an opportunity for the time correction,
The response means includes
14. The time according to any one of claims 1 to 13, wherein the time of the device itself is responded to an inquiry from the lower device after the time of the device itself is corrected by the time correction means. The time synchronizer described.
前記時刻補正手段による時刻補正の結果、前記自装置の時刻が正常である場合、
前記他装置に対して、前記他装置の時刻異常、又は、前記他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知手段を有することを特徴とする請求項1から14のいずれか1項に記載の時刻同期装置。
As a result of time correction by the time correction means, when the time of the own device is normal,
15. The apparatus according to claim 1, further comprising a first time abnormality notification unit that notifies the other device of a time abnormality of the other device or an expiration date of the electronic certificate of the other device. The time synchronizer of Claim 1.
前記時刻補正手段による時刻補正の結果、前記内部時計の時刻がデフォルトに戻っていた場合、
前記自装置の電源が入っていない時に前記内部時計を維持するための内蔵電池の異常として検知し、その旨を、前記自装置を管理する上位装置に通知する第2の時刻異常通知手段を有することを特徴とする請求項1から15のいずれか1項に記載の時刻同期装置。
As a result of time correction by the time correction means, when the time of the internal clock has returned to the default,
A second time abnormality notification means for detecting an abnormality of the internal battery for maintaining the internal clock when the power of the own device is not turned on and notifying the host device managing the own device to that effect The time synchronizer according to claim 1, wherein the time synchronizer is configured as described above.
前記時刻補正手段は、
前記自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、前記内部時計の影響を受けない単調増加クロックを用いて計測し、該計測の結果を通信処理によって生じるタイムラグとして、前記上位装置から取得した時刻に加えてから前記時刻補正を行うことを特徴とする請求項1から16のいずれか1項に記載の時刻同期装置。
The time correction means includes
The time required for reception processing during time inquiry communication to the host device that manages the device itself is measured using a monotonically increasing clock that is not affected by the internal clock, and the measurement result is used as a time lag caused by communication processing. The time synchronization apparatus according to any one of claims 1 to 16, wherein the time correction is performed after being added to the time acquired from the host apparatus.
前記内部時計の精度と、前記自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、前記許容時刻誤差として設定できる許容時刻誤差設定手段を有することを特徴とする請求項2から17記載の時刻同期装置。   Of the accuracy of the internal clock and the accuracy of the internal clock of the host device that manages the device, up to ± N (N: a predetermined number) times the minimum digit of the coarser accuracy is used as the allowable time error. 18. The time synchronization apparatus according to claim 2, further comprising an allowable time error setting means that can be set. 前記上位装置時刻取得手段により前記上位装置から前記上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、前記上位装置の時刻の正当性を保護するとともに、前記上位装置の時刻の改竄を防止するセキュリティ手段を有することを特徴とする請求項1から18のいずれか1項に記載の時刻同期装置。   When the time of the host device is acquired from the host device by the host device time acquisition means, the validity of the time of the host device is protected by using mutual authentication and encrypted communication using an electronic certificate. The time synchronization apparatus according to claim 1, further comprising security means for preventing the time of the upper apparatus from being falsified. 前記時刻補正手段により前記時刻補正がされた後も、前記自装置の時刻が、前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに該当する場合、
前記自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求手段を有することを特徴とする請求項1から19のいずれか1項に記載の時刻同期装置。
Even after the time correction by the time correction means, the time of the own device falls under the expiration of an electronic certificate held by the own device for performing encrypted communication with the other device,
It has electronic certificate issuance request means for requesting the issuance of a new electronic certificate by encrypted communication using a special electronic certificate that is not time-checked to the host device that manages the device. The time synchronizer according to any one of claims 1 to 19.
前記時刻補正手段により前記時刻補正がされた後も、前記自装置がアクセス可能な記憶媒体あるいは前記自装置に記憶される、ファイル又はデータの時刻が異常であった場合、
前記ファイル又は前記データのもつ重要度に基づいて、該ファイル又は該データを削除あるいは更新するファイル・データ削除更新手段、もしくは、前記自装置を管理する上位システムに対して前記ファイル又は前記データの時刻異常を通知する第3の時刻異常通知手段を有することを特徴とする請求項1から20のいずれか1項に記載の時刻同期装置。
After the time correction by the time correction means, if the time of the file or data stored in the storage medium accessible to the own device or the own device is abnormal,
Based on the importance of the file or the data, a file / data deletion / updating unit for deleting or updating the file or the data, or the time of the file or the data to the host system managing the device 21. The time synchronization apparatus according to claim 1, further comprising third time abnormality notification means for notifying abnormality.
有効期限切れの電子証明書を更新できなかった場合、
前記他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、前記自装置の停止を通知する自装置停止通知手段と、
前記自装置停止通知手段により通知した後、前記自装置を停止する自装置停止手段と、
前記自装置の停止を報知する自装置停止報知手段と、
を有することを特徴とする請求項1から21のいずれか1項に記載の時刻同期装置。
If you are unable to renew an expired digital certificate,
Self-device stop notification means for notifying the stop of the self-device in encrypted communication using a special electronic certificate that is not time-checked to the other device;
After notifying by the own apparatus stop notification means, the own apparatus stopping means for stopping the own apparatus;
Own device stop notification means for notifying the stop of the own device;
The time synchronizer according to any one of claims 1 to 21, wherein the time synchronizer is provided.
請求項1から22のいずれか1項に記載の時刻同期装置を有することを特徴とする時刻同期システム。   23. A time synchronization system comprising the time synchronization apparatus according to claim 1. 内部時計を用いて自装置の時刻を計測する時刻同期装置が、他装置と通信を行う場合に、前記自装置を管理する上位装置の時刻を取得し、該他装置と時刻の同期を取る時刻同期方法であって、
前記内部時計の時刻補正が必要な契機を検知する契機検知ステップと、
前記契機検知ステップにより前記時刻補正が必要な契機が検知された場合、前記内部時計の時刻補正として、前記自装置の時刻を前記上位装置の時刻に補正する時刻補正ステップと、
を有することを特徴とする時刻同期方法。
When a time synchronization device that measures the time of its own device using an internal clock communicates with another device, it acquires the time of the host device that manages the device and synchronizes the time with the other device. A synchronization method,
Trigger detection step of detecting a trigger that requires time correction of the internal clock;
A time correction step of correcting the time of the own device to the time of the host device, as the time correction of the internal clock, when the trigger that requires the time correction is detected by the trigger detection step;
A time synchronization method characterized by comprising:
前記契機検知ステップは、
前記上位装置から取得した前記上位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項24記載の時刻同期方法。
The opportunity detection step includes
The time of the host device acquired from the host device is compared with the time of the host device measured by the internal clock, and it is determined whether or not the difference between both times is within a predetermined allowable time error range. And
25. The time synchronization method according to claim 24, wherein when the difference between the two times is not within the range of the allowable time error as a result of the determination, the time synchronization method is detected as an opportunity for the time correction.
前記契機検知ステップは、
前記上位装置から取得した前記上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、前記時刻補正が必要な契機として検知することを特徴とする請求項24又は25記載の時刻同期方法。
The opportunity detection step includes
26. The time synchronization method according to claim 24, wherein the time when the predetermined information is stored in a storage medium together with the time of the host device acquired from the host device is detected as an opportunity for the time correction.
前記契機検知ステップは、
前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から26のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
The self device compares the expiration date of the electronic certificate held for performing encrypted communication with the other device and the time of the self device measured by the internal clock, and the time of the self device is the electronic device. Determine if it is within the validity period of the certificate,
27. Any one of claims 24 to 26, wherein, as a result of the determination, a case where the time of the self-apparatus is not within the validity period of the electronic certificate is detected as an opportunity for the time correction. The time synchronization method according to item.
前記契機検知ステップは、
前記自装置が前記他装置と電子証明書を用いて暗号化通信を行う時に、該他装置から送られてきた電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から27のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
When the device itself performs encrypted communication with the other device using the electronic certificate, the expiration date of the electronic certificate sent from the other device, and the time of the device measured by the internal clock To determine whether the time of the device is within the validity period of the electronic certificate,
28. The method according to claim 24, wherein when the time of the device is not within the validity period of the electronic certificate as a result of the determination, the time is detected as an opportunity for the time correction. The time synchronization method according to item.
前記契機検知ステップは、
前記自装置が管理する下位装置との通信時に、該下位装置から送られてくる情報の中に含まれる下位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記下位装置の時刻を判断し、
前記判断の結果、前記下位装置の時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から28のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
When communicating with the lower device managed by the own device, the time of the lower device included in the information sent from the lower device is compared with the time of the own device measured by the internal clock, Determining the time of the subordinate device;
As a result of the determination, a case where the time of the lower-order device is later than the time of the own device or a time earlier than a predetermined time is detected as an opportunity for the time correction. The time synchronization method according to any one of claims 24 to 28, wherein:
前記契機検知ステップは、
前記他装置との通信時に、該他装置から送られてくるパケットのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から29のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
When communicating with the other device, the time stamp of the packet sent from the other device is compared with the time of the own device measured by the internal clock, and the difference between the two times is a predetermined allowable time error. Determine whether it is within range,
30. The method according to any one of claims 24 to 29, wherein, as a result of the determination, a case where the difference between the two times is not within the range of the allowable time error is detected as an opportunity that requires the time correction. Time synchronization method.
前記契機検知ステップは、
前記自装置の時刻が異常である旨の通知を前記他装置から受け取った時を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から30のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
31. The time according to any one of claims 24 to 30, wherein a time when the time correction is necessary is detected when a notification that the time of the own device is abnormal is received from the other device. Time synchronization method.
前記契機検知ステップは、
前記内部時計の影響を受けない単調増加クロックによるタイマにより計測される一定周期毎を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から31のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
32. The apparatus according to claim 24, wherein a predetermined period measured by a timer using a monotonically increasing clock that is not affected by the internal clock is detected as an opportunity that requires time correction. Time synchronization method.
前記契機検知ステップは、
前記自装置が起動した時を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から32のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
The time synchronization method according to any one of claims 24 to 32, wherein the time when the device starts is detected as an opportunity that requires the time correction.
前記契機検知ステップは、
前記内部時計の時刻及びタイムゾーンを変更する操作を受け付けた時を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から33のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
The time synchronization method according to any one of claims 24 to 33, wherein a time when an operation for changing a time and a time zone of the internal clock is received is detected as an opportunity for the time correction.
前記契機検知ステップは、
前記自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、前記ファイル及び前記ディレクトリのタイムスタンプを判断し、
前記判断の結果、前記ファイル及び前記ディレクトリのタイムスタンプが、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から34のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
The time stamp of the file and the directory stored in the storage medium accessible to the device is compared with the time of the device measured by the internal clock to determine the time stamp of the file and the directory. ,
As a result of the determination, if the time stamp of the file and the directory is later than the time of the own device, or if it is past the predetermined time, the time correction is necessary. 35. The time synchronization method according to claim 24, wherein the time synchronization method is detected.
前記契機検知ステップは、
前記自装置が保持するデータの内容に含まれている時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記自装置が保持するデータの内容に含まれている時刻を判断し、
前記判断の結果、前記自装置が保持するデータの内容に含まれている時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項24から35のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
The time included in the content of data held by the own device is compared with the time of the own device measured by the internal clock, and the time contained in the content of data held by the own device is determined. Judgment
As a result of the determination, when the time included in the content of the data held by the own device is later than the time of the own device, or when the time is past the predetermined time, The time synchronization method according to any one of claims 24 to 35, wherein the time synchronization method is detected as an opportunity that requires time correction.
前記契機検知ステップは、
前記自装置の時刻について前記下位装置からの問い合わせが有った時を、前記時刻補正が必要な契機として検知し、
前記時刻補正ステップにより前記自装置の時刻が補正された後に、前記下位装置からの問い合わせに対して、前記自装置の時刻を応答する応答ステップを有することを特徴とする請求項24から37のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
The time when there is an inquiry from the lower device about the time of the own device is detected as an opportunity for the time correction,
38. The method according to claim 24, further comprising: a response step of responding to the time of the own device in response to an inquiry from the lower device after the time of the own device is corrected by the time correcting step. The time synchronization method according to claim 1.
前記時刻補正ステップによる時刻補正の結果、前記自装置の時刻が正常である場合、
前記他装置に対して、前記他装置の時刻異常、又は、前記他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知ステップを有することを特徴とする請求項24から37のいずれか1項に記載の時刻同期方法。
As a result of time correction by the time correction step, if the time of the device itself is normal,
38. The method according to claim 24, further comprising a first time abnormality notification step of notifying the other device of time abnormality of the other device or expiration of an electronic certificate of the other device. The time synchronization method according to claim 1.
前記時刻補正ステップによる時刻補正の結果、前記内部時計の時刻がデフォルトに戻っていた場合、
前記自装置の電源が入っていない時に前記内部時計を維持するための内蔵電池の異常として検知し、その旨を、前記自装置を管理する上位装置に通知する第2の時刻異常通知ステップを有することを特徴とする請求項24から38のいずれか1項に記載の時刻同期方法。
As a result of time correction by the time correction step, when the time of the internal clock has returned to the default,
A second time abnormality notification step of detecting an abnormality of the internal battery for maintaining the internal clock when the power of the own device is not turned on and notifying the host device that manages the own device to that effect The time synchronization method according to any one of claims 24 to 38, wherein:
前記時刻補正ステップは、
前記自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、前記内部時計の影響を受けない単調増加クロックを用いて計測し、該計測の結果を通信処理によって生じるタイムラグとして、前記上位装置から取得した時刻に加えてから前記時刻補正を行うことを特徴とする請求項24から39のいずれか1項に記載の時刻同期方法。
The time correction step includes
The time required for reception processing during time inquiry communication to the host device that manages the device itself is measured using a monotonically increasing clock that is not affected by the internal clock, and the measurement result is used as a time lag caused by communication processing. The time synchronization method according to any one of claims 24 to 39, wherein the time correction is performed after being added to the time acquired from the host device.
前記内部時計の精度と、前記自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、前記許容時刻誤差として設定できる許容時刻誤差設定ステップを有することを特徴とする請求項25から40記載の時刻同期方法。   Of the accuracy of the internal clock and the accuracy of the internal clock of the host device that manages the device, up to ± N (N: a predetermined number) times the minimum digit of the coarser accuracy is used as the allowable time error. 41. The time synchronization method according to claim 25, further comprising an allowable time error setting step that can be set. 前記上位装置から前記上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、前記上位装置の時刻の正当性を保護するとともに、前記上位装置の時刻の改竄を防止するセキュリティステップを有することを特徴とする請求項24から41のいずれか1項に記載の時刻同期方法。   When acquiring the time of the host device from the host device, the authenticity of the time of the host device is protected by using mutual authentication and encrypted communication using an electronic certificate, and the time of the host device The time synchronization method according to any one of claims 24 to 41, further comprising: a security step that prevents falsification of the time. 前記時刻補正ステップにより前記時刻補正がされた後も、前記自装置の時刻が、前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに該当する場合、
前記自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求ステップを有することを特徴とする請求項24から42のいずれか1項に記載の時刻同期方法。
Even after the time correction by the time correction step, the time of the own device falls under the expiration of the electronic certificate held by the own device for performing encrypted communication with the other device,
An electronic certificate issuance requesting step for requesting issuance of a new electronic certificate by encrypted communication using a special electronic certificate that is not time-checked to the host device that manages the self-device. The time synchronization method according to any one of claims 24 to 42.
前記時刻補正ステップにより前記時刻補正がされた後も、前記自装置がアクセス可能な記憶媒体あるいは前記自装置に記憶される、ファイル又はデータの時刻が異常であった場合、
前記ファイル又は前記データのもつ重要度に基づいて、該ファイル又は該データを削除あるいは更新するファイル・データ削除更新ステップ、もしくは、前記自装置を管理する上位システムに対して前記ファイル又は前記データの時刻異常を通知する第3の時刻異常通知ステップを有することを特徴とする請求項24から43のいずれか1項に記載の時刻同期方法。
Even after the time correction is performed by the time correction step, if the time of the file or data stored in the storage medium accessible by the own device or the own device is abnormal,
Based on the importance of the file or the data, a file / data deletion / updating step for deleting or updating the file or the data, or the time of the file or the data with respect to a host system managing the device 44. The time synchronization method according to claim 24, further comprising a third time abnormality notification step for notifying abnormality.
有効期限切れの電子証明書を更新できなかった場合、
前記他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、前記自装置の停止を通知する自装置停止通知ステップと、
前記自装置停止通知ステップにより通知した後、前記自装置を停止する自装置停止ステップと、
前記自装置の停止を報知する自装置停止報知ステップと、
を有することを特徴とする請求項24から44のいずれか1項に記載の時刻同期方法。
If you are unable to renew an expired digital certificate,
A self-device stop notification step of notifying the stop of the self-device in encrypted communication using a special electronic certificate that is not time-checked to the other device;
After notifying by the own device stop notification step, the own device stop step of stopping the own device;
The own device stop notification step for notifying the stop of the own device;
The time synchronization method according to any one of claims 24 to 44, further comprising:
内部時計を用いて自装置の時刻を計測する時刻同期装置に、他装置と通信を行う場合に、前記自装置を管理する上位装置の時刻を取得させ、該他装置と時刻の同期を取らせるためのプログラムであって、
前記時刻同期装置に、
前記内部時計の時刻補正が必要な契機を検知する契機検知処理と、
前記契機検知処理により前記時刻補正が必要な契機が検知された場合、前記内部時計の時刻補正として、前記自装置の時刻を前記上位装置の時刻に補正する時刻補正処理と、
を実行させることを特徴とするプログラム。
When a time synchronization device that measures the time of its own device using an internal clock communicates with another device, it acquires the time of the host device that manages the device and synchronizes the time with the other device. A program for
In the time synchronization device,
Trigger detection processing for detecting a trigger that requires time correction of the internal clock;
A time correction process for correcting the time of the own apparatus to the time of the host apparatus, as a time correction of the internal clock, when an opportunity requiring the time correction is detected by the trigger detection process;
A program characterized in that is executed.
前記契機検知処理は、
前記上位装置から取得した前記上位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46記載のプログラム。
The trigger detection process is
The time of the host device acquired from the host device is compared with the time of the host device measured by the internal clock, and it is determined whether or not the difference between both times is within a predetermined allowable time error range. And
47. The program according to claim 46, which is a process of detecting when the time correction is necessary when a difference between the two times is not within the range of the allowable time error as a result of the determination.
前記契機検知処理は、
前記上位装置から取得した前記上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46又は47記載のプログラム。
The trigger detection process is
48. The program according to claim 46 or 47, which is a process of detecting when the predetermined information is stored in a storage medium together with the time of the higher-level device acquired from the higher-level device as an opportunity that requires the time correction. .
前記契機検知処理は、
前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から48のいずれか1項に記載のプログラム。
The trigger detection process is
The self device compares the expiration date of the electronic certificate held for performing encrypted communication with the other device and the time of the self device measured by the internal clock, and the time of the self device is the electronic device. Determine if it is within the validity period of the certificate,
The process according to any one of claims 46 to 48, wherein, as a result of the determination, the process detects a case where the time of the self-device is not within the validity period of the electronic certificate as a trigger that requires the time correction. The program according to any one of the above items.
前記契機検知処理は、
前記自装置が前記他装置と電子証明書を用いて暗号化通信を行う時に、該他装置から送られてきた電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から49のいずれか1項に記載のプログラム。
The trigger detection process is
When the device itself performs encrypted communication with the other device using the electronic certificate, the expiration date of the electronic certificate sent from the other device, and the time of the device measured by the internal clock To determine whether the time of the device is within the validity period of the electronic certificate,
The process according to any one of claims 46 to 49, wherein as a result of the determination, the time of the device itself is not within the validity period of the electronic certificate, and is detected as a trigger that requires time correction. The program according to any one of the above items.
前記契機検知処理は、
前記自装置によって管理される下位装置との通信時に、該下位装置から送られてくる情報の中に含まれる下位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記下位装置の時刻を判断し、
前記判断の結果、前記下位装置の時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から50のいずれか1項に記載のプログラム。
The trigger detection process is
When communicating with a lower device managed by the own device, the time of the lower device included in the information sent from the lower device is compared with the time of the own device measured by the internal clock. , Determine the time of the subordinate device,
As a result of the determination, processing for detecting when the time of the lower device is in the future than the time of the own device, or when it is in the past of a predetermined time, as an opportunity for the time correction. The program according to any one of claims 46 to 50, wherein:
前記契機検知処理は、
前記他装置との通信時に、該他装置から送られてくるパケットのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から51のいずれか1項に記載のプログラム。
The trigger detection process is
When communicating with the other device, the time stamp of the packet sent from the other device is compared with the time of the own device measured by the internal clock, and the difference between the two times is a predetermined allowable time error. Determine whether it is within range,
The process according to any one of claims 46 to 51, wherein as a result of the determination, a case where the difference between the two times is not within the range of the allowable time error is detected as an opportunity for the time correction. The program described in the section.
前記契機検知処理は、
前記自装置の時刻が異常である旨の通知を前記他装置から受け取った時を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から52のいずれか1項に記載のプログラム。
The trigger detection process is
53. The process according to any one of claims 46 to 52, wherein the process detects a time when the time correction is necessary when a notification that the time of the own device is abnormal is received from the other device. The program described in.
前記契機検知処理は、
前記内部時計の影響を受けない単調増加クロックによるタイマにより計測される一定周期毎を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から53のいずれか1項に記載のプログラム。
The trigger detection process is
54. The processing according to any one of claims 46 to 53, wherein the processing detects a fixed period measured by a timer using a monotonically increasing clock that is not affected by the internal clock as a trigger that requires time correction. The program described in.
前記契機検知処理は、
前記自装置が起動した時を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から54のいずれか1項に記載のプログラム。
The trigger detection process is
55. The program according to any one of claims 46 to 54, wherein the program is a process of detecting when the own apparatus is activated as an opportunity that requires the time correction.
前記契機検知処理は、
前記内部時計の時刻及びタイムゾーンを変更する操作を受け付けた時を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から55のいずれか1項に記載のプログラム。
The trigger detection process is
The program according to any one of claims 46 to 55, which is a process of detecting when an operation of changing the time and time zone of the internal clock is received as an opportunity that requires the time correction. .
前記契機検知処理は、
前記自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、前記ファイル及び前記ディレクトリのタイムスタンプを判断し、
前記判断の結果、前記ファイル及び前記ディレクトリのタイムスタンプが、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から56のいずれか1項に記載のプログラム。
The trigger detection process is
The time stamp of the file and the directory stored in the storage medium accessible to the device is compared with the time of the device measured by the internal clock to determine the time stamp of the file and the directory. ,
As a result of the determination, if the time stamp of the file and the directory is later than the time of the own device, or if it is past the predetermined time, the time correction is necessary. The program according to any one of claims 46 to 56, wherein the program is a detection process.
前記契機検知処理は、
前記自装置が保持するデータの内容に含まれている時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記自装置が保持するデータの内容に含まれている時刻を判断し、
前記判断の結果、前記自装置が保持するデータの内容に含まれている時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項46から57のいずれか1項に記載のプログラム。
The trigger detection process is
The time included in the content of data held by the own device is compared with the time of the own device measured by the internal clock, and the time contained in the content of data held by the own device is determined. Judgment
As a result of the determination, when the time included in the content of the data held by the own device is later than the time of the own device, or when the time is past the predetermined time, 58. The program according to any one of claims 46 to 57, wherein the program is a process of detecting a trigger that requires time correction.
前記契機検知処理は、
前記自装置の時刻について前記下位装置からの問い合わせが有った時を、前記時刻補正が必要な契機として検知処理であり、
前記時刻同期装置に、
前記時刻補正処理により前記自装置の時刻が補正された後に、前記下位装置からの問い合わせに対して、前記自装置の時刻を応答する応答処理を実行させることを特徴とする請求項46から59のいずれか1項に記載のプログラム。
The trigger detection process is
When there is an inquiry from the lower-level device about the time of the own device, the detection process is triggered by the need for the time correction,
In the time synchronization device,
60. The response process of responding to the time of the own apparatus in response to an inquiry from the lower apparatus after the time of the own apparatus is corrected by the time correction process. The program according to any one of the above items.
前記時刻補正処理による時刻補正の結果、前記自装置の時刻が正常である場合、
前記時刻同期装置に、
前記他装置に対して、前記他装置の時刻異常、又は、前記他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知処理を実行させることを特徴とする請求項46から59のいずれか1項に記載のプログラム。
As a result of time correction by the time correction process, when the time of the device itself is normal,
In the time synchronization device,
60. The first apparatus according to claim 46, further comprising: causing the other apparatus to execute a first time abnormality notification process for notifying the time abnormality of the other apparatus or the expiration date of the electronic certificate of the other apparatus. The program according to any one of the above items.
前記時刻補正処理による時刻補正の結果、前記内部時計の時刻がデフォルトに戻っていた場合、
前記時刻同期装置に、
前記自装置の電源が入っていない時に前記内部時計を維持するための内蔵電池の異常として検知し、その旨を、前記自装置を管理する上位装置に通知する第2の時刻異常通知処理を実行させることを特徴とする請求項46から60のいずれか1項に記載のプログラム。
As a result of time correction by the time correction process, when the time of the internal clock has returned to the default,
In the time synchronization device,
When the self-device is not powered on, it is detected as an abnormality in the built-in battery for maintaining the internal clock, and a second time abnormality notification process for notifying the host device that manages the self-device is performed. The program according to any one of claims 46 to 60, wherein the program is executed.
前記時刻補正処理は、
前記自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、前記内部時計の影響を受けない単調増加クロックを用いて計測し、該計測の結果を通信処理によって生じるタイムラグとして、前記上位装置から取得した時刻に加えてから前記時刻補正を行う処理であることを特徴とする請求項46から61のいずれか1項に記載のプログラム。
The time correction process is:
The time required for reception processing during time inquiry communication to the host device that manages the device itself is measured using a monotonically increasing clock that is not affected by the internal clock, and the measurement result is used as a time lag caused by communication processing. 62. The program according to claim 46, wherein the time correction is performed after adding to the time acquired from the host device.
前記時刻同期装置に、
前記内部時計の精度と、前記自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、前記許容時刻誤差として設定できる許容時刻誤差設定処理を実行させることを特徴とする請求項47から62記載のプログラム。
In the time synchronization device,
Of the accuracy of the internal clock and the accuracy of the internal clock of the host device that manages the device, up to ± N (N: a predetermined number) times the minimum digit of the coarser accuracy is used as the allowable time error. 63. The program according to claim 47, wherein an allowable time error setting process that can be set is executed.
前記時刻同期装置に、
前記上位装置から前記上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、前記上位装置の時刻の正当性を保護するとともに、前記上位装置の時刻の改竄を防止するセキュリティ処理を実行させることを特徴とする請求項46から63のいずれか1項に記載のプログラム。
In the time synchronization device,
When acquiring the time of the host device from the host device, the authenticity of the time of the host device is protected by using mutual authentication and encrypted communication using an electronic certificate, and the time of the host device 64. The program according to any one of claims 46 to 63, wherein security processing for preventing falsification is executed.
前記時刻補正処理により前記時刻補正がされた後も、前記自装置の時刻が、前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに該当する場合、
前記時刻同期装置に、
前記自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求処理を実行させることを特徴とする請求項46から64のいずれか1項に記載のプログラム。
Even after the time correction is performed by the time correction process, the time of the own device corresponds to the expiration of the electronic certificate held by the own device for performing encrypted communication with the other device,
In the time synchronization device,
A higher-level device that manages the device itself is caused to execute an electronic certificate issuance request process for requesting the issuance of a new electronic certificate by encrypted communication using a special electronic certificate that is not time-checked. The program according to any one of claims 46 to 64.
前記時刻補正処理により前記時刻補正がされた後も、前記自装置がアクセス可能な記憶媒体あるいは前記自装置に記憶される、ファイル又はデータの時刻が異常であった場合、
前記時刻同期装置に、
前記ファイル又は前記データのもつ重要度に基づいて、該ファイル又は該データを削除あるいは更新するファイル・データ削除更新処理、もしくは、前記自装置を管理する上位システムに対して前記ファイル又は前記データの時刻異常を通知する第3の時刻異常通知処理を実行させることを特徴とする請求項46から65のいずれか1項に記載のプログラム。
Even when the time correction is performed by the time correction process, when the time of the file or data stored in the storage medium accessible by the own device or the own device is abnormal,
In the time synchronization device,
Based on the importance of the file or the data, a file / data deletion / updating process for deleting or updating the file or the data, or the time of the file or the data with respect to a host system managing the device The program according to any one of claims 46 to 65, wherein a third time abnormality notification process for notifying abnormality is executed.
有効期限切れの電子証明書を更新できなかった場合、
前記時刻同期装置に、
前記他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、前記自装置の停止を通知する自装置停止通知処理と、
前記自装置停止通知処理により通知した後、前記自装置を停止する自装置停止処理と、
前記自装置の停止を報知する自装置停止報知処理と、
を実行させることを特徴とする請求項46から66のいずれか1項に記載のプログラム。
If you are unable to renew an expired digital certificate,
In the time synchronization device,
Self-device stop notification processing for notifying the stop of the self-device in encrypted communication using a special electronic certificate that is not time-checked to the other device;
After notifying by the own device stop notification process, the own device stop process for stopping the own device;
Own device stop notification processing for notifying the stop of the own device;
The program according to any one of claims 46 to 66, wherein the program is executed.
JP2006240265A 2006-09-05 2006-09-05 Time synchronization apparatus, time synchronization system, time synchronization method, and program Expired - Fee Related JP4943783B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006240265A JP4943783B2 (en) 2006-09-05 2006-09-05 Time synchronization apparatus, time synchronization system, time synchronization method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006240265A JP4943783B2 (en) 2006-09-05 2006-09-05 Time synchronization apparatus, time synchronization system, time synchronization method, and program

Publications (2)

Publication Number Publication Date
JP2008064495A true JP2008064495A (en) 2008-03-21
JP4943783B2 JP4943783B2 (en) 2012-05-30

Family

ID=39287354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006240265A Expired - Fee Related JP4943783B2 (en) 2006-09-05 2006-09-05 Time synchronization apparatus, time synchronization system, time synchronization method, and program

Country Status (1)

Country Link
JP (1) JP4943783B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102540867A (en) * 2012-02-15 2012-07-04 中国科学院国家授时中心 Velocity-correction-based two-way time transfer method using non-geostationary earth orbit (GEO) satellite
JP2012190223A (en) * 2011-03-10 2012-10-04 Seiko Epson Corp Image generating device, projector and image generating method
US9634825B2 (en) 2011-12-21 2017-04-25 Fujitsu Limited Apparatus and method for correcting time stamps of transactions performed by multiple servers
JP2019133471A (en) * 2018-01-31 2019-08-08 Dynabook株式会社 Electronic apparatus, and method for starting electronic apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101716583B1 (en) * 2015-10-27 2017-03-15 현대오토에버 주식회사 Time synchronization server, system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04124764A (en) * 1990-09-14 1992-04-24 Nec Corp Time setting system
JP2002148371A (en) * 2000-11-07 2002-05-22 Seiko Precision Inc Radio master-and-slave timepiece system and slave timepiece thereof
JP2006064579A (en) * 2004-08-27 2006-03-09 Fuji Photo Film Co Ltd Time setting system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04124764A (en) * 1990-09-14 1992-04-24 Nec Corp Time setting system
JP2002148371A (en) * 2000-11-07 2002-05-22 Seiko Precision Inc Radio master-and-slave timepiece system and slave timepiece thereof
JP2006064579A (en) * 2004-08-27 2006-03-09 Fuji Photo Film Co Ltd Time setting system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012190223A (en) * 2011-03-10 2012-10-04 Seiko Epson Corp Image generating device, projector and image generating method
US9634825B2 (en) 2011-12-21 2017-04-25 Fujitsu Limited Apparatus and method for correcting time stamps of transactions performed by multiple servers
CN102540867A (en) * 2012-02-15 2012-07-04 中国科学院国家授时中心 Velocity-correction-based two-way time transfer method using non-geostationary earth orbit (GEO) satellite
JP2019133471A (en) * 2018-01-31 2019-08-08 Dynabook株式会社 Electronic apparatus, and method for starting electronic apparatus

Also Published As

Publication number Publication date
JP4943783B2 (en) 2012-05-30

Similar Documents

Publication Publication Date Title
JP4943783B2 (en) Time synchronization apparatus, time synchronization system, time synchronization method, and program
EP2740033B1 (en) Software distribution to medical devices via an intermediary which enforces maintenance of a transaction log
EP1229424A2 (en) Method and apparatus for synchronizing real-time clocks of time stamping cryptographic modules
CN102170353B (en) Adjustable free-running secure clock
US20060156011A1 (en) Network device having time correction function
EP2740032B1 (en) Managing software distribution for regulatory compliance
JP2005079912A (en) Secure data management device
EP2363804A1 (en) Mediation apparatus, installation system, installation method, and installation program
EP3460694B1 (en) Authentication system
US11222097B2 (en) Information processing apparatus, information processing method, and computer-readable medium
US11388154B2 (en) Information processing apparatus, system, and non-transitory computer-readable storage medium
JP2018202842A (en) Information processing device, information processing method and program
CN110163003B (en) Password management method and device
US8533515B2 (en) Method and system for synchronizing multiple secure clocks using an average adjusted time of the secure clocks if the average adjusted time is within the limit intersection and using a substitute average adjusted time if the averaged adjusted time is outside the limit intersection
US20150358505A1 (en) Imaging Device-Based User Authentication System and Methods
US9060038B2 (en) Dynamic domain name server console for disaster recovery server management
CN105100041A (en) Communication device, control method of communication device, and printer
CN110045990B (en) Restart control system
JP2005321850A (en) License authentication system, method, and program
JP2006221613A (en) Information display system and its program
US11182463B2 (en) Method to create a trusted pool of devices
US20230237151A1 (en) Information processing device, information processing system, and non-transitory computer readable medium
KR101071962B1 (en) Automatic Managing System and Method for Integrity Reference Manifest
CN117453816B (en) User data unifying method, system, computer and storage medium
JP2006113806A (en) Software license management method and management system, and its program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090515

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110512

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110524

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110725

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120228

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120301

R150 Certificate of patent or registration of utility model

Ref document number: 4943783

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150309

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees