JP4943783B2 - Time synchronization apparatus, time synchronization system, time synchronization method, and program - Google Patents

Time synchronization apparatus, time synchronization system, time synchronization method, and program Download PDF

Info

Publication number
JP4943783B2
JP4943783B2 JP2006240265A JP2006240265A JP4943783B2 JP 4943783 B2 JP4943783 B2 JP 4943783B2 JP 2006240265 A JP2006240265 A JP 2006240265A JP 2006240265 A JP2006240265 A JP 2006240265A JP 4943783 B2 JP4943783 B2 JP 4943783B2
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.)
Expired - Fee Related
Application number
JP2006240265A
Other languages
Japanese (ja)
Other versions
JP2008064495A (en
Inventor
洋 穂積
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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)

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 such an object, a first aspect of the present invention is a time synchronization apparatus having a function of synchronizing time with another apparatus when communicating with the other apparatus, and the time of the own apparatus is set. Time correction is required by the internal clock to be measured, the host device time acquisition unit that acquires the time of the host device that manages the device itself, the trigger detection unit that detects the trigger that requires time correction of the internal clock, and the trigger detection unit If such trigger is detected, as the time correction of the internal clock, possess and time correction means for correcting the time of the own device to the time of the host apparatus, a trigger detection unit is acquired by the upper apparatus time acquisition means The time when predetermined information is stored in the storage medium together with the time of the host device is detected as a trigger that requires time correction .

本発明の第2の態様は、本発明の第1の態様の時刻同期装置を有する時刻同期システムであることを特徴とする。 According to a second aspect of the present invention, there is provided a time synchronization system having the time synchronization apparatus according to the first aspect of the present invention .

本発明の第3の態様は、内部時計を用いて自装置の時刻を計測する時刻同期装置が、他装置と通信を行う場合に、自装置を管理する上位装置の時刻を取得し、他装置と時刻の同期を取る時刻同期方法であって、内部時計の時刻補正が必要な契機を検知する契機検知ステップと、契機検知ステップにより時刻補正が必要な契機が検知された場合、内部時計の時刻補正として、自装置の時刻を上位装置の時刻に補正する時刻補正ステップと、を有し、契機検知ステップは、上位装置から取得した上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、時刻補正が必要な契機として検知することを特徴とする。 According to a third 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, and the other device Time synchronization method that synchronizes the time of the internal clock with the trigger detection step for detecting the trigger for the time correction of the internal clock, and when the trigger for the time correction is detected by the trigger detection step, the time of the internal clock as a correction, when the time of the device itself possess a time correction step of correcting the time of the host apparatus, a trigger detection step of storing predetermined information in a storage medium together with the time of the upper apparatus acquired from the host apparatus Detecting as a trigger that requires time correction .

本発明の第4の態様は、内部時計を用いて自装置の時刻を計測する時刻同期装置に、他装置と通信を行う場合に、自装置を管理する上位装置の時刻を取得させ、他装置と時刻の同期を取らせるためのプログラムであって、時刻同期装置に、内部時計の時刻補正が必要な契機を検知する契機検知処理と、契機検知処理により時刻補正が必要な契機が検知された場合、内部時計の時刻補正として、自装置の時刻を上位装置の時刻に補正する時刻補正処理と、を実行させ、契機検知処理は、上位装置から取得した上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、時刻補正が必要な契機として検知する処理であることを特徴とする。 According to a 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. Is a program that synchronizes the time of the internal clock and the time synchronization device detects the trigger that requires time correction of the internal clock, and the trigger that requires time correction is detected by the trigger detection process. In this case, as time correction of the internal clock, time correction processing for correcting the time of the own device to the time of the upper device is executed, and the trigger detection processing stores predetermined information together with the time of the upper device acquired from the upper device. The present invention is characterized in that it is a process of detecting when it is stored in a medium as an opportunity that requires time correction .

