JP5326255B2 - Time monitoring apparatus, electronic device, and time monitoring method - Google Patents

Time monitoring apparatus, electronic device, and time monitoring method Download PDF

Info

Publication number
JP5326255B2
JP5326255B2 JP2007267737A JP2007267737A JP5326255B2 JP 5326255 B2 JP5326255 B2 JP 5326255B2 JP 2007267737 A JP2007267737 A JP 2007267737A JP 2007267737 A JP2007267737 A JP 2007267737A JP 5326255 B2 JP5326255 B2 JP 5326255B2
Authority
JP
Japan
Prior art keywords
time
difference
value
correction
processor
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
JP2007267737A
Other languages
Japanese (ja)
Other versions
JP2009097907A (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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2007267737A priority Critical patent/JP5326255B2/en
Publication of JP2009097907A publication Critical patent/JP2009097907A/en
Application granted granted Critical
Publication of JP5326255B2 publication Critical patent/JP5326255B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は時刻監視装置、電子機器、プログラム、および時刻監視方法に関し、特に、時刻を不正に設定することを監視する時刻監視装置、電子機器、プログラム、および時刻監視方法に関する。   The present invention relates to a time monitoring device, an electronic device, a program, and a time monitoring method, and more particularly, to a time monitoring device, an electronic device, a program, and a time monitoring method for monitoring that the time is set incorrectly.

ソフトウェアプログラムや映像等のコンテンツには使用期間を定めて使用や閲覧を許可されるものがある。コンテンツを提供する業者は使用期間に応じて課金し、利用者は必要な使用期間を決めて契約し、コンテンツを利用できる。コンテンツを利用するための電子機器は時計を持っており、コンテンツの使用期間と時計とを比較することにより使用の可否を判断する。   Some contents, such as software programs and videos, are allowed to be used and viewed after a period of use. The content provider provides a charge according to the usage period, and the user can determine the necessary usage period and make a contract to use the content. The electronic device for using the content has a clock, and determines whether or not the content can be used by comparing the usage period of the content with the clock.

ところが、電子機器の時計を不正に操作することにより、利用者は使用期間を過ぎてもコンテンツを不正に利用することができる。特許文献1の発明は、使用期限管理装置が外部の標準時刻提供サイトから標準時刻を取得して内部時計を再設定し、内部時計とコンテンツの使用期限とを比較することにより、上記不正利用を防止している。   However, by illegally operating the clock of the electronic device, the user can illegally use the content even after the usage period has passed. In the invention of Patent Document 1, the expiration date management device acquires the standard time from an external standard time providing site, resets the internal clock, and compares the internal clock with the expiration date of the content. It is preventing.

また、特許文献2の発明は、設定する時刻とローカルクロック回路の時刻との差分の許容値を設定しておき、差分が許容値以下の場合のみローカルクロックを再設定することにより、不正な時刻操作を防止している。   Further, the invention of Patent Document 2 sets an allowable value of the difference between the set time and the time of the local clock circuit, and resets the local clock only when the difference is equal to or less than the allowable value. The operation is prevented.

特開平11−85500号公報JP-A-11-85500 WO2004/107064号公報WO2004 / 107064 publication

特許文献1の発明は、外部の標準時刻を取得するために、対象となる装置を外部と接続し通信するための構成を必要とし、実現のためにコストがかかるという問題がある。また、特許文献2の発明は、1回あたりの時刻補正(時刻の再設定)において、設定時刻と現時刻とが一定の範囲内にある場合のみ許可し、大幅に日時を巻き戻すような不正な時刻補正を防止できる。しかしながら、一定の範囲内の補正を繰り返して、大幅に日時を巻き戻すという不正操作を防止することができないという問題がある。   The invention of Patent Document 1 requires a configuration for connecting a target device to the outside for communication in order to acquire an external standard time, and there is a problem that it is expensive to implement. In addition, the invention of Patent Document 2 permits only when the set time and the current time are within a certain range in the time correction (time reset) per time, and it is illegal to significantly rewind the date and time. Time correction can be prevented. However, there is a problem in that it is not possible to prevent an unauthorized operation of rewinding the date and time by repeating correction within a certain range.

本発明の目的は、上述した課題を解決する時刻監視装置、電子機器、プログラム、および時刻監視方法を提供することにある。   The objective of this invention is providing the time monitoring apparatus, electronic device, program, and time monitoring method which solve the subject mentioned above.

本発明の時刻監視装置は、補正前の時刻と補正により設定される時刻との差分を累積し、累積値と予め決められた許容値とを比較し、比較結果に基づいて時刻補正の可否を決定するプロセッサを有することを特徴とする。   The time monitoring device of the present invention accumulates the difference between the time before correction and the time set by the correction, compares the accumulated value with a predetermined allowable value, and determines whether the time correction is possible based on the comparison result. It has the processor which determines.

本発明の第1の電子機器は、本発明の時刻監視装置と、時計と、第2のプロセッサとを有し、前記第2のプロセッサは、時刻補正要求を検出すると、時刻補正要求に付された設定時刻を監視要求とともに前記時刻監視装置に出力し、前記時刻監視装置から設定正常応答を受けると前記設定時刻で前記時計の現時刻を更新することを特徴とする
本発明の第2の電子機器は、プロセッサと時計と記憶部とを有し、前記プロセッサは、前記時計の現時刻を補正する際に、補正前の現時刻と補正により設定される現時刻との差分を累積し、差分の累積値と前記記憶部に格納される許容値とを比較した結果により、時刻補正の可否を決定することを特徴とする。
The first electronic device of the present invention includes the time monitoring device of the present invention, a timepiece, and a second processor, and the second processor is attached to the time correction request when detecting the time correction request. The set time is output to the time monitoring device together with a monitoring request, and when a normal setting response is received from the time monitoring device, the current time of the clock is updated with the set time. The device includes a processor, a clock, and a storage unit, and when the processor corrects the current time of the clock, the processor accumulates a difference between the current time before the correction and the current time set by the correction. Whether or not the time correction is possible is determined based on a result of comparing the accumulated value and the allowable value stored in the storage unit.

本発明の第3の電子機器は、プロセッサと時計と記憶部とを有し、前記プロセッサは、前記時計の現時刻を補正する際に、補正前の現時刻と補正により設定される現時刻との差分を累積し、差分の累積値と前記記憶部に格納される許容値とを比較した結果により、コンテンツ実行の可否を決定することを特徴とする。   A third electronic device of the present invention includes a processor, a clock, and a storage unit, and the processor corrects the current time before the correction and the current time set by the correction when correcting the current time of the clock. Is determined, and whether to execute the content is determined based on a result of comparing the accumulated value of the difference and the allowable value stored in the storage unit.

本発明のプログラムは、時刻補正要求を検出すると、時計から現時刻を取得する手順と、時刻補正要求で指示された設定時刻と現時刻との差分を計算する手順と、計算した差分を記憶部に格納される差分累積値に加算する手順と、加算された差分累積値と記憶部に格納される差分許容値とを比較して時刻補正の可否を決定する手順とをコンピュータに実行させることを特徴とする。   When the time correction request is detected, the program of the present invention stores a procedure for acquiring the current time from the clock, a procedure for calculating a difference between the set time indicated by the time correction request and the current time, and the calculated difference. And causing the computer to execute a procedure for adding to the accumulated difference value stored in the memory and a procedure for determining whether time correction is possible by comparing the added accumulated difference value and the allowable difference value stored in the storage unit. Features.

本発明の第1の時刻監視方法は、プロセッサが、時刻を補正する際に、補正前の時刻と補正により設定される時刻との差分を累積し、累積値と予め決められた許容値とを比較した結果により、時刻補正の可否を決定することを特徴とする。   In the first time monitoring method of the present invention, when the processor corrects the time, the processor accumulates the difference between the time before the correction and the time set by the correction, and obtains the accumulated value and a predetermined allowable value. Whether to correct the time is determined based on the comparison result.

本発明の第2の時刻監視方法は、プロセッサが、現時刻を補正する際に、補正前の現時刻と補正により設定される現時刻との差分を累積し、差分の累積値と予め決められた許容値とを比較した結果により、コンテンツ実行の可否を決定することを特徴とする。   In the second time monitoring method of the present invention, when the processor corrects the current time, the difference between the current time before correction and the current time set by the correction is accumulated, and the accumulated value of the difference is determined in advance. Whether to execute the content is determined based on the result of comparison with the allowable value.

本発明は、低コストで不正な時刻補正を防止することができるという効果がある。   The present invention has an effect of preventing illegal time correction at low cost.

次に、本発明を実施の形態について図面を参照して詳細に説明する。まず本発明の概要について説明する。本発明は2つの概要構成を持つ。1つは、図1に示した時刻補正装置であり、もう1つは図2に示した電子機器である。本発明の第1の概要構成を詳細に説明したものが、後述の本発明の第1と第2の実施例であり、本発明の第2の概要構成を詳細に説明したものが、後述の本発明の第3の実施例である。   Next, embodiments of the present invention will be described in detail with reference to the drawings. First, the outline of the present invention will be described. The present invention has two general configurations. One is the time correction apparatus shown in FIG. 1, and the other is the electronic device shown in FIG. The first outline configuration of the present invention is described in detail in the following first and second embodiments of the present invention. The second overview configuration of the present invention is described in detail in the following. It is a 3rd Example of this invention.

図1を参照すると、本発明の時刻監視装置の概要構成は、プロセッサ1Aを有する。プロセッサ1Aは、現時刻と設定時刻との差分を累積する差分累積部2Aと、累積値と予め決められた許容値とを比較する比較部3Aと、比較結果に基づいて時刻補正の可否を決定する決定部4Aの機能を実行する。   Referring to FIG. 1, the schematic configuration of the time monitoring apparatus of the present invention includes a processor 1A. The processor 1A determines whether or not time correction is possible based on the comparison result, a difference accumulation unit 2A that accumulates the difference between the current time and the set time, a comparison unit 3A that compares the accumulated value with a predetermined allowable value, and The function of the determination unit 4A is executed.

第1の概要構成は、時刻補正の際に現時刻と設定時刻との差分を累積し、累積値と許容値を比較することができる。従って、第1の概要構成は、累積値が許容値を超えていた場合に時刻補正を拒否する決定をすることにより不正な時刻補正を防止できるという効果を得られる。特に、本発明は、少しずつ繰り返して時刻を巻き戻すという不正な時刻補正についても確実に検出して防止できる。   In the first outline configuration, the difference between the current time and the set time can be accumulated during time correction, and the accumulated value can be compared with the allowable value. Therefore, the first outline configuration can obtain an effect of preventing unauthorized time correction by deciding to reject the time correction when the accumulated value exceeds the allowable value. In particular, the present invention can reliably detect and prevent illegal time correction in which the time is rewound by repeating little by little.

また、図1の差分累積部の手順と、比較部の手順と、決定部の手順はプログラムで実現できる。時刻監視装置はコンピュータの一例である。図1の概要構成における時刻監視方法は、プロセッサを用いて、差分累積部と、比較部と、決定部を動作させる。本概要構成におけるプログラムと時刻監視方法も時刻監視装置と同様な効果を得られることは明白である。   The procedure of the difference accumulating unit, the procedure of the comparing unit, and the procedure of the determining unit in FIG. 1 can be realized by a program. The time monitoring device is an example of a computer. The time monitoring method in the schematic configuration of FIG. 1 uses a processor to operate a difference accumulation unit, a comparison unit, and a determination unit. It is obvious that the program and the time monitoring method in this outline configuration can obtain the same effects as the time monitoring apparatus.

次に、本発明の第2の概要構成について、図2を参照して説明する。本発明の概要構成の電子機器は、第1の概要構成には含まれない時計5Aを含んでいる点で相違するがその他は同じである。本発明の第2の概要構成は、第1の概要構成と同じ効果を得られることは自明である。   Next, a second schematic configuration of the present invention will be described with reference to FIG. The electronic apparatus having the general configuration of the present invention is different in that it includes a timepiece 5A that is not included in the first general configuration, but is otherwise the same. It is obvious that the second outline configuration of the present invention can obtain the same effect as the first outline configuration.

次に、本発明の第1の実施例について詳細に説明する。図3は本発明の第1の実施例の時刻監視装置10の構成を示したブロック図である。時刻監視装置10は、時刻補正の監視機能を含んだコンピュータの1つの装置であり、独立して設置されてもよいし、別の装置に組み込まれ手設置されてもよい。   Next, the first embodiment of the present invention will be described in detail. FIG. 3 is a block diagram showing the configuration of the time monitoring apparatus 10 according to the first embodiment of the present invention. The time monitoring device 10 is one device of a computer including a time correction monitoring function, and may be installed independently, or may be incorporated in another device and manually installed.

時刻監視装置10は、記憶部11と、プロセッサ12と、インターフェース部13を有する。記憶部11は、プロセッサ12で実行されるプログラムやデータを記憶する手段であり、半導体記憶装置で構成される主記憶装置で実現されるが、大容量の記憶容量を必要とする場合は磁気ディスク装置のような補助記憶装置と組み合わせて構成することもできる。記憶部11は、監視制御部14と差分累積値15と差分許容値16と起動条件17と記録時刻18とフラグ19を格納できる。   The time monitoring apparatus 10 includes a storage unit 11, a processor 12, and an interface unit 13. The storage unit 11 is a means for storing a program and data executed by the processor 12 and is realized by a main storage device composed of a semiconductor storage device. When a large storage capacity is required, the storage unit 11 is a magnetic disk. It can also be configured in combination with an auxiliary storage device such as a device. The storage unit 11 can store the monitoring control unit 14, the accumulated difference value 15, the allowable difference value 16, the activation condition 17, the recording time 18, and the flag 19.

プロセッサ12は、データを処理する装置であり、記憶部11に格納されるプログラムを実行する機能を有する。インターフェース部13はプロセッサ12の制御に従って時刻監視装置10の外部と接続して情報を交換する機能を有する。図示していないが、インターフェース部13は外部に設けられた時計と接続し現時刻を取得したり、外部の制御手段と接続して様々な情報を交換したりする。   The processor 12 is a device that processes data, and has a function of executing a program stored in the storage unit 11. The interface unit 13 has a function of exchanging information by connecting to the outside of the time monitoring apparatus 10 under the control of the processor 12. Although not shown, the interface unit 13 is connected to a clock provided outside to acquire the current time, and is connected to an external control unit to exchange various information.

監視制御部14は、時刻監視装置10を制御するためのプログラムであり記憶部11に格納され、プロセッサ12で実行される。監視制御部14は時刻補正の不正を防止するための動作を実行する。監視制御部14の動作は、後述の動作の説明(図4、図5のフローチャート参照)で詳細に説明する。   The monitoring control unit 14 is a program for controlling the time monitoring device 10, stored in the storage unit 11, and executed by the processor 12. The monitoring control unit 14 performs an operation for preventing the time correction from being illegal. The operation of the monitoring control unit 14 will be described in detail in the description of the operation described later (see the flowcharts in FIGS. 4 and 5).

差分累積値15は、時刻補正により設定される時刻と、現時刻との差分を累積した値であり記憶部11に格納される。すなわち、差分累積値15は、時刻補正により補正された時間を累積した値であり、時刻補正を繰り返し実行したときの総補正時間を表している。差分許容値16は、外部の監視者により設定され、差分累積値15の許容範囲を定めた値であり記憶部11に格納される。   The accumulated difference value 15 is a value obtained by accumulating the difference between the time set by the time correction and the current time, and is stored in the storage unit 11. That is, the accumulated difference value 15 is a value obtained by accumulating the time corrected by the time correction, and represents the total correction time when the time correction is repeatedly executed. The allowable difference value 16 is set by an external supervisor, and is a value that defines the allowable range of the accumulated difference value 15 and is stored in the storage unit 11.

起動条件17は、外部の監視者により設定され、時刻が巻き戻されていないかという観点で時刻の経過を監視する動作を起動する条件であり、記憶部11に格納される。例えば、起動条件17は、1分周期、10分周期、1時間周期のように決められた時間間隔として、または、毎日午前10時、毎時0分0秒というように実行する時刻として設定することができる。起動条件17が短い間隔であるほど、時刻監視装置10は早期に不正を発見することができる。ただし、起動条件17を短い間隔にするほど、時刻監視装置10の監視動作のための負荷が増大する。利用者は、これらを考慮して起動条件17を設定することができる。   The activation condition 17 is a condition that is set by an external monitor and activates an operation for monitoring the passage of time from the viewpoint of whether the time has been rewound, and is stored in the storage unit 11. For example, the activation condition 17 is set as a time interval determined as a 1-minute period, a 10-minute period, or an 1-hour period, or as a time to be executed such as every day at 10:00 am, every hour 0 minutes 0 seconds. Can do. The shorter the activation condition 17 is, the earlier the time monitoring device 10 can find fraud. However, the load for the monitoring operation of the time monitoring device 10 increases as the activation condition 17 is set to a shorter interval. The user can set the activation condition 17 in consideration of these.

記録時刻18は、定期的にまたは決められた時刻毎に記録されるその時点の現時刻であり、記憶部11に格納される。フラグ19は、オンとオフのいずれかの状態を表すフラグであり、記録時刻18と現時刻とを比較し、現時刻が不正と判断された場合にオンとされる。本実施例では、フラグ19は記憶部11に格納されるが、プロセッサ12内のレジスタ(図示しない)に格納されてもよいし、専用のフリップフロップに格納されるようにしてもよい。同様に、差分累積値15、差分許容値16、起動条件17、および記録時刻18も、記憶部11以外の場所に格納されてもよい。   The recording time 18 is the current time at which the recording time 18 is recorded periodically or at predetermined times, and is stored in the storage unit 11. The flag 19 is a flag representing either the on or off state, and is turned on when the recording time 18 is compared with the current time and the current time is determined to be invalid. In the present embodiment, the flag 19 is stored in the storage unit 11, but may be stored in a register (not shown) in the processor 12 or may be stored in a dedicated flip-flop. Similarly, the accumulated difference value 15, the allowed difference value 16, the activation condition 17, and the recording time 18 may be stored in a place other than the storage unit 11.

次に、本発明の第1の実施例の動作について説明する。本発明では、時刻の経過を監視する動作と、差分累積値15を監視する動作を行う。まず、時刻の経過を監視する動作について図4のフローチャートを参照して説明し、続いて差分累積値15を監視する動作について図5のフローチャートを参照して説明する。また、以降の動作説明では、便宜上、動作主体をプログラムである監視制御部14として記載するが、実際には監視制御部14をプロセッサ12が実行するものである。なお、第2の実施例、第3の実施例も同様に、動作の主体をプログラムとして記載している。   Next, the operation of the first embodiment of the present invention will be described. In the present invention, an operation for monitoring the passage of time and an operation for monitoring the accumulated difference value 15 are performed. First, the operation for monitoring the passage of time will be described with reference to the flowchart of FIG. 4, and the operation for monitoring the accumulated difference value 15 will be described with reference to the flowchart of FIG. In the following description of the operation, for the sake of convenience, the operation subject is described as the monitoring control unit 14 that is a program. However, the processor 12 actually executes the monitoring control unit 14. Similarly, in the second embodiment and the third embodiment, the operation subject is described as a program.

図4は時刻経過の監視動作を示したフローチャートである。ただし、差分累積値15の監視動作を指示する監視要求があった場合、監視制御部14は差分累積値15を監視する動作を優先して実行する。図4の動作は監視要求に対する動作を実行していないときに実行される。   FIG. 4 is a flowchart showing a time-lapse monitoring operation. However, when there is a monitoring request for instructing the monitoring operation of the difference accumulation value 15, the monitoring control unit 14 preferentially executes the operation of monitoring the difference accumulation value 15. The operation of FIG. 4 is executed when the operation for the monitoring request is not executed.

図4を参照すると、監視制御部14はインターフェース部13を介して外部の時計から現時刻(Tp)を取得する(S51)。次に監視制御部14は現時刻(Tp)を参照して起動条件17が成立したか判断する(S52)。起動条件17が成立しなければ(S52/No)、監視制御部14は一定時間(例えば1分/10分/1時間など)を空けてステップS51に戻り、起動条件17の成立を監視する。   Referring to FIG. 4, the monitoring control unit 14 acquires the current time (Tp) from an external clock via the interface unit 13 (S51). Next, the monitoring control unit 14 refers to the current time (Tp) and determines whether the activation condition 17 is satisfied (S52). If the activation condition 17 is not satisfied (S52 / No), the monitoring control unit 14 waits for a certain time (for example, 1 minute / 10 minutes / 1 hour) and returns to step S51, and monitors the activation condition 17 being satisfied.

起動条件17が成立すると(S52/Yes)、監視制御部14は現時刻(Tp)と記録時刻18(Tr)を比較する(S53)。正常であれば、現時刻(Tp)は記録時刻18(Tr)より未来の時刻(Tp>Tr)となっているはずである。   When the activation condition 17 is satisfied (S52 / Yes), the monitoring controller 14 compares the current time (Tp) with the recording time 18 (Tr) (S53). If it is normal, the current time (Tp) should be a future time (Tp> Tr) from the recording time 18 (Tr).

現時刻(Tp)が記録時刻18(Tr)より未来でなければ(Tp≦Tr)(S54/No)、監視制御部14はフラグ19をオンとし(S55)、時計の時刻が不正となっていることを記録する。続いて、現時刻(Tp)を記録時刻18に格納する(S56)。一方、現時刻(Tp)が記録時刻18(Tr)より未来であれば(Tp>Tr)(S54/Yes)、現時刻(Tp)を記録時刻18に格納する(S56)。時刻の経過を監視する動作は以上の手順を繰り返し実行する。   If the current time (Tp) is not later than the recording time 18 (Tr) (Tp ≦ Tr) (S54 / No), the monitoring controller 14 turns on the flag 19 (S55), and the time of the clock becomes invalid. Record that. Subsequently, the current time (Tp) is stored at the recording time 18 (S56). On the other hand, if the current time (Tp) is later than the recording time 18 (Tr) (Tp> Tr) (S54 / Yes), the current time (Tp) is stored in the recording time 18 (S56). The operation for monitoring the passage of time repeats the above procedure.

次に、時刻補正における差分累積値15を監視する動作について説明する。図5は差分累積値15を監視する動作を示したフローチャートである。図5を参照すると、監視制御部14はインターフェース部13を介して外部から監視要求を受信したか監視する(S61)。監視要求は、外部で時計に対する時刻補正の実行に伴って生成される。監視要求は、時刻補正の対象となる時計の現時刻(Tp)と、補正により新たに現時刻として設定される設定時刻(Ts)を付属情報として含んでいる。   Next, an operation for monitoring the accumulated difference value 15 in time correction will be described. FIG. 5 is a flowchart showing an operation of monitoring the accumulated difference value 15. Referring to FIG. 5, the monitoring control unit 14 monitors whether a monitoring request is received from the outside via the interface unit 13 (S61). The monitoring request is generated along with the execution of time correction on the clock externally. The monitoring request includes, as attached information, the current time (Tp) of the clock subject to time correction and the set time (Ts) newly set as the current time by the correction.

監視要求を受けると(S61/Yes)、監視制御部14はフラグ19がオンであるか否かを判定する(S62)。フラグ19がオンであれば(S62/Yes)、監視制御部14は設定異常応答を外部に返送する(S68)。   When the monitoring request is received (S61 / Yes), the monitoring control unit 14 determines whether or not the flag 19 is on (S62). If the flag 19 is ON (S62 / Yes), the monitoring control unit 14 returns a setting abnormality response to the outside (S68).

フラグ19がオフであれば(S62/No)、監視制御部14は設定時刻(Ts)と現時刻(Tp)との差分(Ts−Tp=Δとする)を計算する(S63)。差分Δは設定時刻(Ts)が現時刻(Tp)より過去であれば負の値となり未来であれば正の値となり一致していれば“0”となる。監視制御部14は、この差分Δを差分累積値15(ΣΔとする)に加算して差分累積値15を更新する(ΣΔ←ΣΔ+Δ)(S64)。   If the flag 19 is off (S62 / No), the monitoring control unit 14 calculates the difference (Ts−Tp = Δ) between the set time (Ts) and the current time (Tp) (S63). The difference Δ is a negative value if the set time (Ts) is past the current time (Tp), a positive value if it is in the future, and is “0” if they match. The monitoring control unit 14 adds the difference Δ to the difference accumulated value 15 (ΣΣ) and updates the difference accumulated value 15 (ΣΔ ← ΣΔ + Δ) (S64).

このとき、差分Δも差分累積値15も符号付で計算される。すなわち、差分累積値15は単調に増大するものではなく増減することもある。例えば、外部の時計が進んだり遅れたりする特性を持っている場合、Δは正の値になったり負の値になったりすると推定される。外部の時計が常に進む特性を持っていれば、Δは負の値となると推定される。   At this time, both the difference Δ and the difference accumulated value 15 are calculated with signs. That is, the accumulated difference value 15 does not increase monotonously but may increase or decrease. For example, when an external clock has a characteristic of moving forward or backward, it is estimated that Δ becomes a positive value or a negative value. If the external clock has a characteristic that always advances, Δ is estimated to be a negative value.

次に、監視制御部14は更新された差分累積値15と差分許容値16(L)とを比較し、差分累積値15が差分許容値16以内(−L≦ΣΔ≦L)か否かを判定する(S66)。差分累積値15が差分許容値16以内であれば(S66/Yes)、監視制御部14は設定正常応答を外部に返送する。一方、差分累積値15が差分許容値16以内でなければ(S66/No)、監視制御部14は設定異常応答を外部に返送する。   Next, the monitoring control unit 14 compares the updated difference accumulated value 15 with the allowable difference value 16 (L), and determines whether or not the accumulated difference value 15 is within the allowable difference value 16 (−L ≦ ΣΔ ≦ L). Determination is made (S66). If the accumulated difference value 15 is within the allowed difference value 16 (S66 / Yes), the monitoring control unit 14 returns a setting normal response to the outside. On the other hand, if the accumulated difference value 15 is not within the allowable difference value 16 (S66 / No), the monitoring control unit 14 returns a setting abnormality response to the outside.

ここで、外部の時計が常に進む特性を持つか、または常に遅れる特性を持つ場合の動作について説明する。このような特性を持つ時計の場合、差分累積値15は増大を続け、そのままに動作を続けると、差分許容値16を超えてしまう可能性がある。従って、監視制御部14は、時計の精度により差分累積値15が差分許容値16を超える前に、差分累積値15に対して精度分を補正する必要がある。   Here, the operation in the case where the external timepiece always has a characteristic of advancing or always having a characteristic of being delayed will be described. In the case of a watch having such characteristics, the difference accumulated value 15 continues to increase, and if the operation is continued as it is, there is a possibility that the difference allowable value 16 may be exceeded. Therefore, the monitoring control unit 14 needs to correct the accuracy of the difference accumulated value 15 before the difference accumulated value 15 exceeds the allowable difference value 16 due to the accuracy of the clock.

例えば外部の時計の精度が月差5分であるとき、正しく時刻補正をした場合でも、差分累積値15の値は月当たり最大5分となりうる。仮に差分許容値16が30分に設定されているとすれば、6ヶ月で差分累積値15は差分許容値16に到達し誤って不正と判定されてしまう可能性がある。   For example, when the accuracy of the external clock is 5 minutes per month, even if the time is correctly corrected, the difference accumulated value 15 can be a maximum of 5 minutes per month. If the allowable difference value 16 is set to 30 minutes, the accumulated difference value 15 may reach the allowable difference value 16 in six months and may be erroneously determined to be illegal.

時計の精度に起因する補正動作の一例について説明する。監視制御部14は、差分許容値16と精度値(E)に基づいて補正間隔(T)を決定する。補正間隔は、予め候補を決めておき、条件を満足する候補の中から最大の候補を選択するようにすればよい。例えば、候補は、1年間隔、1ヶ月間隔、1日間隔のように決めればよい。   An example of the correction operation resulting from the accuracy of the timepiece will be described. The monitoring control unit 14 determines the correction interval (T) based on the allowable difference value 16 and the accuracy value (E). The correction interval may be determined in advance, and the maximum candidate may be selected from candidates that satisfy the conditions. For example, the candidates may be determined as one year interval, one month interval, or one day interval.

精度値(E)は対象となる時計の精度を示す値であり、時計または外部の記憶手段から取得できるものとする。補正間隔が経過すると、監視制御部14は差分累積値15(ΣΔ)から精度値(E)を減算して差分累積値15を補正する。減算において、監視制御部14はΣΔの絶対値からEの絶対値を減算し符号はそのままとする。このとき(ΣΔの絶対値)<(Eの絶対値)であれば、監視制御部14は差分累積値15(ΣΔ)=0とする。   The accuracy value (E) is a value indicating the accuracy of the target timepiece, and can be acquired from the timepiece or external storage means. When the correction interval elapses, the monitoring control unit 14 corrects the accumulated difference value 15 by subtracting the accuracy value (E) from the accumulated difference value 15 (ΣΔ). In the subtraction, the monitoring control unit 14 subtracts the absolute value of E from the absolute value of ΣΔ and keeps the sign as it is. At this time, if (absolute value of ΣΔ) <(absolute value of E), the monitoring control unit 14 sets the accumulated difference value 15 (ΣΔ) = 0.

例えば、精度が月差5分の時計で、差分許容値16(L)が30分の場合を例に説明する。監視制御部14は精度値(=5分)<L(=30分)なので、補正周期を1ヶ月と決めることができる。L<5分であれば監視制御部14は補正間隔を1日と決めることができるし、L>60分であれば監視制御部14は補正間隔を1年と決めることができる。   For example, a case where the accuracy is a clock with a monthly difference of 5 minutes and the allowable difference value 16 (L) is 30 minutes will be described as an example. Since the monitoring controller 14 has an accuracy value (= 5 minutes) <L (= 30 minutes), the correction cycle can be determined as one month. If L <5 minutes, the monitoring control unit 14 can determine the correction interval as one day, and if L> 60 minutes, the monitoring control unit 14 can determine the correction interval as one year.

監視制御部14は補正間隔が経過すると差分累積値15から精度値を減算する。この例では、監視制御部14は毎月差分累積値15から5分を減算する。監視制御部14は、差分累積値15が−5分〜+5分の範囲内であれば差分累積値15を“0”とする。例えば差分累積値15が“−7分”であれば、監視制御部14は差分累積値15を“−2分”に補正する。   The monitoring control unit 14 subtracts the accuracy value from the difference accumulated value 15 when the correction interval elapses. In this example, the monitoring control unit 14 subtracts 5 minutes from the monthly difference accumulation value 15. The monitoring control unit 14 sets the difference accumulation value 15 to “0” if the difference accumulation value 15 is within the range of −5 minutes to +5 minutes. For example, if the difference accumulation value 15 is “−7 minutes”, the monitoring control unit 14 corrects the difference accumulation value 15 to “−2 minutes”.

このように、本発明は、時刻補正で補正された時刻の差分Δを累積して、差分累積値15に対して差分許容値16を設定して差分累積値15が差分許容値16を超えないかを監視している。このため、本発明は、1回あたりの許容範囲内で時間を繰り返し巻き戻すことにより時計を不正に巻き戻すことを防止することができる。また、本発明は、時刻が巻き戻されていないかということも検出しているので、正規の時刻補正の手順以外で不正に時刻を巻き戻したとしても、不正を検出することができる。   In this way, the present invention accumulates the time difference Δ corrected by the time correction, sets the difference allowable value 16 for the difference accumulated value 15, and the difference accumulated value 15 does not exceed the difference allowable value 16. Monitoring. For this reason, the present invention can prevent the timepiece from being rewound illegally by repeatedly rewinding the time within the permissible range. In addition, since the present invention also detects whether the time has been rewound, it is possible to detect fraud even if the time is rewound by other than the regular time correction procedure.

また、本発明の時刻監視装置10は、標準時刻を提供する施設から標準時刻を取得することなく時計の時刻の不正を検出できるので、施設の利用費用が不要であり、また施設との間の通信費用が不要である。従って、時刻監視装置10は時刻補正時の通信費が不要であり、また、外部施設と接続するための公衆回線に接続するためのハードウェアも不要であるため、不正な時刻補正を低コストで防止することができる。   Moreover, since the time monitoring apparatus 10 of the present invention can detect the clock time fraud without acquiring the standard time from the facility that provides the standard time, there is no facility use cost, No communication costs are required. Therefore, the time monitoring apparatus 10 does not require communication costs for time correction, and also does not require hardware for connecting to a public line for connecting to an external facility. Can be prevented.

また、第1の実施例は、時計の精度により発生する差分Δに対して、差分累積値15を補正するので、時計の精度により発生する誤動作を未然に解決できる。   Further, since the first embodiment corrects the accumulated difference value 15 for the difference Δ generated due to the accuracy of the timepiece, the malfunction that occurs due to the accuracy of the timepiece can be solved in advance.

次に、本発明の第2の実施例について説明する。図6は本発明の第2の実施例の電子機器20の構成を示したブロック図である。電子機器20は、第1の実施例の時刻監視装置10を含み、使用期限付きのコンテンツ27を実行する際に、時刻監視装置10と時計23により使用期限の監視を実行する。   Next, a second embodiment of the present invention will be described. FIG. 6 is a block diagram showing the configuration of the electronic device 20 according to the second embodiment of the present invention. The electronic device 20 includes the time monitoring device 10 of the first embodiment, and when the content 27 with the expiration date is executed, the expiration date is monitored by the time monitoring device 10 and the clock 23.

時刻監視装置10の構成や動作については、第1の実施例で説明した通りであるので、説明は省略する。時刻監視装置10はインターフェース部13を介して記憶部21、プロセッサ22に接続し、情報を交換することができる。   Since the configuration and operation of the time monitoring device 10 are as described in the first embodiment, the description thereof is omitted. The time monitoring apparatus 10 can be connected to the storage unit 21 and the processor 22 via the interface unit 13 to exchange information.

電子機器20は、使用期限付きのソフトウェアや映像等を動作させる機能を有した電子機器であり、例えば大型のコンピュータからパーソナルコンピュータに及ぶ情報処理装置や、情報処理機能を含んだ携帯電話機や、情報処理機能を含んだビデオ再生装置などである。電子機器20は、記憶部21とプロセッサ22と時計23と入力装置24と表示装置25と時刻監視装置10を含む。   The electronic device 20 is an electronic device having a function of operating software with expiration date, video, etc., for example, an information processing device ranging from a large computer to a personal computer, a mobile phone including an information processing function, information For example, a video playback device including a processing function. The electronic device 20 includes a storage unit 21, a processor 22, a clock 23, an input device 24, a display device 25, and a time monitoring device 10.

プロセッサ22は、データを処理する装置であり、記憶部21に格納されるプログラムを実行する機能を有する。時計23は現時刻を刻む機能を有し、時刻補正のために時刻を設定したり現時刻を出力したりする機能を有する。入力装置24はキーボードやマウス等のように、利用者がデータを入力するための装置である。表示装置25は、例えば液晶ディスプレイ装置やCRT装置であり、制御プログラム26が必要な情報を表示したり、映像コンテンツ27を再生したりするときに使用される。   The processor 22 is a device that processes data, and has a function of executing a program stored in the storage unit 21. The clock 23 has a function of ticking the current time, and has a function of setting the time for time correction and outputting the current time. The input device 24 is a device for a user to input data, such as a keyboard and a mouse. The display device 25 is, for example, a liquid crystal display device or a CRT device, and is used when the control program 26 displays necessary information or reproduces the video content 27.

記憶部21は、半導体記憶素子で構成される主記憶と、磁気記憶装置や光記記憶装置で構成される補助記憶で構成することができる記憶手段であり、制御プログラム26、コンテンツ27、使用期間情報28を格納する。コンテンツ27は使用期限が制限されたソフトウェアや映像等である。コンテンツ27は2つ以上格納することができる。   The storage unit 21 is a storage unit that can be configured by a main storage configured by a semiconductor storage element and an auxiliary storage configured by a magnetic storage device or an optical storage device. Information 28 is stored. The content 27 is software, video, or the like with a limited expiration date. Two or more contents 27 can be stored.

使用期間情報28は、コンテンツ27の付属情報であり、コンテンツ27の使用期限を定義する情報を含む。例えば1年間契約して使用するソフトウェアであれば、使用期間情報28は“2007年10月1日〜2008年9月30日”のように定義される。また、短期間契約して鑑賞するビデオ映像であれば、使用期間情報28は“2007年10月1日23時〜2007年10月2日23時”のように定義される。使用期間情報28も、コンテンツ27に対応して、2つ以上格納することができる。   The usage period information 28 is information attached to the content 27 and includes information defining the usage period of the content 27. For example, in the case of software used under a one-year contract, the usage period information 28 is defined as “October 1, 2007 to September 30, 2008”. In the case of a video image that is viewed with a short term contract, the usage period information 28 is defined as “October 1, 2007 23:00 to October 2, 2007 23:00”. Two or more usage period information 28 can also be stored corresponding to the content 27.

制御プログラム26は、OS(operating system)やアプリケーションプログラム等を含むプログラムの集合であり、プロセッサ22で実行される。ただしコンテンツ27に相当する使用期限付きのアプリケーションプログラムはコンテンツ27として分けて示している。コンテンツ27が映像の場合、制御プログラム26は映像を再生するためのアプリケーションプログラムを含む。   The control program 26 is a set of programs including an OS (operating system) and application programs, and is executed by the processor 22. However, application programs with expiration dates corresponding to the contents 27 are shown separately as the contents 27. When the content 27 is a video, the control program 26 includes an application program for reproducing the video.

また、制御プログラム26は、機器制御部29を含んでいる。機器制御部29は、コンテンツ27を実行するか否かを制御したり、時刻補正を実行したりするプログラムである。機器制御部29の動作内容については図7と図8のフローチャートに示しており、動作の説明で詳細に説明する。   Further, the control program 26 includes a device control unit 29. The device control unit 29 is a program that controls whether or not to execute the content 27 and performs time correction. The operation content of the device control unit 29 is shown in the flowcharts of FIGS. 7 and 8, and will be described in detail in the description of the operation.

次に、第2の実施例の動作について説明する。電子機器20は、基本的な動作の他に、時計23に対する時刻補正の動作と、コンテンツ27の起動を制御する動作を行う。電子機器20の基本的な動作とは、例えば、コンピュータであれば様々な情報処理を実行する動作であり、携帯電話であれば通話機能を実行する動作であり、ビデオ再生装置であればコンテンツ27を再生する動作である。   Next, the operation of the second embodiment will be described. In addition to the basic operation, the electronic device 20 performs a time correction operation for the clock 23 and an operation for controlling the activation of the content 27. The basic operation of the electronic device 20 is, for example, an operation of executing various information processing in the case of a computer, an operation of executing a call function in the case of a mobile phone, and a content 27 in the case of a video playback device. Is an operation to play.

図7は時刻補正要求の動作を示したフローチャートである。制御プログラム26は時刻補正要求を検出すると、機器制御部29に時刻補正要求を通知する。ここで、時刻補正要求は設定時刻(Ts)を含んでいるものとする。図7を参照すると、機器制御部29は、時刻補正要求を受けると、時計23から現時刻(Tp)を読み出す。機器制御部29は、時刻補正要求に含まれる設定時刻(Ts)と読み出した現時刻(Tp)を監視要求に付加して、時刻監視装置10に対して監視要求を送る(S71)。   FIG. 7 is a flowchart showing the operation of the time correction request. When detecting the time correction request, the control program 26 notifies the device control unit 29 of the time correction request. Here, it is assumed that the time correction request includes the set time (Ts). Referring to FIG. 7, upon receiving a time correction request, the device control unit 29 reads the current time (Tp) from the clock 23. The device control unit 29 adds the set time (Ts) included in the time correction request and the read current time (Tp) to the monitoring request, and sends the monitoring request to the time monitoring device 10 (S71).

なお、時刻補正要求は、例えば、制御プログラム26に含まれるプログラムを動作させて、利用者が指示することによって発生する。利用者は入力装置24から設定時刻を入力することができる。この他に、図示しないが、時刻補正要求は通信手段により外部からすることもできる。   The time correction request is generated, for example, by operating a program included in the control program 26 and instructing the user. The user can input the set time from the input device 24. In addition, although not shown, the time correction request can also be made from the outside by the communication means.

時刻監視装置10は、監視要求を受けると、第1の実施例で説明した通りに動作して、設定正常応答か設定異常応答のいずれかを返送する。機器制御部29は、設定異常応答を受けた場合(S72/Yes)、時刻補正は実行しない。利用者が入力装置24から時刻補正を操作した場合、機器制御部29は時刻補正に失敗したことを表示装置25に表示することができる。   When receiving the monitoring request, the time monitoring device 10 operates as described in the first embodiment, and returns either a setting normal response or a setting abnormality response. If the device control unit 29 receives a setting abnormality response (S72 / Yes), the device control unit 29 does not perform time correction. When the user operates time correction from the input device 24, the device control unit 29 can display on the display device 25 that the time correction has failed.

機器制御部29は、設定正常応答を受けると(S73/Yes)、設定時刻(Ts)を現時刻(Tp)として時計23に設定する(Tp←Ts)(S74)。利用者が入力装置24から時刻補正を操作した場合、制御プログラム26は時刻補正に成功したことを表示装置25に表示することができる。   Upon receiving the setting normal response (S73 / Yes), the device control unit 29 sets the set time (Ts) in the clock 23 as the current time (Tp) (Tp ← Ts) (S74). When the user operates time correction from the input device 24, the control program 26 can display on the display device 25 that the time correction has been successful.

このように、電子機器20は、時刻監視装置10を利用して不正な時刻補正を防止することができる。時刻補正の現時刻(Tp)と設定時刻(Ts)との差分累積値15が差分許容値16を超えていれば、時刻監視装置10から設定異常応答が返送される。従って、電子機器20は時刻監視装置10を装備するだけで不正な時刻補正を中止し、時計23が不正な時刻とされることを防止することができる。   As described above, the electronic device 20 can prevent unauthorized time correction by using the time monitoring device 10. If the accumulated difference value 15 between the current time (Tp) of the time correction and the set time (Ts) exceeds the allowable difference value 16, a setting abnormality response is returned from the time monitoring device 10. Therefore, the electronic device 20 can stop the unauthorized time correction simply by mounting the time monitoring device 10 and prevent the clock 23 from being set to an unauthorized time.

図8はコンテンツの使用要求の動作を示したフローチャートである。制御プログラム26はコンテンツ27の使用要求を検出すると、機器制御部29に使用要求を通知する。使用要求は、対象とするコンテンツ27を指定する情報を含んでいる。図8を参照すると、機器制御部29は使用要求で指定されたコンテンツ27の使用期間情報28を読み出し、時計23から現時刻(Tp)を読み出す(S76)。続いて機器制御部29は読み出した現時刻(Tp)と使用期間情報28とを比較し(S76)、現時刻(Tp)が使用期間内か否かを判断する(S77)。   FIG. 8 is a flowchart showing the operation of the content use request. When the control program 26 detects a use request for the content 27, the control program 26 notifies the device control unit 29 of the use request. The use request includes information specifying the target content 27. Referring to FIG. 8, the device control unit 29 reads the usage period information 28 of the content 27 specified by the usage request, and reads the current time (Tp) from the clock 23 (S76). Subsequently, the device control unit 29 compares the read current time (Tp) with the usage period information 28 (S76), and determines whether or not the current time (Tp) is within the usage period (S77).

現時刻(Tp)が使用期間内であれば(S77/Yes)、機器制御部29は指定されたコンテンツ27の使用を許可し、制御プログラム26に通知する(S78)。制御プログラム26は機器制御部29から使用許可の通知を受けると、指定されたコンテンツ27がソフトウェアであればソフトウェアを起動することができ、指定されたコンテンツ27が映像であれば映像を再生するためのアプリケーションプログラムを起動することができる。   If the current time (Tp) is within the usage period (S77 / Yes), the device control unit 29 permits the use of the designated content 27 and notifies the control program 26 (S78). When the control program 26 receives a notification of permission of use from the device control unit 29, it can start the software if the designated content 27 is software, and reproduces the video if the designated content 27 is video. Application programs can be started.

このとき、時計23の現時刻(Tp)は時刻監視装置10の動作により不正な時刻補正を防止して、正常な時刻となっている。このため、本発明は不正な時刻巻き戻しによるコンテンツ27の不正使用を防止することができる。   At this time, the current time (Tp) of the clock 23 is a normal time by preventing an incorrect time correction by the operation of the time monitoring device 10. Therefore, the present invention can prevent unauthorized use of the content 27 due to unauthorized time rewinding.

また、電子機器20は外部の標準時刻を提供する施設から標準時刻を取得するために、外部と接続し通信するための構成を必要としないので、低コストで上記の不正なコンテンツ使用を防止することができる。また、第2の実施例は第1の実施例の時刻監視装置10を含んでいるので、第1の実施例で説明した効果と同じ効果も得ることができることは明らかである。   In addition, since the electronic device 20 does not require a configuration for connecting and communicating with the outside in order to acquire the standard time from a facility that provides an external standard time, the above-described unauthorized use of content is prevented at low cost. be able to. In addition, since the second embodiment includes the time monitoring device 10 of the first embodiment, it is obvious that the same effect as that described in the first embodiment can be obtained.

次に本発明の第3の実施例について説明する。図9は第3の実施例の構成を示したブロック図である。第3の実施例は、第2の実施例の構成において、時刻監視装置10のプロセッサ12の機能をプロセッサ22で代行し、記憶部11の格納内容を記憶部21に格納している。これにより、第3の実施例は、不正な時刻補正を防止するためのコストをさらに小さくできる。   Next, a third embodiment of the present invention will be described. FIG. 9 is a block diagram showing the configuration of the third embodiment. In the third embodiment, in the configuration of the second embodiment, the function of the processor 12 of the time monitoring apparatus 10 is substituted by the processor 22, and the storage content of the storage unit 11 is stored in the storage unit 21. Thereby, the third embodiment can further reduce the cost for preventing unauthorized time correction.

このために、プロセッサ12で実行されるプログラムの形式を、プロセッサ22で実行できる形式に変換する必要があり、監視制御部14はプロセッサ22で実行できるように変換した監視制御部34に置き換えられている。   For this reason, it is necessary to convert the format of the program executed by the processor 12 into a format that can be executed by the processor 22, and the monitoring control unit 14 is replaced with a monitoring control unit 34 that has been converted to be executed by the processor 22. Yes.

図9を参照すると、第3の実施例の電子機器30は、記憶部31とプロセッサ22と時計23と入力装置24と表示装置25を含む。プロセッサ22と時計23と入力装置24と表示装置25の機能は、実施例2の電子機器20に示した同名の構成と同じであるため説明は省略する。   Referring to FIG. 9, the electronic device 30 according to the third embodiment includes a storage unit 31, a processor 22, a clock 23, an input device 24, and a display device 25. The functions of the processor 22, the clock 23, the input device 24, and the display device 25 are the same as the configurations of the same names shown in the electronic device 20 of the second embodiment, and thus description thereof is omitted.

記憶部31は、記憶部21で格納される制御プログラム26とコンテンツ27と使用期間情報28と機器制御部29に加えて、記憶部11に格納される差分累積値15と差分許容値16と起動条件17と記録時刻18とフラグ19を格納することができる。第1の実施例(図3)と同名のものと、第2の実施例(図6)と同名のものはそれぞれ同じ機能を持ち同じように動作するので説明は省略する。   In addition to the control program 26, the content 27, the usage period information 28, and the device control unit 29 stored in the storage unit 21, the storage unit 31 starts up the accumulated difference value 15, the allowed difference value 16, and the activation value stored in the storage unit 11. The condition 17, the recording time 18, and the flag 19 can be stored. The components having the same names as those of the first embodiment (FIG. 3) and those having the same names as those of the second embodiment (FIG. 6) have the same functions and operate in the same manner, and thus description thereof is omitted.

監視制御部34は、プロセッサ12で動作する監視制御部14を、プロセッサ22で動作できるように変換したプログラムである。すなわち、監視制御部34の動作内容は監視制御部14の動作内容と同じであり、プロセッサ22で動作できるようにしたプログラムである。   The monitoring control unit 34 is a program obtained by converting the monitoring control unit 14 that operates on the processor 12 so that the processor 22 can operate. That is, the operation content of the monitoring control unit 34 is the same as the operation content of the monitoring control unit 14 and is a program that can be operated by the processor 22.

次に、第3の実施例の動作を説明する。まず時刻経過の監視動作について説明する。時刻経過の監視動作は監視制御部34により実行される。その動作内容は図4に示した通りであるので詳細な説明は省略する。ただし、ステップS51で、監視制御部34はインターフェース部13を使用せず、時計23に直接アクセスして現時刻(Tp)を取得する。   Next, the operation of the third embodiment will be described. First, the time-lapse monitoring operation will be described. The monitoring control unit 34 executes the time lapse monitoring operation. The details of the operation are as shown in FIG. However, in step S51, the monitoring control unit 34 directly accesses the clock 23 and acquires the current time (Tp) without using the interface unit 13.

次に、時刻補正要求の動作とコンテンツ27の使用要求の動作について説明する。図10は第3の実施例における時刻補正要求の動作とコンテンツ27の使用要求の動作を示したフローチャートである。   Next, the operation of the time correction request and the operation of using the content 27 will be described. FIG. 10 is a flowchart showing the time correction request operation and the content 27 use request operation in the third embodiment.

図10のステップS81〜S86は制御プログラム26により実行され、ステップS87〜S89は機器制御部29により実行され、ステップS91〜S97は監視制御部34により実行される。ステップS87〜S89の詳細な動作内容は、図8のステップS76〜S78に相当し、ステップS91〜S97の詳細な動作内容は図5のステップS62〜S68に相当する。従って、ステップS87〜S89とステップS91〜S97については概要を説明する。   Steps S81 to S86 in FIG. 10 are executed by the control program 26, steps S87 to S89 are executed by the device control unit 29, and steps S91 to S97 are executed by the monitoring control unit 34. Detailed operation contents of steps S87 to S89 correspond to steps S76 to S78 of FIG. 8, and detailed operation contents of steps S91 to S97 correspond to steps S62 to S68 of FIG. Accordingly, the outline of steps S87 to S89 and steps S91 to S97 will be described.

まず、制御プログラム26は、時刻補正要求を検出すると(S81/Yes)、監視制御部34を起動して監視要求する(S82)。制御プログラム26は、コンテンツ27の使用要求を検出すると(S83/Yes)、機器制御部29を起動し使用要求する(S84)。   First, when the control program 26 detects a time correction request (S81 / Yes), it activates the monitoring control unit 34 to make a monitoring request (S82). When the control program 26 detects a use request for the content 27 (S83 / Yes), the control program 26 activates the device control unit 29 to request use (S84).

監視要求を受けると、監視制御部34はフラグ19がオンであるか否かを判定する(S91)。フラグ19がオンであれば(S91/Yes)、監視制御部34は設定異常応答を制御プログラム26に通知する(S97)。   When receiving the monitoring request, the monitoring control unit 34 determines whether or not the flag 19 is on (S91). If the flag 19 is on (S91 / Yes), the monitoring controller 34 notifies the control program 26 of a setting abnormality response (S97).

フラグ19がオフであれば(S91/No)、監視制御部34は設定時刻(Ts)と現時刻(Tp)との差分(Ts−Tp=Δ)を計算する(S92)。監視制御部34は、この差分Δを差分累積値15(ΣΔ)に加算して差分累積値15を更新する(ΣΔ←ΣΔ+Δ)(S93)。   If the flag 19 is off (S91 / No), the monitoring controller 34 calculates a difference (Ts−Tp = Δ) between the set time (Ts) and the current time (Tp) (S92). The monitoring control unit 34 adds the difference Δ to the difference accumulated value 15 (ΣΔ) and updates the difference accumulated value 15 (ΣΔ ← ΣΔ + Δ) (S93).

次に、監視制御部34は更新された差分累積値15(ΣΔ)と差分許容値16(Lとする)とを比較し(S94)、差分累積値15(ΣΔ)が差分許容値16(L)以内(−L≦ΣΔ≦L)か否かを判定する(S95)。差分累積値15が差分許容値16以内であれば(S95/Yes)、監視制御部34は設定正常応答を制御プログラム26に通知する(S96)。一方、差分累積値15が差分許容値16以内でなければ(S95/No)、監視制御部34は設定異常応答を制御プログラム26に通知する(S97)。   Next, the monitoring control unit 34 compares the updated difference accumulated value 15 (ΣΔ) with the allowable difference value 16 (L) (S94), and the accumulated difference value 15 (ΣΔ) becomes the allowable difference value 16 (L ) (−L ≦ ΣΔ ≦ L) or not (S95). If the accumulated difference value 15 is within the allowable difference value 16 (S95 / Yes), the monitoring control unit 34 notifies the control program 26 of a setting normal response (S96). On the other hand, if the difference accumulated value 15 is not within the allowable difference value 16 (S95 / No), the monitoring control unit 34 notifies the control program 26 of a setting abnormality response (S97).

設定正常応答を受けると、制御プログラム26は設定時刻(Ts)で時計23の現時刻(Tp)を設定する(Tp←Ts)(S85)。設定異常応答を受けると、制御プログラム26は時計23の設定を抑止する。制御プログラム26は時刻補正が成功したか否かを表示装置25に表示することができる。監視制御部34が設定異常応答をすることにより、制御プログラム26は不正な時刻補正を防止することができる。   Upon receiving the normal setting response, the control program 26 sets the current time (Tp) of the clock 23 at the set time (Ts) (Tp ← Ts) (S85). Upon receiving the setting abnormality response, the control program 26 suppresses the setting of the clock 23. The control program 26 can display on the display device 25 whether the time correction is successful. When the monitoring control unit 34 makes a setting abnormality response, the control program 26 can prevent unauthorized time correction.

一方、使用要求を受けると、機器制御部29は使用要求で指定されたコンテンツ27に対応する使用期間情報28を取得し、時計23から現時刻(Tp)を取得する(S87)。続いて機器制御部29は取得した現時刻(Tp)と使用期間情報28とを比較し(S87)、現時刻(Tp)が使用期間内か否かを判断する(S88)。   On the other hand, when receiving the use request, the device control unit 29 obtains the use period information 28 corresponding to the content 27 specified by the use request, and obtains the current time (Tp) from the clock 23 (S87). Subsequently, the device control unit 29 compares the acquired current time (Tp) with the usage period information 28 (S87), and determines whether or not the current time (Tp) is within the usage period (S88).

現時刻(Tp)が使用期間内であれば(S88/Yes)、機器制御部29は指定されたコンテンツ27の使用許可の通知を制御プログラム26へする(S89)。制御プログラム26は機器制御部29から使用許可の通知を受けると、コンテンツ27を起動して実行する(S86)。制御プログラム26は、指定されたコンテンツ27がソフトウェアであればソフトウェアを起動することができ、指定されたコンテンツ27が映像であれば映像を再生するためのアプリケーションプログラム(制御プログラム26内にある)を起動することができる。   If the current time (Tp) is within the usage period (S88 / Yes), the device control unit 29 notifies the control program 26 of permission to use the designated content 27 (S89). When receiving the use permission notification from the device control unit 29, the control program 26 activates and executes the content 27 (S86). If the designated content 27 is software, the control program 26 can start the software. If the designated content 27 is a video, an application program (in the control program 26) for reproducing the video is available. Can be activated.

このとき、時計23の現時刻(Tp)は監視制御部34のステップS91〜S97の動作により不正な時刻補正が防止され、正常な時刻となっている。このため、本発明は不正な時刻巻き戻しによるコンテンツ27の不正使用を防止することができる。   At this time, the current time (Tp) of the timepiece 23 is a normal time because the operation of the monitoring control unit 34 in steps S91 to S97 prevents unauthorized time correction. Therefore, the present invention can prevent unauthorized use of the content 27 due to unauthorized time rewinding.

このように、第3の実施例の電子機器30は、第1、第2の実施例と同様に、時刻補正で補正された時刻の差分Δを累積して、差分累積値15に対して差分許容値16を設定して差分累積値15が差分許容値16を超えないかを監視している。このため、第3の実施例の電子機器30も、1回あたりの許容範囲内で時間を繰り返し巻き戻すことにより時計23を不正に巻き戻すことを防止することができる。また、第3の実施例の電子機器30も、時刻が巻き戻されていないかということも検出しているので、正規の時刻補正の手順以外で不正に時刻を巻き戻したとしても、不正を検出することができる。   As described above, the electronic device 30 according to the third embodiment accumulates the time difference Δ corrected by the time correction as in the first and second embodiments, and makes a difference with respect to the difference accumulated value 15. An allowable value 16 is set to monitor whether the accumulated difference value 15 exceeds the allowed difference value 16. For this reason, the electronic device 30 of the third embodiment can also prevent the clock 23 from being rewound illegally by repeatedly rewinding the time within the permissible range. In addition, since the electronic device 30 of the third embodiment also detects whether the time has been rewound, even if the time is rewound by other than the regular time correction procedure, Can be detected.

また、第3の実施例の電子機器30は、標準時刻を提供する施設から標準時刻を取得することなく時計23の時刻の不正を検出できるので、施設の利用料が不要であり、また施設との間の通信費用が不要である。従って、電子機器30は時刻補正時の通信費が不要であり、また、外部施設と接続するための公衆回線に接続するためのハードウェアも不要であるため、不正な時刻補正を低コストで防止することができる。   In addition, since the electronic device 30 of the third embodiment can detect the illegal time of the clock 23 without acquiring the standard time from the facility that provides the standard time, there is no facility usage fee, There is no need for communication costs. Therefore, the electronic device 30 does not require communication costs for time correction, and also does not require hardware for connecting to a public line for connecting to an external facility, thereby preventing unauthorized time correction at low cost. can do.

また、第3の実施例の電子機器30も、第1の実施例の最後の部分で記載した時計の精度に起因する補正動作を実行することができる。第1の実施例では監視制御部14の手順をプロセッサ12で実行するが、第3の実施例では監視制御部14の手順を監視制御部34に組み込み、プロセッサ22で実行することができる。従って、第3の実施例の電子機器30も、第1の実施例と同様に、時計の精度に起因した誤動作を防止することができる。   Further, the electronic device 30 of the third embodiment can also perform the correction operation due to the accuracy of the timepiece described in the last part of the first embodiment. In the first embodiment, the procedure of the monitoring control unit 14 is executed by the processor 12, but in the third embodiment, the procedure of the monitoring control unit 14 can be incorporated in the monitoring control unit 34 and executed by the processor 22. Therefore, the electronic device 30 of the third embodiment can also prevent a malfunction caused by the accuracy of the timepiece, as in the first embodiment.

次に、本発明の第4の実施例について説明する。第4の実施例の電子機器の構成は第3の実施例と同じであるので説明は省略する。第4の実施例では、第3の実施例と比べて、機器制御部29と監視制御部34の動作内容が異なる。第4の実施例では、時刻補正要求に対して差分累積値15と差分許容値16との比較をせずに、使用要求の際に差分累積値15と差分許容値16を比較し、コンテンツ27の起動を制御することを特徴とする。   Next, a fourth embodiment of the present invention will be described. Since the configuration of the electronic device of the fourth embodiment is the same as that of the third embodiment, description thereof is omitted. In the fourth embodiment, the operation contents of the device control unit 29 and the monitoring control unit 34 are different from those in the third embodiment. In the fourth embodiment, the difference accumulated value 15 and the allowable difference value 16 are not compared with the time correction request, and the difference accumulated value 15 and the allowable difference value 16 are compared when the use request is made. It is characterized by controlling the activation of.

次に、本発明の第4の実施例の動作について説明する。まず監視制御部34の動作について説明する。第4の実施例では、監視制御部34は図4に示す時刻経過の監視動作のみを実行する。時刻経過の監視動作についてはすでに説明済みなので説明は省略する。   Next, the operation of the fourth embodiment of the present invention will be described. First, the operation of the monitoring control unit 34 will be described. In the fourth embodiment, the monitoring control unit 34 executes only the time-lapse monitoring operation shown in FIG. Since the time lapse monitoring operation has already been described, the description thereof will be omitted.

次に、時刻補正要求の動作とコンテンツ27の使用要求の動作について説明する。図11は第4の実施例における時刻補正要求の動作とコンテンツ27の使用要求の動作を示したフローチャートである。   Next, the operation of the time correction request and the operation of using the content 27 will be described. FIG. 11 is a flowchart showing the time correction request operation and the content 27 use request operation in the fourth embodiment.

図11のステップS81〜S86は制御プログラム26により実行され、残りのステップは機器制御部29により実行される。図11のステップS81〜S89の詳細な動作内容は、それぞれ図10のステップS81〜S89に相当するので、詳細な説明は省略する。   Steps S81 to S86 in FIG. 11 are executed by the control program 26, and the remaining steps are executed by the device control unit 29. Detailed operations in steps S81 to S89 in FIG. 11 correspond to steps S81 to S89 in FIG. 10, respectively, and detailed description thereof is omitted.

また、図11のステップS101〜S103の詳細な動作内容は、図10のステップS91、S94〜S95に相当する。ただし図10ではステップS91、S94〜S95は監視制御部34により実行されたが、図11のステップS101〜S103は機器制御部29によって実行される点が異なる。   Further, detailed operation contents of steps S101 to S103 in FIG. 11 correspond to steps S91 and S94 to S95 in FIG. However, although steps S91 and S94 to S95 are executed by the monitoring control unit 34 in FIG. 10, steps S101 to S103 of FIG. 11 are executed by the device control unit 29.

まず、制御プログラム26は、時刻補正要求を検出すると(S81/Yes)、機器制御部29を起動して監視要求する(S82)。制御プログラム26は、コンテンツ27の使用要求を検出すると(S83/Yes)、機器制御部29を起動し使用要求する(S84)。   First, when the control program 26 detects a time correction request (S81 / Yes), it activates the device control unit 29 to make a monitoring request (S82). When the control program 26 detects a use request for the content 27 (S83 / Yes), the control program 26 activates the device control unit 29 to request use (S84).

監視要求を受けると、機器制御部29は、設定時刻(Ts)と現時刻(Tp)との差分(Ts−Tp=Δ)を計算する(S92)。機器制御部29は、この差分Δを差分累積値15(ΣΔ)に加算して差分累積値15を更新し(ΣΔ←ΣΔ+Δ)(S93)、終了を制御プログラム26に通知する。終了通知を受けると、制御プログラム26は設定時刻(Ts)で時計23の現時刻(Tp)を再設定し(S85)、処理を終了する。   Upon receiving the monitoring request, the device control unit 29 calculates a difference (Ts−Tp = Δ) between the set time (Ts) and the current time (Tp) (S92). The device control unit 29 adds the difference Δ to the difference accumulated value 15 (ΣΔ), updates the difference accumulated value 15 (ΣΔ ← ΣΔ + Δ) (S93), and notifies the control program 26 of the end. Upon receiving the end notification, the control program 26 resets the current time (Tp) of the clock 23 at the set time (Ts) (S85), and ends the process.

このように、第4の実施例では、監視要求に対して時刻設定の可否を判定せずに、時計を再設定する。ただし、差分累積値15は更新されるので、差分累積値15が差分許容値16を超えたか否かは判断できる状態に保持できる。   As described above, in the fourth embodiment, the clock is reset without determining whether the time can be set in response to the monitoring request. However, since the difference accumulation value 15 is updated, it can be held in a state where it can be determined whether or not the difference accumulation value 15 exceeds the allowable difference value 16.

使用要求を受けると、機器制御部29はフラグ19がオンであるか否かを判定する(S101)。フラグ19がオンであれば(S101/Yes)、機器制御部29は、図示しないが、制御プログラム26に使用不許可の通知をする。制御プログラム26は、使用不許可の通知を受けても、コンテンツ27を起動しない。   Upon receiving the use request, the device control unit 29 determines whether or not the flag 19 is on (S101). If the flag 19 is on (S101 / Yes), the device control unit 29 notifies the control program 26 that use is not permitted, although not shown. The control program 26 does not activate the content 27 even when it receives a notification of non-use of use.

フラグ19がオフであれば(S101/No)、機器制御部29は差分累積値15(ΣΔ)と差分許容値16(Lとする)とを比較し(S102)、差分累積値15(ΣΔ)が差分許容値16(L)以内(−L≦ΣΔ≦L)か否かを判定する(S103)。差分累積値15が差分許容値16以内でなければ(S103/No)、機器制御部29は、図示しないが、制御プログラム26に使用不許可の通知をする。制御プログラム26は、使用不許可の通知を受けても、コンテンツ27を起動しない。   If the flag 19 is off (S101 / No), the device control unit 29 compares the difference accumulated value 15 (ΣΔ) with the allowable difference value 16 (L) (S102), and the difference accumulated value 15 (ΣΔ). Is within the allowable difference value 16 (L) (−L ≦ ΣΔ ≦ L) (S103). If the accumulated difference value 15 is not within the allowable difference value 16 (S103 / No), the device control unit 29 notifies the control program 26 that use is not permitted, although not shown. The control program 26 does not activate the content 27 even when it receives a notification of non-use of use.

差分累積値15が差分許容値16以内であれば(S103/Yes)、機器制御部29は、使用要求で指定されたコンテンツ27に対応する使用期間情報28を取得し、時計23から現時刻(Tp)を取得する(S87)。続いて機器制御部29は取得した現時刻(Tp)と使用期間情報28とを比較し(S87)、現時刻(Tp)が使用期間内か否かを判断する(S88)。   If the accumulated difference value 15 is within the allowable difference value 16 (S103 / Yes), the device control unit 29 acquires the usage period information 28 corresponding to the content 27 specified in the usage request, and the current time ( Tp) is acquired (S87). Subsequently, the device control unit 29 compares the acquired current time (Tp) with the usage period information 28 (S87), and determines whether or not the current time (Tp) is within the usage period (S88).

現時刻(Tp)が使用期間内でなければ(S88/No)、機器制御部29は、図示しないが、制御プログラム26に使用不許可の通知をする。制御プログラム26は、使用不許可の通知を受けても、コンテンツ27を起動しない。   If the current time (Tp) is not within the use period (S88 / No), the device control unit 29 notifies the control program 26 that use is not permitted, although not shown. The control program 26 does not activate the content 27 even when it receives a notification of non-use of use.

現時刻(Tp)が使用期間内であれば(S88/Yes)、機器制御部29は指定されたコンテンツ27の使用許可の通知を制御プログラム26へする(S89)。制御プログラム26は、機器制御部29から使用許可の通知を受けると、コンテンツ27を起動して実行する(S86)。   If the current time (Tp) is within the usage period (S88 / Yes), the device control unit 29 notifies the control program 26 of permission to use the designated content 27 (S89). When the control program 26 receives a notification of use permission from the device control unit 29, the control program 26 activates and executes the content 27 (S86).

このように、第4の実施例の電子機器30は、時刻補正で補正された時刻の差分Δを累積し、コンテンツ27に対する使用要求があると、差分累積値15が差分許容値16を超えない場合にのみ、コンテンツ27を起動する。   As described above, the electronic device 30 according to the fourth embodiment accumulates the time difference Δ corrected by the time correction, and if there is a use request for the content 27, the difference accumulated value 15 does not exceed the allowable difference value 16. Only when the content 27 is activated.

従って、第4の実施例の電子機器も、1回あたりの許容範囲内で時間を繰り返し巻き戻すことにより時計23を不正に巻き戻すことを防止することができる。また、第4の実施例の電子機器も、時刻が巻き戻されていないかということも検出しているので、正規の時刻補正の手順以外で不正に時刻を巻き戻したとしても、不正を検出することができる。   Therefore, the electronic device of the fourth embodiment can also prevent the watch 23 from being rewound illegally by repeatedly rewinding the time within the permissible range. In addition, since the electronic device of the fourth embodiment also detects whether the time has been rewound, the fraud is detected even if the time is rewound by other than the regular time correction procedure. can do.

また、第4の実施例の電子機器は、標準時刻を提供する施設から標準時刻を取得することなく時計23の時刻の不正を検出できるので、施設の利用料が不要であり、また施設との間の通信費用が不要である。従って第4の実施例は時刻補正時の通信費が不要であり、また、外部施設と接続するための公衆回線に接続するためのハードウェアも不要であるため、不正な時刻補正を低コストで防止することができる。   In addition, since the electronic device of the fourth embodiment can detect the illegal time of the clock 23 without acquiring the standard time from the facility providing the standard time, there is no fee for using the facility, No communication costs are required. Therefore, the communication cost for time correction is not required in the fourth embodiment, and hardware for connecting to a public line for connecting to an external facility is also unnecessary. Can be prevented.

また、第4の実施例の電子機器も、第1の実施例の最後の部分で記載した時計の精度に起因する補正動作を実行することができる。第1の実施例では監視制御部14の手順をプロセッサ12で実行するが、第4の実施例では監視制御部14の手順を監視制御部34と機器制御部29に組み込み、プロセッサ22で実行することができる。従って、第4の実施例の電子機器も、第1の実施例と同様に、時計の精度に起因した誤動作を防止することができる。   In addition, the electronic device of the fourth embodiment can also perform a correction operation caused by the accuracy of the timepiece described in the last part of the first embodiment. In the first embodiment, the procedure of the monitoring control unit 14 is executed by the processor 12. In the fourth embodiment, the procedure of the monitoring control unit 14 is incorporated in the monitoring control unit 34 and the device control unit 29 and executed by the processor 22. be able to. Therefore, the electronic device of the fourth embodiment can also prevent malfunction caused by the accuracy of the timepiece, as in the first embodiment.

本発明の時刻監視装置の概要構成を示した図である。It is the figure which showed schematic structure of the time monitoring apparatus of this invention. 本発明の電子機器の概要構成を示した図である。It is the figure which showed the outline | summary structure of the electronic device of this invention. 本発明の第1の実施例の時刻監視装置10の構成を示したブロック図である。It is the block diagram which showed the structure of the time monitoring apparatus 10 of 1st Example of this invention. 本発明の第1の実施例における時刻経過の監視動作を示したフローチャートである。It is the flowchart which showed the monitoring operation | movement of the time passage in 1st Example of this invention. 本発明の第1の実施例における差分累積値15を監視する動作を示したフローチャートである。It is the flowchart which showed the operation | movement which monitors the difference accumulation value 15 in 1st Example of this invention. 本発明の第2の実施例の電子機器20構成を示したブロック図である。It is the block diagram which showed the electronic device 20 structure of the 2nd Example of this invention. 本発明の第2の実施例における時刻補正要求の動作を示したフローチャートである。It is the flowchart which showed the operation | movement of the time correction request | requirement in 2nd Example of this invention. 本発明の第2の実施例におけるコンテンツの使用要求の動作を示したフローチャートである。It is the flowchart which showed the operation | movement of the usage request of the content in 2nd Example of this invention. 本発明の第3の実施例の電子機器30の構成を示したブロック図である。It is the block diagram which showed the structure of the electronic device 30 of the 3rd Example of this invention. 第3の実施例における時刻補正要求の動作とコンテンツ27の使用要求の動作を示したフローチャートである。It is the flowchart which showed the operation | movement of the time correction request | requirement in the 3rd Example, and the operation | movement of the use request | requirement of the content 27. 第4の実施例における時刻補正要求の動作とコンテンツ27の使用要求の動作を示したフローチャートである。It is the flowchart which showed the operation | movement of the time correction request | requirement in 4th Example, and the operation | movement of the use request | requirement of the content 27.

符号の説明Explanation of symbols

1A プロセッサ
2A 差分累積部
3A 比較部
4A 決定部
5A 時計
10 時刻監視装置
11 記憶部
12 プロセッサ
13 インターフェース部
14 監視制御部
15 差分累積値
16 差分許容値
17 起動条件
18 記録時刻
19 フラグ
20 電子機器
21 記憶部
22 プロセッサ
23 時計
24 入力装置
25 表示装置
26 制御プログラム
27 コンテンツ
28 使用期間情報
29 機器制御部
30 電子機器
31 記憶部
34 監視制御部
1A Processor 2A Difference Accumulation Unit 3A Comparison Unit 4A Determination Unit 5A Clock 10 Time Monitoring Device 11 Storage Unit 12 Processor 13 Interface Unit 14 Monitor Control Unit 15 Difference Accumulated Value 16 Difference Allowed Value 17 Start Condition 18 Recording Time 19 Flag 20 Electronic Device 21 Storage unit 22 Processor 23 Clock 24 Input device 25 Display device 26 Control program 27 Content 28 Usage period information 29 Device control unit 30 Electronic device 31 Storage unit 34 Monitoring control unit

Claims (12)

時刻を補正する際に、補正前の時刻と補正により設定される時刻との差分を累積し、累積値と予め決められた許容値とを比較し、比較結果に基づいて時刻補正の可否を決定するプロセッサと、  When correcting the time, the difference between the time before the correction and the time set by the correction is accumulated, the accumulated value is compared with a predetermined allowable value, and whether to correct the time is determined based on the comparison result. A processor to
設定時刻と現時刻との差分を累積する差分累積値と、前記差分累積値の許容範囲を示す差分許容値を格納する記憶部と、を有し、  A difference accumulation value for accumulating the difference between the set time and the current time, and a storage unit for storing an allowable difference value indicating an allowable range of the accumulated difference value,
前記プロセッサは、時刻補正の過程で発行される監視要求を受けると、時計から現時刻を取得し、監視要求で指示された設定時刻と前記取得した現時刻との差分を計算し、計算した差分を前記記憶部から取得した前記差分累積値に加算し、加算された差分累積値と前記差分許容値とを比較して時刻補正の可否を決定し、前記加算された差分累積値が前記差分許容値以内であれば、時刻補正を許可する設定正常応答を出力し、前記加算された差分累積値が前記差分許容値を超えていれば時刻補正を不許可とする設定異常応答を出力し、  When the processor receives a monitoring request issued in the process of time correction, the processor acquires the current time from a clock, calculates the difference between the set time indicated by the monitoring request and the acquired current time, and calculates the calculated difference Is added to the difference accumulated value acquired from the storage unit, the added difference accumulated value is compared with the difference allowance value to determine whether time correction is possible, and the added difference accumulated value is the difference allowance value. If it is within the value, a setting normal response that permits time correction is output, and if the added difference cumulative value exceeds the difference allowable value, a setting abnormality response that prohibits time correction is output,
前記記憶部は、記録時刻と、時刻が不正であることを示すフラグを格納し、  The storage unit stores a recording time and a flag indicating that the time is invalid,
前記監視要求に対する動作を実行していないときに、前記プロセッサは、  When not performing an operation for the monitoring request, the processor
予め決められた起動時刻になると、前記時計から現時刻を取得し、取得した現時刻が記録時刻より過去ならばフラグをオンとし、取得した現時刻が記録時刻より未来の時刻であれば取得した現時刻を記録時刻として更新する、時刻監視装置。  When the predetermined start time is reached, the current time is acquired from the clock, and if the acquired current time is past the recording time, the flag is turned on, and if the acquired current time is in the future from the recording time, the current time is acquired. A time monitoring device that updates the current time as the recording time.
前記プロセッサは、前記監視要求を受けた際に、前記フラグがオンであれば、前記加算された差分累積値と前記差分許容値との比較結果にかかわらず、時刻補正を不許可とする応答を出力する、請求項1記載の時刻監視装置。  When the processor receives the monitoring request, if the flag is on, a response to disallow time correction regardless of a comparison result between the added difference accumulated value and the allowed difference value is given. The time monitoring apparatus according to claim 1, which outputs the time. 前記プロセッサは、前記時計の精度を取得し、前記精度に基づいて前記差分累積値を補正する請求項1の時刻監視装置。  The time monitoring device according to claim 1, wherein the processor acquires the accuracy of the timepiece and corrects the accumulated difference value based on the accuracy. 前記プロセッサは、前記精度と前記差分許容値に基づいて補正間隔を決定し、補正間隔毎に前記精度に相当する時刻分を前記差分累積値から減じる、請求項3記載の時刻監視装置。  The time monitoring apparatus according to claim 3, wherein the processor determines a correction interval based on the accuracy and the allowable difference value, and subtracts a time corresponding to the accuracy from the accumulated difference value for each correction interval. 請求項1ないし4のいずれか1項に記載の時刻監視装置と、時計と、第2のプロセッサとを有し、  A time monitoring device according to any one of claims 1 to 4, a timepiece, and a second processor,
前記第2のプロセッサは、時刻補正要求を検出すると、時刻補正要求に付された設定時刻を監視要求とともに前記時刻監視装置に出力し、前記時刻監視装置から設定正常応答を受けると前記設定時刻で前記時計の現時刻を更新する、電子機器。  When the second processor detects a time correction request, the second processor outputs a set time attached to the time correction request together with a monitoring request to the time monitoring device, and receives a setting normal response from the time monitoring device at the set time. An electronic device that updates a current time of the clock.
請求項1ないし4のいずれか1項に記載の時刻監視装置と、時計と、コンテンツと使用期間情報を格納する記憶部と、第2のプロセッサとを有し、  A time monitoring device according to any one of claims 1 to 4, a clock, a storage unit that stores content and usage period information, and a second processor,
前記第2のプロセッサは、コンテンツの使用要求を検出すると、前記時計から現時刻を取得し、現時刻と要求されたコンテンツに該当する前記使用期間情報とを比較し、現時刻が使用期間内であれば使用要求されたコンテンツの使用を許可する、電子機器。  When the second processor detects a content use request, the second processor obtains the current time from the clock, compares the current time with the use period information corresponding to the requested content, and the current time is within the use period. An electronic device that permits the use of requested content, if any.
時計と、記憶部と、  A clock, a storage unit,
前記時計の現時刻を補正する際に、補正前の現時刻と補正により設定される現時刻との差分を累積し、差分の累積値と前記記憶部に格納される許容値とを比較した結果により、時刻補正の可否を決定するプロセッサと、を有し、  When correcting the current time of the clock, the result of accumulating the difference between the current time before correction and the current time set by the correction, and comparing the accumulated value of the difference with the allowable value stored in the storage unit And a processor for determining whether time correction is possible,
前記記憶部は、設定時刻と現時刻との差分を累積した差分累積値と、前記差分累積値の許容範囲を示す差分許容値を格納し、  The storage unit stores a difference accumulated value obtained by accumulating a difference between a set time and a current time, and a difference allowable value indicating an allowable range of the difference accumulated value,
前記プロセッサは、時刻補正要求を検出すると、前記時計から現時刻を取得し、時刻補正要求で指示された設定時刻と現時刻との差分を計算し、計算した差分を前記差分累積値に加算し、加算された差分累積値と前記差分許容値とを比較して時刻補正の可否を決定し、  When detecting the time correction request, the processor acquires the current time from the clock, calculates a difference between the set time indicated by the time correction request and the current time, and adds the calculated difference to the accumulated difference value. , By comparing the added difference accumulated value and the difference allowable value to determine whether time correction is possible,
前記記憶部は、記録時刻と、時刻が不正であることを示すフラグを格納し、  The storage unit stores a recording time and a flag indicating that the time is invalid,
予め決められた起動時刻になると、前記プロセッサは、前記時計から現時刻を取得し、取得した現時刻が記録時刻より過去ならばフラグをオンとし、取得した現時刻が記録時刻より未来の時刻であれば取得した現時刻を記録時刻として更新する、電子機器。  When the predetermined start time is reached, the processor acquires the current time from the clock, turns on the flag if the acquired current time is past the recording time, and the acquired current time is a time that is in the future from the recording time. An electronic device that updates the acquired current time as the recording time, if any.
前記プロセッサは、時刻補正要求を検出すると、前記フラグを参照し、前記フラグがオフで、かつ、前記加算された差分累積値が前記差分許容値以内であれば、時刻補正要求された設定時刻で前記時計の現時刻を更新する、請求項7記載の電子機器。  When the processor detects a time correction request, the processor refers to the flag, and if the flag is off and the added difference accumulated value is within the allowable difference value, the processor sets the time correction requested at the set time. The electronic device according to claim 7, wherein the current time of the clock is updated. 前記プロセッサは、前記時計の精度を取得し、前記時計の精度に基づいて前記差分累積値を補正する、請求項7記載の電子機器。  The electronic device according to claim 7, wherein the processor acquires the accuracy of the timepiece and corrects the accumulated difference value based on the accuracy of the timepiece. 前記プロセッサは、前記精度と前記差分許容値に基づいて補正間隔を決定し、補正間隔毎に前記精度に相当する時刻分を差分累積値から減じる、請求項9記載の電子機器。  The electronic device according to claim 9, wherein the processor determines a correction interval based on the accuracy and the allowable difference value, and subtracts a time corresponding to the accuracy from the accumulated difference value for each correction interval. 現時刻を補正する際に、補正前の現時刻と補正により設定される現時刻との差分を累積し、差分の累積値と予め決められた許容値とを比較した結果により、時刻補正の可否を決定するプロセッサを有し、  When the current time is corrected, the difference between the current time before correction and the current time set by the correction is accumulated, and whether or not the time can be corrected based on the result of comparing the accumulated value of the difference with a predetermined allowable value Having a processor to determine
前記プロセッサは、  The processor is
時刻補正要求を検出すると、時計から現時刻を取得し、監視要求で指示された設定時刻と現時刻との差分を計算し、計算した差分を記憶部に格納される差分累積値に加算し、加算された差分累積値と記憶部に格納される差分許容値とを比較して時刻補正の可否を決定し、    When the time correction request is detected, the current time is acquired from the clock, the difference between the set time indicated by the monitoring request and the current time is calculated, and the calculated difference is added to the accumulated difference value stored in the storage unit, Comparing the added difference accumulated value and the difference allowable value stored in the storage unit to determine whether time correction is possible,
予め決められた起動時刻になると、前記時計から現時刻を取得し、前記取得した現時刻が記録時刻より過去ならばフラグをオンとし、前記取得した現時刻が記録時刻より未来の時刻であれば前記取得した現時刻を記録時刻として更新する、時刻監視方法。    When the predetermined start time is reached, the current time is acquired from the clock, and if the acquired current time is past the recording time, the flag is turned on, and if the acquired current time is in the future from the recording time A time monitoring method in which the acquired current time is updated as a recording time.
前記プロセッサが、時刻補正要求を検出すると、前記フラグを参照し、前記フラグがオフで、かつ、前記加算された差分累積値が前記差分許容値以内であれば、時刻補正要求された設定時刻で前記時計の現時刻を更新することを特徴とする請求項11の時刻監視方法。  When the processor detects a time correction request, the processor refers to the flag, and if the flag is off and the added difference accumulated value is within the allowable difference value, the time correction requested time is set. The time monitoring method according to claim 11, wherein the current time of the clock is updated.
JP2007267737A 2007-10-15 2007-10-15 Time monitoring apparatus, electronic device, and time monitoring method Expired - Fee Related JP5326255B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007267737A JP5326255B2 (en) 2007-10-15 2007-10-15 Time monitoring apparatus, electronic device, and time monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007267737A JP5326255B2 (en) 2007-10-15 2007-10-15 Time monitoring apparatus, electronic device, and time monitoring method

Publications (2)

Publication Number Publication Date
JP2009097907A JP2009097907A (en) 2009-05-07
JP5326255B2 true JP5326255B2 (en) 2013-10-30

Family

ID=40701057

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007267737A Expired - Fee Related JP5326255B2 (en) 2007-10-15 2007-10-15 Time monitoring apparatus, electronic device, and time monitoring method

Country Status (1)

Country Link
JP (1) JP5326255B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10341212A (en) * 1997-06-10 1998-12-22 Matsushita Electric Ind Co Ltd Encryption text transmission system
JP2002215175A (en) * 2001-01-15 2002-07-31 Sony Corp Information processor
US7266714B2 (en) * 2004-06-15 2007-09-04 Dolby Laboratories Licensing Corporation Method an apparatus for adjusting the time of a clock if it is determined that the degree of adjustment is within a limit based on the clocks initial time

Also Published As

Publication number Publication date
JP2009097907A (en) 2009-05-07

Similar Documents

Publication Publication Date Title
US8479049B2 (en) Electronic device and method for detecting power failure type
US8117476B2 (en) Information processing apparatus, startup method and computer program
US20120233480A1 (en) Power saving notification system, terminal device, power saving notification method, and power saving notification program
US8102466B2 (en) Imaging device and control method therefor, and program for the same
US7707376B2 (en) Verifying the validity of data saved at power down by comparing the time of save to time of power-off upon start up
US20100083043A1 (en) Information processing device, recording medium that records an operation state monitoring program, and operation state monitoring method
US8839017B2 (en) Electronic device and method for detecting power statuses of electronic device
JP2008269473A (en) Data remaining period managing device and method
JP2010086601A (en) Medium processing apparatus and medium processing method
US7251094B2 (en) Recording medium apparatus
JP5326255B2 (en) Time monitoring apparatus, electronic device, and time monitoring method
JP2009230314A (en) Information processing apparatus, data saving program and data saving method
JP2006119996A (en) Battery-driven device and its nonvolatile memory updating method
JP4282460B2 (en) Data rewrite device
JP2008116811A (en) Projector, program, and information storage medium
JP2016127688A (en) Demand target value change device, demand target value change device maintenance method, demand target value change program, and recording medium
JP5142799B2 (en) Data collection apparatus and data reproduction method thereof
JP2007102349A (en) Data processor
US20230334448A1 (en) Information processing apparatus, information processing method, and storage medium
JP4762269B2 (en) Reproducing apparatus, integrated circuit, and reproducing method
JP4452168B2 (en) Audio broadcasting apparatus and history data processing method thereof
JP2009181498A (en) Job processing system and job processing method
JP2005322024A (en) Abnormality information output device, abnormality detection system and abnormality information output method
JP2020080017A (en) Information processing device, control method of information processing device, and program
JP5885464B2 (en) Imaging apparatus, control method thereof, and program

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20090513

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100910

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20110705

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120627

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120703

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120820

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: 20130625

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130708

R150 Certificate of patent or registration of utility model

Ref document number: 5326255

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees