JP2020066191A - Electronic apparatus, method for recording log electronic apparatus, and program - Google Patents
Electronic apparatus, method for recording log electronic apparatus, and program Download PDFInfo
- Publication number
- JP2020066191A JP2020066191A JP2018201159A JP2018201159A JP2020066191A JP 2020066191 A JP2020066191 A JP 2020066191A JP 2018201159 A JP2018201159 A JP 2018201159A JP 2018201159 A JP2018201159 A JP 2018201159A JP 2020066191 A JP2020066191 A JP 2020066191A
- Authority
- JP
- Japan
- Prior art keywords
- time
- log
- electronic device
- time information
- recording
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
本発明は、電子機器と当該電子機器におけるログを記録する方法、及びプログラムに関する。 The present invention relates to an electronic device, a method for recording a log in the electronic device, and a program.
電子機器は、時間を正確に計測するために、ハードウェアのリアルタイムクロック(RTC)を搭載するのが一般的である。そして、そのリアルタイムクロックにより計時された時間を用いて、現在の時間や経過時間を取得することができる。また、このリアルタイムクロックは、装置の電源がオフの間でも計時を行うことができるように、装置に搭載された電池から電源供給を受けている。 An electronic device is generally equipped with a hardware real time clock (RTC) in order to accurately measure time. Then, the current time and elapsed time can be acquired using the time measured by the real-time clock. Further, the real-time clock is supplied with power from a battery mounted in the device so that the time can be measured even when the power of the device is off.
一方、製品のコスト削減のために、このようなRTCや電池を搭載せずに、ネットワークタイムプロトコル(NTP)を用いて、ネットワーク上の時刻管理サーバから時間を取得する装置も増えてきている。また特許文献1に記載されているように、同じネットワーク環境にある他のデバイス(例えば時刻管理サーバ)から時間を取得することも行われている。 On the other hand, in order to reduce the cost of the product, an increasing number of devices acquire the time from the time management server on the network by using the network time protocol (NTP) without mounting the RTC and the battery. Further, as described in Patent Document 1, time is also acquired from another device (for example, a time management server) in the same network environment.
上記特許文献1では、ネットワーク上の複数のクライアントはそれぞれ時刻管理サーバから時間情報を取得するため、各クライアントが取得する時刻のずれが生じることが考えられる。またサーバから正確な時間が取得できないときは、各クライアントが有する内部カウンタ(ソフトウェアによる計時)に頼ることになり、各クライアントが管理している時間情報が互いに異なる事態が発生することになる。 In Patent Document 1 described above, since each of the plurality of clients on the network acquires time information from the time management server, it is conceivable that a time difference between the clients acquires. Further, when the accurate time cannot be acquired from the server, the internal counter (timekeeping by software) of each client is relied upon, and the time information managed by each client may be different from each other.
本発明の目的は、上記従来技術の問題点の少なくとも一つを解決することにある。 An object of the present invention is to solve at least one of the problems of the above-mentioned conventional techniques.
本発明の目的は、ハードウェアのRTCを搭載せずに、ソフトウェアによる計時に基づいて標準時に近い時間情報に基づくログを記録できる技術を提供することにある。 An object of the present invention is to provide a technique capable of recording a log based on time information close to standard time based on timekeeping by software without mounting a hardware RTC.
上記目的を達成するために本発明の一態様に係る電子機器は以下のような構成を備える。即ち、
電子機器であって、
前記電子機器で発生した事象をログとして記録する記録手段と、
ソフトウェアによる計時を行う計時手段と、
外部装置から時間情報を取得する取得手段と、
前記計時手段により計時した時間が所定時間以上になった後で前記記録手段により記録された前記ログを、前記取得手段により取得した時間情報に基づいて補正する補正手段とを有することを特徴とする。
To achieve the above object, an electronic device according to one aspect of the present invention has the following configuration. That is,
An electronic device,
Recording means for recording the event that occurred in the electronic device as a log,
A timekeeping means for timekeeping by software,
Acquisition means for acquiring time information from an external device,
And a correction unit that corrects the log recorded by the recording unit after the time measured by the time measuring unit exceeds a predetermined time based on the time information acquired by the acquiring unit. .
本発明によれば、ハードウェアのRTCを搭載せずに、ソフトウェアによる計時に基づいて標準時に近い時間情報に基づくログを記録できるという効果がある。 According to the present invention, there is an effect that a log based on time information close to standard time can be recorded based on timekeeping by software without mounting a hardware RTC.
本発明のその他の特徴及び利点は、添付図面を参照とした以下の説明により明らかになるであろう。なお、添付図面においては、同じ若しくは同様の構成には、同じ参照番号を付す。 Other features and advantages of the present invention will be apparent from the following description with reference to the accompanying drawings. Note that, in the accompanying drawings, the same or similar configurations are denoted by the same reference numerals.
添付図面は明細書に含まれ、その一部を構成し、本発明の実施形態を示し、その記述と共に本発明の原理を説明するために用いられる。
以下、添付図面を参照して本発明の実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る本発明を限定するものでするものでなく、また本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。本発明に係る情報処理装置の一実施形態としての画像形成装置について説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments are not intended to limit the present invention according to the claims, and all combinations of features described in the present embodiments are essential to the solving means of the present invention. Not necessarily. An image forming apparatus as an embodiment of the information processing apparatus according to the present invention will be described.
図1は、実施形態に係る画像形成装置100の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of the
この画像形成装置100は、原稿の画像を光学的に読み取りデジタル画像に変換するスキャナ102、デジタル画像データに基づいて用紙(シート)に画像を形成(印刷)するプリンタ104を有する多機能処理装置(MFP)として説明する。但し、この画像形成装置100は、印刷機能のみを有するプリンタ装置であってもよい。
The
この画像形成装置100は更に、ユーザの操作を受付け、またユーザに情報を提示するための操作部105、画像データや制御プログラム等を記憶するHDD106、電話回線等にデジタル画像を送信するFAX装置107を有する。更に、これら各部を制御するコントローラ(制御部)103を有する。コントローラ103は、LAN108経由でコンピュータ109との間でデジタル画像データ等の送受信、及びジョブの発行や機器の指示等も受け付けることができる。
The
スキャナ102は、原稿束を積載して、一枚ずつ給紙できる原稿給紙ユニット121、原稿給紙ユニット121により給紙された原稿を光学的にスキャンしてデジタル画像に変換するスキャナユニット122を有し、変換された画像データはコントローラ103に送信される。プリンタ104は、紙束から一枚ずつ逐次給紙可能な給紙ユニット142、給紙された用紙に画像データを印刷するためのマーキングユニット141、印刷後の用紙を排紙する排紙ユニット143を有する。
The
またコンピュータ109は、LAN108を経由で、コントローラ103に指示を出してジョブを実行させる。実施形態において、コンピュータ109はコントローラ103にオフ指示を出力すると、コントローラ103は画像形成装置100のオフプロセスを実行する。
The
画像形成装置1は多彩なジョブを実行可能である。一例を以下に記載する。
・複写機能
スキャナ102で読み込んだ画像の画像データを取得してHDD106に記録し、同時にプリンタ104を使用して印刷を行なう。
・画像送信機能
スキャナ102で読み込んだ画像の画像データをLAN108を介してコンピュータ109に送信する。
・画像保存機能
スキャナ102で読み込んだ画像の画像データをHDD106に記録し、必要に応じて画像データの送信や画像の印刷を行なう。
・画像印刷機能
コンピュータ109から送信された例えばページ記述言語を解析し、プリンタ104で印刷する。
The image forming apparatus 1 can execute various jobs. An example is described below.
Copy Function Acquires image data of an image read by the
Image transmission function Image data of an image read by the
Image Saving Function The image data of the image read by the
Image printing function For example, the page description language transmitted from the
図2は、実施形態に係る画像形成装置100のコントローラ103のハードウェア構成を説明するブロック図である。
FIG. 2 is a block diagram illustrating the hardware configuration of the
コントローラ103は、メインボード200と、サブボード220とを含んでいる。メインボード200はいわゆる汎用的なCPUシステムである。メインボード200は、ボード全体を制御するメインCPU201、ブートプログラムなどを記憶するブートロム202、CPU201がワークメモリとして使用するメモリ203、外部バスとのブリッジ機能を持つバスコントローラ204、電源オフされた場合でも、記憶しているデータが消えない不揮発性メモリ205を有する。更にメインボード200は、HDD106を制御するディスクコントローラ206と、半導体デバイスで構成された比較的小容量な不揮発性記憶装置であるフラッシュディスク(SSD等)207、USBメモリ209を制御することが可能なUSBコントローラ208等を有する。更にメインボード200には外部に、USBメモリ209、操作部105、HDD106等が接続される。またメインボード200はネットワークインタフェース210を有し、このネットワークインタフェース210を介してLAN108に接続されている。
The
サブボード220は比較的小さな汎用サブCPUシステムと、画像処理用のハードウェアを有している。サブボード220は、ボード全体を制御するサブCPU221、CPU221がワークメモリとして使用するメモリ223、外部バスとのブリッジ機能を持つバスコントローラ224、電源オフされた場合でも、記憶しているデータが消えない不揮発性メモリ225を有する。更に、リアルタイムデジタル画像処理を行なう画像処理プロセッサ227と、エンジンコントローラ226を有する。スキャナ1022とプリンタ104はそれぞれ、エンジンコントローラ226を介してデジタル画像データの受け渡しを行なう。FAX装置107はサブCPU221が直接制御を行なう。尚、本図はブロック図であり簡略化している。例えばメインCPU201、サブCPU221等にはチップセット、バスブリッジ、クロックジェネレータ等のCPU周辺ハードウェアが多数含まれているが、説明の粒度的に不必要であるため簡略化して記載しており、このブロック構成が本発明を制限するものではない。
The
次にコントローラ103による動作の一例として、原稿の複写を例に説明する。
Next, as an example of the operation of the
利用者が操作部105から画像複写を指示すると、メインCPU201がサブCPU221を介してスキャナ102に画像読み取り命令を送る。これによりスキャナ102は、原稿を光学的にスキャンして、その原稿の画像に対応するデジタル画像データを取得し、エンジンコントローラ226を介して画像処理プロセッサ227に入力する。画像処理プロセッサ227は、サブCPU221を介してメモリ223にDMA転送を行い、処理済のデジタル画像データの一時保存を行なう。メインCPU201は、デジタル画像データがメモリ223に一定量もしくは全て入ったことが確認できると、サブCPU221を介してプリンタ104に画像出力指示を出す。このときサブCPU221は、画像処理プロセッサ227に、メモリ223の画像データが格納されているアドレスを教える。こうして画像処理プロセッサ227は、プリンタ104からの同期信号に従ってメモリ223から画像データを読み出し、エンジンコントローラ226を介してプリンタ104に送信する。こうしてプリンタ104は、その画像データに従って用紙に画像を印刷する。尚、複数部の印刷を行なう場合、メインCPU201がメモリ223の画像データをHDD106に保存し、2部目以降は、そのHDD106から画像データを出力することで、スキャナ102が原稿を読み取ることなく、プリンタ104に画像データを送信して印刷させることができる。
When the user instructs image copying from the
昨今、コスト削減のためにRTCを搭載しない画像形成装置などの電子機器が出現しており、このような電子機器における時間の取得方法を説明する。 Recently, an electronic device such as an image forming apparatus that does not include an RTC has appeared for cost reduction, and a method of acquiring time in such an electronic device will be described.
図3は、RTCを搭載しない電子機器において、その機器が計測している時間と標準時との間に差が生じる例を説明する図である。 FIG. 3 is a diagram illustrating an example in which an electronic device not equipped with an RTC has a difference between the time measured by the device and the standard time.
RTCを使用せずに、ソフトによる内部カウンタを用いて時間を取得する電子機器では、標準時との差異が生じる原因は、例えば以下の通りである。
(1)電子機器の動作開始時、既に標準時と差異が生じている、これは例えば、ユーザの設定ミス、タイムゾーンを跨いだ輸送によった時間差、もしくは電池未搭載のため再起動によった時間消失などが考えられる。例えば図3では、電子機器の動作開始時、標準時T1に対して、機器の時間は(T1+Te)となっており、既に誤差Teが生じている。
(2)内部カウンタの計時による誤差
前述したように、内部カウンタによる計時の精度は、RTCによる計時よりはるかに低い。極端な場合、一時間ごとに、1〜5秒の誤差が生じることがある。
In an electronic device that acquires time using an internal counter based on software without using the RTC, the cause of the difference from the standard time is as follows, for example.
(1) When the operation of the electronic device is started, there is already a difference from the standard time. This is due to, for example, a setting error by the user, a time difference due to transportation across time zones, or a restart due to no battery installed. Time may be lost. For example, in FIG. 3, when the operation of the electronic device is started, the device time is (T1 + Te) with respect to the standard time T1, and the error Te has already occurred.
(2) Error due to time measurement of internal counter As described above, the accuracy of time measurement by the internal counter is much lower than that by RTC. In an extreme case, an error of 1 to 5 seconds may occur every hour.
図3の例では、電子機器が標準時でΔT時間動作すると、標準時が(T1+ΔT)の時点で、機器の時間は(T1+Te+Tc)となっている。ここでTeは、初期状態のときの時間差であり、TcとΔTとの時間差は、内部カウンタに起因する誤差によるものである。 In the example of FIG. 3, when the electronic device operates for ΔT time in the standard time, the device time is (T1 + Te + Tc) at the time point (T1 + ΔT) in the standard time. Here, Te is the time difference in the initial state, and the time difference between Tc and ΔT is due to the error caused by the internal counter.
図4は、実施形態に係る画像形成装置100が時間情報を取得する構成を説明する図である。
FIG. 4 is a diagram illustrating a configuration in which the
ここで画像形成装置100は、有線LANもしくは無線LANを用いてインターネットへの接続だけではなく、近距離無線通信(NFC)又はブルートゥース(Bluetooth(登録商標))を搭載するようになった。画像形成装置100は、ネットワーク上にある時刻管理サーバ401と通信して時間を取得することができる。またNFCとBluetoothを用いてモバイルデバイス(例えばスマートフォンやノートパソコン402)と通信することも可能である。スマートフォンやノートパソコン402は、モバイルインターネット(例えば3G、LTE)を通じて時刻管理サーバ401と通信して時間を補正し、また機器の内部にもリアルタイムクロックを有するため、常に標準時を取得できる。
Here, the
図4をまとめると、画像形成装置100が時刻管理サーバ401、もしくはNFCやBluetoothを通じてスマートフォンやノートパソコン402から標準時を取得することができる。また標準時を取得できない場合でも、画像形成装置100は内部カウンタ403により計時された時間を取得できる。
In summary of FIG. 4, the
実施形態に係る画像形成装置100が記録したログをサーバへ転送する場合、そのサーバで計時されている時間と、画像形成装置100が計時している時間との差を取得し、その時間差に基づいて、それまでに取得している暫定ログの時間を補正する。その場合、まず装置の時間を標準時に合わせ、内部カウンタにより計時を用いて、事象発生時の機器の時間を算出する。
When the log recorded by the
一方、過去の事象時間を算出する場合、現在の時間から内部カウンタで計時された時間分を遡ることになる。しかし前述したように、内部カウンタによる計時は、実際の時間との誤差が大きいため、内部カウンタによる計時時間が長時間に亘ると(例えばネットワークにつながっていない、もしくは標準時を持つサーバと接続されていない場合)、装置がの時間と標準時との誤差が非常に大きくなる。
そこで実施形態に係る画像形成装置100では、ネットワークから時間情報が取得できない状態で、内部カウンタによる計時時間が所定時間以上になると、内部カウンタによる計時時間の誤差が大きくなったと推定する。そしてその場合は、接続されているサーバ或いは電子機器から時間情報を取得する。そして、その時間情報の取得に成功すると、内部カウンタによる計時時間の誤差が大きくなっていると思われる時間帯で取得したログ(仮ログ)の時間情報を、その取得に成功した時間情報で更新する。これにより、内部カウンタによる計時時間の誤差が大きくなっていると思われる時間帯で取得したログの時間情報を、より標準時に近い時間情報で更新することができる。こうして、RTCを有していない画像形成装置でも、ログを、より標準時に近い時間情報に基づいて記録することができる例を以下で説明する。
On the other hand, when calculating the past event time, the time counted by the internal counter is traced back from the current time. However, as mentioned above, there is a large difference between the actual time and the time measured by the internal counter, so if the time measured by the internal counter is long (for example, not connected to the network or connected to a server with standard time). Error), the error between the time of the device and the standard time becomes very large.
Therefore, in the
図5は、実施形態に係る画像形成装置100における正式ログ及び暫定ログの取得処理を説明するフローチャートである。尚、このフローチャートで示す処理は、メインCPU201がメモリ203に展開したプログラムを実行することにより達成される。
FIG. 5 is a flowchart illustrating the acquisition process of the formal log and the provisional log in the
この処理の前提として、メインCPU201は、事象が発生する前(数時間或いは数日前)に標準時(以下、開始時間)を取得しているものとする。そしてメインCPU201は、その開始時間をメモリ203に保存するとともに、内部カウンタ403をクリア(値をゼロ)する。画像形成装置100が動作開始後、以下の式(1)を使用して装置の時間を算出する。
As a premise of this processing, it is assumed that the
装置の時間=開始時間+(内部カウンタ403による計時時間) …式(1)
尚、開始時間は、前述したように、外部装置と通信して取得した初期の時間であるため、ほぼ標準時に等しい。一方、内部カウンタ403による計時時間は、精度の低い内部カウンタ403による計時であるため、時間が経つとともに標準時との誤差が大きくなる。
Device time = start time + (timed time by internal counter 403) Equation (1)
Since the start time is the initial time acquired by communicating with the external device as described above, it is almost equal to the standard time. On the other hand, since the time measured by the
まずS501でメインCPU201は、内部カウンタ403により計時された時間を取得し、上記式(1)に基づいて機器の時間を取得する。次にS502に進みメインCPU201は、内部カウンタ403により計時された時間に基づいて、前回、外部装置と通信して得た時間(開始時間)から経過した時間を取得し、その経過時間が一定時間になったかどうか判定する。ここで一定時間以下であれば、機器の時間の誤差は所定の範囲内であるためS503に進みメインCPU201は、機器の時間を標準時とみなし、その機器の時間を用いてログ(正式ログ)を記録して、この処理を終了する。
First, in step S501, the
一方、S502でメインCPU201は、経過時間が一定時間を超えたと判定するとS504に進む。S504でメインCPU201は、機器の時間と標準時との誤差は無視できない程度にあると判断し、その機器の時間を用いて暫定ログをメモリ203に記録し、同時に、その時の機器の時間と暫定ログである旨を記録する。
On the other hand, if the
尚、ここで一定時間は、内部カウンタ403の誤差及び許容誤差時間に基づいて設定される。例えば許容時間が10秒、内部カウンタ403の誤差は、1時間で1秒の場合、10時間が経過するまでは正式ログとして記録できる。そして10時間以上経過した場合は、暫定ログとして記録する。
The fixed time is set based on the error of the
実施形態に係る画像形成装置100は、常にインターネットに接続されているか、或いはスマートフォンやノートパソコンと通信ができるという前提ではないので、通信回数を極力少なくする実施形態で記載している。但し、事象が発生するたびに標準時を取得するようにしても良く、或いは所定時間が経過しなくても、標準時を取得できる場合は、それを取得するという実施形態も可能である。いずれの場合も、標準時を取得したとき、それまでに記録されている暫定ログがあれば、その暫定ログの時間情報を補正することになる。
Since the
図6は、実施形態に係る画像形成装置100において、暫定ログの時間情報を補正するために、標準時を取得する手順を説明するフローチャートである。尚、このフローチャートで示す処理は、メインCPU201がメモリ203に展開したプログラムを実行することにより達成される。
FIG. 6 is a flowchart illustrating a procedure for acquiring standard time in order to correct the time information of the provisional log in the
実施形態に係る画像形成装置100では、内部カウンタによる計時の誤差によって、機器がソフトウェアにより計時している機器の時間が標準時から乖離するため、内部カウンタによる計時が一定時間以上になると正式ログではなく暫定ログとして記録する。そして、内部カウンタによる計時が一定時間以上になると外部装置から標準時を取得し、その時間情報に基づいて暫定ログの時間情報を修正して正式ログとして保存する。
In the
まずS601でメインCPU201は、画像形成装置100がインターネットに接続しているか否か判定し、接続されていると判定するとS603に進み、そうでないときはS602に進む。S602でメインCPU201は、NFC或いはBluetoothを介してスマートフォンやパソコン402などと接続されているかどうか判定する。S602で接続されていないと判定するとS601に進むが、そうでないときはS605に進みメインCPU201は、NFC或いはBluetoothを介して、スマートフォンやパソコンから時間情報を取得してS606に進む。
First, in step S601, the
またS601でインターネットに接続されていると判定するとS603に進みメインCPU201は、内部カウンタにより計時した時間が所定時間以上になったかどうか判定する。ここで所定時間以上経過していないと判定するとS601に進むが、そうでないときはS604に進む。S604でメインCPU201は、インターネットを介して時刻管理サーバから標準時を取得してS606に進む。尚、ここでS603で比較する所定時間と、前述の図5における一定時間とは同じであってもよく、或いは互いに異なっていてもよい。
When it is determined in S601 that the Internet is connected, the process proceeds to S603, and the
S606でメインCPU201は、内部カウンタにより計時した時間をクリアし、S605或いはS604で取得した時間情報を設定する。そしてS607に進みメインCPU201は、前述した暫定ログの時間情報を、S606で設定した時間情報で更新してS601に進む。
In S606, the
ここではログ記録時の場合と同様に、内部カウンタにより計時した時間が所定時間以上経過していなければ、内部カウンタにより計時した時間と標準時との誤差は比較的に小さい許容範囲内にあると考えられる。従って、S603で内部カウンタにより計時した時間が所定時間に達していないときは標準時を取得していない。 Here, as in the case of log recording, if the time measured by the internal counter has not exceeded the specified time, it is considered that the difference between the time measured by the internal counter and the standard time is within a relatively small allowable range. To be Therefore, when the time measured by the internal counter in S603 has not reached the predetermined time, the standard time is not acquired.
この処理では、インターネットを介して時刻管理サーバから標準時を取得する場合、時刻管理サーバへのアクセスが頻繁になるのを避けるため、内部カウンタにより計時した時間が所定時間以上になるまで標準時を取得しないようにしている。これに対してNFC或いはBluetoothを介して接続されているスマートフォンやノートパソコンの場合は、通信回線へのアクセスではないため、可能な限り時間情報(標準時)を取得するようにしている。 In this process, when standard time is acquired from the time management server via the Internet, in order to avoid frequent access to the time management server, standard time is not acquired until the time counted by the internal counter reaches a predetermined time or more. I am trying. On the other hand, in the case of a smart phone or a laptop computer connected via NFC or Bluetooth, since it is not an access to a communication line, time information (standard time) is acquired as much as possible.
次に暫定ログを正式ログに補正する方法を図7を参照して説明する。 Next, a method of correcting the provisional log into the official log will be described with reference to FIG.
図7は、実施形態に係る画像形成装置100における内部カウンタによる計時と標準時との誤差と、暫定ログの補正を説明する図である。
FIG. 7 is a diagram illustrating an error between the time measured by the internal counter and the standard time in the
画像形成装置100で、内部カウンタによる計時に基づいて機器の時間を算出する。初期のタイミングT1で、画像形成装置100が標準時を取得し、それを0秒とする。このタイミングT1では、標準時と内部カウンタによる計時との間の誤差は「0」である。ここで内部カウンタはカウントアップする時間間隔が0.01秒とする。そしてT1から標準時で1000秒が経過したタイミングT3では、内部カウンタによるカウント値は「100500」、内部カウンタによる計時は「1005秒」となり、この時点で5秒の誤差が生じている。
The
ここで前述の所定時間を1000秒とすると、このタイミングT3で、時刻管理サーバ或いはパソコンなどから標準時が取得される。これにより、標準時の1000秒に対して内部カウンタによる計時が1005秒であるため、その誤差が+5秒であることが判る。これにより、内部カウンタによる計時の誤差は、+0.5%であると算出できる。 Here, if the above-mentioned predetermined time is 1000 seconds, the standard time is acquired from the time management server or the personal computer at this timing T3. As a result, it can be seen that the error is +5 seconds because the time measured by the internal counter is 1005 seconds, compared to the standard time of 1000 seconds. As a result, it is possible to calculate that the error of the time counting by the internal counter is + 0.5%.
こうして得られた誤差に基づいて、暫定ログの時間情報を補正して正式ログとして保存することができる。例えば、タイミングT2で発生した事象のログが暫定ログとして記録されている場合、タイミングT2での内部カウンタによるカウント値は「60,300」であるため、その暫定ログの時間情報には、その時の機器の時間「603秒」が記録されている。しかし、タイミングT3で内部カウンタによる計時の誤差は+0.5%であることが判明しているので、それにより機器の時間「603秒」を補正すると「600秒」が得られる。 Based on the error thus obtained, the time information of the provisional log can be corrected and saved as a formal log. For example, when the log of the event that occurred at the timing T2 is recorded as the provisional log, the count value of the internal counter at the timing T2 is “60,300”, so the time information of the provisional log shows that time. The device time "603 seconds" is recorded. However, since it is known that the timing error of the internal counter is + 0.5% at the timing T3, the correction of the device time “603 seconds” gives “600 seconds”.
こうしてタイミングT2で記録された暫定ログの時間情報を、より標準時に近い時間情報で修正することにより、その暫定ログを正式ログとして記録することができる。 By correcting the time information of the provisional log recorded at timing T2 in this manner with time information closer to the standard time, the provisional log can be recorded as the official log.
上述の実施形態では、インターネット、NFC、Bluetooth経由で時間情報を取得するとしたが、有線(例えばUSBケーブル)で接続されたパソコンから時間情報を取得するようにしても良い。 Although the time information is acquired via the Internet, NFC, or Bluetooth in the above-described embodiment, the time information may be acquired from a personal computer connected by a cable (for example, a USB cable).
また、パソコンやスマートフォンから時間情報を取得する場合、その時間情報がどれほど正確かどうか不明である。例えば、パソコンやスマートフォンがいつ時刻管理サーバから取得したか判らないため、時間情報をいつ更新したかを示す情報を、その時間情報に付与して画像形成装置100に送信するのが望ましい。
Also, when acquiring time information from a personal computer or smartphone, it is unknown how accurate the time information is. For example, since it is not known when a personal computer or a smart phone has acquired the time information from the time management server, it is desirable to add information indicating when the time information was updated to the time information and transmit it to the
また長時間に渡って標準時を取得できない場合、例えば、インターネットに接続されていない、またスマートフォンやパソコンとも接続されていない場合は、過去に算出した内部カウンタによる計時の誤差を使用して暫定ログの時間情報を補正するようにしても良い。 If the standard time cannot be obtained for a long time, for example, if it is not connected to the Internet or connected to a smartphone or PC, the error of the time calculated by the internal counter calculated in the past is used to save the temporary log. The time information may be corrected.
また画像形成装置100の起動直後は、標準時を取得していないため、起動直後から暫定ログとして記録する。その後、標準時を取得して内部カウンタによる計時の誤差を算出してから、その暫定ログの時間情報を修正し正式ログとして記録する。
Since the standard time is not acquired immediately after the
(その他の実施形態)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other embodiments)
The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or a storage medium, and one or more processors in a computer of the system or apparatus read and execute the program. It can also be realized by the processing. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.
本発明は上記実施形態に制限されるものではなく、本発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、本発明の範囲を公にするために、以下の請求項を添付する。 The present invention is not limited to the above-described embodiments, and various changes and modifications can be made without departing from the spirit and scope of the present invention. Therefore, in order to make the scope of the present invention public, the following claims are attached.
100…画像形成装置、102…スキャナ、103…コントローラ(制御部)、201…メインCPU、401…時刻管理サーバ、402…スマートフォン、パーソナルコンピュータ 100 ... Image forming apparatus, 102 ... Scanner, 103 ... Controller (control unit), 201 ... Main CPU, 401 ... Time management server, 402 ... Smartphone, personal computer
Claims (9)
前記電子機器で発生した事象をログとして記録する記録手段と、
ソフトウェアによる計時を行う計時手段と、
外部装置から時間情報を取得する取得手段と、
前記計時手段により計時した時間が所定時間以上になった後で前記記録手段により記録された前記ログを、前記取得手段により取得した時間情報に基づいて補正する補正手段と、
を有することを特徴とする電子機器。 An electronic device,
Recording means for recording the event that occurred in the electronic device as a log,
A timekeeping means for timekeeping by software,
Acquisition means for acquiring time information from an external device,
A correction unit that corrects the log recorded by the recording unit after the time measured by the time measuring unit exceeds a predetermined time based on the time information acquired by the acquiring unit,
An electronic device comprising:
前記計時手段により計時した時間が一定時間になるまでは前記事象を正式ログとして記録し、前記一定時間を経過した後、前記事象を暫定ログとして記録し、
前記補正手段は、前記暫定ログを補正することを特徴とする請求項1又は2に記載の電子機器。 The recording means is
The event is recorded as a formal log until the time measured by the time measuring means reaches a certain time, and after the certain time has elapsed, the event is recorded as a provisional log,
The electronic device according to claim 1, wherein the correction unit corrects the provisional log.
前記電子機器で発生した事象をログとして記録する記録工程と、
ソフトウェアによる計時を行う計時工程と、
外部装置から時間情報を取得する取得工程と、
前記計時工程で計時した時間が所定時間以上になった後で前記記録工程で記録された前記ログを、前記取得工程で取得した時間情報に基づいて補正する補正工程と、
を有することを特徴とする方法。 A method of recording a log of events that occurred in an electronic device,
A recording step of recording the event that occurred in the electronic device as a log,
A timekeeping process that performs timekeeping by software,
An acquisition process for acquiring time information from an external device,
A correction step of correcting the log recorded in the recording step after the time measured in the time measuring step becomes a predetermined time or more, based on the time information acquired in the acquisition step,
A method comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2018201159A JP2020066191A (en) | 2018-10-25 | 2018-10-25 | Electronic apparatus, method for recording log electronic apparatus, and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2018201159A JP2020066191A (en) | 2018-10-25 | 2018-10-25 | Electronic apparatus, method for recording log electronic apparatus, and program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2020066191A true JP2020066191A (en) | 2020-04-30 |
Family
ID=70389269
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2018201159A Pending JP2020066191A (en) | 2018-10-25 | 2018-10-25 | Electronic apparatus, method for recording log electronic apparatus, and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2020066191A (en) |
-
2018
- 2018-10-25 JP JP2018201159A patent/JP2020066191A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2284704B1 (en) | Information processing apparatus, method, and control program for determinnig the suitable monitoring time corresponding to a selected mode of processing | |
| US9542141B2 (en) | Printing apparatus and printing system including transmission of job log and log image | |
| US8977872B2 (en) | Information processing apparatus having power saving mode, and control method and storage medium therefor | |
| US20140036294A1 (en) | Image processing apparatus, and control method thereof, and recording medium | |
| JP2011018983A (en) | Communication device | |
| JP2020066191A (en) | Electronic apparatus, method for recording log electronic apparatus, and program | |
| US10178257B2 (en) | Monitoring device, monitoring method, and non-transient computer-readable recording medium that records monitoring program | |
| JP2015097080A (en) | Image forming apparatus management apparatus and management program | |
| JP2019159421A (en) | Electronic apparatus, program, workflow execution control method and information processing system | |
| KR20150020089A (en) | Information processing apparatus, information processing method, processing apparatus, and storage medium | |
| US20170264757A1 (en) | Image forming system including image forming apparatus with sleep mode, control method for image forming apparatus in system concerned, and storage medium storing control program for image forming apparatus | |
| US20180253062A1 (en) | Clocking device, image forming apparatus, and time point correction method | |
| US10306079B2 (en) | Device management apparatus, non-transitory computer-readable storage medium, and device management method that can update a table based on data received from a device | |
| US8402299B2 (en) | Electronics device having timekeeping function and computer-readable record medium storing program for timekeeping function | |
| US9703316B2 (en) | Information processing apparatus capable of correcting time-of-day management function, control method therefor, and storage medium | |
| US9253355B2 (en) | Communication apparatus that reduces power consumption, method of controlling the same, and storage medium | |
| JP6158621B2 (en) | Image forming apparatus and image forming method | |
| CN114428593A (en) | Image forming system and print server | |
| US9876926B2 (en) | Server that synchronizes information between information processors, information processing system, information processing apparatus, control method for server, control method for information processing system, control method for information processing apparatus, and storage medium | |
| US10740054B2 (en) | Image forming system, management server, and a non-transitory computer readable recording medium storing a server program | |
| US20250008032A1 (en) | Information processing system, information synchronization system, and non-transitory computer readable medium | |
| JP2001274945A (en) | Image processing apparatus, server apparatus, data processing method, and storage medium | |
| JP2020170353A (en) | Information processing device, control method of information processing device, and program | |
| US8860985B2 (en) | Image forming apparatus for reducing power consumption using a commonly accessible shared memory | |
| JP7188145B2 (en) | Time adjustment device, printing device, time adjustment method, and time adjustment program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20210103 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20210113 |