本発明によれば、より正確かつ最適なタイミングで時刻補正を行うことが可能となる。   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. This time correction means 12 measures the time required for the reception processing during the time inquiry communication with the host device managing 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 (a high-order apparatus and a 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 (64)

他装置と通信を行う場合に、該他装置と時刻の同期を取る機能を備えた時刻同期装置であって、
自装置の時刻を計測する内部時計と、
前記自装置を管理する上位装置の時刻を取得する上位装置時刻取得手段と、
前記内部時計の時刻補正が必要な契機を検知する契機検知手段と、
前記契機検知手段により前記時刻補正が必要な契機が検知された場合、前記内部時計の時刻補正として、前記自装置の時刻を前記上位装置の時刻に補正する時刻補正手段と、を有し、
前記契機検知手段は、
前記上位装置時刻取得手段により取得された前記上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、前記時刻補正が必要な契機として検知することを特徴とする時刻同期装置。
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;
If the time correction is necessary trigger is detected by the trigger detection unit, wherein the time correction of the internal clock, have a, and time correction means for correcting the time of the time the upper apparatus of its own apparatus,
The opportunity detection means includes
A time synchronization apparatus that detects when the predetermined information is stored in a storage medium together with the time of the host apparatus acquired by the host apparatus time acquisition means as a trigger that requires the time correction .
前記契機検知手段は、
前記上位装置時刻取得手段により取得された前記上位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項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 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 time synchronization according to claim 1 or 2 , 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. apparatus.
前記契機検知手段は、
前記自装置が前記他装置と電子証明書を用いて暗号化通信を行う時に、該他装置から送られてきた電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1からのいずれか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,
A result of the determination, the case time of the self-device the not within the scope of the expiration date of the electronic certificate, any of claims 1 to 3, characterized in that said time correction is detected as a trigger required 1 The time synchronization device according to item.
前記契機検知手段は、
前記自装置によって管理される下位装置との通信時に、該下位装置から送られてくる情報の中に含まれる下位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記下位装置の時刻を判断し、
前記判断の結果、前記下位装置の時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1からのいずれか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 any one of claims 1 to 4 , wherein
前記契機検知手段は、
前記他装置との通信時に、該他装置から送られてくるパケットのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1からのいずれか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,
A result of the determination, wherein said case difference between the time is not within the range of the allowable time error, in any one of claims 1 to 5, characterized in that to detect a trigger requiring the time correction Time synchronizer.
前記契機検知手段は、
前記自装置の時刻が異常である旨の通知を前記他装置から受け取った時を、前記時刻補正が必要な契機として検知することを特徴とする請求項1からのいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
Wherein when the notification time of the own device is abnormal is received from said another device, according to any one of claims 1 to 6, wherein the time correction is detected as triggered required Time synchronizer.
前記内部時計の影響を受けない単調増加クロックによるタイマを有し、
前記契機検知手段は、
前記単調増加クロックによるタイマにより計測される一定周期毎を、前記時刻補正が必要な契機として検知することを特徴とする請求項1からのいずれか1項に記載の時刻同期装置。
Having a timer with a monotonically increasing clock not affected by the internal clock;
The opportunity detection means includes
Wherein the predetermined period each time it is measured by monotonically increasing clock by the timer, the time synchronization device according to any one of claims 1 to 7, characterized in that said time correction is detected as a trigger required.
前記契機検知手段は、
前記自装置が起動した時を、前記時刻補正が必要な契機として検知することを特徴とする請求項1からのいずれか1項に記載の時刻同期装置。
The opportunity detection means includes
The time synchronization apparatus according to any one of claims 1 to 8 , wherein the time when the own apparatus is activated is detected as an opportunity that requires the time correction.
所定の操作を受け付け、前記内部時計の時刻を変更可能な時刻変更手段を有し、
前記契機検知手段は、
前記時刻変更手段にて前記内部時計の時刻及びタイムゾーンを変更する操作が受け付けられた時を、前記時刻補正が必要な契機として検知することを特徴とする請求項1からのいずれか1項に記載の時刻同期装置。
Having a time changing means for accepting a predetermined operation and changing the time of the internal clock;
The opportunity detection means includes
When the operation of changing the time and time zone of the internal clock is received at the time changing means, any one of claims 1 to 9, wherein the time correction is detected as triggered required The time synchronizer described in 1.
前記契機検知手段は、
前記自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、前記ファイル及び前記ディレクトリのタイムスタンプを判断し、
前記判断の結果、前記ファイル及び前記ディレクトリのタイムスタンプが、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から10のいずれか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. time synchronization device according to any one of claims 1 to 10, characterized in that to detect.
前記契機検知手段は、
前記自装置が保持するデータの内容に含まれている時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記自装置が保持するデータの内容に含まれている時刻を判断し、
前記判断の結果、前記自装置が保持するデータの内容に含まれている時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項1から11のいずれか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, time synchronization device according to any one of claims 1 to 11, characterized in that a time correction detects triggered required.
前記自装置によって管理される下位装置からの問い合わせに対して応答する応答手段を有し、
前記契機検知手段は、
前記自装置の時刻について前記下位装置からの問い合わせが有った時を、前記時刻補正が必要な契機として検知し、
前記応答手段は、
前記時刻補正手段により前記自装置の時刻が補正された後に、前記下位装置からの問い合わせに対して、前記自装置の時刻を応答することを特徴とする請求項1から12のいずれか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
After the time of the own apparatus is corrected by the time correction unit, in response to the inquiry from the subordinate apparatus, in any one of claims 1 to 12, characterized in that the response time of the own device The time synchronizer described.
前記時刻補正手段による時刻補正の結果、前記自装置の時刻が正常である場合、
前記他装置に対して、前記他装置の時刻異常、又は、前記他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知手段を有することを特徴とする請求項1から13のいずれか1項に記載の時刻同期装置。
As a result of time correction by the time correction means, when the time of the own device is normal,
To the other device, time abnormality of the other device, or any of claims 1 to 13, characterized in that it comprises a first time abnormality notifying means for notifying an expired digital certificate of the other device The time synchronizer of Claim 1.
前記時刻補正手段による時刻補正の結果、前記内部時計の時刻がデフォルトに戻っていた場合、
前記自装置の電源が入っていない時に前記内部時計を維持するための内蔵電池の異常として検知し、その旨を、前記自装置を管理する上位装置に通知する第2の時刻異常通知手段を有することを特徴とする請求項1から14のいずれか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 time synchronization device according to any one of claims 1 14, characterized in that.
前記時刻補正手段は、
前記自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、前記内部時計の影響を受けない単調増加クロックを用いて計測し、該計測の結果を通信処理によって生じるタイムラグとして、前記上位装置から取得した時刻に加えてから前記時刻補正を行うことを特徴とする請求項1から15のいずれか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. , time synchronization device according to any one of claims 1 15, characterized in that said time correction after adding the time obtained from the host system.
前記内部時計の精度と、前記自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、前記許容時刻誤差として設定できる許容時刻誤差設定手段を有することを特徴とする請求項2から16記載の時刻同期装置。 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. time synchronizer of claims 2 16, wherein it has an acceptable time error setting means capable of setting. 前記上位装置時刻取得手段により前記上位装置から前記上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、前記上位装置の時刻の正当性を保護するとともに、前記上位装置の時刻の改竄を防止するセキュリティ手段を有することを特徴とする請求項1から17のいずれか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. with time synchronization device according to any one of claims 1 to 17, characterized in that it comprises a security means to prevent tampering of time of the host system. 前記時刻補正手段により前記時刻補正がされた後も、前記自装置の時刻が、前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに該当する場合、
前記自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求手段を有することを特徴とする請求項1から18のいずれか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 18 .
前記時刻補正手段により前記時刻補正がされた後も、前記自装置がアクセス可能な記憶媒体あるいは前記自装置に記憶される、ファイル又はデータの時刻が異常であった場合、
前記ファイル又は前記データのもつ重要度に基づいて、該ファイル又は該データを削除あるいは更新するファイル・データ削除更新手段、もしくは、前記自装置を管理する上位システムに対して前記ファイル又は前記データの時刻異常を通知する第3の時刻異常通知手段を有することを特徴とする請求項1から19のいずれか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 The time synchronization apparatus according to any one of claims 1 to 19 , further comprising third time abnormality notification means for notifying abnormality.
有効期限切れの電子証明書を更新できなかった場合、
前記他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、前記自装置の停止を通知する自装置停止通知手段と、
前記自装置停止通知手段により通知した後、前記自装置を停止する自装置停止手段と、
前記自装置の停止を報知する自装置停止報知手段と、
を有することを特徴とする請求項1から20のいずれか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;
Time synchronization device according to claim 1 in any one of 20, characterized in that it comprises a.
請求項1から21のいずれか1項に記載の時刻同期装置を有することを特徴とする時刻同期システム。 A time synchronization system comprising the time synchronization device according to any one of claims 1 to 21 . 内部時計を用いて自装置の時刻を計測する時刻同期装置が、他装置と通信を行う場合に、前記自装置を管理する上位装置の時刻を取得し、該他装置と時刻の同期を取る時刻同期方法であって、
前記内部時計の時刻補正が必要な契機を検知する契機検知ステップと、
前記契機検知ステップにより前記時刻補正が必要な契機が検知された場合、前記内部時計の時刻補正として、前記自装置の時刻を前記上位装置の時刻に補正する時刻補正ステップと、を有し、
前記契機検知ステップは、
前記上位装置から取得した前記上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、前記時刻補正が必要な契機として検知することを特徴とする時刻同期方法。
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;
If the trigger detection trigger requiring the time correction in step is detected, the a time correction of the internal clock, have a, a time correction step of correcting the time of the time the upper apparatus of its own apparatus,
The opportunity detection step includes
A time synchronization method , wherein a time when 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 .
前記契機検知ステップは、
前記上位装置から取得した前記上位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項23記載の時刻同期方法。
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
24. The time synchronization method according to claim 23 , 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 a trigger that requires the time correction.
前記契機検知ステップは、
前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項23又は24記載の時刻同期方法。
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,
The time synchronization according to claim 23 or 24 , 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. Method.
前記契機検知ステップは、
前記自装置が前記他装置と電子証明書を用いて暗号化通信を行う時に、該他装置から送られてきた電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から25のいずれか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,
26. Any one of claims 23 to 25 , 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.
前記契機検知ステップは、
前記自装置が管理する下位装置との通信時に、該下位装置から送られてくる情報の中に含まれる下位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記下位装置の時刻を判断し、
前記判断の結果、前記下位装置の時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から26のいずれか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 23 to 26 , wherein:
前記契機検知ステップは、
前記他装置との通信時に、該他装置から送られてくるパケットのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から27のいずれか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,
28. The case according to any one of claims 23 to 27 , 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 a trigger that requires the time correction. Time synchronization method.
前記契機検知ステップは、
前記自装置の時刻が異常である旨の通知を前記他装置から受け取った時を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から28のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
29. The time according to any one of claims 23 to 28 , 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.
前記契機検知ステップは、
前記内部時計の影響を受けない単調増加クロックによるタイマにより計測される一定周期毎を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から29のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
Wherein the predetermined period each time by monotonically increasing clock is not affected by the internal clock is measured by the timer, according to any one of claims 23 to 29, characterized in that to detect a trigger requiring the time correction Time synchronization method.
前記契機検知ステップは、
前記自装置が起動した時を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から30のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
The time synchronization method according to any one of claims 23 to 30 , wherein the time when the device starts is detected as an opportunity that requires the time correction.
前記契機検知ステップは、
前記内部時計の時刻及びタイムゾーンを変更する操作を受け付けた時を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から31のいずれか1項に記載の時刻同期方法。
The opportunity detection step includes
Wherein when having received the operation of changing the time and time zone of the internal clock, the time synchronization method according to any one of claims 23 31, characterized in that said time correction is detected as a trigger required.
前記契機検知ステップは、
前記自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、前記ファイル及び前記ディレクトリのタイムスタンプを判断し、
前記判断の結果、前記ファイル及び前記ディレクトリのタイムスタンプが、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から32のいずれか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. The time synchronization method according to any one of claims 23 to 32 , wherein the time synchronization method is detected.
前記契機検知ステップは、
前記自装置が保持するデータの内容に含まれている時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記自装置が保持するデータの内容に含まれている時刻を判断し、
前記判断の結果、前記自装置が保持するデータの内容に含まれている時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知することを特徴とする請求項23から33のいずれか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, 34. The time synchronization method according to claim 23, wherein the time synchronization method is detected as an opportunity that requires time correction.
前記契機検知ステップは、
前記自装置の時刻について前記下位装置からの問い合わせが有った時を、前記時刻補正が必要な契機として検知し、
前記時刻補正ステップにより前記自装置の時刻が補正された後に、前記下位装置からの問い合わせに対して、前記自装置の時刻を応答する応答ステップを有することを特徴とする請求項23から34のいずれか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,
After the time of the own apparatus is corrected by the time correction step, to the inquiry from the subordinate apparatus, one of claims 23 34, characterized in that it has a response step for responding the time of the own device The time synchronization method according to claim 1.
前記時刻補正ステップによる時刻補正の結果、前記自装置の時刻が正常である場合、
前記他装置に対して、前記他装置の時刻異常、又は、前記他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知ステップを有することを特徴とする請求項23から35のいずれか1項に記載の時刻同期方法。
As a result of time correction by the time correction step, if the time of the device itself is normal,
To the other device, the time of another apparatus abnormalities, or one of claims 23, characterized in that it comprises a first time abnormality notification step of notifying an expired digital certificate of the other device 35 The time synchronization method according to claim 1.
前記時刻補正ステップによる時刻補正の結果、前記内部時計の時刻がデフォルトに戻っていた場合、
前記自装置の電源が入っていない時に前記内部時計を維持するための内蔵電池の異常として検知し、その旨を、前記自装置を管理する上位装置に通知する第2の時刻異常通知ステップを有することを特徴とする請求項23から36のいずれか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 23 to 36 , wherein:
前記時刻補正ステップは、
前記自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、前記内部時計の影響を受けない単調増加クロックを用いて計測し、該計測の結果を通信処理によって生じるタイムラグとして、前記上位装置から取得した時刻に加えてから前記時刻補正を行うことを特徴とする請求項23から37のいずれか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. time synchronization method according to claim 23 in any one of 37, wherein: performing the time correction after adding the time obtained from the host system.
前記内部時計の精度と、前記自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、前記許容時刻誤差として設定できる許容時刻誤差設定ステップを有することを特徴とする請求項23から38のいずれか1項に記載の時刻同期方法。 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. The time synchronization method according to any one of claims 23 to 38, further comprising an allowable time error setting step that can be set. 前記上位装置から前記上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、前記上位装置の時刻の正当性を保護するとともに、前記上位装置の時刻の改竄を防止するセキュリティステップを有することを特徴とする請求項23から39のいずれか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 time synchronization method according to any one of claims 23 to 39, characterized in that it comprises a security step to prevent tampering. 前記時刻補正ステップにより前記時刻補正がされた後も、前記自装置の時刻が、前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに該当する場合、
前記自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求ステップを有することを特徴とする請求項23から40のいずれか1項に記載の時刻同期方法。
Even after the time correction is performed by the time correction step, 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,
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 23 to 40 .
前記時刻補正ステップにより前記時刻補正がされた後も、前記自装置がアクセス可能な記憶媒体あるいは前記自装置に記憶される、ファイル又はデータの時刻が異常であった場合、
前記ファイル又は前記データのもつ重要度に基づいて、該ファイル又は該データを削除あるいは更新するファイル・データ削除更新ステップ、もしくは、前記自装置を管理する上位システムに対して前記ファイル又は前記データの時刻異常を通知する第3の時刻異常通知ステップを有することを特徴とする請求項23から41のいずれか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 The time synchronization method according to any one of claims 23 to 41 , further comprising a third time abnormality notification step of notifying abnormality.
有効期限切れの電子証明書を更新できなかった場合、
前記他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、前記自装置の停止を通知する自装置停止通知ステップと、
前記自装置停止通知ステップにより通知した後、前記自装置を停止する自装置停止ステップと、
前記自装置の停止を報知する自装置停止報知ステップと、
を有することを特徴とする請求項23から42のいずれか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;
43. The time synchronization method according to any one of claims 23 to 42 , comprising:
内部時計を用いて自装置の時刻を計測する時刻同期装置に、他装置と通信を行う場合に、前記自装置を管理する上位装置の時刻を取得させ、該他装置と時刻の同期を取らせるためのプログラムであって、
前記時刻同期装置に、
前記内部時計の時刻補正が必要な契機を検知する契機検知処理と、
前記契機検知処理により前記時刻補正が必要な契機が検知された場合、前記内部時計の時刻補正として、前記自装置の時刻を前記上位装置の時刻に補正する時刻補正処理と、を実行させ
前記契機検知処理は、
前記上位装置から取得した前記上位装置の時刻とともに所定の情報を記憶媒体に記憶する時を、前記時刻補正が必要な契機として検知する処理であることを特徴とするプログラム。
When a time synchronization device that measures the time of its own device using an internal clock communicates with another device, it obtains 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;
When an opportunity requiring the time correction is detected by the trigger detection process, a time correction process for correcting the time of the own apparatus to the time of the host apparatus is performed as the time correction of the internal clock ,
The trigger detection process is
A program that is a process of detecting when the predetermined information is stored in a storage medium together with the time of the host device acquired from the host device as a trigger that requires the time correction .
前記契機検知処理は、
前記上位装置から取得した前記上位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44記載のプログラム。
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
45. The program according to claim 44, which is a process of detecting, as a result of the determination, a case in which the difference between the two times is not within the range of the allowable time error as a trigger that requires the time correction.
前記契機検知処理は、
前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44又は45記載のプログラム。
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,
46. The processing according to claim 44 or 45 , 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 a process of detecting the time correction as an opportunity. Program.
前記契機検知処理は、
前記自装置が前記他装置と電子証明書を用いて暗号化通信を行う時に、該他装置から送られてきた電子証明書の有効期限と、前記内部時計により計測された前記自装置の時刻とを比較し、該自装置の時刻が前記電子証明書の有効期限の範囲内であるか否かを判断し、
前記判断の結果、前記自装置の時刻が前記電子証明書の有効期限の範囲内ではない場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から46のいずれか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 44 to 46 , characterized in that, as a result of the determination, when the time of the self-apparatus is not within the validity period of the electronic certificate, the process detects the time correction as an opportunity. The program according to any one of the above items.
前記契機検知処理は、
前記自装置によって管理される下位装置との通信時に、該下位装置から送られてくる情報の中に含まれる下位装置の時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記下位装置の時刻を判断し、
前記判断の結果、前記下位装置の時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から47のいずれか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 44 to 47 , wherein:
前記契機検知処理は、
前記他装置との通信時に、該他装置から送られてくるパケットのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、両時刻の差が所定の許容時刻誤差の範囲内であるか否かを判断し、
前記判断の結果、前記両時刻の差が前記許容時刻誤差の範囲内ではない場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から48のいずれか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 44 to 48 , 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. The program described in the section.
前記契機検知処理は、
前記自装置の時刻が異常である旨の通知を前記他装置から受け取った時を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から49のいずれか1項に記載のプログラム。
The trigger detection process is
50. The process according to any one of claims 44 to 49 , 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.
前記契機検知処理は、
前記内部時計の影響を受けない単調増加クロックによるタイマにより計測される一定周期毎を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から50のいずれか1項に記載のプログラム。
The trigger detection process is
Certain period each time measured by the internal clock timer according monotonically increasing clock unaffected by, any one of 50 claims 44, characterized in that the process of detecting as trigger requiring the time correction The program described in.
前記契機検知処理は、
前記自装置が起動した時を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から51のいずれか1項に記載のプログラム。
The trigger detection process is
52. The program according to any one of claims 44 to 51 , wherein the program is a process of detecting when the device is activated as an opportunity that requires the time correction.
前記契機検知処理は、
前記内部時計の時刻及びタイムゾーンを変更する操作を受け付けた時を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から52のいずれか1項に記載のプログラム。
The trigger detection process is
53. The program according to any one of claims 44 to 52 , 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. .
前記契機検知処理は、
前記自装置がアクセス可能な記憶媒体に記憶される、ファイル及びディレクトリのタイムスタンプと、前記内部時計により計測された前記自装置の時刻とを比較し、前記ファイル及び前記ディレクトリのタイムスタンプを判断し、
前記判断の結果、前記ファイル及び前記ディレクトリのタイムスタンプが、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から53のいずれか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 44 to 53 , wherein the program is a detection process.
前記契機検知処理は、
前記自装置が保持するデータの内容に含まれている時刻と、前記内部時計により計測された前記自装置の時刻とを比較し、前記自装置が保持するデータの内容に含まれている時刻を判断し、
前記判断の結果、前記自装置が保持するデータの内容に含まれている時刻が、前記自装置の時刻よりも未来であった場合、もしくは、所定の時刻よりも過去であった場合を、前記時刻補正が必要な契機として検知する処理であることを特徴とする請求項44から54のいずれか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, 55. The program according to any one of claims 44 to 54 , wherein the program is a process for detecting a timing that requires time correction.
前記契機検知処理は、
前記自装置の時刻について前記下位装置からの問い合わせが有った時を、前記時刻補正が必要な契機として検知処理であり、
前記時刻同期装置に、
前記時刻補正処理により前記自装置の時刻が補正された後に、前記下位装置からの問い合わせに対して、前記自装置の時刻を応答する応答処理を実行させることを特徴とする請求項44から55のいずれか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,
After the time of the own apparatus is corrected by the time correction processing, in response to the inquiry from the subordinate apparatus, the claims 44, characterized in that to perform the response process for responding the time of its own device 55 for The program according to any one of the above items.
前記時刻補正処理による時刻補正の結果、前記自装置の時刻が正常である場合、
前記時刻同期装置に、
前記他装置に対して、前記他装置の時刻異常、又は、前記他装置の電子証明書の有効期限切れを通知する第1の時刻異常通知処理を実行させることを特徴とする請求項44から56のいずれか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,
To the other device, time abnormality of the other device, or from claim 44, characterized in that to execute the first time abnormality notification processing of notifying an expired digital certificate of the other device 56 The program according to any one of the above items.
前記時刻補正処理による時刻補正の結果、前記内部時計の時刻がデフォルトに戻っていた場合、
前記時刻同期装置に、
前記自装置の電源が入っていない時に前記内部時計を維持するための内蔵電池の異常として検知し、その旨を、前記自装置を管理する上位装置に通知する第2の時刻異常通知処理を実行させることを特徴とする請求項44から57のいずれか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 44 to 57 , wherein the program is executed.
前記時刻補正処理は、
前記自装置を管理する上位装置に対する時刻の問い合わせ通信中の受信処理に掛かる時間を、前記内部時計の影響を受けない単調増加クロックを用いて計測し、該計測の結果を通信処理によって生じるタイムラグとして、前記上位装置から取得した時刻に加えてから前記時刻補正を行う処理であることを特徴とする請求項44から58のいずれか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. The program according to any one of claims 44 to 58 , wherein the time correction is performed in addition to the time acquired from the host device.
前記時刻同期装置に、
前記内部時計の精度と、前記自装置を管理する上位装置の内部時計の精度のうち、精度の粗い方の、最小桁数の±N(N:所定数)倍までを、前記許容時刻誤差として設定できる許容時刻誤差設定処理を実行させることを特徴とする請求項44から59のいずれか1項に記載のプログラム。
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. The program according to any one of claims 44 to 59, wherein an allowable time error setting process that can be set is executed.
前記時刻同期装置に、
前記上位装置から前記上位装置の時刻を取得する場合に、電子証明書を用いた相互認証及び暗号化通信を用いることで、前記上位装置の時刻の正当性を保護するとともに、前記上位装置の時刻の改竄を防止するセキュリティ処理を実行させることを特徴とする請求項44から60のいずれか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 The program according to any one of claims 44 to 60 , wherein security processing for preventing falsification of the program is executed.
前記時刻補正処理により前記時刻補正がされた後も、前記自装置の時刻が、前記自装置が前記他装置と暗号化通信を行うために保持する電子証明書の有効期限切れに該当する場合、
前記時刻同期装置に、
前記自装置を管理する上位装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、新しい電子証明書の発行を要求する電子証明書発行要求処理を実行させることを特徴とする請求項44から61のいずれか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 44 to 61 .
前記時刻補正処理により前記時刻補正がされた後も、前記自装置がアクセス可能な記憶媒体あるいは前記自装置に記憶される、ファイル又はデータの時刻が異常であった場合、
前記時刻同期装置に、
前記ファイル又は前記データのもつ重要度に基づいて、該ファイル又は該データを削除あるいは更新するファイル・データ削除更新処理、もしくは、前記自装置を管理する上位システムに対して前記ファイル又は前記データの時刻異常を通知する第3の時刻異常通知処理を実行させることを特徴とする請求項44から62のいずれか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 44 to 62, wherein a third time abnormality notification process for notifying abnormality is executed.
有効期限切れの電子証明書を更新できなかった場合、
前記時刻同期装置に、
前記他装置に対して、時刻チェックが行なわれない特別な電子証明書による暗号化通信で、前記自装置の停止を通知する自装置停止通知処理と、
前記自装置停止通知処理により通知した後、前記自装置を停止する自装置停止処理と、
前記自装置の停止を報知する自装置停止報知処理と、
を実行させることを特徴とする請求項44から63のいずれか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;
Program according to any one of claims 44 63, characterized in that for the execution.
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 JP2008064495A (en) 2008-03-21
JP4943783B2 true 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 (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

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5704322B2 (en) * 2011-03-10 2015-04-22 セイコーエプソン株式会社 Image generating apparatus, projector and image generating method
WO2013094032A1 (en) 2011-12-21 2013-06-27 富士通株式会社 Information processing device, information processing method and program
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

Family Cites Families (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
JP3776714B2 (en) * 2000-11-07 2006-05-17 セイコープレシジョン株式会社 Wireless parent-child clock system and child clock
JP2006064579A (en) * 2004-08-27 2006-03-09 Fuji Photo Film Co Ltd Time setting system

Cited By (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

Also Published As

Publication number Publication date
JP2008064495A (en) 2008-03-21

Similar Documents

Publication Publication Date Title
JP4943783B2 (en) Time synchronization apparatus, time synchronization system, time synchronization method, and program
US8386424B2 (en) Transparent access mechanism for local and remote data
US20180034646A1 (en) Method and apparatus for seamless remote renewal of offline generated digital identity certificates to field deployed hardware security modules
US9384434B2 (en) Image forming apparatus capable of making user aware of security policy violation, method of controlling the image forming apparatus, and storage medium
US20110321172A1 (en) Management apparatus, license management server, electronic equipment, electronic equipment management system, management method, program, and recording medium
JP2005079912A (en) Secure data management device
EP2740032B1 (en) Managing software distribution for regulatory compliance
EP2363804A1 (en) Mediation apparatus, installation system, installation method, and installation program
JP2013058042A (en) Image forming apparatus, secure network system, and method of controlling image forming apparatus and method of updating certificate information
US20100097463A1 (en) Monitoring unit control system
JP2008026932A (en) Digital multifunction machine
US11222097B2 (en) Information processing apparatus, information processing method, and computer-readable medium
TW201824030A (en) Main database/backup database management method and system and equipment thereof
US11388154B2 (en) Information processing apparatus, system, and non-transitory computer-readable storage medium
CN110163003B (en) Password management method and device
CN107592199B (en) Data synchronization method and system
JP2018202842A (en) Information processing device, information processing method and program
EP2399173A1 (en) Method and system for synchronizing multiple secure clocks
CN108737184B (en) Management method and device of disaster recovery system
CN110045990B (en) Restart control system
JP2005321850A (en) License authentication system, method, and program
JP2015216568A (en) Portable terminal device and equipment information browsing system
CN117453816B (en) User data unifying method, system, computer and storage medium
JP7374334B2 (en) Electronic warranty management device and electronic warranty management system
US20230237151A1 (en) Information processing device, information processing system, and non-transitory computer readable medium

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